Version: 9.12.0
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

anonymous enum
Enumerator
ActAddInView 
ActRemoveFromView 

Add curve in view.

ActUpdateInView 

Remove curve from view.

ActNothing 

Update curve in view.

Do nothing

◆ anonymous enum

anonymous enum
Enumerator
StateOk 
StateNeedUpdate 

Constructor & Destructor Documentation

◆ Plot2d_AnalyticalCurve() [1/2]

Plot2d_AnalyticalCurve::Plot2d_AnalyticalCurve ( )

Constructor

References myName, and myNbCurves.

◆ Plot2d_AnalyticalCurve() [2/2]

◆ ~Plot2d_AnalyticalCurve()

Plot2d_AnalyticalCurve::~Plot2d_AnalyticalCurve ( )
virtual

Destructor

Member Function Documentation

◆ autoFill()

void Plot2d_AnalyticalCurve::autoFill ( const QwtPlot thePlot)
virtual

◆ calculate()

◆ checkCurve()

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.

◆ getAction()

int Plot2d_AnalyticalCurve::getAction ( ) const

Gets the curve action.

References myAction.

◆ getColor()

QColor Plot2d_AnalyticalCurve::getColor ( ) const

Gets curve's color

References myColor.

◆ getData()

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

Gets object's data

References myPoints.

◆ getExpression()

QString Plot2d_AnalyticalCurve::getExpression ( ) const

Gets the curve expression.

References myExpression.

◆ getLine()

Plot2d::LineType Plot2d_AnalyticalCurve::getLine ( ) const

Gets line type

References myLine.

◆ getLineWidth()

int Plot2d_AnalyticalCurve::getLineWidth ( ) const

Gets line width

References myLineWidth.

◆ getMarker()

Plot2d::MarkerType Plot2d_AnalyticalCurve::getMarker ( ) const

Gets marker type

References myMarker.

◆ getMarkerSize()

int Plot2d_AnalyticalCurve::getMarkerSize ( ) const

Gets marker size

References myMarkerSize.

◆ getName()

QString Plot2d_AnalyticalCurve::getName ( ) const

Gets the curve name.

References myName.

◆ getNbIntervals()

long Plot2d_AnalyticalCurve::getNbIntervals ( ) const

Gets number of points

References myNbIntervals.

◆ getRangeBegin()

double Plot2d_AnalyticalCurve::getRangeBegin ( ) const

Gets X coordinate of the first curve points

References myRangeBegin.

◆ getRangeEnd()

double Plot2d_AnalyticalCurve::getRangeEnd ( ) const

Gets X coordinate of the last curve points

References myRangeEnd.

◆ isActive()

bool Plot2d_AnalyticalCurve::isActive ( ) const

Gets the curve active status.

References myActive.

◆ isAutoAssign()

bool Plot2d_AnalyticalCurve::isAutoAssign ( ) const

Gets curve's AutoAssign flag state

References myAutoAssign.

◆ isSelected()

bool Plot2d_AnalyticalCurve::isSelected ( ) const

Gets curve's selected property.

References myIsSelected.

◆ operator=()

◆ plotItem()

QwtPlotItem * Plot2d_AnalyticalCurve::plotItem ( )
virtual

Create plot object for the curve

References myCurve, and updatePlotItem().

◆ setAction()

void Plot2d_AnalyticalCurve::setAction ( const int  act)

Sets the curve action.

References ActAddInView, ActNothing, ActRemoveFromView, and myAction.

◆ setActive()

void Plot2d_AnalyticalCurve::setActive ( const bool  on)

Sets the curve active status.

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

◆ setAutoAssign()

void Plot2d_AnalyticalCurve::setAutoAssign ( bool  on)

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

References ActUpdateInView, myAutoAssign, and setAction().

◆ setColor()

void Plot2d_AnalyticalCurve::setColor ( const QColor &  color)

Sets curve's color.

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

◆ setExpression()

void Plot2d_AnalyticalCurve::setExpression ( const QString &  expr)

Sets the curve expression.

References myExpression, myState, and StateNeedUpdate.

◆ setLine()

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

Sets line type

References ActUpdateInView, myLine, and setAction().

◆ setLineWidth()

void Plot2d_AnalyticalCurve::setLineWidth ( const int  lineWidth)

Sets line width

References ActUpdateInView, myLineWidth, and setAction().

◆ setMarker()

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

Sets marker type ( and resets AutoAssign flag )

References ActUpdateInView, myMarker, and setAction().

◆ setMarkerSize()

void Plot2d_AnalyticalCurve::setMarkerSize ( const int  theSize)

Sets new marker size

References ActUpdateInView, myMarkerSize, and setAction().

◆ setName()

void Plot2d_AnalyticalCurve::setName ( const QString &  name)

Sets the curve name.

References ActUpdateInView, myName, and setAction().

◆ setNbIntervals()

void Plot2d_AnalyticalCurve::setNbIntervals ( const long  nb)

Sets number of points

References myNbIntervals, myState, and StateNeedUpdate.

◆ setRangeBegin()

void Plot2d_AnalyticalCurve::setRangeBegin ( const double  coord)

Sets X coordinate of the first curve points

References myRangeBegin, myState, and StateNeedUpdate.

◆ setRangeEnd()

void Plot2d_AnalyticalCurve::setRangeEnd ( const double  coord)

Sets X coordinate of the last curve points

References myRangeEnd, myState, and StateNeedUpdate.

◆ setSelected()

void Plot2d_AnalyticalCurve::setSelected ( const bool  on)

Sets curve's selected property.

References ActUpdateInView, myIsSelected, and setAction().

◆ state()

int Plot2d_AnalyticalCurve::state ( ) const

Gets the curve state.

References myState.

◆ updatePlotItem()

Member Data Documentation

◆ myAction

int Plot2d_AnalyticalCurve::myAction
protected

◆ myActive

bool Plot2d_AnalyticalCurve::myActive
protected

◆ myAutoAssign

bool Plot2d_AnalyticalCurve::myAutoAssign
protected

◆ myColor

QColor Plot2d_AnalyticalCurve::myColor
protected

◆ myCurve

QwtPlotCurve* Plot2d_AnalyticalCurve::myCurve
protected

◆ myExpression

QString Plot2d_AnalyticalCurve::myExpression
protected

◆ myIsSelected

bool Plot2d_AnalyticalCurve::myIsSelected
protected

◆ myLine

Plot2d::LineType Plot2d_AnalyticalCurve::myLine
protected

◆ myLineWidth

int Plot2d_AnalyticalCurve::myLineWidth
protected

◆ myMarker

Plot2d::MarkerType Plot2d_AnalyticalCurve::myMarker
protected

◆ myMarkerSize

int Plot2d_AnalyticalCurve::myMarkerSize
protected

◆ myName

QString Plot2d_AnalyticalCurve::myName
protected

◆ myNbCurves

int Plot2d_AnalyticalCurve::myNbCurves = 0
staticprivate

◆ myNbIntervals

long Plot2d_AnalyticalCurve::myNbIntervals
protected

◆ myPoints

pointList Plot2d_AnalyticalCurve::myPoints
protected

◆ myRangeBegin

double Plot2d_AnalyticalCurve::myRangeBegin
protected

◆ myRangeEnd

double Plot2d_AnalyticalCurve::myRangeEnd
protected

◆ myState

int Plot2d_AnalyticalCurve::myState
protected

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