# 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()

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Envision for Desktop in your own language, or choose a sample question below to start a conversation:

What is HOOPS Envision for Desktop?
What are the latest release notes for HOOPS Envision for Desktop?
How do I start evaluating HOOPS Envision for Desktop?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...