class
FigureRepresents a figure plot.
Base classes
- class BaseFigure
- Base class for figures.
Constructors, destructors, conversion operators
Public functions
-
template<class AxesT = Axes::auto addAxes(Args && ... args) -> AxesT&
Axes2D, class ... Args> -
template<class AxesT = Axes::auto addAxes() -> AxesT&
Axes2D> - void drawContent() override
- void clear()
- auto getPlot() const -> const Plot&
- auto getObject2D() -> Backend::Renderer::Object2D& override
- auto redraw() const -> bool
Function documentation
template<class AxesT = Axes:: Axes2D, class ... Args>
AxesT& Rodin:: Plot:: Artist:: Figure:: addAxes(Args && ... args)
Template parameters | |
---|---|
AxesT | Type of the Axes which will be added. Default is Rodin::Plot::Axes2D. |
Args | Arguments to forward to the AxesT constructor. |
Returns | A reference to the added Axes. |
Add an axes to the figure.
template<class AxesT = Axes:: Axes2D>
AxesT& Rodin:: Plot:: Artist:: Figure:: addAxes()
Template parameters | |
---|---|
AxesT | Type of the Axes which will be added. Default is Rodin::Plot::Axes2D. |
Add an axes to the figure.
void Rodin:: Plot:: Artist:: Figure:: drawContent() override
Draws the figure's axes to its frame buffer.
void Rodin:: Plot:: Artist:: Figure:: clear()
Clears the figure's frame buffer.
Backend::Renderer::Object2D& Rodin:: Plot:: Artist:: Figure:: getObject2D() override
Returns the 2D object handle.
bool Rodin:: Plot:: Artist:: Figure:: redraw() const
Returns | |
---|---|
true | If requires redrawing |
false | If does not require redraw |
Indicates if the figure's contents require re-drawing.