1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: deflt3d.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _E3D_DEFLT3D_HXX
32 #define _E3D_DEFLT3D_HXX
37 #ifndef _B3D_BASE3D_HXX
38 #include <bf_goodies/base3d.hxx>
44 /*************************************************************************
46 |* Klasse zum verwalten der 3D-Default Attribute
48 \************************************************************************/
50 class E3dDefaultAttributes
54 //-/ B3dMaterial aDefaultFrontMaterial;
55 Color aDefaultAmbientColor
;
57 // B3dMaterial aDefaultBackMaterial;
58 //-/ Base3DTextureKind eDefaultTextureKind;
59 //-/ Base3DTextureMode eDefaultTextureMode;
60 //-/ BOOL bDefaultDoubleSided ;
61 BOOL bDefaultCreateNormals
;
62 BOOL bDefaultCreateTexture
;
63 //-/ BOOL bDefaultUseStdNormals ;
64 //-/ BOOL bDefaultUseStdNormalsUseSphere ;
65 //-/ BOOL bDefaultInvertNormals ;
66 //-/ BOOL bDefaultUseStdTextureX ;
67 //-/ BOOL bDefaultUseStdTextureXUseSphere ;
68 //-/ BOOL bDefaultUseStdTextureY ;
69 //-/ BOOL bDefaultUseStdTextureYUseSphere ;
70 //-/ BOOL bDefaultShadow3D ;
71 //-/ BOOL bDefaultFilterTexture ;
72 BOOL bDefaultUseDifferentBackMaterial
;
75 Vector3D aDefaultCubePos
;
76 Vector3D aDefaultCubeSize
;
77 UINT16 nDefaultCubeSideFlags
;
78 BOOL bDefaultCubePosIsCenter
;
81 //-/ long nDefaultHSegments;
82 //-/ long nDefaultVSegments;
83 Vector3D aDefaultSphereCenter
;
84 Vector3D aDefaultSphereSize
;
87 long nDefaultLatheEndAngle
;
88 double fDefaultLatheScale
;
89 //-/ double fDefaultBackScale;
90 //-/ double fDefaultPercentDiag;
91 BOOL bDefaultLatheSmoothed
;
92 BOOL bDefaultLatheSmoothFrontBack
;
93 BOOL bDefaultLatheCharacterMode
;
94 BOOL bDefaultLatheCloseFront
;
95 BOOL bDefaultLatheCloseBack
;
98 double fDefaultExtrudeScale
;
99 //-/ double fDefaultExtrudeDepth;
100 BOOL bDefaultExtrudeSmoothed
;
101 BOOL bDefaultExtrudeSmoothFrontBack
;
102 BOOL bDefaultExtrudeCharacterMode
;
103 BOOL bDefaultExtrudeCloseFront
;
104 BOOL bDefaultExtrudeCloseBack
;
107 //-/ B3dLightGroup aDefaultLightGroup;
108 //-/ Vector3D aDefaultShadowPlaneDirection;
109 //-/ Base3DShadeModel eDefaultShadeModel;
110 BOOL bDefaultDither
;
111 //-/ BOOL bDefaultForceDraftShadeModel ;
115 E3dDefaultAttributes();
117 // Defaults zuruecksetzen
120 // Getter/Setter fuer Default-Werte aller 3D-Objekte
122 //-/ const B3dMaterial& GetDefaultFrontMaterial() { return aDefaultFrontMaterial; }
123 //-/ void SetDefaultFrontMaterial(const B3dMaterial& rNew) { aDefaultFrontMaterial = rNew; }
124 const Color
& GetDefaultAmbientColor() { return aDefaultAmbientColor
; }
125 void SetDefaultAmbientColor(const Color
& rNew
) { aDefaultAmbientColor
= rNew
; }
127 // const B3dMaterial& GetDefaultBackMaterial() { return aDefaultBackMaterial; }
128 // void SetDefaultBackMaterial(const B3dMaterial& rNew) { aDefaultBackMaterial = rNew; }
129 //-/ const Base3DTextureKind GetDefaultTextureKind() { return eDefaultTextureKind; }
130 //-/ void SetDefaultTextureKind(const Base3DTextureKind eNew) { eDefaultTextureKind = eNew; }
131 //-/ const Base3DTextureMode GetDefaultTextureMode() { return eDefaultTextureMode; }
132 //-/ void SetDefaultTextureMode(const Base3DTextureMode eNew) { eDefaultTextureMode = eNew; }
133 //-/ const BOOL GetDefaultDoubleSided() { return bDefaultDoubleSided; }
134 //-/ void SetDefaultDoubleSided(const BOOL bNew) { bDefaultDoubleSided = bNew; }
135 const BOOL
GetDefaultCreateNormals() { return bDefaultCreateNormals
; }
136 void SetDefaultCreateNormals(const BOOL bNew
) { bDefaultCreateNormals
= bNew
; }
137 const BOOL
GetDefaultCreateTexture() { return bDefaultCreateTexture
; }
138 void SetDefaultCreateTexture(const BOOL bNew
) { bDefaultCreateTexture
= bNew
; }
139 //-/ const BOOL GetDefaultUseStdNormals() { return bDefaultUseStdNormals; }
140 //-/ void SetDefaultUseStdNormals(const BOOL bNew) { bDefaultUseStdNormals = bNew; }
141 //-/ const BOOL GetDefaultUseStdNormalsUseSphere() { return bDefaultUseStdNormalsUseSphere; }
142 //-/ void SetDefaultUseStdNormalsUseSphere(const BOOL bNew) { bDefaultUseStdNormalsUseSphere = bNew; }
143 //-/ const BOOL GetDefaultInvertNormals() { return bDefaultInvertNormals; }
144 //-/ void SetDefaultInvertNormals(const BOOL bNew) { bDefaultInvertNormals = bNew; }
145 //-/ const BOOL GetDefaultUseStdTextureX() { return bDefaultUseStdTextureX; }
146 //-/ void SetDefaultUseStdTextureX(const BOOL bNew) { bDefaultUseStdTextureX = bNew; }
147 //-/ const BOOL GetDefaultUseStdTextureXUseSphere() { return bDefaultUseStdTextureXUseSphere; }
148 //-/ void SetDefaultUseStdTextureXUseSphere(const BOOL bNew) { bDefaultUseStdTextureXUseSphere = bNew; }
149 //-/ const BOOL GetDefaultUseStdTextureY() { return bDefaultUseStdTextureY; }
150 //-/ void SetDefaultUseStdTextureY(const BOOL bNew) { bDefaultUseStdTextureY = bNew; }
151 //-/ const BOOL GetDefaultUseStdTextureYUseSphere() { return bDefaultUseStdTextureYUseSphere; }
152 //-/ void SetDefaultUseStdTextureYUseSphere(const BOOL bNew) { bDefaultUseStdTextureYUseSphere = bNew; }
153 //-/ const BOOL GetDefaultShadow3D() { return bDefaultShadow3D; }
154 //-/ void SetDefaultShadow3D(const BOOL bNew) { bDefaultShadow3D = bNew; }
155 //-/ const BOOL GetDefaultFilterTexture() { return bDefaultFilterTexture; }
156 //-/ void SetDefaultFilterTexture(const BOOL bNew) { bDefaultFilterTexture = bNew; }
157 const BOOL
GetDefaultUseDifferentBackMaterial() { return bDefaultUseDifferentBackMaterial
; }
158 void SetDefaultUseDifferentBackMaterial(const BOOL bNew
) { bDefaultUseDifferentBackMaterial
= bNew
; }
161 const Vector3D
& GetDefaultCubePos() { return aDefaultCubePos
; }
162 void SetDefaultCubePos(const Vector3D
& rNew
) { aDefaultCubePos
= rNew
; }
163 const Vector3D
& GetDefaultCubeSize() { return aDefaultCubeSize
; }
164 void SetDefaultCubeSize(const Vector3D
& rNew
) { aDefaultCubeSize
= rNew
; }
165 const UINT16
GetDefaultCubeSideFlags() { return nDefaultCubeSideFlags
; }
166 void SetDefaultCubeSideFlags(const UINT16 nNew
) { nDefaultCubeSideFlags
= nNew
; }
167 const BOOL
GetDefaultCubePosIsCenter() { return bDefaultCubePosIsCenter
; }
168 void SetDefaultCubePosIsCenter(const BOOL bNew
) { bDefaultCubePosIsCenter
= bNew
; }
171 //-/ const long GetDefaultHSegments() { return nDefaultHSegments; }
172 //-/ void SetDefaultHSegments(const long nNew) { nDefaultHSegments = nNew; }
173 //-/ const long GetDefaultVSegments() { return nDefaultVSegments; }
174 //-/ void SetDefaultVSegments(const long nNew) { nDefaultVSegments = nNew; }
175 const Vector3D
& GetDefaultSphereCenter() { return aDefaultSphereCenter
; }
176 void SetDefaultSphereCenter(const Vector3D
& rNew
) { aDefaultSphereCenter
= rNew
; }
177 const Vector3D
& GetDefaultSphereSize() { return aDefaultSphereSize
; }
178 void SetDefaultSphereSize(const Vector3D
& rNew
) { aDefaultSphereSize
= rNew
; }
181 const long GetDefaultLatheEndAngle() { return nDefaultLatheEndAngle
; }
182 void SetDefaultLatheEndAngle(const long nNew
) { nDefaultLatheEndAngle
= nNew
; }
183 const double GetDefaultLatheScale() { return fDefaultLatheScale
; }
184 void SetDefaultLatheScale(const double fNew
) { fDefaultLatheScale
= fNew
; }
185 //-/ const double GetDefaultBackScale() { return fDefaultBackScale; }
186 //-/ void SetDefaultBackScale(const double fNew) { fDefaultBackScale = fNew; }
187 //-/ const double GetDefaultPercentDiag() { return fDefaultPercentDiag; }
188 //-/ void SetDefaultPercentDiag(const double fNew) { fDefaultPercentDiag = fNew; }
189 const BOOL
GetDefaultLatheSmoothed() { return bDefaultLatheSmoothed
; }
190 void SetDefaultLatheSmoothed(const BOOL bNew
) { bDefaultLatheSmoothed
= bNew
; }
191 const BOOL
GetDefaultLatheSmoothFrontBack() { return bDefaultLatheSmoothFrontBack
; }
192 void SetDefaultLatheSmoothFrontBack(const BOOL bNew
) { bDefaultLatheSmoothFrontBack
= bNew
; }
193 const BOOL
GetDefaultLatheCharacterMode() { return bDefaultLatheCharacterMode
; }
194 void SetDefaultLatheCharacterMode(const BOOL bNew
) { bDefaultLatheCharacterMode
= bNew
; }
195 const BOOL
GetDefaultLatheCloseFront() { return bDefaultLatheCloseFront
; }
196 void SetDefaultLatheCloseFront(const BOOL bNew
) { bDefaultLatheCloseFront
= bNew
; }
197 const BOOL
GetDefaultLatheCloseBack() { return bDefaultLatheCloseBack
; }
198 void SetDefaultLatheCloseBack(const BOOL bNew
) { bDefaultLatheCloseBack
= bNew
; }
201 const double GetDefaultExtrudeScale() { return fDefaultExtrudeScale
; }
202 void SetDefaultExtrudeScale(const double fNew
) { fDefaultExtrudeScale
= fNew
; }
203 //-/ const double GetDefaultExtrudeDepth() { return fDefaultExtrudeDepth; }
204 //-/ void SetDefaultExtrudeDepth(const double fNew) { fDefaultExtrudeDepth = fNew; }
205 const BOOL
GetDefaultExtrudeSmoothed() { return bDefaultExtrudeSmoothed
; }
206 void SetDefaultExtrudeSmoothed(const BOOL bNew
) { bDefaultExtrudeSmoothed
= bNew
; }
207 const BOOL
GetDefaultExtrudeSmoothFrontBack() { return bDefaultExtrudeSmoothFrontBack
; }
208 void SetDefaultExtrudeSmoothFrontBack(const BOOL bNew
) { bDefaultExtrudeSmoothFrontBack
= bNew
; }
209 const BOOL
GetDefaultExtrudeCharacterMode() { return bDefaultExtrudeCharacterMode
; }
210 void SetDefaultExtrudeCharacterMode(const BOOL bNew
) { bDefaultExtrudeCharacterMode
= bNew
; }
211 const BOOL
GetDefaultExtrudeCloseFront() { return bDefaultExtrudeCloseFront
; }
212 void SetDefaultExtrudeCloseFront(const BOOL bNew
) { bDefaultExtrudeCloseFront
= bNew
; }
213 const BOOL
GetDefaultExtrudeCloseBack() { return bDefaultExtrudeCloseBack
; }
214 void SetDefaultExtrudeCloseBack(const BOOL bNew
) { bDefaultExtrudeCloseBack
= bNew
; }
217 //-/ const B3dLightGroup& GetDefaultLightGroup() { return aDefaultLightGroup; }
218 //-/ void SetDefaultLightGroup(const B3dLightGroup& rNew) { aDefaultLightGroup = rNew; }
219 //-/ const Vector3D& GetDefaultShadowPlaneDirection() { return aDefaultShadowPlaneDirection; }
220 //-/ void SetDefaultShadowPlaneDirection(const Vector3D& rNew) { aDefaultShadowPlaneDirection = rNew; }
221 //-/ const Base3DShadeModel GetDefaultShadeModel() { return eDefaultShadeModel; }
222 //-/ void SetDefaultShadeModel(const Base3DShadeModel eNew) { eDefaultShadeModel = eNew; }
223 const BOOL
GetDefaultDither() { return bDefaultDither
; }
224 void SetDefaultDither(const BOOL bNew
) { bDefaultDither
= bNew
; }
225 //-/ const BOOL GetDefaultForceDraftShadeModel() { return bDefaultForceDraftShadeModel; }
226 //-/ void SetDefaultForceDraftShadeModel(const BOOL bNew) { bDefaultForceDraftShadeModel = bNew; }
228 // Default-Attribute setzen/lesen
229 //-/ void SetDefaultValues(const SfxItemSet& rAttr);
230 //-/ void TakeDefaultValues(SfxItemSet& rAttr);
235 }//end of namespace binfilter
236 #endif // _E3D_DEFLT3D_HXX