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_ATTRIBUTE_SDRLIGHTATTRIBUTE3D_HXX
23 #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRLIGHTATTRIBUTE3D_HXX
24 
25 #include <drawinglayer/drawinglayerdllapi.h>
26 //////////////////////////////////////////////////////////////////////////////
27 // predefines
28 
29 namespace basegfx {
30 	class BColor;
31     class B3DVector;
32 }
33 
34 namespace drawinglayer { namespace attribute {
35     class ImpSdr3DLightAttribute;
36 }}
37 
38 //////////////////////////////////////////////////////////////////////////////
39 
40 namespace drawinglayer
41 {
42 	namespace attribute
43 	{
44 		class DRAWINGLAYER_DLLPUBLIC Sdr3DLightAttribute
45 		{
46 		private:
47 			ImpSdr3DLightAttribute*             mpSdr3DLightAttribute;
48 
49 		public:
50 			// constructors/destructor
51 			Sdr3DLightAttribute(
52                 const basegfx::BColor& rColor,
53 				const basegfx::B3DVector& rDirection,
54 				bool bSpecular);
55             Sdr3DLightAttribute(const basegfx::BColor& rColor);
56             Sdr3DLightAttribute();
57 			Sdr3DLightAttribute(const Sdr3DLightAttribute& rCandidate);
58 			~Sdr3DLightAttribute();
59 
60 			// assignment operator
61 			Sdr3DLightAttribute& operator=(const Sdr3DLightAttribute& rCandidate);
62 
63             // checks if the incarnation is default constructed
64             bool isDefault() const;
65 
66             // compare operator
67 			bool operator==(const Sdr3DLightAttribute& rCandidate) const;
68 
69 			// data read access
70 			const basegfx::BColor& getColor() const;
71 			const basegfx::B3DVector& getDirection() const;
72 			bool getSpecular() const;
73 		};
74 	} // end of namespace attribute
75 } // end of namespace drawinglayer
76 
77 //////////////////////////////////////////////////////////////////////////////
78 
79 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRLIGHTATTRIBUTE3D_HXX
80 
81 // eof
82