summaryrefslogtreecommitdiff
path: root/drawinglayer/source/attribute/sdrlightattribute3d.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'drawinglayer/source/attribute/sdrlightattribute3d.cxx')
-rw-r--r--drawinglayer/source/attribute/sdrlightattribute3d.cxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/drawinglayer/source/attribute/sdrlightattribute3d.cxx b/drawinglayer/source/attribute/sdrlightattribute3d.cxx
index e249a88c2677..868bc9c4bf02 100644
--- a/drawinglayer/source/attribute/sdrlightattribute3d.cxx
+++ b/drawinglayer/source/attribute/sdrlightattribute3d.cxx
@@ -47,6 +47,13 @@ namespace drawinglayer
{
}
+ ImpSdr3DLightAttribute()
+ : maColor(),
+ maDirection(),
+ mbSpecular(false)
+ {
+ }
+
// data read access
const basegfx::BColor& getColor() const { return maColor; }
const basegfx::B3DVector& getDirection() const { return maDirection; }
@@ -75,6 +82,11 @@ namespace drawinglayer
{
}
+ Sdr3DLightAttribute::Sdr3DLightAttribute()
+ : mpSdr3DLightAttribute(theGlobalDefault::get())
+ {
+ }
+
Sdr3DLightAttribute::Sdr3DLightAttribute(const Sdr3DLightAttribute& rCandidate)
: mpSdr3DLightAttribute(rCandidate.mpSdr3DLightAttribute)
{
@@ -84,6 +96,11 @@ namespace drawinglayer
{
}
+ bool Sdr3DLightAttribute::isDefault() const
+ {
+ return mpSdr3DLightAttribute.same_object(theGlobalDefault::get());
+ }
+
Sdr3DLightAttribute& Sdr3DLightAttribute::operator=(const Sdr3DLightAttribute& rCandidate)
{
mpSdr3DLightAttribute = rCandidate.mpSdr3DLightAttribute;