00001 //-------------------------------------------------------------------- 00002 // 00003 // File: TxqCanvas.h 00004 // 00005 // Purpose: The TxqCanvas is a base class to create a canvas for 00006 // scientific plotting. 00007 // 00008 // Version: $Id: TxqCanvas.h,v 1.1 2001/11/04 16:43:28 kgl Exp $ 00009 // 00010 // Copyright (c) 2001 by Tech-X Corporation. All rights reserved. 00011 // 00012 // Author: Kelly G. Luetkemeyer 00013 // 00014 //-------------------------------------------------------------------- 00015 00016 #ifndef TXQ_CANVAS_H 00017 #define TXQ_CANVAS_H 00018 00019 // STL includes 00020 #include <algorithm> 00021 #include <cassert> 00022 00023 #ifndef QT_ALTERNATE_QTSMANIP 00024 #define QT_ALTERNATE_QTSMANIP 00025 #endif 00026 00027 // tx includes 00028 #include <txc_vector.h> 00029 00030 // Qt includes 00031 00032 // Txq Includes 00033 #include "TxqDrawable.h" 00034 #include "TxqAxis.h" 00035 00046 class TxqCanvas 00047 { 00048 00049 public: 00050 00054 TxqCanvas(); 00055 00059 virtual ~TxqCanvas(); 00060 00065 virtual void add(TxqDrawable *drawAble); 00066 00071 virtual void remove(TxqDrawable *drawAble); 00072 00076 virtual void remove(); 00077 00082 virtual void add(TxqAxis *axis); 00083 00088 void remove(TxqAxis *axis); 00089 00095 TXSTD::vector<TxqDrawable*> getDrawAbles() { return drawAbles;} 00096 00102 TXSTD::vector<TxqAxis*> getAxes() { return axes; } 00103 00104 protected: 00105 00109 TXSTD::vector<TxqDrawable*> drawAbles; 00110 00114 TXSTD::vector<TxqAxis*> axes; 00115 00116 00117 00118 private: 00119 00120 }; 00121 00122 #endif
Copyright Tech-X Corporation, all rights reserved.