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 //                            TriangleFanSet.h                                //
00004 
00005 #ifndef TRIANGLEFANSET_H
00006 #define TRIANGLEFANSET_H
00007 
00008 #include "X3DTypes.h"
00009 #include "X3DComposedGeometryNode.h"
00010 
00011 namespace X3DTK {
00012 namespace X3D {
00013 
00018 
00019 class TriangleFanSet : public X3DComposedGeometryNode
00020 {
00021 public:
00023   TriangleFanSet();
00025   TriangleFanSet(const X3DColorNode *color,
00026                  const X3DCoordinateNode *coord,
00027                  const X3DNormalNode *normal,
00028                  const X3DTextureCoordinateNode *texCoord,
00029                  SFBool ccw,
00030                  SFBool colorPerVertex,
00031                  SFBool convex,
00032                  SFFloat creaseAngle,
00033                  const MFInt32 &fanCount,
00034                  SFBool normalPerVertex,
00035                  SFBool solid);
00037   virtual SFNode clone() const;
00039   virtual ~TriangleFanSet();
00040   
00042   void setConvex(SFBool convex);
00044   void setCreaseAngle(SFFloat creaseAngle);
00046   void setFanCount(const MFInt32 &fanCount);
00047   
00049   inline SFBool getConvex() const {return _convex;};
00051   inline SFFloat getCreaseAngle() const {return _creaseAngle;};
00053   inline const MFInt32 &getFanCount() const {return _fanCount;};
00054 
00056   virtual void load(const X3DFileElement *element);
00058   virtual SFString write() const;
00059 
00060 protected:
00062   TriangleFanSet(const TriangleFanSet &T);
00063 
00064 private:
00066   SFBool _convex;  
00068   SFFloat _creaseAngle;
00070   MFInt32 _fanCount; 
00071 };
00072 
00073 }
00074 }
00075 
00076 #endif

Generated on Tue Jul 15 16:46:52 2003 for X3DToolKit by doxygen1.3