Version: 6.3.1
Public Member Functions | Static Public Member Functions | Protected Attributes

Plot2d_Object Class Reference

#include <Plot2d_Object.h>

Inheritance diagram for Plot2d_Object:
Inheritance graph

Public Member Functions

 Plot2d_Object ()
 Plot2d_Object (const Plot2d_Object &)
virtual ~Plot2d_Object ()
Plot2d_Objectoperator= (const Plot2d_Object &)
virtual int rtti ()=0
virtual QwtPlotItemcreatePlotItem ()=0
virtual void autoFill (const QwtPlot *)
virtual void updatePlotItem (QwtPlotItem *)
virtual QString getTableTitle () const
void setHorTitle (const QString &)
QString getHorTitle () const
void setVerTitle (const QString &)
QString getVerTitle () const
void setHorUnits (const QString &)
QString getHorUnits () const
void setVerUnits (const QString &)
QString getVerUnits () const
void setName (const QString &)
QString getName () const
void addPoint (double, double, const QString &=QString())
void addPoint (const Plot2d_Point &)
void insertPoint (int, double, double, const QString &=QString())
void insertPoint (int, const Plot2d_Point &)
void deletePoint (int)
void clearAllPoints ()
pointList getPointList () const
void setPointList (const pointList &points)
void setData (const double *, const double *, long, const QStringList &=QStringList())
double * horData () const
double * verData () const
long getData (double **, double **) const
void setText (const int, const QString &)
QString text (const int) const
int nbPoints () const
bool isEmpty () const
void setAutoAssign (bool)
bool isAutoAssign () const
void setXAxis (QwtPlot::Axis)
QwtPlot::Axis getXAxis () const
void setYAxis (QwtPlot::Axis)
QwtPlot::Axis getYAxis () const
double getMinX () const
double getMaxX () const
double getMinY () const
double getMaxY () const

Static Public Member Functions

static bool closeColors (const QColor &, const QColor &, int distance=-1)

Protected Attributes

bool myAutoAssign
QString myHorTitle
QString myVerTitle
QString myHorUnits
QString myVerUnits
QString myName
QwtPlot::Axis myXAxis
QwtPlot::Axis myYAxis
pointList myPoints

Constructor & Destructor Documentation

Plot2d_Object::Plot2d_Object ( )

Constructor

Plot2d_Object::Plot2d_Object ( const Plot2d_Object object)

Copy constructor. Makes deep copy of data.

References myAutoAssign, myHorTitle, myHorUnits, myName, myPoints, myVerTitle, myVerUnits, myXAxis, and myYAxis.

Plot2d_Object::~Plot2d_Object ( ) [virtual]

Destructor


Member Function Documentation

Plot2d_Object & Plot2d_Object::operator= ( const Plot2d_Object object)

operator=. Makes deep copy of data.

References myAutoAssign, myHorTitle, myHorUnits, myName, myPoints, myVerTitle, myVerUnits, myXAxis, and myYAxis.

virtual int Plot2d_Object.rtti ( ) [pure virtual]

Implemented in Plot2d_Curve, and Plot2d_Histogram.

virtual QwtPlotItem* Plot2d_Object.createPlotItem ( ) [pure virtual]

Implemented in Plot2d_Curve, and Plot2d_Histogram.

void Plot2d_Object::autoFill ( const QwtPlot ) [virtual]

Auto fill parameters of object by plot view

Reimplemented in Plot2d_Curve, and Plot2d_Histogram.

void Plot2d_Object::updatePlotItem ( QwtPlotItem theItem) [virtual]

Updates object fields

Reimplemented in Plot2d_Curve, and Plot2d_Histogram.

References getName(), getVerTitle(), getXAxis(), getYAxis(), isEmpty(), and rtti().

QString Plot2d_Object::getTableTitle ( ) const [virtual]
Returns:
title of table

Reimplemented in SPlot2d_Curve.

void Plot2d_Object::setHorTitle ( const QString &  title)

Sets object's horizontal title

References myHorTitle.

QString Plot2d_Object::getHorTitle ( ) const

Gets object's horizontal title

References myHorTitle.

void Plot2d_Object::setVerTitle ( const QString &  title)

Sets object's vertical title

References myVerTitle.

QString Plot2d_Object::getVerTitle ( ) const

Gets object's vertical title

References myVerTitle.

void Plot2d_Object::setHorUnits ( const QString &  units)

Sets object's horizontal units

References myHorUnits.

QString Plot2d_Object::getHorUnits ( ) const

