85 css::drawing::TextureProjectionMode eModeX,
86 css::drawing::TextureProjectionMode eModeY,
87 std::vector< basegfx::B3DPolyPolygon >& rFill,
92 const bool bParallelX(css::drawing::TextureProjectionMode_PARALLEL == eModeX);
93 const bool bSphereX(!bParallelX && (css::drawing::TextureProjectionMode_SPHERE == eModeX));
96 const bool bParallelY(css::drawing::TextureProjectionMode_PARALLEL == eModeY);
97 const bool bSphereY(!bParallelY && (css::drawing::TextureProjectionMode_SPHERE == eModeY));
99 if(bParallelX || bParallelY)
108 if(bSphereX || bSphereY)
125 a.transformTextureCoordinates(aTexMatrix);
136 aScaledPolyPolygon.
transform(rObjectTransform);
145 for(sal_uInt32
a(0);
a < aScaledPolyPolygon.
count();
a++)
161 const std::vector< basegfx::B3DPolyPolygon >& r3DPolyPolygonVector,
170 if(!r3DPolyPolygonVector.empty())
173 aRetval.resize(r3DPolyPolygonVector.size());
175 for(
size_t a(0);
a < r3DPolyPolygonVector.size();
a++)
179 aScaledPolyPolygon.
transform(rObjectTransform);
187 std::move(aScaledPolyPolygon),
198 bool bModulate(css::drawing::TextureMode_MODULATE == aSdr3DObjectAttribute.
getTextureMode());
239 if(css::drawing::TextureKind2_LUMINANCE == aSdr3DObjectAttribute.
getTextureKind())
243 std::make_shared<basegfx::BColorModifier_gray>();
294 const std::vector< basegfx::B3DPolyPolygon >& r3DPolyPolygonVector,
311 r3DPolyPolygonVector,
314 aSdr3DObjectAttribute,
315 aSimplifiedFillAttribute,
void set(sal_uInt16 nRow, sal_uInt16 nColumn, double fValue)
void scale(double fX, double fY)
void transformNormals(const B3DHomMatrix &rMatrix)
void transform(const basegfx::B3DHomMatrix &rMatrix)
bool areNormalsUsed() const
B3DPolygon const & getB3DPolygon(sal_uInt32 nIndex) const
void expand(const B3DTuple &rTuple)
B3DPoint getCenter() const
bool getDoubleSided() const
css::drawing::TextureMode getTextureMode() const
bool getTextureFilter() const
css::drawing::TextureKind2 getTextureKind() const
const MaterialAttribute3D & getMaterial() const
const FillHatchAttribute & getHatch() const
double getTransparence() const
const FillGradientAttribute & getGradient() const
const SdrFillGraphicAttribute & getFillGraphic() const
FillGraphicAttribute createFillGraphicAttribute(const basegfx::B2DRange &rRange) const
css::drawing::LineCap getCap() const
double getTransparence() const
const ::std::vector< double > & getDotDashArray() const
double getFullDotDashLen() const
const basegfx::BColor & getColor() const
basegfx::B2DLineJoin getJoin() const
const basegfx::BColor & getColor() const
const basegfx::B2DVector & getOffset() const
double getTransparence() const
BitmapTexturePrimitive3D class.
GradientTexturePrimitive3D class.
HatchTexturePrimitive3D class.
ModifiedColorPrimitive3D class.
PolyPolygonMaterialPrimitive3D class.
PolygonStrokePrimitive3D class.
TransparenceTexturePrimitive3D class.
UnifiedTransparenceTexturePrimitive3D class.
B3DPolygon applyDefaultTextureCoordinatesSphere(const B3DPolygon &rCandidate, const B3DPoint &rCenter, bool bChangeX, bool bChangeY)
B3DPolygon applyDefaultNormalsSphere(const B3DPolygon &rCandidate, const B3DPoint &rCenter)
B3DPolygon invertNormals(const B3DPolygon &rCandidate)
B3DPolygon applyDefaultTextureCoordinatesParallel(const B3DPolygon &rCandidate, const B3DRange &rRange, bool bChangeX, bool bChangeY)
B2DRange getRange(const B2DPolygon &rCandidate)
std::shared_ptr< BColorModifier > BColorModifierSharedPtr
void applyNormalsInvertTo3DGeometry(std::vector< basegfx::B3DPolyPolygon > &rFill)
css::uno::Reference< css::graphic::XPrimitive3D > Primitive3DReference
Primitive3DContainer create3DPolyPolygonFillPrimitives(const std::vector< basegfx::B3DPolyPolygon > &r3DPolyPolygonVector, const basegfx::B3DHomMatrix &rObjectTransform, const basegfx::B2DVector &rTextureSize, const attribute::Sdr3DObjectAttribute &aSdr3DObjectAttribute, const attribute::SdrFillAttribute &rFill, const attribute::FillGradientAttribute &rFillGradient)
Primitive3DContainer createHiddenGeometryPrimitives3D(const std::vector< basegfx::B3DPolyPolygon > &r3DPolyPolygonVector, const basegfx::B3DHomMatrix &rObjectTransform, const basegfx::B2DVector &rTextureSize, const attribute::Sdr3DObjectAttribute &aSdr3DObjectAttribute)
void applyNormalsKindSphereTo3DGeometry(std::vector< basegfx::B3DPolyPolygon > &rFill, const basegfx::B3DRange &rRange)
basegfx::B3DRange getRangeFrom3DGeometry(std::vector< basegfx::B3DPolyPolygon > &rFill)
void applyTextureTo3DGeometry(css::drawing::TextureProjectionMode eModeX, css::drawing::TextureProjectionMode eModeY, std::vector< basegfx::B3DPolyPolygon > &rFill, const basegfx::B3DRange &rRange, const basegfx::B2DVector &rTextureSize)
void applyNormalsKindFlatTo3DGeometry(std::vector< basegfx::B3DPolyPolygon > &rFill)
Primitive3DContainer createShadowPrimitive3D(const Primitive3DContainer &rSource, const attribute::SdrShadowAttribute &rShadow, bool bShadow3D)
Primitive3DContainer create3DPolyPolygonLinePrimitives(const basegfx::B3DPolyPolygon &rUnitPolyPolygon, const basegfx::B3DHomMatrix &rObjectTransform, const attribute::SdrLineAttribute &rLine)