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 #ifndef INCLUDED_DRAWINGLAYER_PRIMITIVE3D_MODIFIEDCOLORPRIMITIVE3D_HXX
23 #define INCLUDED_DRAWINGLAYER_PRIMITIVE3D_MODIFIEDCOLORPRIMITIVE3D_HXX
24 
25 #include <drawinglayer/drawinglayerdllapi.h>
26 #include <drawinglayer/primitive3d/groupprimitive3d.hxx>
27 #include <basegfx/color/bcolormodifier.hxx>
28 
29 //////////////////////////////////////////////////////////////////////////////
30 
31 namespace drawinglayer
32 {
33     namespace primitive3d
34     {
35         /** ModifiedColorPrimitive3D class
36 
37             This primitive is a grouping primitive and allows to define
38             how the colors of it's child content shall be modified for
39             visualisation. Please see the ModifiedColorPrimitive2D
40             description for more info.
41          */
42         class DRAWINGLAYER_DLLPUBLIC ModifiedColorPrimitive3D : public GroupPrimitive3D
43         {
44         private:
45             /// The ColorModifier to use
46             basegfx::BColorModifierSharedPtr        maColorModifier;
47 
48         public:
49             /// constructor
50             ModifiedColorPrimitive3D(
51                 const Primitive3DSequence& rChildren,
52                 const basegfx::BColorModifierSharedPtr& rColorModifier);
53 
54             /// data read access
getColorModifier() const55             const basegfx::BColorModifierSharedPtr& getColorModifier() const { return maColorModifier; }
56 
57             /// compare operator
58             virtual bool operator==(const BasePrimitive3D& rPrimitive) const;
59 
60             /// provide unique ID
61             DeclPrimitrive3DIDBlock()
62         };
63     } // end of namespace primitive3d
64 } // end of namespace drawinglayer
65 
66 //////////////////////////////////////////////////////////////////////////////
67 
68 #endif //INCLUDED_DRAWINGLAYER_PRIMITIVE3D_MODIFIEDCOLORPRIMITIVE3D_HXX
69 
70 //////////////////////////////////////////////////////////////////////////////
71 // eof
72