summaryrefslogtreecommitdiff
path: root/goodies
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2007-04-11 19:33:32 +0000
committerVladimir Glazounov <vg@openoffice.org>2007-04-11 19:33:32 +0000
commit60b411edba2c4ef4101756ebd8aa310445d49df6 (patch)
tree8b6992271a90dd75a1533ca89b015a835d4a2d29 /goodies
parent495ef45bd297dad85ed4677d3cf7168ebcd60d76 (diff)
INTEGRATION: CWS hedaburemove01 (1.1.2); FILE ADDED
2007/02/09 16:13:38 vg 1.1.2.1: #72503# get rid of hedabu procedure: Moving headers to goodies/inc/goodies and correspondent necessary changes
Diffstat (limited to 'goodies')
-rw-r--r--goodies/inc/goodies/matril3d.hxx117
1 files changed, 117 insertions, 0 deletions
diff --git a/goodies/inc/goodies/matril3d.hxx b/goodies/inc/goodies/matril3d.hxx
new file mode 100644
index 000000000000..753874be8b4c
--- /dev/null
+++ b/goodies/inc/goodies/matril3d.hxx
@@ -0,0 +1,117 @@
+/*************************************************************************
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: matril3d.hxx,v $
+ *
+ * $Revision: 1.2 $
+ *
+ * last change: $Author: vg $ $Date: 2007-04-11 20:33:32 $
+ *
+ * The Contents of this file are made available subject to
+ * the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2005 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ ************************************************************************/
+
+#ifndef _B3D_MATRIL3D_HXX
+#define _B3D_MATRIL3D_HXX
+
+#ifndef _B3D_BUCKET_HXX
+#include <goodies/bucket.hxx>
+#endif
+
+#ifndef _TOOLS_COLOR_HXX
+#include <tools/color.hxx>
+#endif
+
+#ifndef _STREAM_HXX
+#include <tools/stream.hxx>
+#endif
+
+/*************************************************************************
+|*
+|* Moegliche MaterialModes fuer Polygone
+|*
+\************************************************************************/
+
+enum Base3DMaterialMode
+{
+ Base3DMaterialFront = 0,
+ Base3DMaterialBack,
+ Base3DMaterialFrontAndBack
+};
+
+/*************************************************************************
+|*
+|* Moegliche MaterialValues fuer Polygone
+|*
+\************************************************************************/
+
+enum Base3DMaterialValue
+{
+ Base3DMaterialAmbient = 0,
+ Base3DMaterialDiffuse,
+ Base3DMaterialSpecular,
+ Base3DMaterialEmission
+};
+
+/*************************************************************************
+|*
+|* Basisklasse fuer Materialparameter
+|*
+\************************************************************************/
+
+class B3dMaterial
+{
+private:
+ Color aAmbient;
+ Color aDiffuse;
+ Color aSpecular;
+ Color aEmission;
+ UINT16 nExponent;
+
+public:
+ B3dMaterial();
+
+ // Zugriffsfunktionen
+ void SetMaterial(Color rNew,
+ Base3DMaterialValue=Base3DMaterialAmbient);
+ Color GetMaterial(Base3DMaterialValue=Base3DMaterialAmbient) const;
+ void SetShininess(UINT16 nNew);
+ UINT16 GetShininess() const;
+
+ // Vergleichsoperator
+ BOOL operator==(const B3dMaterial&);
+ BOOL operator!=(const B3dMaterial& rMat) { return (!((*this) == rMat)); }
+protected:
+};
+
+/*************************************************************************
+|*
+|* Bucket fuer Materialeigenschaften
+|*
+\************************************************************************/
+
+BASE3D_DECL_BUCKET(B3dMaterial, Bucket)
+
+#endif // _B3D_MATRIL3D_HXX