codac 2.0.0
|
IPE output class. More...
#include <codac2_Figure2D_IPE.h>
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. | |
![]() | |
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. | |
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.
|
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.