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

TriangleFanSet.h

Go to the documentation of this file.
00001 
00002 
00003 
00005 
00006 
00011 
00016 
00021 //                            TriangleFanSet.h                                //
00023 
00024 #ifndef TRIANGLEFANSET_H
00025 #define TRIANGLEFANSET_H
00026 
00027 #include "X3DTypes.h"
00028 #include "X3DComposedGeometryNode.h"
00029 
00030 namespace X3DTK {
00031 namespace X3D {
00032 
00037 
00038 class TriangleFanSet : public X3DComposedGeometryNode
00039 {
00040 public:
00042   TriangleFanSet();
00044   TriangleFanSet(const X3DColorNode *color,
00045                  const X3DCoordinateNode *coord,
00046                  const X3DNormalNode *normal,
00047                  const X3DTextureCoordinateNode *texCoord,
00048                  SFBool ccw,
00049                  SFBool colorPerVertex,
00050                  SFBool convex,
00051                  SFFloat creaseAngle,
00052                  const MFInt32 &fanCount,
00053                  SFBool normalPerVertex,
00054                  SFBool solid);
00056   virtual SFNode clone() const;
00058   virtual ~TriangleFanSet();
00059   
00061   void setConvex(SFBool convex);
00063   void setCreaseAngle(SFFloat creaseAngle);
00065   void setFanCount(const MFInt32 &fanCount);
00066   
00068   inline SFBool getConvex() const {return _convex;};
00070   inline SFFloat getCreaseAngle() const {return _creaseAngle;};
00072   inline const MFInt32 &getFanCount() const {return _fanCount;};
00073 
00075   virtual void load(const X3DFileElement *element);
00077   virtual SFString write() const;
00078 
00079 protected:
00081   TriangleFanSet(const TriangleFanSet &T);
00082 
00083 private:
00085   SFBool _convex;  
00087   SFFloat _creaseAngle;
00089   MFInt32 _fanCount; 
00090 };
00091 
00092 }
00093 }
00094 
00095 #endif

Generated on Wed Sep 10 11:25:14 2003 for X3DToolKit by doxygen1.3