Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

TxqAccelWsTrol.h

Go to the documentation of this file.
00001 //--------------------------------------------------------------------
00002 //
00003 // File:    TxqAccelWsTrol.h
00004 //
00005 // Purpose: Interface definition of a window to plot accelerator date 
00006 // from a TxLinePlotData
00007 //
00008 // Version: $Id: TxqAccelWsTrol.h,v 1.3 2001/10/12 22:04:26 kgl Exp $
00009 //
00010 // Copyright (c) 2000 by Tech-X Corporation.  All rights reserved.
00011 //
00012 // Author:  Kelly G. Luetkemeyer
00013 //
00014 //--------------------------------------------------------------------
00015 
00016 #ifndef TXQ_ACCEL_WS_TROL_H
00017 #define TXQ_ACCEL_WS_TROL_H
00018 
00019 // txmodel includes
00020 #include <TxAccelIfc.h>
00021 #include <TxLinePlotData.h>
00022 #include <TxVisitor.h>
00023 
00024 // local includes
00025 #include "TxqNldWsTrol.h"
00026 
00027 
00040 class TxqAccelWsTrol : public TxqNldWsTrol
00041 {
00042   Q_OBJECT
00043 
00044 public:
00045 
00057   TxqAccelWsTrol(TxAttributeSet *a, QWidget* parent=0, const char *nm=0, WFlags f = WType_TopLevel);
00058 
00062   virtual ~TxqAccelWsTrol();
00063 
00068   void setAdaptor(TxNldIfc *ptr); 
00069 
00074   void setLinePlotData(TxLinePlotData *ptr);
00075 
00076 public slots:
00077 
00081   virtual void updateAttrib();
00082 
00086   virtual void erasePlots();
00087 
00091   virtual void restart();
00092 
00093 
00094 signals:
00095 
00096 
00097 protected:
00098 
00103   void updatePlotAttributes(bool update);
00104 
00108   void createNldAttributes();
00109 
00121    void drawPoints(TxAttributeSet *line, TxAttributeSet *lineData,
00122                    int lineNumber, int num,
00123                    const double* x, const double* y, 
00124                    string lineColor, bool update);
00125 
00137   void addLine(TxAttributeSet *line,
00138                TxAttributeSet *lineData,
00139                string lineName,
00140                int lineNumber,
00141                int linePoints,
00142                const std::vector<double> &x,
00143                const std::vector<double> &y,
00144                string lineColor, bool update);
00145 
00152   void clearLine(TxAttributeSet *line,
00153                  TxAttributeSet *lineData);
00154 
00155 private:
00156 
00160   TxLinePlotData *plotData;
00161 
00162 
00163 };
00164 
00165 
00166 #endif
Copyright Tech-X Corporation, all rights reserved.