SPlot2d_Curve Class Reference

#include <SPlot2d_Curve.h>

Inheritance diagram for SPlot2d_Curve:

Inheritance graph

Public Types

enum  MarkerType {
  None, Circle, Rectangle, Diamond,
  DTriangle, UTriangle, LTriangle, RTriangle,
  Cross, XCross
}
enum  LineType {
  NoPen, Solid, Dash, Dot,
  DashDot, DashDotDot
}

Public Member Functions

 SPlot2d_Curve ()
virtual ~SPlot2d_Curve ()
 SPlot2d_Curve (const SPlot2d_Curve &curve)
SPlot2d_Curveoperator= (const SPlot2d_Curve &curve)
virtual QString getTableTitle () const
virtual bool hasIO () const
virtual Handle (SALOME_InteractiveObject) getIO() const
virtual void setIO (const Handle(SALOME_InteractiveObject)&)
virtual bool hasTableIO () const
virtual Handle (SALOME_InteractiveObject) getTableIO() const
virtual void setTableIO (const Handle(SALOME_InteractiveObject)&)
void setHorTitle (const QString &title)
QString getHorTitle () const
void setVerTitle (const QString &title)
QString getVerTitle () const
void setHorUnits (const QString &units)
QString getHorUnits () const
void setVerUnits (const QString &units)
QString getVerUnits () const
void addPoint (double theX, double theY)
void insertPoint (int thePos, double theX, double theY)
void deletePoint (int thePos)
void clearAllPoints ()
pointList getPointList () const
void setData (const double *hData, const double *vData, long size)
double * horData () const
double * verData () const
int nbPoints () const
bool isEmpty () const
void setAutoAssign (bool on)
bool isAutoAssign () const
void setColor (const QColor &color)
QColor getColor () const
void setMarker (MarkerType marker)
MarkerType getMarker () const
void setLine (LineType line, const int lineWidth=0)
LineType getLine () const
int getLineWidth () const
void setYAxis (QwtPlot::Axis theYAxis)
QwtPlot::Axis getYAxis () const
double getMinX () const
double getMinY () const

Protected Attributes

bool myAutoAssign
QString myHorTitle
QString myVerTitle
QString myHorUnits
QString myVerUnits
QColor myColor
MarkerType myMarker
LineType myLine
int myLineWidth
QwtPlot::Axis myYAxis
pointList myPoints

Private Member Functions

 Handle (SALOME_InteractiveObject) myIO
 Handle (SALOME_InteractiveObject) myTableIO

Member Enumeration Documentation

enum Plot2d_Curve::MarkerType [inherited]
 

Enumerator:
None 
Circle 
Rectangle 
Diamond 
DTriangle 
UTriangle 
LTriangle 
RTriangle 
Cross 
XCross 

enum Plot2d_Curve::LineType [inherited]
 

Enumerator:
NoPen 
Solid 
Dash 
Dot 
DashDot 
DashDotDot 


Constructor & Destructor Documentation

SPlot2d_Curve::SPlot2d_Curve  ) 
 

Constructor

SPlot2d_Curve::~SPlot2d_Curve  )  [virtual]
 

Destructor

SPlot2d_Curve::SPlot2d_Curve const SPlot2d_Curve curve  ) 
 

Copy constructor. Makes deep copy of data.


Member Function Documentation

SPlot2d_Curve & SPlot2d_Curve::operator= const SPlot2d_Curve curve  ) 
 

operator=. Makes deep copy of data.

QString SPlot2d_Curve::getTableTitle  )  const [virtual]
 

Returns:
table title

Reimplemented from Plot2d_Curve.

bool SPlot2d_Curve::hasIO  )  const [virtual]
 

Returns:
SALOME_InteractiveObject

virtual SPlot2d_Curve.Handle SALOME_InteractiveObject   )  const [virtual]
 

void SPlot2d_Curve::setIO const Handle(SALOME_InteractiveObject)&  io  )  [virtual]
 

Sets corresponding SALOME_InteractiveObject

Parameters:
io - SALOME_InteractiveObject

bool SPlot2d_Curve::hasTableIO  )  const [virtual]
 

Returns:
true if curve has table interactive object

virtual SPlot2d_Curve.Handle SALOME_InteractiveObject   )  const [virtual]
 

void SPlot2d_Curve::setTableIO const Handle(SALOME_InteractiveObject)&  io  )  [virtual]
 

Sets table interactive object of curve

Parameters:
io - SALOME_InteractiveObject

