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

TxqSosWsTrol Class Reference

A Qt wdiget which holds a Surface of Section view, handles mouse clicks on these plots and holds vectors of points and keeps track of the last point. More...

#include <TxqSosWsTrol.h>

Inheritance diagram for TxqSosWsTrol::

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 and update point with the last point. More...

virtual void setMousePoint (double x, double y)
 slot to reset the SOS start point based on a mouse click The number refers to the plot number. More...

virtual void setMousePoint2 (double x, double y)
 slot to reset the SOS start point based on a mouse click The number refers to the plot number, thus this would be plot number 2. More...

virtual void setMousePoint3 (double x, double y)
 slot to reset the SOS start point based on a mouse click The number refers to the plot number, this this is for plot number 3. More...

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


Public Methods

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

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


Protected Methods

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

virtual void createFrames ()
 Create all the Txq2dPlotFrames. More...

virtual void createAttributes (double xmin, double xmax, double ymin, double ymax, string xlabel, string ylabel, string title)
 Create the attributes. More...

virtual void bumpColor ()
 Bump the color. More...


Private Attributes

vector<TxAttributeSet*> points
 The vector of data attributes. More...

double* point
 The point array for the SOS plot Advance method. More...

double* lastPoint
 The last initial condition array for the SOS plot Advance method. More...

int numMousePoints
 The number of mouse clicked points. More...

bool mouseLeft
 flag to determine if the left plot is clicked. More...

bool mouseMiddle
 flag to determine if the middle plot is clicked (plot may be the right if number of plots is 2). More...

bool mouseRight
 flag to determine if the right plot is clicked only used when number of plots is 3. More...

int iteration
 The iteration number. More...


Detailed Description

A Qt wdiget which holds a Surface of Section view, handles mouse clicks on these plots and holds vectors of points and keeps track of the last point.

Copyright 2000 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

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

Definition at line 33 of file TxqSosWsTrol.h.


Constructor & Destructor Documentation

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

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

Parameters:
window   The TxAttributeSet holding the window attributes.
parent   The parent Qt widget.
nm   The name of the Qt widget.
f   The window flags.

TxqSosWsTrol::~TxqSosWsTrol ( ) [virtual]
 

The TxqSosWsTrol destructor.


Member Function Documentation

void TxqSosWsTrol::bumpColor ( ) [protected, virtual]
 

Bump the color.

void TxqSosWsTrol::createAttributes ( double xmin,
double xmax,
double ymin,
double ymax,
string xlabel,
string ylabel,
string title ) [protected, virtual]
 

Create the attributes.

Parameters:
xmin   the min value for X data
xmax   the max value for X data
ymin   the min value for Y data
ymax   the max value for Y data
xlabel   the X axis label
ylabel   the Y axis label
title   the window name

Reimplemented from TxqNldWsTrol.

void TxqSosWsTrol::createFrames ( ) [protected, virtual]
 

Create all the Txq2dPlotFrames.

Reimplemented from TxqNldWsTrol.

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

Create the Nld Attributes.

Reimplemented from TxqNldWsTrol.

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

slot to erase plots and update point with the last point.

Reimplemented from TxqNldWsTrol.

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

slot used when model is restarted.

Reimplemented from TxqNldWsTrol.

void TxqSosWsTrol::setMousePoint ( double x,
double y ) [virtual, slot]
 

slot to reset the SOS start point based on a mouse click The number refers to the plot number.

Parameters:
x   the X mouse click point
y   the Y mouse click point

void TxqSosWsTrol::setMousePoint2 ( double x,
double y ) [virtual, slot]
 

slot to reset the SOS start point based on a mouse click The number refers to the plot number, thus this would be plot number 2.

Parameters:
x   the X mouse click point
y   the Y mouse click point

void TxqSosWsTrol::setMousePoint3 ( double x,
double y ) [virtual, slot]
 

slot to reset the SOS start point based on a mouse click The number refers to the plot number, this this is for plot number 3.

Parameters:
x   the X mouse click point
y   the Y mouse click point

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

slot to update the attrribute sets.

Reimplemented from TxqNldWsTrol.


Member Data Documentation

int TxqSosWsTrol::iteration [private]
 

The iteration number.

Definition at line 178 of file TxqSosWsTrol.h.

double * TxqSosWsTrol::lastPoint [private]
 

The last initial condition array for the SOS plot Advance method.

Definition at line 151 of file TxqSosWsTrol.h.

bool TxqSosWsTrol::mouseLeft [private]
 

flag to determine if the left plot is clicked.

Definition at line 161 of file TxqSosWsTrol.h.

bool TxqSosWsTrol::mouseMiddle [private]
 

flag to determine if the middle plot is clicked (plot may be the right if number of plots is 2).

Definition at line 167 of file TxqSosWsTrol.h.

bool TxqSosWsTrol::mouseRight [private]
 

flag to determine if the right plot is clicked only used when number of plots is 3.

Definition at line 173 of file TxqSosWsTrol.h.

int TxqSosWsTrol::numMousePoints [private]
 

The number of mouse clicked points.

Definition at line 156 of file TxqSosWsTrol.h.

double * TxqSosWsTrol::point [private]
 

The point array for the SOS plot Advance method.

Definition at line 146 of file TxqSosWsTrol.h.

vector< TxAttributeSet *> TxqSosWsTrol::points [private]
 

The vector of data attributes.

Definition at line 141 of file TxqSosWsTrol.h.


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