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

#include <Plot2d_AnalyticalCurve.h>

Public Types

enum  { ActAddInView = 0, ActRemoveFromView, ActUpdateInView, ActNothing }
 
enum  { StateOk = 0, StateNeedUpdate }
 

Public Member Functions

 Plot2d_AnalyticalCurve ()
 
 Plot2d_AnalyticalCurve (const Plot2d_AnalyticalCurve &)
 
Plot2d_AnalyticalCurveoperator= (const Plot2d_AnalyticalCurve &)
 
virtual ~Plot2d_AnalyticalCurve ()
 
virtual QwtPlotItemplotItem ()
 
virtual void autoFill (const QwtPlot *)
 
virtual void updatePlotItem ()
 
virtual bool checkCurve (const QwtPlot *)
 
virtual void calculate ()
 
long getData (double **, double **) const
 
void setSelected (const bool)
 
bool isSelected () const
 
void setAutoAssign (bool)
 
bool isAutoAssign () const
 
void setColor (const QColor &)
 
QColor getColor () const
 
void setMarker (Plot2d::MarkerType)
 
Plot2d::MarkerType getMarker () const
 
void setMarkerSize (const int)
 
int getMarkerSize () const
 
void setLine (Plot2d::LineType)
 
Plot2d::LineType getLine () const
 
void setLineWidth (const int)
 
int getLineWidth () const
 
void setNbIntervals (const long)
 
long getNbIntervals () const
 
void setRangeBegin (const double)
 
double getRangeBegin () const
 
void setRangeEnd (const double)
 
double getRangeEnd () const
 
void setExpression (const QString &)
 
QString getExpression () const
 
void setName (const QString &)
 
QString getName () const
 
void setActive (const bool)
 
bool isActive () const
 
void setAction (const int)
 
int getAction () const
 
int state () const
 

Protected Attributes

bool myAutoAssign
 
QColor myColor
 
Plot2d::MarkerType myMarker
 
int myMarkerSize
 
Plot2d::LineType myLine
 
int myLineWidth
 
long myNbIntervals
 
pointList myPoints
 
double myRangeBegin
 
double myRangeEnd
 
QString myExpression
 
QString myName
 
int myAction
 
int myState
 
QwtPlotCurvemyCurve
 
bool myActive
 
bool myIsSelected
 

Static Private Attributes

static int myNbCurves = 0
 

Member Enumeration Documentation

anonymous enum
Enumerator
ActAddInView 
ActRemoveFromView 

Add curve in view.

ActUpdateInView 

Remove curve from view.

ActNothing 

Update curve in view.

Do nothing

anonymous enum
Enumerator
StateOk 
StateNeedUpdate 

Constructor & Destructor Documentation

Plot2d_AnalyticalCurve::Plot2d_AnalyticalCurve ( )

Constructor

References myName, and myNbCurves.

Plot2d_AnalyticalCurve::~Plot2d_AnalyticalCurve ( )
virtual

Destructor

Member Function Documentation

void Plot2d_AnalyticalCurve::autoFill ( const QwtPlot thePlot)
virtual
bool Plot2d_AnalyticalCurve::checkCurve ( const QwtPlot thePlot)
virtual

Checks that this curve can be computed for the input QwtPlot

References calculate(), myExpression, myState, setRangeBegin(), setRangeEnd(), StateOk, and xBottom.

int Plot2d_AnalyticalCurve::getAction ( ) const

Gets the curve action.

References myAction.

QColor Plot2d_AnalyticalCurve::getColor ( ) const

Gets curve's color

References myColor.

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

Gets object's data

References myPoints.

QString Plot2d_AnalyticalCurve::getExpression ( ) const

Gets the curve expression.

References myExpression.

Plot2d::LineType Plot2d_AnalyticalCurve::getLine ( ) const

Gets line type

References myLine.

int Plot2d_AnalyticalCurve::getLineWidth ( ) const

Gets line width

References myLineWidth.

Plot2d::MarkerType Plot2d_AnalyticalCurve::getMarker ( ) const

Gets marker type

References myMarker.

int Plot2d_AnalyticalCurve::getMarkerSize ( ) const

Gets marker size

References myMarkerSize.

QString Plot2d_AnalyticalCurve::getName ( ) const

Gets the curve name.

References myName.

long Plot2d_AnalyticalCurve::getNbIntervals ( ) const

Gets number of points

References myNbIntervals.