SPlot2d_Curve.Handle SALOME_InteractiveObject   )  [private]
 

SPlot2d_Curve.Handle SALOME_InteractiveObject   )  [private]
 

void Plot2d_Curve::setHorTitle const QString &  title  )  [inherited]
 

Sets curve's horizontal title

QString Plot2d_Curve::getHorTitle  )  const [inherited]
 

Gets curve's horizontal title

void Plot2d_Curve::setVerTitle const QString &  title  )  [inherited]
 

Sets curve's vertical title

QString Plot2d_Curve::getVerTitle  )  const [inherited]
 

Gets curve's vertical title

void Plot2d_Curve::setHorUnits const QString &  units  )  [inherited]
 

Sets curve's horizontal units

QString Plot2d_Curve::getHorUnits  )  const [inherited]
 

Gets curve's horizontal units

void Plot2d_Curve::setVerUnits const QString &  units  )  [inherited]
 

Sets curve's vertical units

QString Plot2d_Curve::getVerUnits  )  const [inherited]
 

Gets curve's vertical units

void Plot2d_Curve::addPoint double  theX,
double  theY
[inherited]
 

Adds one point for curve.

void Plot2d_Curve::insertPoint int  thePos,
double  theX,
double  theY
[inherited]
 

Insert one point for curve on some position.

void Plot2d_Curve::deletePoint int  thePos  )  [inherited]
 

Delete one point for curve on some position.

void Plot2d_Curve::clearAllPoints  )  [inherited]
 

Remove all points for curve.

pointList Plot2d_Curve::getPointList  )  const [inherited]
 

Gets curve's data : abscissas of points

void Plot2d_Curve::setData const double *  hData,
const double *  vData,
long  size
[inherited]
 

Sets curve's data.

double * Plot2d_Curve::horData  )  const [inherited]
 

Gets curve's data : abscissas of points

double * Plot2d_Curve::verData  )  const [inherited]
 

Gets curve's data : ordinates of points

int Plot2d_Curve::nbPoints  )  const [inherited]
 

Gets curve's data : number of points

bool Plot2d_Curve::isEmpty  )  const [inherited]
 

Returns true if curve has no data

void Plot2d_Curve::setAutoAssign bool  on  )  [inherited]
 

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

bool Plot2d_Curve::isAutoAssign  )  const [inherited]
 

Gets curve's AutoAssign flag state

void Plot2d_Curve::setColor const QColor &  color  )  [inherited]
 

Sets curve's color ( and resets AutoAssign flag )

QColor Plot2d_Curve::getColor  )  const [inherited]
 

Gets curve's color

void Plot2d_Curve::setMarker MarkerType  marker  )  [inherited]
 

Sets curve's marker ( and resets AutoAssign flag )

Plot2d_Curve::MarkerType Plot2d_Curve::getMarker  )  const [inherited]
 

Gets curve's marker

void Plot2d_Curve::setLine LineType  line,
const int  lineWidth = 0
[inherited]
 

Sets curve's 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.

Plot2d_Curve::LineType Plot2d_Curve::getLine  )  const [inherited]
 

Gets curve's line type

int Plot2d_Curve::getLineWidth  )  const [inherited]
 

Gets curve's line width

void Plot2d_Curve::setYAxis QwtPlot::Axis  theYAxis  )  [inherited]
 

Sets curve's y axis

QwtPlot::Axis Plot2d_Curve::getYAxis  )  const [inherited]
 

Gets curve's y axis

double Plot2d_Curve::getMinX  )  const [inherited]
 

Gets curve's minimal abscissa

double Plot2d_Curve::getMinY  )  const [inherited]
 

Gets curve's minimal ordinate


Field Documentation

bool Plot2d_Curve.myAutoAssign [protected, inherited]
 

QString Plot2d_Curve.myHorTitle [protected, inherited]
 

QString Plot2d_Curve.myVerTitle [protected, inherited]
 

QString Plot2d_Curve.myHorUnits [protected, inherited]
 

QString Plot2d_Curve.myVerUnits [protected, inherited]
 

QColor Plot2d_Curve.myColor [protected, inherited]
 

MarkerType Plot2d_Curve.myMarker [protected, inherited]
 

LineType Plot2d_Curve.myLine [protected, inherited]
 

int Plot2d_Curve.myLineWidth [protected, inherited]
 

QwtPlot::Axis Plot2d_Curve.myYAxis [protected, inherited]
 

pointList Plot2d_Curve.myPoints [protected, inherited]