Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Plot2d_Object Class Referenceabstract

#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 setScale (double)
 
double getScale () 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)
 
Plot2d_PointgetPoint (int index)
 
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
 
virtual double getMinX () const
 
virtual double getMaxX () const
 
virtual double getMinY () const
 
virtual double getMaxY () const
 
void setSelected (const bool)
 
bool isSelected () const
 

Static Public Member Functions

static void setSelectionColor (const QColor &c)
 
static QColor selectionColor ()
 
static void setHighlightedLegendTextColor (const QColor &c)
 
static QColor highlightedLegendTextColor ()
 

Protected Attributes

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

Static Private Attributes

static QColor mySelectionColor
 Color of the selected curve or histogram. More...
 
static QColor myHighlightedLegendTextColor
 Color of the selected legend item font. More...
 

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, myScale, myVerTitle, myVerUnits, myXAxis, and myYAxis.

Plot2d_Object::~Plot2d_Object ( )
virtual

Destructor

Member Function Documentation

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::autoFill ( const QwtPlot )
virtual

Auto fill parameters of object by plot view

Reimplemented in Plot2d_Curve, and Plot2d_Histogram.

void Plot2d_Object::clearAllPoints ( )

Remove all points for object.

References myPoints.

virtual QwtPlotItem* Plot2d_Object::createPlotItem ( )
pure virtual

Implemented in Plot2d_Curve, and Plot2d_Histogram.

void Plot2d_Object::deletePoint ( int  thePos)

Delete one point for object on some position.

References myPoints.

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

Gets object's data

References myPoints, myScale, and nbPoints().

QString Plot2d_Object::getHorTitle ( ) const

Gets object's horizontal title

References myHorTitle.

QString Plot2d_Object::getHorUnits ( ) const

Gets object's horizontal units

References myHorUnits.

double Plot2d_Object::getMaxX ( ) const
virtual

Gets object's maximal abscissa

References myPoints.

double Plot2d_Object::getMaxY ( ) const
virtual

Gets object's maximal ordinate

Reimplemented in Plot2d_Curve.

References myPoints, and myScale.

double Plot2d_Object::getMinX ( ) const
virtual

Gets object's minimal abscissa

References myPoints.

double Plot2d_Object::getMinY ( ) const
virtual

Gets object's minimal ordinate

Reimplemented in Plot2d_Curve.

References myPoints, and myScale.

QString Plot2d_Object::getName ( ) const

Gets object's name

References myName.

Plot2d_Point & Plot2d_Object::getPoint ( int  index)

Gets points by index.

References myPoints.

pointList Plot2d_Object::getPointList ( ) const

Gets object's data : abscissas of points

References myPoints.

double Plot2d_Object::getScale ( ) const

Gets object's scale factor

References myScale.

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

Reimplemented in SPlot2d_Curve.

QString Plot2d_Object::getVerTitle ( ) const

Gets object's vertical title

References myVerTitle.

QString Plot2d_Object::getVerUnits ( ) const

Gets object's vertical units

References myVerUnits.

QwtPlot::Axis Plot2d_Object::getXAxis ( ) const

Gets object's x axis

References myXAxis.

QwtPlot::Axis Plot2d_Object::getYAxis ( ) const

Gets object's y axis

References myYAxis.

QColor Plot2d_Object::highlightedLegendTextColor ( )
static

Sets font color of the selected legend item.

References myHighlightedLegendTextColor.

double * Plot2d_Object::horData ( ) const

Gets object's data : abscissas of points

References myPoints, and nbPoints().

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.

bool Plot2d_Object::isAutoAssign ( ) const

Gets object's AutoAssign flag state

References myAutoAssign.

bool Plot2d_Object::isEmpty ( ) const

Returns true if object has no data

References myPoints.

bool Plot2d_Object::isSelected ( ) const

Gets object's selected property

References myIsSelected.

int Plot2d_Object::nbPoints ( ) const

Gets object's data : number of points

References myPoints.

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

operator=. Makes deep copy of data.

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

virtual int Plot2d_Object::rtti ( )
pure virtual

Implemented in Plot2d_Curve, and Plot2d_Histogram.

QColor Plot2d_Object::selectionColor ( )
static

Return selection color of the object.

References mySelectionColor.

void Plot2d_Object::setAutoAssign ( bool  on)

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

References myAutoAssign.

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

Sets object's data.

References addPoint(), and clearAllPoints().

void Plot2d_Object::setHighlightedLegendTextColor ( const QColor &  c)
static

Sets font color of the selected legend item.

References myHighlightedLegendTextColor.

void Plot2d_Object::setHorTitle ( const QString &  title)

Sets object's horizontal title

References myHorTitle.

void Plot2d_Object::setHorUnits ( const QString &  units)

Sets object's horizontal units

References myHorUnits.

void Plot2d_Object::setName ( const QString &  theName)

Sets object's name

References myName.

void Plot2d_Object::setPointList ( const pointList points)

Gets object's data : abscissas of points

References myPoints.

void Plot2d_Object::setScale ( double  theScale)

Sets object's scale factor

References myScale.

void Plot2d_Object::setSelected ( const bool  on)

Sets object's selected property

References myIsSelected.

void Plot2d_Object::setSelectionColor ( const QColor &  c)
static

Sets selection color of the object.

References mySelectionColor.

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().

void Plot2d_Object::setVerTitle ( const QString &  title)

Sets object's vertical title

References myVerTitle.

void Plot2d_Object::setVerUnits ( const QString &  units)

Sets object's vertical units

References myVerUnits.

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

Sets object's x axis

References myXAxis, xBottom, and xTop.

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

Sets object's y axis

References myYAxis, yLeft, and yRight.

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

References myPoints.

void Plot2d_Object::updatePlotItem ( QwtPlotItem theItem)
virtual

Updates object fields

Reimplemented in Plot2d_Curve, and Plot2d_Histogram.

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

double * Plot2d_Object::verData ( ) const

Gets object's data : ordinates of points

References myPoints, myScale, and nbPoints().

Member Data Documentation

bool Plot2d_Object::myAutoAssign
protected
QColor Plot2d_Object::myHighlightedLegendTextColor
staticprivate
QString Plot2d_Object::myHorTitle
protected
QString Plot2d_Object::myHorUnits
protected
bool Plot2d_Object::myIsSelected
protected
QString Plot2d_Object::myName
protected
pointList Plot2d_Object::myPoints
protected
double Plot2d_Object::myScale
protected
QColor Plot2d_Object::mySelectionColor
staticprivate
QString Plot2d_Object::myVerTitle
protected
QString Plot2d_Object::myVerUnits
protected
QwtPlot::Axis Plot2d_Object::myXAxis
protected
QwtPlot::Axis Plot2d_Object::myYAxis
protected

The documentation for this class was generated from the following files: