Lines Matching refs:basegfx

50 	basegfx::B2DPolyPolygon impScalePolyPolygonOnCenter(  in impScalePolyPolygonOnCenter()
51 const basegfx::B2DPolyPolygon& rSource, in impScalePolyPolygonOnCenter()
54 basegfx::B2DPolyPolygon aRetval(rSource); in impScalePolyPolygonOnCenter()
56 if(!basegfx::fTools::equalZero(fScale)) in impScalePolyPolygonOnCenter()
58 const basegfx::B2DRange aRange(basegfx::tools::getRange(rSource)); in impScalePolyPolygonOnCenter()
59 const basegfx::B2DPoint aCenter(aRange.getCenter()); in impScalePolyPolygonOnCenter()
60 basegfx::B2DHomMatrix aTrans; in impScalePolyPolygonOnCenter()
72 basegfx::B2DPolyPolygon& rPolygon, in impGetOuterPolyPolygon()
73 basegfx::B2DPolyPolygon& rOuterPolyPolygon, in impGetOuterPolyPolygon()
79 if(basegfx::fTools::more(fOffset, 0.0)) in impGetOuterPolyPolygon()
86 const basegfx::B2DRange aRange(basegfx::tools::getRange(rPolygon)); in impGetOuterPolyPolygon()
87 rPolygon = basegfx::tools::growInNormalDirection(rPolygon, fOffset); in impGetOuterPolyPolygon()
88 const basegfx::B2DRange aGrownRange(basegfx::tools::getRange(rPolygon)); in impGetOuterPolyPolygon()
89 …const double fScaleX(basegfx::fTools::equalZero(aGrownRange.getWidth()) ? 1.0 : aRange.getWidth() … in impGetOuterPolyPolygon()
90 …const double fScaleY(basegfx::fTools::equalZero(aGrownRange.getHeight())? 1.0 : aRange.getHeight()… in impGetOuterPolyPolygon()
91 basegfx::B2DHomMatrix aScaleTrans; in impGetOuterPolyPolygon()
103 rOuterPolyPolygon = basegfx::tools::growInNormalDirection(rPolygon, -fOffset); in impGetOuterPolyPolygon()
104 basegfx::tools::correctGrowShrinkPolygonPair(rPolygon, rOuterPolyPolygon); in impGetOuterPolyPolygon()
110 basegfx::B3DPolyPolygon& rTarget, in impAddInBetweenFill()
111 const basegfx::B3DPolyPolygon& rPolA, in impAddInBetweenFill()
112 const basegfx::B3DPolyPolygon& rPolB, in impAddInBetweenFill()
123 const basegfx::B3DPolygon aSubA(rPolA.getB3DPolygon(a)); in impAddInBetweenFill()
124 const basegfx::B3DPolygon aSubB(rPolB.getB3DPolygon(a)); in impAddInBetweenFill()
136 const double fPolygonLengthA(basegfx::tools::getLength(aSubA)); in impAddInBetweenFill()
137 … fTexHorMultiplicatorA = basegfx::fTools::equalZero(fPolygonLengthA) ? 1.0 : 1.0 / fPolygonLengthA; in impAddInBetweenFill()
139 const double fPolygonLengthB(basegfx::tools::getLength(aSubB)); in impAddInBetweenFill()
140 … fTexHorMultiplicatorB = basegfx::fTools::equalZero(fPolygonLengthB) ? 1.0 : 1.0 / fPolygonLengthB; in impAddInBetweenFill()
148 const basegfx::B3DPoint aStartA(aSubA.getB3DPoint(nIndexA)); in impAddInBetweenFill()
149 const basegfx::B3DPoint aEndA(aSubA.getB3DPoint(nIndexB)); in impAddInBetweenFill()
150 const basegfx::B3DPoint aStartB(aSubB.getB3DPoint(nIndexA)); in impAddInBetweenFill()
151 const basegfx::B3DPoint aEndB(aSubB.getB3DPoint(nIndexB)); in impAddInBetweenFill()
153 basegfx::B3DPolygon aNew; in impAddInBetweenFill()
172 const double fEdgeLengthA(basegfx::B3DVector(aEndA - aStartA).getLength()); in impAddInBetweenFill()
177 const double fEdgeLengthB(basegfx::B3DVector(aEndB - aStartB).getLength()); in impAddInBetweenFill()
181 aNew.setTextureCoordinate(0L, basegfx::B2DPoint(fRelTexAL, fTexVerStart)); in impAddInBetweenFill()
182 aNew.setTextureCoordinate(1L, basegfx::B2DPoint(fRelTexBL, fTexVerStop)); in impAddInBetweenFill()
183 aNew.setTextureCoordinate(2L, basegfx::B2DPoint(fRelTexBR, fTexVerStop)); in impAddInBetweenFill()
184 aNew.setTextureCoordinate(3L, basegfx::B2DPoint(fRelTexAR, fTexVerStart)); in impAddInBetweenFill()
194 basegfx::B3DPolyPolygon& rCandidate, in impSetNormal()
195 const basegfx::B3DVector& rNormal) in impSetNormal()
199 basegfx::B3DPolygon aSub(rCandidate.getB3DPolygon(a)); in impSetNormal()
211 basegfx::B3DPolyPolygon& rPolA, in impCreateInBetweenNormals()
212 basegfx::B3DPolyPolygon& rPolB, in impCreateInBetweenNormals()
220 basegfx::B3DPolygon aSubA(rPolA.getB3DPolygon(a)); in impCreateInBetweenNormals()
221 basegfx::B3DPolygon aSubB(rPolB.getB3DPolygon(a)); in impCreateInBetweenNormals()
227 basegfx::B3DPoint aPrevA(aSubA.getB3DPoint(nPointCount - 1L)); in impCreateInBetweenNormals()
228 basegfx::B3DPoint aCurrA(aSubA.getB3DPoint(0L)); in impCreateInBetweenNormals()
234 const basegfx::B3DPoint aNextA(aSubA.getB3DPoint(nIndNext)); in impCreateInBetweenNormals()
235 const basegfx::B3DPoint aCurrB(aSubB.getB3DPoint(b)); in impCreateInBetweenNormals()
238 basegfx::B3DVector aDepth(aCurrB - aCurrA); in impCreateInBetweenNormals()
244 const basegfx::B3DPoint aNextB(aSubB.getB3DPoint(nIndNext)); in impCreateInBetweenNormals()
251 basegfx::B3DVector aLeft(bFirstAndNotClosed ? aCurrA - aNextA : aPrevA - aCurrA); in impCreateInBetweenNormals()
255 const basegfx::B3DVector aNormalLeft(aDepth.getPerpendicular(aLeft)); in impCreateInBetweenNormals()
261 basegfx::B3DVector aRight(bLastAndNotClosed ? aCurrA - aPrevA : aNextA - aCurrA); in impCreateInBetweenNormals()
265 const basegfx::B3DVector aNormalRight(aRight.getPerpendicular(aDepth)); in impCreateInBetweenNormals()
268 basegfx::B3DVector aNewNormal(aNormalLeft + aNormalRight); in impCreateInBetweenNormals()
294 basegfx::B3DPolyPolygon& rPolA, in impMixNormals()
295 const basegfx::B3DPolyPolygon& rPolB, in impMixNormals()
304 basegfx::B3DPolygon aSubA(rPolA.getB3DPolygon(a)); in impMixNormals()
305 const basegfx::B3DPolygon aSubB(rPolB.getB3DPolygon(a)); in impMixNormals()
311 const basegfx::B3DVector aVA(aSubA.getNormal(b) * fWeightA); in impMixNormals()
312 const basegfx::B3DVector aVB(aSubB.getNormal(b) * fWeightB); in impMixNormals()
313 basegfx::B3DVector aVNew(aVA + aVB); in impMixNormals()
322 …bool impHasCutWith(const basegfx::B2DPolygon& rPoly, const basegfx::B2DPoint& rStart, const basegf… in impHasCutWith()
329 basegfx::B2DPoint aCurrent(rPoly.getB2DPoint(0)); in impHasCutWith()
330 const basegfx::B2DVector aVector(rEnd - rStart); in impHasCutWith()
335 const basegfx::B2DPoint aNext(rPoly.getB2DPoint(nNextIndex)); in impHasCutWith()
336 const basegfx::B2DVector aEdgeVector(aNext - aCurrent); in impHasCutWith()
338 if(basegfx::tools::findCut( in impHasCutWith()
361 const basegfx::B2DPolyPolygon& rSource, in createLatheSlices()
370 if(basegfx::fTools::equalZero(fRotation) || 0L == nSteps) in createLatheSlices()
373 rSliceVector.push_back(Slice3D(rSource, basegfx::B3DHomMatrix())); in createLatheSlices()
377 const bool bBackScale(!basegfx::fTools::equal(fBackScale, 1.0)); in createLatheSlices()
378 const bool bClosedRotation(!bBackScale && basegfx::fTools::equal(fRotation, F_2PI)); in createLatheSlices()
379 basegfx::B2DPolyPolygon aFront(rSource); in createLatheSlices()
380 basegfx::B2DPolyPolygon aBack(rSource); in createLatheSlices()
381 basegfx::B3DHomMatrix aTransformBack; in createLatheSlices()
382 basegfx::B2DPolyPolygon aOuterBack; in createLatheSlices()
392 if(basegfx::fTools::equalZero(fBackScale)) in createLatheSlices()
403 const basegfx::B2DRange aBaseRange(basegfx::tools::getRange(aFront)); in createLatheSlices()
411 basegfx::B2DPolyPolygon aOuterFront; in createLatheSlices()
413 basegfx::B3DHomMatrix aTransform; in createLatheSlices()
430 rSliceVector.push_back(Slice3D(aFront, basegfx::B3DHomMatrix())); in createLatheSlices()
439basegfx::B2DPolyPolygon aNewPoly(bBackScale ? basegfx::tools::interpolate(aFront, aBack, fStep) : … in createLatheSlices()
440 basegfx::B3DHomMatrix aNewMat; in createLatheSlices()
454 const basegfx::B2DPolyPolygon& rSource, in createExtrudeSlices()
462 if(basegfx::fTools::equalZero(fDepth)) in createExtrudeSlices()
465 rSliceVector.push_back(Slice3D(rSource, basegfx::B3DHomMatrix())); in createExtrudeSlices()
470 basegfx::B2DPolyPolygon aFront(rSource); in createExtrudeSlices()
471 basegfx::B2DPolyPolygon aBack(rSource); in createExtrudeSlices()
472 const bool bBackScale(!basegfx::fTools::equal(fBackScale, 1.0)); in createExtrudeSlices()
475 basegfx::B2DPolyPolygon aOuterBack; in createExtrudeSlices()
480 if(basegfx::fTools::equalZero(fBackScale)) in createExtrudeSlices()
493 basegfx::B2DPolyPolygon aOuterFront; in createExtrudeSlices()
495 basegfx::B3DHomMatrix aTransformFront; in createExtrudeSlices()
509 basegfx::B3DHomMatrix aTransformA, aTransformB; in createExtrudeSlices()
520 rSliceVector.push_back(Slice3D(aOuterBack, basegfx::B3DHomMatrix(), SLICETYPE3D_BACKCAP)); in createExtrudeSlices()
525basegfx::B3DPolyPolygon extractHorizontalLinesFromSlice(const Slice3DVector& rSliceVector, bool bC… in extractHorizontalLinesFromSlice()
527 basegfx::B3DPolyPolygon aRetval; in extractHorizontalLinesFromSlice()
540 basegfx::B3DPolygon aNew; in extractHorizontalLinesFromSlice()
567 basegfx::B3DPolyPolygon extractVerticalLinesFromSlice(const Slice3DVector& rSliceVector) in extractVerticalLinesFromSlice()
569 basegfx::B3DPolyPolygon aRetval; in extractVerticalLinesFromSlice()
581 ::std::vector< basegfx::B3DPolyPolygon >& rFill, in extractPlanesFromSlice()
591 const basegfx::B2DHomMatrix& rTexTransform) in extractPlanesFromSlice()
599 basegfx::B3DPolyPolygon aEdgeRounding; in extractPlanesFromSlice()
608 basegfx::B3DRange aTexRangeFront; in extractPlanesFromSlice()
609 basegfx::B3DRange aTexRangeBack; in extractPlanesFromSlice()
613 aTexRangeFront = basegfx::tools::getRange(rSliceVector[0L].getB3DPolyPolygon()); in extractPlanesFromSlice()
614 aTexRangeBack = basegfx::tools::getRange(rSliceVector[nNumSlices - 1L].getB3DPolyPolygon()); in extractPlanesFromSlice()
621 aTexRangeBack = basegfx::B3DRange( in extractPlanesFromSlice()
626basegfx::B3DPoint aCenter(basegfx::tools::getRange(rSliceVector[0L].getB3DPolyPolygon()).getCenter… in extractPlanesFromSlice()
630 …const basegfx::B3DPoint aNextCenter(basegfx::tools::getRange(rSliceVector[(a + 1L) % nNumSlices].g… in extractPlanesFromSlice()
631 const double fLength(basegfx::B3DVector(aNextCenter - aCenter).getLength()); in extractPlanesFromSlice()
638 if(!basegfx::fTools::equalZero(fTexHeight)) in extractPlanesFromSlice()
651 basegfx::B3DPolyPolygon aPolA(rSliceA.getB3DPolyPolygon()); in extractPlanesFromSlice()
652 basegfx::B3DPolyPolygon aPolB(rSliceB.getB3DPolyPolygon()); in extractPlanesFromSlice()
664 basegfx::B3DPolyPolygon aPrev(rSlicePrev.getB3DPolyPolygon()); in extractPlanesFromSlice()
665 basegfx::B3DPolyPolygon aPolAA(rSliceA.getB3DPolyPolygon()); in extractPlanesFromSlice()
669 basegfx::B3DPolyPolygon aFront(rSlicePrev.getB3DPolyPolygon()); in extractPlanesFromSlice()
674 … aFront = basegfx::tools::applyDefaultTextureCoordinatesParallel(aFront, aTexRangeFront); in extractPlanesFromSlice()
679 basegfx::B3DVector aNormal(0.0, 0.0, -1.0); in extractPlanesFromSlice()
760 basegfx::B3DPolyPolygon aNext(rSliceNext.getB3DPolyPolygon()); in extractPlanesFromSlice()
761 basegfx::B3DPolyPolygon aPolBB(rSliceB.getB3DPolyPolygon()); in extractPlanesFromSlice()
765 basegfx::B3DPolyPolygon aBack(rSliceNext.getB3DPolyPolygon()); in extractPlanesFromSlice()
770 aBack = basegfx::tools::applyDefaultTextureCoordinatesParallel(aBack, aTexRangeBack); in extractPlanesFromSlice()
775 …const basegfx::B3DVector aNormal(aBack.count() ? aBack.getB3DPolygon(0L).getNormal() : basegfx::B3… in extractPlanesFromSlice()
866 basegfx::B3DPolyPolygon aFront(rSlice.getB3DPolyPolygon()); in extractPlanesFromSlice()
870 aFront = basegfx::tools::applyDefaultTextureCoordinatesParallel(aFront, aTexRangeFront); in extractPlanesFromSlice()
875 basegfx::B3DVector aNormal(0.0, 0.0, -1.0); in extractPlanesFromSlice()
896 rFill.push_back(basegfx::B3DPolyPolygon(aEdgeRounding.getB3DPolygon(a))); in extractPlanesFromSlice()
903 const basegfx::B3DHomMatrix& rObjectTransform, in createReducedOutlines()
904 const basegfx::B3DPolygon& rLoopA, in createReducedOutlines()
905 const basegfx::B3DPolygon& rLoopB, in createReducedOutlines()
906 basegfx::B3DPolyPolygon& rTarget) in createReducedOutlines()
915 …const basegfx::B3DHomMatrix aObjectTransform(rViewInformation.getObjectToView() * rObjectTransform… in createReducedOutlines()
916 …const basegfx::B2DPolygon a2DLoopA(basegfx::tools::createB2DPolygonFromB3DPolygon(rLoopA, aObjectT… in createReducedOutlines()
917 …const basegfx::B2DPolygon a2DLoopB(basegfx::tools::createB2DPolygonFromB3DPolygon(rLoopB, aObjectT… in createReducedOutlines()
918 const basegfx::B2DPoint a2DCenterA(a2DLoopA.getB2DRange().getCenter()); in createReducedOutlines()
919 const basegfx::B2DPoint a2DCenterB(a2DLoopB.getB2DRange().getCenter()); in createReducedOutlines()
925 const basegfx::B2DPoint aCommonCenter(basegfx::average(a2DCenterA, a2DCenterB)); in createReducedOutlines()
926 const basegfx::B2DVector aAxisVector(a2DCenterA - a2DCenterB); in createReducedOutlines()
934 const basegfx::B2DPoint aStart(a2DLoopA.getB2DPoint(a)); in createReducedOutlines()
935 const basegfx::B2DPoint aEnd(a2DLoopB.getB2DPoint(a)); in createReducedOutlines()
936 const basegfx::B2DPoint aMiddle(basegfx::average(aStart, aEnd)); in createReducedOutlines()
938 if(!basegfx::tools::isInside(a2DLoopA, aMiddle)) in createReducedOutlines()
940 if(!basegfx::tools::isInside(a2DLoopB, aMiddle)) in createReducedOutlines()
946 const basegfx::B2DVector aCandidateVector(aMiddle - aCommonCenter); in createReducedOutlines()
974 basegfx::B3DPolygon aToBeAdded; in createReducedOutlines()
982 basegfx::B3DPolygon aToBeAdded; in createReducedOutlines()