codac 2.0.0
Loading...
Searching...
No Matches
codac2::OutputFigure2D Class Referenceabstract

Output figure class, used to manage the output figures. More...

#include <codac2_OutputFigure2D.h>

Inheritance diagram for codac2::OutputFigure2D:
Collaboration diagram for codac2::OutputFigure2D:

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

Detailed Description

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

Constructor & Destructor Documentation

◆ OutputFigure2D()

codac2::OutputFigure2D::OutputFigure2D ( const Figure2D & fig)
inline

Creates a new OutputFigure2D object linked to a given figure.

Parameters
figFigure2D to use
40 : _fig(fig)
41 { }

Member Function Documentation

◆ i()

const Index & codac2::OutputFigure2D::i ( ) const

Getter for the horizontal Index.

Returns
The horizontal Index

◆ j()

const Index & codac2::OutputFigure2D::j ( ) const

Getter for the vertical Index.

Returns
The vertical Index

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