LibreOffice Module basegfx (master) 1
Namespaces | Functions
b3dpolygontools.cxx File Reference
#include <osl/diagnose.h>
#include <basegfx/polygon/b3dpolygontools.hxx>
#include <basegfx/polygon/b3dpolygon.hxx>
#include <basegfx/polygon/b3dpolypolygon.hxx>
#include <basegfx/numeric/ftools.hxx>
#include <basegfx/range/b3drange.hxx>
#include <basegfx/point/b2dpoint.hxx>
#include <basegfx/tuple/b3ituple.hxx>
#include <cassert>
#include <numeric>
Include dependency graph for b3dpolygontools.cxx:

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, B3DPolyPolygon *pLineTarget, double fDotDashLength)
 
static void basegfx::utils::implHandleSnippet (const B3DPolygon &rSnippet, const std::function< void(const basegfx::B3DPolygon &rSnippet)> &rTargetCallback, B3DPolygon &rFirst, B3DPolygon &rLast)
 
static void basegfx::utils::implHandleFirstLast (const std::function< void(const basegfx::B3DPolygon &rSnippet)> &rTargetCallback, B3DPolygon &rFirst, B3DPolygon &rLast)
 
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...
 
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...