codac 2.0.0
|
VIBes output class. More...
#include <codac2_Figure2D_VIBes.h>
Public Member Functions | |
Figure2D_VIBes (const Figure2D &fig) | |
Creates a new Figure2D_VIBes object linked to a given figure. | |
~Figure2D_VIBes () | |
Destructor for the Figure2D_VIBes object. | |
void | update_axes () |
Updates the axes of the figure. | |
void | update_window_properties () |
Updates the window properties of the figure. | |
void | center_viewbox (const Vector &c, const Vector &r) |
Centers the viewbox on a given point with a given radius. | |
void | draw_point (const Vector &c, const StyleProperties &s=StyleProperties()) |
Draws a point on the figure. | |
void | draw_box (const IntervalVector &x, const StyleProperties &s=StyleProperties()) |
Draws a box on the figure. | |
void | draw_circle (const Vector &c, double r, const StyleProperties &s=StyleProperties()) |
Draws a circle on the figure. | |
void | draw_ring (const Vector &c, const Interval &r, const StyleProperties &s=StyleProperties()) |
Draws a ring on the figure. | |
void | draw_polyline (const std::vector< Vector > &x, float tip_length, const StyleProperties &s=StyleProperties()) |
Draws a polyline on the figure. | |
void | draw_polygon (const std::vector< Vector > &x, const StyleProperties &s=StyleProperties()) |
Draws a polygone on the figure. | |
void | draw_pie (const Vector &c, const Interval &r, const Interval &theta, const StyleProperties &s=StyleProperties()) |
Draws a pie on the figure. | |
void | draw_ellipse (const Vector &c, const Vector &ab, double theta, const StyleProperties &s=StyleProperties()) |
Draws an ellipse on the figure. | |
void | draw_tank (const Vector &x, float size, const StyleProperties &s=StyleProperties()) |
Draws a tank on the figure. | |
void | draw_AUV (const Vector &x, float size, const StyleProperties &s=StyleProperties()) |
Draws an AUV on the figure. | |
void | draw_motor_boat (const Vector &x, float size, const StyleProperties &s=StyleProperties()) |
Draws a motor boat on the figure. | |
![]() | |
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. | |
Static Public Member Functions | |
static std::string | to_vibes_style (const StyleProperties &s) |
Converts a StyleProperties object to a VIBes style string. | |
VIBes output class.
This class is used to manage the VIBes output. It is meant to be used with the VIBes server.
codac2::Figure2D_VIBes::Figure2D_VIBes | ( | const Figure2D & | fig | ) |
Creates a new Figure2D_VIBes object linked to a given figure.
fig | Figure2D to use |
|
virtual |
Centers the viewbox on a given point with a given radius.
c | Center of the viewbox |
r | Radius of the viewbox |
Implements codac2::OutputFigure2D.
|
virtual |
Draws a point on the figure.
c | Coordinates of the point |
s | Style of the point (edge color and fill color) |
Implements codac2::Figure2DInterface.
|
virtual |
Draws a box on the figure.
x | Box to draw |
s | Style of the box (edge color and fill color) |
Implements codac2::Figure2DInterface.
|
virtual |
Draws a circle on the figure.
c | Center of the circle |
r | Radius of the circle |
s | Style of the circle (edge color and fill color) |
Implements codac2::Figure2DInterface.
|
virtual |
Draws a ring on the figure.
c | Center of the ring |
r | Inner and outer radius of the ring |
s | Style of the ring (edge color and fill color) |
Implements codac2::Figure2DInterface.
|
virtual |
Draws a polyline on the figure.
x | Vector of the points of the polyline |
tip_length | Length of the tip of the arrow |
s | Style of the polyline (edge color and fill color) |
Implements codac2::Figure2DInterface.
|
virtual |
Draws a polygone on the figure.
x | Vector of the points of the polygone |
s | Style of the polygone (edge color and fill color) |
Implements codac2::Figure2DInterface.
|
virtual |
Draws a pie on the figure.
c | Center of the pie |
r | Inner and outer radius of the pie |
theta | Start and end angle of the pie (in radians) |
s | Style of the pie (edge color and fill color) |
Implements codac2::Figure2DInterface.
|
virtual |
Draws an ellipse on the figure.
c | Center of the ellipse |
ab | Half-lengths of the ellipse |
theta | Rotation angle of the ellipse (in radians) |
s | Style of the ellipse (edge color and fill color) |
Implements codac2::Figure2DInterface.
|
virtual |
Draws a tank on the figure.
x | Coordinates of the tank |
size | Size of the tank |
s | Style of the tank (edge color and fill color) |
Implements codac2::Figure2DInterface.
|
virtual |
Draws an AUV on the figure.
x | Coordinates of the AUV |
size | Size of the AUV |
s | Style of the AUV (edge color and fill color) |
Implements codac2::Figure2DInterface.
|
virtual |
Draws a motor boat on the figure.
x | Coordinates of the motor boat |
size | Size of the motor boat |
s | Style of the motor boat (edge color and fill color) |
Implements codac2::Figure2DInterface.
|
static |
Converts a StyleProperties object to a VIBes style string.
s | StyleProperties object to convert |