Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_svx / plight3d.hxx
blobc96730cba11a86e2ded8b8876e7c6c2df4db29ee
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: plight3d.hxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _E3D_PLIGHT3D_HXX
32 #define _E3D_PLIGHT3D_HXX
34 #ifndef _E3D_LIGHT3D_HXX
35 #include "light3d.hxx"
36 #endif
37 namespace binfilter {
39 /*************************************************************************
41 |* Punktlichtquelle, die gleichmaessig in alle Richtungen strahlt, und
42 |* zwar von der von E3dLight geerbten Position aus
44 \************************************************************************/
46 class E3dPointLight : public E3dLight
48 protected:
49 virtual void CreateLightObj();
51 public:
52 TYPEINFO();
53 E3dPointLight(const Vector3D& rPos,
54 const Color& rColor,
55 double fLightIntensity = 1.0);
57 E3dPointLight()
61 virtual ~E3dPointLight();
64 virtual FASTBOOL CalcLighting(Color& rNewColor,
65 const Vector3D& rPnt,
66 const Vector3D& rPntNormal,
67 const Color& rPntColor);
72 }//end of namespace binfilter
73 #endif // _E3D_PLIGHT3D_HXX