xref: /aoo41x/main/svx/source/engine3d/deflt3d.cxx (revision f6e50924)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_svx.hxx"
26 
27 #include <svx/deflt3d.hxx>
28 #include <svx/cube3d.hxx>
29 #include <svx/svxids.hrc>
30 #include <editeng/colritem.hxx>
31 #include <svx/e3ditem.hxx>
32 
33 /*************************************************************************
34 |*
35 |* Klasse zum verwalten der 3D-Default Attribute
36 |*
37 \************************************************************************/
38 
39 // Konstruktor
E3dDefaultAttributes()40 E3dDefaultAttributes::E3dDefaultAttributes()
41 {
42 	Reset();
43 }
44 
Reset()45 void E3dDefaultAttributes::Reset()
46 {
47 	// Compound-Objekt
48 	bDefaultCreateNormals = sal_True;
49 	bDefaultCreateTexture = sal_True;
50 
51 	// Cube-Objekt
52 	aDefaultCubePos = basegfx::B3DPoint(-500.0, -500.0, -500.0);
53 	aDefaultCubeSize = basegfx::B3DVector(1000.0, 1000.0, 1000.0);
54 	nDefaultCubeSideFlags = CUBE_FULL;
55 	bDefaultCubePosIsCenter = sal_False;
56 
57 	// Sphere-Objekt
58 	aDefaultSphereCenter = basegfx::B3DPoint(0.0, 0.0, 0.0);
59 	aDefaultSphereSize = basegfx::B3DPoint(1000.0, 1000.0, 1000.0);
60 
61 	// Lathe-Objekt
62 	nDefaultLatheEndAngle = 3600;
63 	bDefaultLatheSmoothed = sal_True;
64 	bDefaultLatheSmoothFrontBack = sal_False;
65 	bDefaultLatheCharacterMode = sal_False;
66 	bDefaultLatheCloseFront = sal_True;
67 	bDefaultLatheCloseBack = sal_True;
68 
69 	// Extrude-Objekt
70 	bDefaultExtrudeSmoothed = sal_True;
71 	bDefaultExtrudeSmoothFrontBack = sal_False;
72 	bDefaultExtrudeCharacterMode = sal_False;
73 	bDefaultExtrudeCloseFront = sal_True;
74 	bDefaultExtrudeCloseBack = sal_True;
75 }
76 
77 // eof
78