23#include <com/sun/star/drawing/NormalsKind.hpp>
24#include <com/sun/star/drawing/TextureProjectionMode.hpp>
25#include <com/sun/star/drawing/TextureKind2.hpp>
26#include <com/sun/star/drawing/TextureMode.hpp>
37 css::drawing::NormalsKind aNormalsKind(css::drawing::NormalsKind_SPECIFIC);
40 if(1 == nNormalsValue)
42 aNormalsKind = css::drawing::NormalsKind_FLAT;
44 else if(2 == nNormalsValue)
46 aNormalsKind = css::drawing::NormalsKind_SPHERE;
53 css::drawing::TextureProjectionMode aTextureProjectionX(css::drawing::TextureProjectionMode_OBJECTSPECIFIC);
56 if(1 == nTextureValueX)
58 aTextureProjectionX = css::drawing::TextureProjectionMode_PARALLEL;
60 else if(2 == nTextureValueX)
62 aTextureProjectionX = css::drawing::TextureProjectionMode_SPHERE;
66 css::drawing::TextureProjectionMode aTextureProjectionY(css::drawing::TextureProjectionMode_OBJECTSPECIFIC);
69 if(1 == nTextureValueY)
71 aTextureProjectionY = css::drawing::TextureProjectionMode_PARALLEL;
73 else if(2 == nTextureValueY)
75 aTextureProjectionY = css::drawing::TextureProjectionMode_SPHERE;
89 css::drawing::TextureKind2 aTextureKind(css::drawing::TextureKind2_LUMINANCE);
94 aTextureKind = css::drawing::TextureKind2_INTENSITY;
96 else if(3 == nTextureKind)
98 aTextureKind = css::drawing::TextureKind2_COLOR;
103 css::drawing::TextureMode aTextureMode(css::drawing::TextureMode_REPLACE);
106 if(2 == nTextureMode)
108 aTextureMode = css::drawing::TextureMode_MODULATE;
110 else if(3 == nTextureMode)
112 aTextureMode = css::drawing::TextureMode_BLEND;
127 if(nSpecularIntensity > 128)
129 nSpecularIntensity = 128;
139 aNormalsKind, aTextureProjectionX, aTextureProjectionY,
140 aTextureKind, aTextureMode, aMaterial,
141 bInvertNormals, bDoubleSided, bShadow3D, bTextureFilter, bReducedLineGeometry);
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
attribute::Sdr3DObjectAttribute createNewSdr3DObjectAttribute(const SfxItemSet &rSet)
constexpr TypedWhichId< Svx3DNormalsKindItem > SDRATTR_3DOBJ_NORMALS_KIND(SDRATTR_3DOBJ_FIRST+7)
constexpr TypedWhichId< Svx3DTextureModeItem > SDRATTR_3DOBJ_TEXTURE_MODE(SDRATTR_3DOBJ_FIRST+17)
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DOBJ_TEXTURE_FILTER(SDRATTR_3DOBJ_FIRST+18)
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DOBJ_DOUBLE_SIDED(SDRATTR_3DOBJ_FIRST+6)
constexpr TypedWhichId< Svx3DTextureKindItem > SDRATTR_3DOBJ_TEXTURE_KIND(SDRATTR_3DOBJ_FIRST+16)
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DOBJ_MAT_SPECULAR(SDRATTR_3DOBJ_FIRST+14)
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DOBJ_SHADOW_3D(SDRATTR_3DOBJ_FIRST+11)
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DOBJ_NORMALS_INVERT(SDRATTR_3DOBJ_FIRST+8)
constexpr TypedWhichId< Svx3DReducedLineGeometryItem > SDRATTR_3DOBJ_REDUCED_LINE_GEOMETRY(SDRATTR_3DOBJ_FIRST+24)
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DOBJ_MAT_EMISSION(SDRATTR_3DOBJ_FIRST+13)
constexpr TypedWhichId< Svx3DTextureProjectionYItem > SDRATTR_3DOBJ_TEXTURE_PROJ_Y(SDRATTR_3DOBJ_FIRST+10)
constexpr TypedWhichId< Svx3DTextureProjectionXItem > SDRATTR_3DOBJ_TEXTURE_PROJ_X(SDRATTR_3DOBJ_FIRST+9)
constexpr TypedWhichId< SfxUInt16Item > SDRATTR_3DOBJ_MAT_SPECULAR_INTENSITY(SDRATTR_3DOBJ_FIRST+15)
constexpr TypedWhichId< XFillColorItem > XATTR_FILLCOLOR(XATTR_FILL_FIRST+1)