Gets object's horizontal units

References myHorUnits.

void Plot2d_Object::setVerUnits ( const QString &  units)

Sets object's vertical units

References myVerUnits.

QString Plot2d_Object::getVerUnits ( ) const

Gets object's vertical units

References myVerUnits.

void Plot2d_Object::setName ( const QString &  theName)

Sets object's name

References myName.

QString Plot2d_Object::getName ( ) const

Gets object's name

References myName.

void Plot2d_Object::addPoint ( double  theX,
double  theY,
const QString &  theText = QString() 
)

Adds one point for object.

void Plot2d_Object::addPoint ( const Plot2d_Point thePoint)

Adds one point for object.

References myPoints.

void Plot2d_Object::insertPoint ( int  thePos,
double  theX,
double  theY,
const QString &  theText = QString() 
)

Insert one point for object on some position.

void Plot2d_Object::insertPoint ( int  thePos,
const Plot2d_Point thePoint 
)

Insert one point for object on some position.

References myPoints.

void Plot2d_Object::deletePoint ( int  thePos)

Delete one point for object on some position.

References myPoints.

void Plot2d_Object::clearAllPoints ( )

Remove all points for object.

References myPoints.

pointList Plot2d_Object::getPointList ( ) const

Gets object's data : abscissas of points

References myPoints.

void Plot2d_Object::setPointList ( const pointList points)

Gets object's data : abscissas of points

References myPoints.

void Plot2d_Object::setData ( const double *  hData,
const double *  vData,
long  size,
const QStringList &  lst = QStringList() 
)

Sets object's data.

References addPoint(), and clearAllPoints().

double * Plot2d_Object::horData ( ) const

Gets object's data : abscissas of points

References myPoints, and nbPoints().

double * Plot2d_Object::verData ( ) const

Gets object's data : ordinates of points

References myPoints, and nbPoints().

long Plot2d_Object::getData ( double **  theX,
double **  theY 
) const

Gets object's data

References myPoints, and nbPoints().

void Plot2d_Object::setText ( const int  ind,
const QString &  txt 
)

Changes text assigned to point of object

Parameters:
ind-- index of point
txt-- new text

References myPoints, and text().

QString Plot2d_Object::text ( const int  ind) const
Returns:
text assigned to point
Parameters:
ind-- index of point

References myPoints.

int Plot2d_Object::nbPoints ( ) const

Gets object's data : number of points

References myPoints.

bool Plot2d_Object::isEmpty ( ) const

Returns true if object has no data

References myPoints.

void Plot2d_Object::setAutoAssign ( bool  on)

Sets object's AutoAssign flag - in this case attributes will be set automatically

References myAutoAssign.

bool Plot2d_Object::isAutoAssign ( ) const

Gets object's AutoAssign flag state

References myAutoAssign.

void Plot2d_Object::setXAxis ( QwtPlot::Axis  theXAxis)

Sets object's x axis

References myXAxis.

QwtPlot::Axis Plot2d_Object::getXAxis ( ) const

Gets object's x axis

References myXAxis.

void Plot2d_Object::setYAxis ( QwtPlot::Axis  theYAxis)

Sets object's y axis

References myYAxis.

QwtPlot::Axis Plot2d_Object::getYAxis ( ) const

Gets object's y axis

References myYAxis.

double Plot2d_Object::getMinX ( ) const

Gets object's minimal abscissa

References myPoints.

double Plot2d_Object::getMaxX ( ) const

Gets object's maximal abscissa

References myPoints.

double Plot2d_Object::getMinY ( ) const

Gets object's minimal ordinate

References myPoints.

double Plot2d_Object::getMaxY ( ) const

Gets object's maximal ordinate

References myPoints.

bool Plot2d_Object::closeColors ( const QColor &  color1,
const QColor &  color2,
int  distance = -1 
) [static]

Checks if two colors are close to each other [ static ] uses COLOR_DISTANCE variable as max tolerance for comparing of colors

References COLOR_DISTANCE.


Field Documentation

bool Plot2d_Object.myAutoAssign [protected]
QString Plot2d_Object.myHorTitle [protected]
QString Plot2d_Object.myVerTitle [protected]
QString Plot2d_Object.myHorUnits [protected]
QString Plot2d_Object.myVerUnits [protected]
QString Plot2d_Object.myName [protected]
QwtPlot::Axis Plot2d_Object.myXAxis [protected]
QwtPlot::Axis Plot2d_Object.myYAxis [protected]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS