xref: /AOO41X/main/drawinglayer/inc/drawinglayer/primitive3d/transformprimitive3d.hxx (revision 4f506f19cd544df9572ed8c88b6bdbc6c8f33210)
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_TRANSFORMPRIMITIVE3D_HXX
25 #define INCLUDED_DRAWINGLAYER_PRIMITIVE3D_TRANSFORMPRIMITIVE3D_HXX
26 
27 #include <drawinglayer/drawinglayerdllapi.h>
28 #include <drawinglayer/primitive3d/groupprimitive3d.hxx>
29 #include <basegfx/matrix/b3dhommatrix.hxx>
30 
31 //////////////////////////////////////////////////////////////////////////////
32 
33 namespace drawinglayer
34 {
35     namespace primitive3d
36     {
37         /** TransformPrimitive3D class
38 
39             This is one of the basic grouping 3D primitives and it provides
40             embedding a sequence of primitives (a geometry) into a
41             3D transformation.
42 
43             Please see the description for TransformPrimitive2D since these
44             primitives are pretty similar.
45          */
46         class DRAWINGLAYER_DLLPUBLIC TransformPrimitive3D : public GroupPrimitive3D
47         {
48         private:
49             // the 3D transformation to apply
50             basegfx::B3DHomMatrix                   maTransformation;
51 
52         public:
53             /// constructor
54             TransformPrimitive3D(
55                 const basegfx::B3DHomMatrix& rTransformation,
56                 const Primitive3DSequence& rChildren);
57 
58             /// data read access
getTransformation() const59             const basegfx::B3DHomMatrix& getTransformation() const { return maTransformation; }
60 
61             /// compare operator
62             virtual bool operator==(const BasePrimitive3D& rPrimitive) const;
63 
64             /// get range
65             virtual basegfx::B3DRange getB3DRange(const geometry::ViewInformation3D& rViewInformation) const;
66 
67             /// provide unique ID
68             DeclPrimitrive3DIDBlock()
69         };
70     } // end of namespace primitive3d
71 } // end of namespace drawinglayer
72 
73 //////////////////////////////////////////////////////////////////////////////
74 
75 #endif //INCLUDED_DRAWINGLAYER_PRIMITIVE3D_TRANSFORMPRIMITIVE3D_HXX
76 
77 //////////////////////////////////////////////////////////////////////////////
78 // eof
79