00001 //--------------------------------------------------------------------------- 00002 // 00003 // File: Txq3dStrokeLabel.h 00004 // 00005 // Purpose: A class for drawing Stroke text on the Txq3dCanvas. 00006 // 00007 // Version: $Id: Txq3dStrokeLabel.h,v 1.6 2001/10/11 20:34:58 kgl Exp $ 00008 // 00009 // Author: Kelly G. Luetkemeyer 00010 // 00011 //--------------------------------------------------------------------------- 00012 00013 #ifndef TXQ3D_STROKELABEL_H 00014 #define TXQ3D_STROKELABEL_H 00015 00016 // Tx includes 00017 #include "Txq3dDrawable.h" 00018 #include "Txq3dLabel.h" 00019 00020 typedef void *strokeFont; 00021 00036 class Txq3dStrokeLabel: public Txq3dLabel { 00037 00038 public: 00042 Txq3dStrokeLabel(); 00043 00052 Txq3dStrokeLabel(QString thisLabel, double sx, double sy, double sz); 00053 00057 virtual ~Txq3dStrokeLabel(); 00058 00062 void paintGL(); 00063 00068 float getWidth(); 00069 00074 float getHeight(); 00075 00076 00077 protected: 00078 00086 void strokeCharacter(strokeFont font, int c); 00087 00094 void strokeCharacterWidth(strokeFont font, int c); 00095 00096 00097 private: 00098 00102 float labelWidth; 00103 00104 }; 00105 #endif
Copyright Tech-X Corporation, all rights reserved.