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_SDRLIGHTINGATTRIBUTE3D_HXX
23 #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRLIGHTINGATTRIBUTE3D_HXX
24 
25 #include <drawinglayer/drawinglayerdllapi.h>
26 #include <vector>
27 
28 //////////////////////////////////////////////////////////////////////////////
29 // predefines
30 
31 namespace basegfx {
32 	class BColor;
33     class B3DVector;
34 }
35 
36 namespace drawinglayer { namespace attribute {
37     class ImpSdrLightingAttribute;
38     class Sdr3DLightAttribute;
39 }}
40 
41 //////////////////////////////////////////////////////////////////////////////
42 
43 namespace drawinglayer
44 {
45 	namespace attribute
46 	{
47 		class DRAWINGLAYER_DLLPUBLIC SdrLightingAttribute
48 		{
49         private:
50             ImpSdrLightingAttribute*            mpSdrLightingAttribute;
51 
52 		public:
53             /// constructors/assignmentoperator/destructor
54 			SdrLightingAttribute(
55 				const basegfx::BColor& rAmbientLight,
56 				const ::std::vector< Sdr3DLightAttribute >& rLightVector);
57 			SdrLightingAttribute();
58 			SdrLightingAttribute(const SdrLightingAttribute& rCandidate);
59 			SdrLightingAttribute& operator=(const SdrLightingAttribute& rCandidate);
60 			~SdrLightingAttribute();
61 
62             // checks if the incarnation is default constructed
63             bool isDefault() const;
64 
65 			// compare operator
66 			bool operator==(const SdrLightingAttribute& rCandidate) const;
67 
68             // data read access
69 			const basegfx::BColor& getAmbientLight() const;
70 			const ::std::vector< Sdr3DLightAttribute >& getLightVector() const;
71 
72 			// color model solver
73 			basegfx::BColor solveColorModel(
74 				const basegfx::B3DVector& rNormalInEyeCoordinates,
75 				const basegfx::BColor& rColor, const basegfx::BColor& rSpecular,
76 				const basegfx::BColor& rEmission, sal_uInt16 nSpecularIntensity) const;
77 		};
78 	} // end of namespace attribute
79 } // end of namespace drawinglayer
80 
81 //////////////////////////////////////////////////////////////////////////////
82 
83 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRLIGHTINGATTRIBUTE3D_HXX
84 
85 // eof
86