00001
00002
00004
00005 #ifndef NORMAL_H
00006 #define NORMAL_H
00007
00008 #include "X3DTypes.h"
00009 #include "X3DNormalNode.h"
00010
00011 namespace X3DTK {
00012
00017
00018 class Normal : public X3DNormalNode
00019 {
00020 public:
00022 Normal();
00024 Normal(const MFVec3f &vector);
00026 virtual SFNode clone() const;
00028 ~Normal();
00029
00031 void setVector(const MFVec3f &vector);
00032
00034 inline MFVec3f &getVector() const {return (MFVec3f &)vector_;};
00035
00037 virtual void loadAttributes(const X3DFileElement *element);
00039 virtual SFString writeAttributes() const;
00040
00041 protected:
00043 Normal(const Normal &N);
00044 private:
00045 MFVec3f vector_;
00046 };
00047
00048 }
00049
00050 #endif