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

IPE output class. More...

#include <codac2_Figure2D_IPE.h>

Inheritance diagram for codac2::Figure2D_IPE:
Collaboration diagram for codac2::Figure2D_IPE:

Public Member Functions

void update_axes ()
 Updates the axes of the figure.
 
void update_window_properties ()
 Updates the position and size of the window.
 
void center_viewbox (const Vector &c, const Vector &r)
 Centers the viewbox.
 
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.
 

Detailed Description

IPE output class.

This class is used to manage the IPE output. It generates an XML file that can be opened with the IPE editor.

Member Function Documentation

◆ draw_point()

void codac2::Figure2D_IPE::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_IPE::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_IPE::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_IPE::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_IPE::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_IPE::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_IPE::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_IPE::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_IPE::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_IPE::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_IPE::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.


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