LibreOffice Module basegfx (master) 1
Namespaces | Functions
b3dpolygontools.hxx File Reference
#include <vector>
#include <functional>
#include <basegfx/point/b3dpoint.hxx>
#include <basegfx/vector/b3dvector.hxx>
#include <basegfx/basegfxdllapi.h>
Include dependency graph for b3dpolygontools.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  basegfx
 
namespace  basegfx::utils
 

Functions

void basegfx::utils::checkClosed (B3DPolygon &rCandidate)
 Check if given polygon is closed. More...
 
sal_uInt32 basegfx::utils::getIndexOfSuccessor (sal_uInt32 nIndex, const B3DPolygon &rCandidate)
 
B3DRange basegfx::utils::getRange (const B3DPolygon &rCandidate)
 
double basegfx::utils::getLength (const B3DPolygon &rCandidate)
 
void basegfx::utils::applyLineDashing (const B3DPolygon &rCandidate, const std::vector< double > &rDotDashArray, std::function< void(const basegfx::B3DPolygon &rSnippet)> aLineTargetCallback, double fDotDashLength=0.0)
 Apply given LineDashing to given polygon. More...
 
BASEGFX_DLLPUBLIC void basegfx::utils::applyLineDashing (const B3DPolygon &rCandidate, const ::std::vector< double > &rDotDashArray, B3DPolyPolygon *pLineTarget, double fDotDashLength=0.0)
 
B3DPolygon basegfx::utils::applyDefaultNormalsSphere (const B3DPolygon &rCandidate, const B3DPoint &rCenter)
 Create/replace normals for given 3d geometry with default normals from given center to outside. More...
 
B3DPolygon basegfx::utils::invertNormals (const B3DPolygon &rCandidate)
 invert normals for given 3d geometry. More...
 
B3DPolygon basegfx::utils::applyDefaultTextureCoordinatesParallel (const B3DPolygon &rCandidate, const B3DRange &rRange, bool bChangeX, bool bChangeY)
 Create/replace texture coordinates for given 3d geometry with parallel projected one rRange: the full range of the 3d geometry If bChangeX, x texture coordinate will be recalculated. More...
 
B3DPolygon basegfx::utils::applyDefaultTextureCoordinatesSphere (const B3DPolygon &rCandidate, const B3DPoint &rCenter, bool bChangeX, bool bChangeY)
 Create/replace texture coordinates for given 3d geometry with spherical one rCenter: the centre of the used 3d geometry If bChangeX, x texture coordinate will be recalculated. More...
 
bool basegfx::utils::isInside (const B3DPolygon &rCandidate, const B3DPoint &rPoint, bool bWithBorder)
 
bool basegfx::utils::isPointOnLine (const B3DPoint &rStart, const B3DPoint &rEnd, const B3DPoint &rCandidate, bool bWithPoints)
 
bool basegfx::utils::isPointOnPolygon (const B3DPolygon &rCandidate, const B3DPoint &rPoint)
 
bool basegfx::utils::getCutBetweenLineAndPlane (const B3DVector &rPlaneNormal, const B3DPoint &rPlanePoint, const B3DPoint &rEdgeStart, const B3DPoint &rEdgeEnd, double &fCut)
 
B3DPolygon basegfx::utils::snapPointsOfHorizontalOrVerticalEdges (const B3DPolygon &rCandidate)
 snap some polygon coordinates to discrete coordinates More...