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

TxqAccelWsTrol Class Reference

A Qt wdiget which holds a TxLinePlotData pointer from which it gets the number of plots and calculates limits. More...

#include <TxqAccelWsTrol.h>

Inheritance diagram for TxqAccelWsTrol::

TxqNldWsTrol TxqConfigWsFrame TxqWsFrame TxqFrame QFrame List of all members.

Public Slots

virtual void updateAttrib ()
 slot to update the attrribute sets. More...

virtual void erasePlots ()
 slot to erase plots. More...

virtual void restart ()
 slot used when model is restarted. More...


Public Methods

 TxqAccelWsTrol (TxAttributeSet *a, QWidget *parent=0, const char *nm=0, WFlags f=WType_TopLevel)
 The TxqAccelWsTrol constructor takes a TxAttributeSet a and a QWidget w a name nm * and a window flag f All other options must be set from member methods. More...

virtual ~TxqAccelWsTrol ()
 The TxqAccelWsTrol destructor. More...

void setAdaptor (TxNldIfc *ptr)
 Set the TxAccelIfc pointer. More...

void setLinePlotData (TxLinePlotData *ptr)
 Set the line plot data pointer. More...


Protected Methods

void updatePlotAttributes (bool update)
 Update the plot attributes. More...

void createNldAttributes ()
 Create the Nld Attributes. More...

void drawPoints (TxAttributeSet *line, TxAttributeSet *lineData, int lineNumber, int num, const double *x, const double *y, string lineColor, bool update)
 Draw the points from an attribute set. More...

void addLine (TxAttributeSet *line, TxAttributeSet *lineData, string lineName, int lineNumber, int linePoints, const std::vector< double > &x, const std::vector< double > &y, string lineColor, bool update)
 add the line data to a TxAttributeSet. More...

void clearLine (TxAttributeSet *line, TxAttributeSet *lineData)
 Clear the line data by clearing the attribute set vector data. More...


Private Attributes

TxLinePlotDataplotData
 The line plot data pointer. More...


Detailed Description

A Qt wdiget which holds a TxLinePlotData pointer from which it gets the number of plots and calculates limits.

It sets data and options such as color and labels.

Copyright 2000 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

Version:
Id:
TxqAccelWsTrol.h,v 1.3 2001/10/12 22:04:26 kgl Exp

Definition at line 40 of file TxqAccelWsTrol.h.


Constructor & Destructor Documentation

TxqAccelWsTrol::TxqAccelWsTrol ( TxAttributeSet * a,
QWidget * parent = 0,
const char * nm = 0,
WFlags f = WType_TopLevel )
 

The TxqAccelWsTrol constructor takes a TxAttributeSet a and a QWidget w a name nm * and a window flag f All other options must be set from member methods.

Parameters:
a   The window attributes pointer.
parent   The parent Qt widget defaulted to null
nm   The name of the Qt widget defaulted to null
f   The window flags defaulted to WType_TopeLevel

TxqAccelWsTrol::~TxqAccelWsTrol ( ) [virtual]
 

The TxqAccelWsTrol destructor.


Member Function Documentation

void TxqAccelWsTrol::addLine ( TxAttributeSet * line,
TxAttributeSet * lineData,
string lineName,
int lineNumber,
int linePoints,
const std::vector< double > & x,
const std::vector< double > & y,
string lineColor,
bool update ) [protected]
 

add the line data to a TxAttributeSet.

Parameters:
line   the TxAttributeSet pointer containing the line description.
lineData   the TxAttributeSet pointer containing the line data description
lineNumber   the lineNumber to add to the attribute set
linePoints   the number of points in the line
x   the x vector containing the points to draw
y   the y vector containing the points to draw
lineColor   the color for the line
update   bool flag on whether this data is already present

void TxqAccelWsTrol::clearLine ( TxAttributeSet * line,
TxAttributeSet * lineData ) [protected]
 

Clear the line data by clearing the attribute set vector data.

Parameters:
line   the TxAttributeSet pointer containing the line description.
lineData   the TxAttributeSet pointer containing the line data description

void TxqAccelWsTrol::createNldAttributes ( ) [protected, virtual]
 

Create the Nld Attributes.

Reimplemented from TxqNldWsTrol.

void TxqAccelWsTrol::drawPoints ( TxAttributeSet * line,
TxAttributeSet * lineData,
int lineNumber,
int num,
const double * x,
const double * y,
string lineColor,
bool update ) [protected]
 

Draw the points from an attribute set.

Parameters:
line   the TxAttributeSet pointer containing the line description.
lineData   the TxAttributeSet pointer containing the line data description
lineNumber   the lineNumber to add to the attribute set
num   the number of points to add
x   the x double array containing the points to draw
y   the y double array containing the points to draw
lineColor   the color for the line
update   bool flag on whether this data is already present

void TxqAccelWsTrol::erasePlots ( ) [virtual, slot]
 

slot to erase plots.

Reimplemented from TxqNldWsTrol.

void TxqAccelWsTrol::restart ( ) [virtual, slot]
 

slot used when model is restarted.

Reimplemented from TxqNldWsTrol.

void TxqAccelWsTrol::setAdaptor ( TxNldIfc * ptr ) [virtual]
 

Set the TxAccelIfc pointer.

Parameters:
ptr   the TxNldIfc pointer to use to set the adaptor.

Reimplemented from TxqNldWsTrol.

void TxqAccelWsTrol::setLinePlotData ( TxLinePlotData * ptr )
 

Set the line plot data pointer.

Parameters:
ptr   the TxLinePlotData pointer to set to obtain the line plot data.

void TxqAccelWsTrol::updateAttrib ( ) [virtual, slot]
 

slot to update the attrribute sets.

Reimplemented from TxqNldWsTrol.

void TxqAccelWsTrol::updatePlotAttributes ( bool update ) [protected]
 

Update the plot attributes.

Parameters:
bool   to determine if this is an update or initial


Member Data Documentation

TxLinePlotData * TxqAccelWsTrol::plotData [private]
 

The line plot data pointer.

Definition at line 160 of file TxqAccelWsTrol.h.


The documentation for this class was generated from the following file: Copyright Tech-X Corporation, all rights reserved.