libvrml1++/AsciiText.hh

Go to the documentation of this file.
00001 
00020 #ifndef VRML1ASCIITEXT_H_
00021 #define VRML1ASCIITEXT_H_
00022 
00023 #include <string>
00024 #include "Node.hh"
00025 #include "Attribute.hh"
00026 
00027 using namespace std;
00028 
00029 namespace vrml1
00030 {
00031 
00032 class AsciiText : public vrml1::Node
00033 {
00034 public:
00035         enum e_Justification { LEFT=0, CENTER, RIGHT };
00036 
00037         AsciiText();
00038 
00039         void setString(string str);
00040         string str() const;
00041         
00042         void setSpacing(float spacing);
00043         float spacing() const;
00044         
00045         void setJustification(e_Justification justification);
00046         e_Justification justification() const;
00047         
00048         void setWidth(vector<float> width);
00049         vector<float> width() const;
00050         
00051         virtual void setAttribute(Attribute *A);
00052         
00053 private:
00054         string m_string;
00055         float m_spacing;
00056         e_Justification m_justification;
00057         vector<float> m_width;  
00058 };
00059 
00060 }
00061 
00062 #endif /*VRML1ASCIITEXT_H_*/

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