1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef INCLUDED_DRAWINGLAYER_PRIMITIVE3D_GROUPPRIMITIVE3D_HXX
29 #define INCLUDED_DRAWINGLAYER_PRIMITIVE3D_GROUPPRIMITIVE3D_HXX
30 
31 #include <drawinglayer/primitive3d/baseprimitive3d.hxx>
32 
33 //////////////////////////////////////////////////////////////////////////////
34 
35 namespace drawinglayer
36 {
37 	namespace primitive3d
38 	{
39         /** GroupPrimitive3D class
40 
41             Baseclass for all grouping 3D primitives
42 
43             The description/functionality is identical with the 2D case in groupprimitive2d.hxx,
44             please see there for detailed information.
45 
46             Current Basic 3D StatePrimitives are:
47 
48             - ModifiedColorPrimitive3D (for a stack of color modifications)
49             - ShadowPrimitive3D (for 3D objects with shadow; this is a special case
50               since the shadow of a 3D primitive is a 2D primitive set)
51             - TexturePrimitive3D (with the following variations)
52                 - GradientTexturePrimitive3D (for 3D gradient fill)
53                 - BitmapTexturePrimitive3D (for 3D Bitmap fill)
54                 - TransparenceTexturePrimitive3D (for 3D transparence)
55                 - HatchTexturePrimitive3D (for 3D hatch fill)
56             - TransformPrimitive3D (for a transformation stack)
57          */
58 		class GroupPrimitive3D : public BasePrimitive3D
59 		{
60 		private:
61 			/// the children. Declared private since this shall never be changed at all after construction
62 			Primitive3DSequence								maChildren;
63 
64 		public:
65 			/// constructor
66 			GroupPrimitive3D(const Primitive3DSequence& rChildren);
67 
68 			/// data read access
69 			Primitive3DSequence getChildren() const { return maChildren; }
70 
71 			/// compare operator
72 			virtual bool operator==( const BasePrimitive3D& rPrimitive ) const;
73 
74 			/// local decomposition. Implementation will just return children
75 			virtual Primitive3DSequence get3DDecomposition(const geometry::ViewInformation3D& rViewInformation) const;
76 
77 			/// provide unique ID
78 			DeclPrimitrive3DIDBlock()
79 		};
80 	} // end of namespace primitive3d
81 } // end of namespace drawinglayer
82 
83 //////////////////////////////////////////////////////////////////////////////
84 
85 #endif //INCLUDED_DRAWINGLAYER_PRIMITIVE3D_GROUPPRIMITIVE3D_HXX
86 
87 //////////////////////////////////////////////////////////////////////////////
88 // eof
89