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

X3D_TriangleStripSet.h

Go to the documentation of this file.
00001 
00002 //                            X3D_TriangleStripSet.h                          //
00004 
00005 #ifndef TRIANGLESTRIPSET_H
00006 #define TRIANGLESTRIPSET_H
00007 
00008 #include "X3DTypes.h"
00009 #include "X3D_X3DComposedGeometryNode.h"
00010 
00011 namespace X3DTK {
00012 namespace X3D {
00013 
00018 
00019 class TriangleStripSet : public X3DComposedGeometryNode
00020 {
00021 public:
00023   TriangleStripSet();
00025   TriangleStripSet(X3DColorNode *color,
00026                    X3DCoordinateNode *coord,
00027                    X3DNormalNode *normal,
00028                    X3DTextureCoordinateNode *texCoord,
00029                    const SFBool &ccw,
00030                    const SFBool &colorPerVertex,
00031                    const SFBool &convex,
00032                    const SFFloat &creaseAngle,
00033                    const SFBool &normalPerVertex,
00034                    const SFBool &solid,
00035                    const MFInt32 &stripCount);
00037   virtual SFAbstractNode clone() const;
00039   virtual ~TriangleStripSet();
00040   
00042   void setConvex(const SFBool &convex);
00044   void setCreaseAngle(const SFFloat &creaseAngle);
00046   void setStripCount(const MFInt32 &stripCount);
00047   
00049   inline const SFBool &getConvex() const {return _convex;};
00051   inline const SFFloat &getCreaseAngle() const {return _creaseAngle;};
00053   inline const MFInt32 &getStripCount() const {return _stripCount;};
00054   
00056   virtual void load(const X3DFileElement *element);
00058   virtual SFString &write(SFString &output) const;
00059   
00060 protected:
00062   TriangleStripSet(const TriangleStripSet &T);
00063 
00064 private:  
00066   SFBool _convex;  
00068   SFFloat _creaseAngle; 
00070   MFInt32 _stripCount;
00071 };
00072 
00073 }
00074 }
00075 
00076 #endif

Generated on Mon Jan 19 10:32:07 2004 for X3DToolKit by doxygen1.2.18