Data Members:
enum eAxis
{
LEFT,
RIGHT,
BOTTOM
};
enum eScale
{
LINEAR,
LOGARITHMIC,
DB
};
enum eSymbol
{
NONE,
CIRCLE,
SQUARE,
DIAMOND,
TRIANGLE,
UTRIANGLE,
LTRIANGLE,
RTRIANGLE,
CROSS,
XCROSS,
HLINE,
VLINE
};
Methods defined here:
void SetAutoLegend(OnOff)
Set the state of automatic legend
Returns: None
Parameters:
bool OnOff: state of automatic legend
void SetGridMajorXPen(Pen)
Set the color and style used for the Major grid lines
Returns: None
Parameters:
QPen Pen: pen used to draw major X grid lines
void SetGridMinorXPen(Pen)
Set the color and style used for the Minor grid lines
Returns: None
Parameters:
QPen Pen: pen used to draw minor X grid lines
void SetGridMajorYPen(Pen)
Set the color and style used for the Major grid lines
Returns: None
Parameters:
QPen Pen: pen used to draw major Y grid lines
void SetGridMinorYPen(Pen)
Set the color and style used for the Minor grid lines
Returns: None
Parameters:
QPen Pen: pen used to draw minor Y grid lines
void SetAxisTitle(Axis, Title)
Set the title for the given axis
Returns: None
Parameters:
VibPlot2D::eAxis Axis: axis to set title for (LEFT, RIGHT, BOTTOM)
string Title: title text for the axis
void SetAxisTitleAngle(Axis, Angle)
Set the angle for the axis title
Returns: None
Parameters:
VibPlot2D::eAxis Axis: axis to set (LEFT, RIGHT, BOTTOM)
float Angle: angle in degrees for the text
void SetAxisTitleFont(Axis, Font)
Set the font for the axis title
Returns: None
Parameters:
VibPlot2D::eAxis Axis: axis to set (LEFT, RIGHT, BOTTOM)
QFont Font: font to use
void SetAxisTitleColor(Axis, Color)
Set the color for the axis title
Returns: None
Parameters:
VibPlot2D::eAxis Axis: axis to set (LEFT, RIGHT, BOTTOM)
QColor Color: color to use
void SetAxisScale(Axis, Scale)
Set the scale for the axis
Returns: None
Parameters:
VibPlot2D::eAxis Axis: axis to set (LEFT, RIGHT, BOTTOM)
VibPlot2D::eScale Scale: scale to use (LINEAR, LOGARITHMIC, dB)
void SetAxisPen(Axis, Pen)
Set the pen for the axis
Returns: None
Parameters:
VibPlot2D::eAxis Axis: axis to set (LEFT, RIGHT, BOTTOM)
QPen Pen: pen used to draw axis
void SetLegendColor(Color)
Set the color used for legend
Returns: None
Parameters:
QColor Color: color to use
void SetLegendFont(Font)
Set the font used for the legend
Returns: None
Parameters:
QFont Font: font to use
uint InsertCurve(Name, X, Y)
Add a curve to the plot
Returns:
unsigned int: curve id
Parameters:
string Name: curve name (legend text)
AvAPI_Matrix X: x data for the curve
AvAPI_Matrix Y: y data for the curve
void RemoveCurve(cID)
Delete a curve from the plot
Returns: None
Parameters:
unsigned int cid: curve id
void SetCurvePen(cid, Pen)
Set the color and style used for the curve
Returns: None
Parameters:
unsigned int cid: curve id
QPen Pen: pen used to draw the curve
void SetCurveAxis(cid, Axis)
Set the axis for for the curve
Returns: None
Parameters:
unsigned int cid: curve id
VibPlot2D::eAxis Axis: axis to plot curve (LEFT, RIGHT)
void SetCurveSymbol(cid, Symbol)
Set the symbol for for the curve
Returns: None
Parameters:
unsigned int cid: curve id
VibPlot2D::eSymbol Symbol: symbol to use for curve (NONE, CIRCLE, SQUARE, DIAMOND, TRIANGLE, UTRIANGLE, LTRIANGLE, RTRIANGLE, CROSS, XCROSS, HLINE, VLINE)
void SetCurveSymbolSize(cid, Size)
Set the symbol size for for the curve
Returns: None
Parameters:
unsigned int cid: curve id
int Size: size in pixels for the symbol
void SetCurveSymbolPen(cid, Pen)
Set the color and style used for the symbol
Returns: None
Parameters:
unsigned int cid: curve id
QPen Pen: pen used to draw the symbol
void SetCurveSymbolFrequency(cid, Skip)
Set the frequency of symbols
Returns: None
Parameters:
unsigned int cid: curve id
int Skip: number of data points between symbols
void clear()
Clear the plot
Returns: None
Parameters: None
Constructors:
VibPlot2D()
Constructor
Returns: object
Parameters: None