64 const bool bParallelX(css::drawing::TextureProjectionMode_PARALLEL ==
getSdr3DObjectAttribute().getTextureProjectionX());
65 const bool bObjectSpecificX(css::drawing::TextureProjectionMode_OBJECTSPECIFIC ==
getSdr3DObjectAttribute().getTextureProjectionX());
66 const bool bSphereX(!bParallelX && (css::drawing::TextureProjectionMode_SPHERE ==
getSdr3DObjectAttribute().getTextureProjectionX()));
69 const bool bParallelY(css::drawing::TextureProjectionMode_PARALLEL ==
getSdr3DObjectAttribute().getTextureProjectionY());
70 const bool bObjectSpecificY(css::drawing::TextureProjectionMode_OBJECTSPECIFIC ==
getSdr3DObjectAttribute().getTextureProjectionY());
71 const bool bSphereY(!bParallelY && (css::drawing::TextureProjectionMode_SPHERE ==
getSdr3DObjectAttribute().getTextureProjectionY()));
73 if(bParallelX || bParallelY)
80 if(bSphereX || bSphereY)
88 if(bObjectSpecificX || bObjectSpecificY)
91 for(sal_uInt32
a(0);
a < aFill.
count();
a++)
95 if(aTmpPoly.
count() >= 4)
97 for(sal_uInt32 b(0); b < 4; b++)
103 aPoint.
setX((1 == b || 2 == b) ? 1.0 : 0.0);
108 aPoint.
setY((2 == b || 3 == b) ? 1.0 : 0.0);
126 std::vector< basegfx::B3DPolyPolygon > a3DPolyPolygonVector;
128 for(sal_uInt32
a(0);
a < aFill.
count();
a++)
137 a3DPolyPolygonVector,
148 a3DPolyPolygonVector,
179 :
SdrPrimitive3D(rTransform, rTextureSize, rSdrLFSAttribute, rSdr3DObjectAttribute)
void scale(double fX, double fY)
void transformTextureCoordinates(const B2DHomMatrix &rMatrix)
void setB3DPolygon(sal_uInt32 nIndex, const B3DPolygon &rPolygon)
B3DPolygon const & getB3DPolygon(sal_uInt32 nIndex) const
void setTextureCoordinate(sal_uInt32 nIndex, const B2DPoint &rValue)
B2DPoint const & getTextureCoordinate(sal_uInt32 nIndex) const
B3DPoint getCenter() const
void append(const Primitive3DContainer &rSource)
SdrCubePrimitive3D class.
virtual Primitive3DContainer create3DDecomposition(const geometry::ViewInformation3D &rViewInformation) const override
local decomposition.
virtual basegfx::B3DRange getB3DRange(const geometry::ViewInformation3D &rViewInformation) const override
get range
SdrCubePrimitive3D(const basegfx::B3DHomMatrix &rTransform, const basegfx::B2DVector &rTextureSize, const attribute::SdrLineFillShadowAttribute3D &rSdrLFSAttribute, const attribute::Sdr3DObjectAttribute &rSdr3DObjectAttribute)
constructor
const basegfx::B3DHomMatrix & getTransform() const
data read access
const basegfx::B2DVector & getTextureSize() const
const attribute::Sdr3DObjectAttribute & getSdr3DObjectAttribute() const
basegfx::B3DRange getStandard3DRange() const
Standard implementation for primitive3D which will use maTransform as range and expand by evtl.
const attribute::SdrLineFillShadowAttribute3D & getSdrLFSAttribute() const
#define PRIMITIVE3D_ID_SDRCUBEPRIMITIVE3D
B3DPolyPolygon createCubePolyPolygonFromB3DRange(const B3DRange &rRange)
B3DPolygon applyDefaultTextureCoordinatesSphere(const B3DPolygon &rCandidate, const B3DPoint &rCenter, bool bChangeX, bool bChangeY)
B3DPolyPolygon createCubeFillPolyPolygonFromB3DRange(const B3DRange &rRange)
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)
ImplPrimitive3DIDBlock(PolygonHairlinePrimitive3D, PRIMITIVE3D_ID_POLYGONHAIRLINEPRIMITIVE3D) Primitive3DContainer PolygonStrokePrimitive3D
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)
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)