Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_goodies / matril3d.hxx
blob11ab082d877f2e4cee6034f636bccb35a5ed395f
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: matril3d.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 _B3D_MATRIL3D_HXX
32 #define _B3D_MATRIL3D_HXX
34 #ifndef _B3D_BUCKET_HXX
35 #include "bucket.hxx"
36 #endif
38 #ifndef _TOOLS_COLOR_HXX
39 #include <tools/color.hxx>
40 #endif
42 #ifndef _STREAM_HXX
43 #include <tools/stream.hxx>
44 #endif
46 namespace binfilter {
48 /*************************************************************************
50 |* Moegliche MaterialModes fuer Polygone
52 \************************************************************************/
54 enum Base3DMaterialMode
56 Base3DMaterialFront = 0,
57 Base3DMaterialBack,
58 Base3DMaterialFrontAndBack
61 /*************************************************************************
63 |* Moegliche MaterialValues fuer Polygone
65 \************************************************************************/
67 enum Base3DMaterialValue
69 Base3DMaterialAmbient = 0,
70 Base3DMaterialDiffuse,
71 Base3DMaterialSpecular,
72 Base3DMaterialEmission
75 /*************************************************************************
77 |* Basisklasse fuer Materialparameter
79 \************************************************************************/
81 class B3dMaterial
83 private:
84 Color aAmbient;
85 Color aDiffuse;
86 Color aSpecular;
87 Color aEmission;
88 UINT16 nExponent;
90 public:
91 B3dMaterial();
93 // Laden/Speichern in StarView
94 virtual void WriteData(SvStream& rOut) const;
95 virtual void ReadData(SvStream& rIn);
97 // Vergleichsoperator
98 BOOL operator==(const B3dMaterial&);
99 BOOL operator!=(const B3dMaterial& rMat) { return (!((*this) == rMat)); }
100 protected:
103 }//end of namespace binfilter
105 #endif // _B3D_MATRIL3D_HXX