Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

TexPlane.H

Go to the documentation of this file.
00001 
00011 #ifndef TEXPLANE_H
00012 #define TEXPLANE_H
00013 
00014 #include "DrawObj.H"
00015 #include "Color.H"
00016 
00017 // Gluebase includes
00018 #define OUTSIDE_GLUE_CORE
00019 #include <std/strings.H>
00020 
00021 
00022 class TexPlane : public DrawObj
00023 {
00024  public:
00025 
00026   TexPlane(str_ptr texName);
00027   virtual ~TexPlane();
00028 
00029   void setTexName(str_ptr t) { _texName = t; }
00030   str_ptr texName() { return _texName; }
00031 
00032   Color color() { return _color; }
00033   void setColor(Color c) { _color = c; }
00034 
00035   void reColor(Color c) { setColor(c); }
00036 
00037   void draw();
00038 
00039   void writeCPS(ostream *os);
00040 
00041  protected:
00042 
00043   str_ptr _texName;
00044 
00045   Color _color;
00046 
00047   // default material properties
00048   double _shininess;
00049   Color _diffuse;
00050   Color _specular;
00051   Color _emission;
00052   Color _ambient;
00053 
00054 };
00055 
00056 #endif

Generated on Mon Sep 15 16:27:56 2003 for inspace by doxygen1.2.18