update dev300-m58
[ooovba.git] / drawinglayer / source / primitive3d / shadowprimitive3d.cxx
blob1c0811923af86b5ea22f0156f9f56c3d07b679ec
1 /*************************************************************************
3 * OpenOffice.org - a multi-platform office productivity suite
5 * $RCSfile: shadowprimitive3d.cxx,v $
7 * $Revision: 1.8 $
9 * last change: $Author: aw $ $Date: 2008-05-27 14:11:21 $
11 * The Contents of this file are made available subject to
12 * the terms of GNU Lesser General Public License Version 2.1.
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
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.
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.
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
34 ************************************************************************/
36 // MARKER(update_precomp.py): autogen include statement, do not remove
37 #include "precompiled_drawinglayer.hxx"
39 #include <drawinglayer/primitive3d/shadowprimitive3d.hxx>
40 #include <drawinglayer/primitive3d/drawinglayer_primitivetypes3d.hxx>
42 //////////////////////////////////////////////////////////////////////////////
44 using namespace com::sun::star;
46 //////////////////////////////////////////////////////////////////////////////
48 namespace drawinglayer
50 namespace primitive3d
52 ShadowPrimitive3D::ShadowPrimitive3D(
53 const basegfx::B2DHomMatrix& rShadowTransform,
54 const basegfx::BColor& rShadowColor,
55 double fShadowTransparence,
56 bool bShadow3D,
57 const Primitive3DSequence& rChildren)
58 : GroupPrimitive3D(rChildren),
59 maShadowTransform(rShadowTransform),
60 maShadowColor(rShadowColor),
61 mfShadowTransparence(fShadowTransparence),
62 mbShadow3D(bShadow3D)
66 bool ShadowPrimitive3D::operator==(const BasePrimitive3D& rPrimitive) const
68 if(GroupPrimitive3D::operator==(rPrimitive))
70 const ShadowPrimitive3D& rCompare = (ShadowPrimitive3D&)rPrimitive;
72 return (getShadowTransform() == rCompare.getShadowTransform()
73 && getShadowColor() == rCompare.getShadowColor()
74 && getShadowTransparence() == rCompare.getShadowTransparence()
75 && getShadow3D() == rCompare.getShadow3D());
78 return false;
81 // provide unique ID
82 ImplPrimitrive3DIDBlock(ShadowPrimitive3D, PRIMITIVE3D_ID_SHADOWPRIMITIVE3D)
84 } // end of namespace primitive3d
85 } // end of namespace drawinglayer
87 //////////////////////////////////////////////////////////////////////////////
88 // eof