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 #ifndef INCLUDED_DRAWINGLAYER_PRIMITIVE3D_SDRCUBEPRIMITIVE3D_HXX
25 #define INCLUDED_DRAWINGLAYER_PRIMITIVE3D_SDRCUBEPRIMITIVE3D_HXX
26 
27 #include <drawinglayer/drawinglayerdllapi.h>
28 #include <drawinglayer/primitive3d/sdrprimitive3d.hxx>
29 
30 //////////////////////////////////////////////////////////////////////////////
31 
32 namespace drawinglayer
33 {
34 	namespace primitive3d
35 	{
36         /** SdrCubePrimitive3D class
37 
38             This 3D primitive expands the SdrPrimitive3D to a 3D cube definition.
39             The cube is implicitly in unit coordinates and the given transformation
40             defines its geometry in space.
41          */
42 		class DRAWINGLAYER_DLLPUBLIC SdrCubePrimitive3D : public SdrPrimitive3D
43 		{
44 		protected:
45 			/// local decomposition.
46 			virtual Primitive3DSequence create3DDecomposition(const geometry::ViewInformation3D& rViewInformation) const;
47 
48 		public:
49             /// constructor
50 			SdrCubePrimitive3D(
51 				const basegfx::B3DHomMatrix& rTransform,
52 				const basegfx::B2DVector& rTextureSize,
53 				const attribute::SdrLineFillShadowAttribute3D& rSdrLFSAttribute,
54 				const attribute::Sdr3DObjectAttribute& rSdr3DObjectAttribute);
55 
56 			/// compare operator
57 			virtual bool operator==(const BasePrimitive3D& rPrimitive) const;
58 
59 			/// get range
60 			virtual basegfx::B3DRange getB3DRange(const geometry::ViewInformation3D& rViewInformation) const;
61 
62 			/// provide unique ID
63 			DeclPrimitrive3DIDBlock()
64 		};
65 	} // end of namespace primitive3d
66 } // end of namespace drawinglayer
67 
68 //////////////////////////////////////////////////////////////////////////////
69 
70 #endif //INCLUDED_DRAWINGLAYER_PRIMITIVE3D_SDRCUBEPRIMITIVE3D_HXX
71 
72 //////////////////////////////////////////////////////////////////////////////
73 // eof
74