double Plot2d_AnalyticalCurve::getRangeBegin ( ) const

Gets X coordinate of the first curve points

References myRangeBegin.

double Plot2d_AnalyticalCurve::getRangeEnd ( ) const

Gets X coordinate of the last curve points

References myRangeEnd.

bool Plot2d_AnalyticalCurve::isActive ( ) const

Gets the curve active status.

References myActive.

bool Plot2d_AnalyticalCurve::isAutoAssign ( ) const

Gets curve's AutoAssign flag state

References myAutoAssign.

bool Plot2d_AnalyticalCurve::isSelected ( ) const

Gets curve's selected property.

References myIsSelected.

QwtPlotItem * Plot2d_AnalyticalCurve::plotItem ( )
virtual

Create plot object for the curve

References myCurve, and updatePlotItem().

void Plot2d_AnalyticalCurve::setAction ( const int  act)

Sets the curve action.

References ActAddInView, ActNothing, ActRemoveFromView, and myAction.

void Plot2d_AnalyticalCurve::setActive ( const bool  on)

Sets the curve active status.

References ActAddInView, ActUpdateInView, myActive, myState, setAction(), and StateNeedUpdate.

void Plot2d_AnalyticalCurve::setAutoAssign ( bool  on)

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

References ActUpdateInView, myAutoAssign, and setAction().

void Plot2d_AnalyticalCurve::setColor ( const QColor &  color)

Sets curve's color.

References ActUpdateInView, OCCViewer::color(), myColor, and setAction().

void Plot2d_AnalyticalCurve::setExpression ( const QString &  expr)

Sets the curve expression.

References myExpression, myState, and StateNeedUpdate.

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

Sets line type

References ActUpdateInView, myLine, and setAction().

void Plot2d_AnalyticalCurve::setLineWidth ( const int  lineWidth)

Sets line width

References ActUpdateInView, myLineWidth, and setAction().

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

Sets marker type ( and resets AutoAssign flag )

References ActUpdateInView, myMarker, and setAction().

void Plot2d_AnalyticalCurve::setMarkerSize ( const int  theSize)

Sets new marker size

References ActUpdateInView, myMarkerSize, and setAction().

void Plot2d_AnalyticalCurve::setName ( const QString &  name)

Sets the curve name.

References ActUpdateInView, myName, and setAction().

void Plot2d_AnalyticalCurve::setNbIntervals ( const long  nb)

Sets number of points

References myNbIntervals, myState, and StateNeedUpdate.

void Plot2d_AnalyticalCurve::setRangeBegin ( const double  coord)

Sets X coordinate of the first curve points

References myRangeBegin, myState, and StateNeedUpdate.

void Plot2d_AnalyticalCurve::setRangeEnd ( const double  coord)

Sets X coordinate of the last curve points

References myRangeEnd, myState, and StateNeedUpdate.

void Plot2d_AnalyticalCurve::setSelected ( const bool  on)

Sets curve's selected property.

References ActUpdateInView, myIsSelected, and setAction().

int Plot2d_AnalyticalCurve::state ( ) const

Gets the curve state.

References myState.

Member Data Documentation

int Plot2d_AnalyticalCurve::myAction
protected
bool Plot2d_AnalyticalCurve::myActive
protected
bool Plot2d_AnalyticalCurve::myAutoAssign
protected
QColor Plot2d_AnalyticalCurve::myColor
protected
QwtPlotCurve* Plot2d_AnalyticalCurve::myCurve
protected
QString Plot2d_AnalyticalCurve::myExpression
protected
bool Plot2d_AnalyticalCurve::myIsSelected
protected
Plot2d::LineType Plot2d_AnalyticalCurve::myLine
protected
int Plot2d_AnalyticalCurve::myLineWidth
protected
Plot2d::MarkerType Plot2d_AnalyticalCurve::myMarker
protected
int Plot2d_AnalyticalCurve::myMarkerSize
protected
QString Plot2d_AnalyticalCurve::myName
protected
int Plot2d_AnalyticalCurve::myNbCurves = 0
staticprivate
long Plot2d_AnalyticalCurve::myNbIntervals
protected
pointList Plot2d_AnalyticalCurve::myPoints
protected
double Plot2d_AnalyticalCurve::myRangeBegin
protected
double Plot2d_AnalyticalCurve::myRangeEnd
protected
int Plot2d_AnalyticalCurve::myState
protected

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