xref: /trunk/main/drawinglayer/inc/drawinglayer/attribute/sdrlightattribute3d.hxx (revision e1d5bd03a6ea7ac2b26b792c9e2a94e9f347a43b)
1 /*************************************************************************
2  *
3  *  OpenOffice.org - a multi-platform office productivity suite
4  *
5  *  $RCSfile: sdrattribute3d.hxx,v $
6  *
7  *  $Revision: 1.4 $
8  *
9  *  last change: $Author: aw $ $Date: 2008-05-27 14:11:16 $
10  *
11  *  The Contents of this file are made available subject to
12  *  the terms of GNU Lesser General Public License Version 2.1.
13  *
14  *
15  *    GNU Lesser General Public License Version 2.1
16  *    =============================================
17  *    Copyright 2005 by Sun Microsystems, Inc.
18  *    901 San Antonio Road, Palo Alto, CA 94303, USA
19  *
20  *    This library is free software; you can redistribute it and/or
21  *    modify it under the terms of the GNU Lesser General Public
22  *    License version 2.1, as published by the Free Software Foundation.
23  *
24  *    This library is distributed in the hope that it will be useful,
25  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
26  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
27  *    Lesser General Public License for more details.
28  *
29  *    You should have received a copy of the GNU Lesser General Public
30  *    License along with this library; if not, write to the Free Software
31  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
32  *    MA  02111-1307  USA
33  *
34  ************************************************************************/
35 
36 #ifndef INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRLIGHTATTRIBUTE3D_HXX
37 #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRLIGHTATTRIBUTE3D_HXX
38 
39 #include <drawinglayer/drawinglayerdllapi.h>
40 //////////////////////////////////////////////////////////////////////////////
41 // predefines
42 
43 namespace basegfx {
44     class BColor;
45     class B3DVector;
46 }
47 
48 namespace drawinglayer { namespace attribute {
49     class ImpSdr3DLightAttribute;
50 }}
51 
52 //////////////////////////////////////////////////////////////////////////////
53 
54 namespace drawinglayer
55 {
56     namespace attribute
57     {
58         class DRAWINGLAYER_DLLPUBLIC Sdr3DLightAttribute
59         {
60         private:
61             ImpSdr3DLightAttribute*             mpSdr3DLightAttribute;
62 
63         public:
64             // constructors/destructor
65             Sdr3DLightAttribute(
66                 const basegfx::BColor& rColor,
67                 const basegfx::B3DVector& rDirection,
68                 bool bSpecular);
69             Sdr3DLightAttribute(const basegfx::BColor& rColor);
70             Sdr3DLightAttribute();
71             Sdr3DLightAttribute(const Sdr3DLightAttribute& rCandidate);
72             ~Sdr3DLightAttribute();
73 
74             // assignment operator
75             Sdr3DLightAttribute& operator=(const Sdr3DLightAttribute& rCandidate);
76 
77             // checks if the incarnation is default constructed
78             bool isDefault() const;
79 
80             // compare operator
81             bool operator==(const Sdr3DLightAttribute& rCandidate) const;
82 
83             // data read access
84             const basegfx::BColor& getColor() const;
85             const basegfx::B3DVector& getDirection() const;
86             bool getSpecular() const;
87         };
88     } // end of namespace attribute
89 } // end of namespace drawinglayer
90 
91 //////////////////////////////////////////////////////////////////////////////
92 
93 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRLIGHTATTRIBUTE3D_HXX
94 
95 // eof
96