codac 2.0.0
Loading...
Searching...
No Matches
codac2::Figure2D_VIBes Class Reference

VIBes output class. More...

#include <codac2_Figure2D_VIBes.h>

Inheritance diagram for codac2::Figure2D_VIBes:
Collaboration diagram for codac2::Figure2D_VIBes:

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.
 
- Public Member Functions inherited from codac2::OutputFigure2D
 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.
 

Detailed Description

VIBes output class.

This class is used to manage the VIBes output. It is meant to be used with the VIBes server.

Constructor & Destructor Documentation

◆ Figure2D_VIBes()

codac2::Figure2D_VIBes::Figure2D_VIBes ( const Figure2D & fig)

Creates a new Figure2D_VIBes object linked to a given figure.

Parameters
figFigure2D to use

Member Function Documentation

◆ center_viewbox()

void codac2::Figure2D_VIBes::center_viewbox ( const Vector & c,
const Vector & r )
virtual

Centers the viewbox on a given point with a given radius.

Parameters
cCenter of the viewbox
rRadius of the viewbox

Implements codac2::OutputFigure2D.

◆ draw_point()

void codac2::Figure2D_VIBes::draw_point ( const Vector & c,
const StyleProperties & s = StyleProperties() )
virtual

Draws a point on the figure.

Parameters
cCoordinates of the point
sStyle of the point (edge color and fill color)

Implements codac2::Figure2DInterface.

◆ draw_box()

void codac2::Figure2D_VIBes::draw_box ( const IntervalVector & x,
const StyleProperties & s = StyleProperties() )
virtual

Draws a box on the figure.

Parameters
xBox to draw
sStyle of the box (edge color and fill color)

Implements codac2::Figure2DInterface.

◆ draw_circle()

void codac2::Figure2D_VIBes::draw_circle ( const Vector & c,
double r,
const StyleProperties & s = StyleProperties() )
virtual

Draws a circle on the figure.

Parameters
cCenter of the circle
rRadius of the circle
sStyle of the circle (edge color and fill color)

Implements codac2::Figure2DInterface.

◆ draw_ring()

void codac2::Figure2D_VIBes::draw_ring ( const Vector & c,
const Interval & r,
const StyleProperties & s = StyleProperties() )
virtual

Draws a ring on the figure.

Parameters
cCenter of the ring
rInner and outer radius of the ring
sStyle of the ring (edge color and fill color)

Implements codac2::Figure2DInterface.

◆ draw_polyline()

void codac2::Figure2D_VIBes::draw_polyline ( const std::vector< Vector > & x,
float tip_length,
const StyleProperties & s = StyleProperties() )
virtual

Draws a polyline on the figure.

Parameters
xVector of the points of the polyline
tip_lengthLength of the tip of the arrow
sStyle of the polyline (edge color and fill color)

Implements codac2::Figure2DInterface.

◆ draw_polygon()

void codac2::Figure2D_VIBes::draw_polygon ( const std::vector< Vector > & x,
const StyleProperties & s = StyleProperties() )
virtual

Draws a polygone on the figure.

Parameters
xVector of the points of the polygone
sStyle of the polygone (edge color and fill color)

Implements codac2::Figure2DInterface.

◆ draw_pie()

void codac2::Figure2D_VIBes::draw_pie ( const Vector & c,
const Interval & r,
const Interval & theta,
const StyleProperties & s = StyleProperties() )
virtual

Draws a pie on the figure.

Parameters
cCenter of the pie
rInner and outer radius of the pie
thetaStart and end angle of the pie (in radians)
sStyle of the pie (edge color and fill color)

Implements codac2::Figure2DInterface.

◆ draw_ellipse()

void codac2::Figure2D_VIBes::draw_ellipse ( const Vector & c,
const Vector & ab,
double theta,
const StyleProperties & s = StyleProperties() )
virtual

Draws an ellipse on the figure.

Parameters
cCenter of the ellipse
abHalf-lengths of the ellipse
thetaRotation angle of the ellipse (in radians)
sStyle of the ellipse (edge color and fill color)

Implements codac2::Figure2DInterface.

◆ draw_tank()

void codac2::Figure2D_VIBes::draw_tank ( const Vector & x,
float size,
const StyleProperties & s = StyleProperties() )
virtual

Draws a tank on the figure.

Parameters
xCoordinates of the tank
sizeSize of the tank
sStyle of the tank (edge color and fill color)

Implements codac2::Figure2DInterface.

◆ draw_AUV()

void codac2::Figure2D_VIBes::draw_AUV ( const Vector & x,
float size,
const StyleProperties & s = StyleProperties() )
virtual

Draws an AUV on the figure.

Parameters
xCoordinates of the AUV
sizeSize of the AUV
sStyle of the AUV (edge color and fill color)

Implements codac2::Figure2DInterface.

◆ draw_motor_boat()

void codac2::Figure2D_VIBes::draw_motor_boat ( const Vector & x,
float size,
const StyleProperties & s = StyleProperties() )
virtual

Draws a motor boat on the figure.

Parameters
xCoordinates of the motor boat
sizeSize of the motor boat
sStyle of the motor boat (edge color and fill color)

Implements codac2::Figure2DInterface.

◆ to_vibes_style()

static std::string codac2::Figure2D_VIBes::to_vibes_style ( const StyleProperties & s)
static

Converts a StyleProperties object to a VIBes style string.

Parameters
sStyleProperties object to convert
Returns
VIBes style string

The documentation for this class was generated from the following file: