cee::app::Plots

class Plots : public RefCountedObject

Class to manage the list of Plots in the application.

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

Public Functions

size_t count() const

Returns number of plots.

size_t index(cee::plt::OverlayPlot *plot)

Returns the index of the given plot.

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

Returns plot at given index.

cee::plt::OverlayPlot *add()

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

void add(cee::plt::OverlayPlot *plot)

Adds an existing plot.

cee::plt::Curve *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 *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

bool remove(size_t index)

Removes the plot at the given index.

void removeAll()

Removes all plots.

Public Static Functions

static Plots *instance()

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