libvrml1++/FontStyle.hh

Go to the documentation of this file.
00001 
00020 #ifndef VRML1FONTSTYLE_HH_
00021 #define VRML1FONTSTYLE_HH_
00022 
00023 #include "Node.hh"
00024 #include "Attribute.hh"
00025 
00026 namespace vrml1
00027 {
00028 
00029 class FontStyle : public vrml1::Node
00030 {
00031 public:
00032         enum e_Family { SERIF=0, SANS, TYPEWRITER };
00033         enum e_Style { NONE=0, BOLD=1, ITALIC=2 };
00034         
00035         FontStyle();
00036         
00037         void setSize(float size);
00038         float size() const;
00039         
00040         void setFamily(e_Family family);
00041         e_Family family() const;
00042         
00043         void setStyle(unsigned int style);
00044         unsigned int style() const;
00045         
00046         virtual void setAttribute(Attribute *A);
00047         
00048 private:
00049         float m_size;
00050         e_Family m_family;
00051         unsigned int m_style;   
00052 };
00053 
00054 }
00055 
00056 #endif /*VRML1FONTSTYLE_HH_*/

Generated on Mon Jul 21 23:57:09 2008 for libvrml1++ by  doxygen 1.5.4