00001 //--------------------------------------------------------------------------- 00002 // 00003 // File: Txq2dPolygonArray.h 00004 // 00005 // Purpose: An optimized class for drawing polygons 00006 // using the Qt QPointArray class 00007 // 00008 // Version: $Id: Txq2dPolygonArray.h,v 1.4 2001/10/12 18:58:11 kgl Exp $ 00009 // 00010 // Author: Kelly G. Luetkemeyer 00011 // 00012 //--------------------------------------------------------------------------- 00013 00014 #ifndef TXQ2D_POLYGON_ARRAY_H 00015 #define TXQ2D_POLYGON_ARRAY_H 00016 00017 // Txq includes 00018 #include "Txq2dOutlined.h" 00019 00028 class Txq2dPolygonArray: public Txq2dOutlined 00029 { 00030 00031 public: 00038 Txq2dPolygonArray(const vector<double> &x, 00039 const vector<double> &y, 00040 int np=4); 00041 00045 virtual ~Txq2dPolygonArray(){} 00046 00051 void paint(QPainter* g ); 00052 00053 00054 protected: 00055 00061 void dump(QTextStream *ts); 00062 00063 private: 00064 00068 vector<double> x; 00069 00073 vector<double> y; 00074 00078 int npoints; 00079 00080 }; 00081 #endif
Copyright Tech-X Corporation, all rights reserved.