codac 2.0.0
|
Output figure class, used to manage the output figures. More...
#include <codac2_OutputFigure2D.h>
Public Member Functions | |
OutputFigure2D (const Figure2D &fig) | |
Creates a new OutputFigure2D object linked to a given figure. | |
const Index & | i () const |
Getter for the horizontal Index. | |
const Index & | j () const |
Getter for the vertical Index. | |
virtual void | update_axes ()=0 |
Updates the axes of the figure. | |
virtual void | update_window_properties ()=0 |
Updates the position and size of the window. | |
virtual void | center_viewbox (const Vector &c, const Vector &r)=0 |
Centers the viewbox. | |
![]() | |
virtual void | draw_point (const Vector &c, const StyleProperties &s=StyleProperties())=0 |
Draws a point on the figure. | |
virtual void | draw_box (const IntervalVector &x, const StyleProperties &s=StyleProperties())=0 |
Draws a box on the figure. | |
virtual void | draw_circle (const Vector &c, double r, const StyleProperties &s=StyleProperties())=0 |
Draws a circle on the figure. | |
virtual void | draw_ring (const Vector &c, const Interval &r, const StyleProperties &s=StyleProperties())=0 |
Draws a ring on the figure. | |
virtual void | draw_polyline (const std::vector< Vector > &x, float tip_length, const StyleProperties &s=StyleProperties())=0 |
Draws a polyline on the figure. | |
virtual void | draw_polygon (const std::vector< Vector > &x, const StyleProperties &s=StyleProperties())=0 |
Draws a polygone on the figure. | |
virtual void | draw_pie (const Vector &c, const Interval &r, const Interval &theta, const StyleProperties &s=StyleProperties())=0 |
Draws a pie on the figure. | |
virtual void | draw_ellipse (const Vector &c, const Vector &ab, double theta, const StyleProperties &s=StyleProperties())=0 |
Draws an ellipse on the figure. | |
virtual void | draw_tank (const Vector &x, float size, const StyleProperties &s=StyleProperties())=0 |
Draws a tank on the figure. | |
virtual void | draw_AUV (const Vector &x, float size, const StyleProperties &s=StyleProperties())=0 |
Draws an AUV on the figure. | |
virtual void | draw_motor_boat (const Vector &x, float size, const StyleProperties &s=StyleProperties())=0 |
Draws a motor boat on the figure. | |
Output figure class, used to manage the output figures.
This class is used to manage the output figures. It is purely virtual and should not be used directly
It inherits from the Figure2DInterface class and is currently used to manage the output figures for VIBes and IPE
|
inline |
Creates a new OutputFigure2D object linked to a given figure.
fig | Figure2D to use |
const Index & codac2::OutputFigure2D::i | ( | ) | const |
Getter for the horizontal Index.
const Index & codac2::OutputFigure2D::j | ( | ) | const |
Getter for the vertical Index.