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

TxqPlotHelper.h File Reference

#include <TxAttributeSet.h>
#include <qstring.h>

Go to the source code of this file.

Functions

void addPolygon (TxAttributeSet *poly, TxAttributeSet *polyData, string polyName, int polyPoints, const std::vector< double > &x, const std::vector< double > &y, string polyColor, string polyFillColor, bool attribsUpToDate)
 Add the polygon data to a TxAttributeSet. More...

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

void applyFactor (std::vector< double > &data, double factor)
 Compute and apply a factor to a vector of data. More...


Function Documentation

void addLine ( TxAttributeSet * line,
TxAttributeSet * lineData,
string lineName,
int linePoints,
const std::vector< double > & x,
const std::vector< double > & y,
string lineColor,
bool attribsUpToDate )
 

Add the line data to a TxAttributeSet.

Parameters:
line   the TxAttributeSet pointer to add the line information
lineData   the TxAttributeSet pointer to add the line data information
lineName   the name to use for this line
linePoints   the number of points that make up a line
x   a vector of line X vertex points
y   a vector of line Y vertex points
lineColor   the color of the line as a string
attribsUpTodate   the bool flag if this data is already present in the attribute set and needs to be updated

Definition at line 117 of file TxqPlotHelper.h.

void addPolygon ( TxAttributeSet * poly,
TxAttributeSet * polyData,
string polyName,
int polyPoints,
const std::vector< double > & x,
const std::vector< double > & y,
string polyColor,
string polyFillColor,
bool attribsUpToDate )
 

Add the polygon data to a TxAttributeSet.

Parameters:
poly   the TxAttributeSet pointer to add the polygon information
polyData   the TxAttributeSet pointer to add the polygon data information
polyName   the name to use for this polygon
polyPoints   the number of points that make up a polygon
x   a vector of polygon X vertex points
y   a vector of polygon Y vertex points
polyColor   the color of the polygon as a string
polyFillColor   the color to fill the polygon, use "none" if not desired
attribsUpTodate   the bool flag if this data is already present in the attribute set and needs to be updated

Definition at line 45 of file TxqPlotHelper.h.

void applyFactor ( std::vector< double > & data,
double factor )
 

Compute and apply a factor to a vector of data.

Parameters:
data   a vector of data to apply the factor
factor   the factor will be divided by the data max and then multiplied to each data point

Definition at line 178 of file TxqPlotHelper.h.

Copyright Tech-X Corporation, all rights reserved.