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

#include <Plot2d_Curve.h>

Inheritance diagram for Plot2d_Curve:
Inheritance graph

Public Member Functions

 Plot2d_Curve ()
 
 Plot2d_Curve (const Plot2d_Curve &)
 
virtual ~Plot2d_Curve ()
 
Plot2d_Curveoperator= (const Plot2d_Curve &)
 
virtual int rtti ()
 
virtual QwtPlotItemcreatePlotItem ()
 
virtual void autoFill (const QwtPlot *)
 
virtual void updatePlotItem (QwtPlotItem *)
 
void setColor (const QColor &)
 
QColor getColor () const
 
void setMarker (Plot2d::MarkerType, const int)
 
void setMarker (Plot2d::MarkerType)
 
void setMarkerStyle (QwtSymbol::Style style)
 
Plot2d::MarkerType getMarker () const
 
QwtSymbol::Style getMarkerStyle () const
 
void setMarkerSize (const int)
 
int getMarkerSize () const
 
void setLine (Plot2d::LineType, const int)
 
void setLine (Plot2d::LineType)
 
Plot2d::LineType getLine () const
 
void setLineWidth (const int)
 
int getLineWidth () const
 
void setDeviationData (const double *, const double *, const QList< int > &)
 
void getDeviationData (double *&, double *&, QList< int > &) const
 
void clearDeviationData ()
 
virtual double getMinY () const
 
virtual double getMaxY () const
 
- Public Member Functions inherited from Plot2d_Object
 Plot2d_Object ()
 
 Plot2d_Object (const Plot2d_Object &)
 
virtual ~Plot2d_Object ()
 
Plot2d_Objectoperator= (const Plot2d_Object &)
 
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
 
void setSelected (const bool)
 
bool isSelected () const
 

Protected Attributes

QColor myColor
 
Plot2d::MarkerType myMarker
 
QwtSymbol::Style myMarkerStyle
 
int myMarkerSize
 
Plot2d::LineType myLine
 
int myLineWidth
 
- Protected Attributes inherited from Plot2d_Object
bool myAutoAssign
 
QString myHorTitle
 
QString myVerTitle
 
QString myHorUnits
 
QString myVerUnits
 
QString myName
 
QwtPlot::Axis myXAxis
 
QwtPlot::Axis myYAxis
 
double myScale
 
pointList myPoints
 
bool myIsSelected
 

Additional Inherited Members

- Static Public Member Functions inherited from Plot2d_Object
static void setSelectionColor (const QColor &c)
 
static QColor selectionColor ()
 
static void setHighlightedLegendTextColor (const QColor &c)
 
static QColor highlightedLegendTextColor ()
 

Constructor & Destructor Documentation

Plot2d_Curve::Plot2d_Curve ( )

Constructor

Plot2d_Curve::Plot2d_Curve ( const Plot2d_Curve curve)

Copy constructor. Makes deep copy of data

References getColor(), getLine(), getLineWidth(), getMarker(), getMarkerSize(), myColor, myLine, myLineWidth, myMarker, and myMarkerSize.

Plot2d_Curve::~Plot2d_Curve ( )
virtual

Destructor

Member Function Documentation

void Plot2d_Curve::autoFill ( const QwtPlot thePlot)
virtual
void Plot2d_Curve::clearDeviationData ( )

Clear deviation data on the curve.

References Plot2d_Object::myPoints.

QwtPlotItem * Plot2d_Curve::createPlotItem ( )
virtual

Create plot object for the curve

Implements Plot2d_Object.

References Plot2d_Object::getVerTitle(), Plot2d_Object::getYAxis(), and updatePlotItem().

QColor Plot2d_Curve::getColor ( ) const

Gets curve's color

References myColor.

void Plot2d_Curve::getDeviationData ( double *&  theMin,
double *&  theMax,
QList< int > &  idx 
) const

Gets object's data

References Plot2d_Object::myPoints, and Plot2d_Object::nbPoints().

Plot2d::LineType Plot2d_Curve::getLine ( ) const

Gets line type

References myLine.

int Plot2d_Curve::getLineWidth ( ) const

Gets line width

References myLineWidth.

Plot2d::MarkerType Plot2d_Curve::getMarker ( ) const

Gets marker type

References myMarker.

int Plot2d_Curve::getMarkerSize ( ) const

Gets marker size

References myMarkerSize.

QwtSymbol::Style Plot2d_Curve::getMarkerStyle ( ) const

References myMarkerStyle.

double Plot2d_Curve::getMaxY ( ) const
virtual

Gets object's maximal ordinate

Reimplemented from Plot2d_Object.

References Plot2d_Object::myPoints, and Plot2d_Object::myScale.

double Plot2d_Curve::getMinY ( ) const
virtual

Gets object's minimal ordinate

Reimplemented from Plot2d_Object.

References Plot2d_Object::myPoints, and Plot2d_Object::myScale.

Plot2d_Curve & Plot2d_Curve::operator= ( const Plot2d_Curve curve)
int Plot2d_Curve::rtti ( )
virtual

Get typeid for the plot2d curve class

Implements Plot2d_Object.

void Plot2d_Curve::setColor ( const QColor &  color)

Sets curve's color ( and resets AutoAssign flag )

References OCCViewer::color(), myColor, and Plot2d_Object::setAutoAssign().

void Plot2d_Curve::setDeviationData ( const double *  min,
const double *  max,
const QList< int > &  idx 
)

Sets deviation data on the curve.

References Plot2d_Object::myPoints.

void Plot2d_Curve::setLine ( Plot2d::LineType  line,
const int  lineWidth 
)

Sets line type and width ( and resets AutoAssign flag ) NOTE : A line width of 0 will produce a 1 pixel wide line using a fast algorithm for diagonals. A line width of 1 will also produce a 1 pixel wide line, but uses a slower more accurate algorithm for diagonals. For horizontal and vertical lines a line width of 0 is the same as a line width of 1.

References Plot2d_Object::setAutoAssign(), and setLineWidth().

void Plot2d_Curve::setLine ( Plot2d::LineType  line)

Sets line type ( and resets AutoAssign flag )

References myLine, and Plot2d_Object::setAutoAssign().

void Plot2d_Curve::setLineWidth ( const int  lineWidth)

Sets line width ( and resets AutoAssign flag )

References myLineWidth, and Plot2d_Object::setAutoAssign().

void Plot2d_Curve::setMarker ( Plot2d::MarkerType  marker,
const int  markerSize 
)

Sets marker type and size ( and resets AutoAssign flag )

References Plot2d_Object::setAutoAssign(), and setMarkerSize().

void Plot2d_Curve::setMarker ( Plot2d::MarkerType  marker)

Sets marker type ( and resets AutoAssign flag )

References myMarker, and Plot2d_Object::setAutoAssign().

void Plot2d_Curve::setMarkerSize ( const int  theSize)

Sets new marker size ( and resets AutoAssign flag )

References myMarkerSize, and Plot2d_Object::setAutoAssign().

void Plot2d_Curve::setMarkerStyle ( QwtSymbol::Style  style)

References myMarkerStyle.

Member Data Documentation

QColor Plot2d_Curve::myColor
protected
Plot2d::LineType Plot2d_Curve::myLine
protected
int Plot2d_Curve::myLineWidth
protected
Plot2d::MarkerType Plot2d_Curve::myMarker
protected
int Plot2d_Curve::myMarkerSize
protected
QwtSymbol::Style Plot2d_Curve::myMarkerStyle
protected

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