00001 //--------------------------------------------------------------------------- 00002 // 00003 // File: Txq3dLabel.h 00004 // 00005 // Purpose: A class for drawing text on the Txq3dCanvas. 00006 // 00007 // Version: $Id: Txq3dLabel.h,v 1.4 2001/10/11 19:54:13 kgl Exp $ 00008 // 00009 // Author: Kelly G. Luetkemeyer 00010 // 00011 //--------------------------------------------------------------------------- 00012 00013 #ifndef TXQ3D_LABEL_H 00014 #define TXQ3D_LABEL_H 00015 00016 // Tx includes 00017 #include "Txq3dDrawable.h" 00018 00032 class Txq3dLabel: public Txq3dDrawable 00033 { 00034 00035 public: 00036 00040 Txq3dLabel(); 00041 00050 Txq3dLabel(QString thisLabel, double sx, double sy, double sz); 00051 00055 virtual ~Txq3dLabel(); 00056 00061 void setLabel(QString label); 00062 00067 void setLabel(const char* label); 00068 00073 QString getLabel(); 00074 00081 void setLocation(double x, double y, double z); 00082 00091 void setLocation(int x, int y) {setLocation(x,y,0.0);} 00092 00098 std::vector<double> getLocation(); 00099 00103 virtual void setFont(QFont f); 00104 00108 QFont getFont(); 00109 00114 void setFontScale(double fs); 00115 00120 double getFontScale(); 00121 00127 void setFontThickness(double ft); 00128 00133 double getFontThickness(); 00134 00139 virtual void paintGL()=0; 00140 00141 00142 protected: 00143 00149 void dump(QTextStream *ts); 00150 00154 QFont font; 00155 00159 QString label; 00160 00164 std::vector<double> point; 00165 00169 double xPoint; 00170 00174 double yPoint; 00175 00179 double zPoint; 00180 00184 double fontScale; 00185 00189 double fontThickness; 00190 00191 }; 00192 #endif
Copyright Tech-X Corporation, all rights reserved.