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

X3D_LineProperties.h

Go to the documentation of this file.
00001 
00002 //                            X3D_LineProperties.h                            //
00004 
00005 #ifndef LINEPROPERTIES_H
00006 #define LINEPROPERTIES_H
00007 
00008 #include "X3DTypes.h"
00009 #include "X3D_X3DAppearanceChildNode.h"
00010 
00011 namespace X3DTK {
00012 namespace X3D {
00013 
00018 
00019 class LineProperties : public X3DAppearanceChildNode
00020 {
00021 public:
00023   LineProperties();
00025   LineProperties(const SFInt32 &lineStyle, 
00026                  const SFFloat &width);
00028   virtual SFAbstractNode clone() const;
00030   virtual ~LineProperties();
00031   
00033   void setLineStyle(const SFInt32 &lineStyle);
00035   void setWidth(const SFFloat &width);
00036   
00038   inline const SFInt32 &getLineStyle() const {return _lineStyle;};
00040   inline const SFFloat &getWidth() const {return _width;};
00041   
00043   virtual void load(const X3DFileElement *element);
00045   virtual SFString &write(SFString &output) const;
00046 
00047 protected:  
00049   LineProperties(const LineProperties &L);
00050 
00051 private:    
00053   SFInt32 _lineStyle;
00055   SFFloat _width;
00056 };
00057 
00058 }
00059 }
00060 
00061 #endif

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