#include <PlotSet.h>

Public Member Functions | |
| virtual void | setName (const std::string &name)=0 |
| virtual QWidget * | getWidget ()=0 |
| virtual const QWidget * | getWidget () const =0 |
| virtual PlotWidget * | createPlot (const std::string &plotName, const PlotType &plotType)=0 |
| virtual PlotWidget * | getPlot (const std::string &plotName) const =0 |
| virtual void | getPlots (const PlotType &plotType, std::vector< PlotWidget * > &plots) const =0 |
| virtual void | getPlots (std::vector< PlotWidget * > &plots) const =0 |
| virtual unsigned int | getNumPlots () const =0 |
| virtual bool | containsPlot (PlotWidget *pPlot) const =0 |
| virtual bool | setCurrentPlot (PlotWidget *pPlot)=0 |
| virtual PlotWidget * | getCurrentPlot () const =0 |
| virtual bool | renamePlot (PlotWidget *pPlot, const std::string &newPlotName)=0 |
| virtual bool | deletePlot (PlotWidget *pPlot)=0 |
| virtual void | clear ()=0 |
| virtual void | setAssociatedView (View *pView)=0 |
| virtual View * | getAssociatedView ()=0 |
| virtual const View * | getAssociatedView () const =0 |
| virtual std::string | renamePlot (PlotWidget *pPlot)=0 |
Static Public Member Functions | |
| static const std::string & | signalRenamed () |
| static const std::string & | signalViewAssociated () |
| static const std::string & | signalPlotAdded () |
| static const std::string & | signalActivated () |
| static const std::string & | signalPlotDeleted () |
Protected Member Functions | |
| virtual | ~PlotSet () |
A plot set provides a grouping of plots within a single widget. A plot set displays individual plots on tabs along the bottom of the widget. Each tab contains a single plot widget.
To display multiple plot set widgets within a single widget, see the PlotSetGroup class.
This subclass of Subject will notify upon the following conditions:
Definition at line 41 of file PlotSet.h.
| virtual PlotSet::~PlotSet | ( | ) | [protected, virtual] |
The plot set should be destroyed only if it is not owned by a parent widget by calling DesktopServices::deletePlotSet().
| static const std::string& PlotSet::signalRenamed | ( | ) | [static] |
| static const std::string& PlotSet::signalViewAssociated | ( | ) | [static] |
Emitted when a view is associated with the plot set with boost::any<View*> containing a pointer to the newly associated view.
| static const std::string& PlotSet::signalPlotAdded | ( | ) | [static] |
Emitted when a plot widget is added to the plot set with boost::any<PlotWidget*> containing a pointer to the plot widget that is being added.
| static const std::string& PlotSet::signalActivated | ( | ) | [static] |
Emitted when a plot widget is activated with boost::any<PlotWidget*> containing a pointer to the newly activated plot widget.
| static const std::string& PlotSet::signalPlotDeleted | ( | ) | [static] |
Emitted when a plot widget is deleted from the plot set with boost::any<PlotWidget*> containing a pointer to the plot widget that is being deleted.
| virtual void PlotSet::setName | ( | const std::string & | name | ) | [pure virtual] |
Sets the plot set name.
| name | The new plot set name. This method does nothing if an empty string is passed in. |
| virtual QWidget* PlotSet::getWidget | ( | ) | [pure virtual] |
Returns the Qt widget pointer for this plot set widget.
| virtual const QWidget* PlotSet::getWidget | ( | ) | const [pure virtual] |
Returns the Qt widget pointer for this plot set widget.
| virtual PlotWidget* PlotSet::createPlot | ( | const std::string & | plotName, | |
| const PlotType & | plotType | |||
| ) | [pure virtual] |
Creates a new plot in the plot set.
This method creates an empty plot and adds it to plot set.
| plotName | The plot name. | |
| plotType | The plot type. |
NULL is returned if an error occurred and the plot could not be created.| virtual PlotWidget* PlotSet::getPlot | ( | const std::string & | plotName | ) | const [pure virtual] |
Retrieves the plot with a given name.
| plotName | The plot name. |
NULL is returned if no plot exists with the given name in the plot set.| virtual void PlotSet::getPlots | ( | const PlotType & | plotType, | |
| std::vector< PlotWidget * > & | plots | |||
| ) | const [pure virtual] |
Retrieves plots of a given type contained in the plot set.
| plotType | The plot type. | |
| plots | A vector to contain pointers to the plots in the plot set. The vector is emptied if the plot set does not contain any plots of the given type. |
| virtual void PlotSet::getPlots | ( | std::vector< PlotWidget * > & | plots | ) | const [pure virtual] |
Retrieves all plots contained in the plot set.
| plots | A vector to contain pointers to the plots in the plot set. The vector is emptied if the plot set does not contain any plots. |
| virtual unsigned int PlotSet::getNumPlots | ( | ) | const [pure virtual] |
Returns the number of plots in the plot set.
| virtual bool PlotSet::containsPlot | ( | PlotWidget * | pPlot | ) | const [pure virtual] |
Queries whether a plot exists in the plot set.
| pPlot | The plot to query for its existence. |
true if the plot is contained in the plot set; otherwise returns false. | virtual bool PlotSet::setCurrentPlot | ( | PlotWidget * | pPlot | ) | [pure virtual] |
Sets the active plot in the plot set.
| pPlot | The plot to make the active plot. This method does nothing if NULL is passed in. |
true if the plot was successfully activated; otherwise returns false.| virtual PlotWidget* PlotSet::getCurrentPlot | ( | ) | const [pure virtual] |
Returns the active plot for the plot set.
NULL is returned if the plot set does not contain any plots.| virtual bool PlotSet::renamePlot | ( | PlotWidget * | pPlot, | |
| const std::string & | newPlotName | |||
| ) | [pure virtual] |
Renames a plot in the plot set with a given name.
| pPlot | The plot to rename. This method does nothing if NULL is passed in. | |
| newPlotName | The new plot name, which appears on the tab. The name cannot have the same name as another plot in the plot set. This method does nothing if an empty string is passed in. |
true if the plot was successfully renamed. Returns false if the plot does not exist or the new name is the same as that of another plot.| virtual bool PlotSet::deletePlot | ( | PlotWidget * | pPlot | ) | [pure virtual] |
Deletes a plot in the plot set.
| pPlot | The plot to delete. This method does nothing if NULL is passed in. |
true if the plot was successfully deleted from this plot set; otherwise returns false.| virtual void PlotSet::clear | ( | ) | [pure virtual] |
Removes all plots from the plot set.
| virtual void PlotSet::setAssociatedView | ( | View * | pView | ) | [pure virtual] |
Associates a view with the plot set.
This method associates a view with the plot set. When a view is associated with the plot set, plots are added and removed as layers are created and destroyed in the view.
| pView | The view to associate with plot set. If pView is NULL, the plot set does not have an associated view. |
| virtual View* PlotSet::getAssociatedView | ( | ) | [pure virtual] |
Returns the view associated with the plot set.
NULL is returned if no view is associated.| virtual const View* PlotSet::getAssociatedView | ( | ) | const [pure virtual] |
Returns the view associated with the plot set.
NULL is returned if no view is associated.| virtual std::string PlotSet::renamePlot | ( | PlotWidget * | pPlot | ) | [pure virtual] |
Renames a plot in the plot set with a user-defined name.
This method prompts the user to select a new name for the given plot and renames the plot.
| pPlot | The plot to rename. This method does nothing if NULL is passed in. |