cee::app::Plots Class Reference

Class to manage the list of Plots in the application. More...

Public Member Functions

size_t count () const
 Returns number of plots. More...
 
size_t index (cee::plt::OverlayPlot *plot)
 Returns the index of the given plot. More...
 
cee::plt::OverlayPlotget (size_t index)
 Returns plot at given index. More...
 
cee::plt::OverlayPlotadd ()
 Creates and adds a new plot and returns a pointer to the newly created object. More...
 
void add (cee::plt::OverlayPlot *plot)
 Adds an existing plot. More...
 
cee::plt::CurveaddHistoryCurve (size_t plotIndex, const cee::ug::HitItem &hitItem, const cee::ug::UnstructGridModel *model, int scalarId)
 Adds a history curve to the plot given by plotIndex. More...
 
cee::plt::CurveaddLengthCurve (size_t plotIndex, const cee::ug::UnstructGridModel *model, std::vector< cee::Vec3d > *pathPoints=NULL)
 Adds a length curve to the plot given by plotIndex. More...
 
bool remove (size_t index)
 Removes the plot at the given index. More...
 
void removeAll ()
 Removes all plots. More...
 
- Public Member Functions inherited from cee::RefCountedObject
void addRef () const
 Increments the reference count for this object. More...
 
void release () const
 Decrements the reference count for this object. More...
 
int refCount () const
 Returns the reference count for this object. More...
 
void setRefCountZero () const
 Sets the ref count to zero, but DOES NOT delete the object. More...
 

Static Public Member Functions

static Plotsinstance ()
 Plots is a singleton. Always access Plots using this instance() More...
 
Inheritance diagram for cee::app::Plots:
cee::RefCountedObject

Detailed Description

Class to manage the list of Plots in the application.

The interface provides methods adapted to a unique mode view for single-view applications

Member Function Documentation

cee::plt::OverlayPlot * cee::app::Plots::add ( )

Creates and adds a new plot and returns a pointer to the newly created object.

void cee::app::Plots::add ( cee::plt::OverlayPlot plot)

Adds an existing plot.

cee::plt::Curve * cee::app::Plots::addHistoryCurve ( size_t  plotIndex,
const cee::ug::HitItem hitItem,
const cee::ug::UnstructGridModel model,
int  scalarId 
)

Adds a history curve to the plot given by plotIndex.

Returns the newly created plot

cee::plt::Curve * cee::app::Plots::addLengthCurve ( size_t  plotIndex,
const cee::ug::UnstructGridModel model,
std::vector< cee::Vec3d > *  pathPoints = NULL 
)

Adds a length curve to the plot given by plotIndex.

Returns the newly created plot

size_t cee::app::Plots::count ( ) const

Returns number of plots.

cee::plt::OverlayPlot * cee::app::Plots::get ( size_t  index)

Returns plot at given index.

size_t cee::app::Plots::index ( cee::plt::OverlayPlot plot)

Returns the index of the given plot.

Plots * cee::app::Plots::instance ( )
static

Plots is a singleton. Always access Plots using this instance()

bool cee::app::Plots::remove ( size_t  index)

Removes the plot at the given index.

void cee::app::Plots::removeAll ( )

Removes all plots.