00001 //--------------------------------------------------------------------------- 00002 // 00003 // File: Txq2dPoint.h 00004 // 00005 // Purpose: A class for drawing a point. 00006 // 00007 // Version: $Id: Txq2dPoint.h,v 1.6 2002/01/17 19:29:21 kgl Exp $ 00008 // 00009 // Author: Kelly G. Luetkemeyer 00010 // 00011 //--------------------------------------------------------------------------- 00012 00013 #ifndef TXQ2D_POINT_H 00014 #define TXQ2D_POINT_H 00015 00016 // Tx includes 00017 #include "Txq2dDrawable.h" 00018 #include "TxqDoublePoint.h" 00019 00032 class Txq2dPoint: public Txq2dDrawable 00033 { 00034 00035 public: 00039 Txq2dPoint(); 00040 00045 Txq2dPoint(TxqDoublePoint p); 00046 00052 Txq2dPoint(double x, double y); 00053 00059 Txq2dPoint(int x, int y); 00060 00065 Txq2dPoint(QPoint p); 00066 00070 virtual ~Txq2dPoint(){} 00071 00076 void setPoint(TxqDoublePoint p); 00077 00083 void setPoint(double x, double y); 00084 00090 void setPoint(int x, int y); 00091 00096 void setPoint(QPoint p); 00097 00102 TxqDoublePoint getPoint(); 00103 00110 void setLocation(int x, int y); 00111 00116 void paint(QPainter* g ); 00117 00118 00119 protected: 00120 00124 virtual void initialize(); 00125 00131 void dump(QTextStream *ts); 00132 00136 TxqDoublePoint point; 00137 00138 }; 00139 #endif
Copyright Tech-X Corporation, all rights reserved.