codac 2.0.5
Loading...
Searching...
No Matches
codac2::DefaultFigure Class Reference

Default view class, used to manage the default figure. More...

#include <codac2_Figure2D.h>

Static Public Member Functions

static std::shared_ptr< Figure2D > selected_fig ()
 Getter for the default figure.
static void set (std::shared_ptr< Figure2D > fig)
 Setter for the default figure.
static Figure2D & set_axes (const FigureAxis &axis1, const FigureAxis &axis2)
 Setter for the axes of the figure.
static Figure2D & set_axes (const IntervalVector &bbox)
 Setter for the axes of the figure.
static void set_window_properties (const Vector &pos, const Vector &size)
 Setter for the position and size of the window.
static void auto_scale ()
 VIBes only: auto scale the figure.
static void clear ()
 Clear the figure.
static void save (const std::string &filename)
 Saves the figure to a file.
static void draw_point (const Vector &c, const StyleProperties &style=StyleProperties())
 Draws a point on the figure.
static void draw_box (const IntervalVector &x, const StyleProperties &style=StyleProperties())
 Draws a box on the figure.
static void draw_circle (const Vector &c, double r, const StyleProperties &style=StyleProperties())
 Draws a circle on the figure.
static void draw_ring (const Vector &c, const Interval &r, const StyleProperties &style=StyleProperties())
 Draws a ring on the figure.
static void draw_line (const Vector &p1, const Vector &p2, const StyleProperties &style=StyleProperties())
 Draws a line on the figure.
static void draw_line (const Segment &e, const StyleProperties &style=StyleProperties())
 Draws a line on the figure.
static void draw_arrow (const Vector &p1, const Vector &p2, float tip_length, const StyleProperties &style=StyleProperties())
 Draws an arrow on the figure.
static void draw_polyline (const std::vector< Vector > &x, const StyleProperties &style=StyleProperties())
 Draws a polyline on the figure.
static void draw_polyline (const std::vector< Vector > &x, float tip_length, const StyleProperties &style=StyleProperties())
 Draws a polyline on the figure.
static void draw_polygon (const Polygon &x, const StyleProperties &style=StyleProperties())
 Draws a Polygon object on the figure.
static void draw_parallelepiped (const Parallelepiped &p, const StyleProperties &style=StyleProperties())
 Draws a parallelepiped z+A*[-1,1]^2 on the figure.
static void draw_zonotope (const Zonotope &c, const StyleProperties &style=StyleProperties())
 Draws a zonotope c+sum_i [-1,1] A_i on the figure.
static void draw_pie (const Vector &c, const Interval &r, const Interval &theta, const StyleProperties &style=StyleProperties())
 Draws a pie on the figure.
static void draw_ellipse (const Vector &c, const Vector &ab, double theta, const StyleProperties &style=StyleProperties())
 Draws an ellipse on the figure.
static void draw_ellipsoid (const Ellipsoid &e, const StyleProperties &style=StyleProperties())
 Draws an ellipsoid on the figure.
static void draw_trajectory (const SampledTraj< Vector > &x, const StyleProperties &style=StyleProperties())
 Draws a trajectory on the figure.
static void draw_trajectory (const AnalyticTraj< VectorType > &x, const StyleProperties &style=StyleProperties())
 Draws a trajectory on the figure.
static void draw_trajectory (const SampledTraj< Vector > &x, const StyleGradientProperties &style)
 Draws a trajectory on the figure with a colormap.
static void draw_trajectory (const AnalyticTraj< VectorType > &x, const StyleGradientProperties &style)
 Draws a trajectory on the figure with a colormap.
static void plot_trajectory (const SampledTraj< double > &x, const StyleProperties &style=StyleProperties())
 Plots a trajectory on the figure (x-axis is the time).
static void plot_trajectory (const AnalyticTraj< ScalarType > &x, const StyleProperties &style=StyleProperties())
 Plots a trajectory on the figure (x-axis is the time).
static void plot_trajectories (const SampledTraj< Vector > &x, const StyleProperties &style=StyleProperties())
 Plots a set of trajectories on the figure (x-axis is the time).
static void draw_tube (const SlicedTube< IntervalVector > &x, const StyleProperties &style)
 Draws a tube of IntervalVector on the figure.
static void draw_tube (const SlicedTube< IntervalVector > &x, const StyleGradientProperties &style=StyleGradientProperties(ColorMap::blue_tube(), "z:-1"))
 Draws a tube of IntervalVector on the figure with a colormap.
static void plot_tube (const SlicedTube< Interval > &x, const StyleProperties &style=StyleProperties())
 Plots a tube on the figure (x-axis is the time).
static void plot_tube (const SlicedTube< Interval > &x, const SlicedTube< Interval > &v, const StyleProperties &style=StyleProperties())
 Plots a tube on the figure (x-axis is the time), with derivative information: slices are displayed as polygons.
static void draw_tank (const Vector &x, float size, const StyleProperties &style=StyleProperties())
 Draws a tank on the figure.
static void draw_AUV (const Vector &x, float size, const StyleProperties &style=StyleProperties())
 Draws an AUV on the figure.
static void draw_motor_boat (const Vector &x, float size, const StyleProperties &style=StyleProperties())
 Draws a motor boat on the figure.
static void draw_text (const std::string &text, const Vector &ul, double scale, const StyleProperties &style=StyleProperties())
 Draws text on the figure.
static void draw_raster (const std::string &filename, const IntervalVector &bbox, const StyleProperties &style=StyleProperties())
 Draws a raster on the figure in VIBes only, only the bounding box is drawn in IPE.
static void draw_paving (const PavingOut &p, const PavingStyle &style=PavingStyle::default_style())
 Draws a previously computed paving (outer approximation) on the figure.
static void draw_paving (const PavingOut &p, const std::function< void(Figure2D &, const IntervalVector &, const StyleProperties &)> &draw_box, const PavingStyle &style=PavingStyle::default_style())
 Draws a previously computed paving (outer approximation) on the figure.
static void draw_paving (const PavingInOut &p, const PavingStyle &style=PavingStyle::default_style())
 Draws a previously computed paving (inner/outer approximation) on the figure.
static void draw_paving (const PavingInOut &p, const std::function< void(Figure2D &, const IntervalVector &, const StyleProperties &)> &draw_box, const PavingStyle &style=PavingStyle::default_style())
 Draws a previously computed paving (inner/outer approximation) on the figure.
template<typename C>
static void pave (const IntervalVector &x0, const C &c, double eps, const PavingStyle &style=PavingStyle::default_style())
 Draws a paving from a contractor while it is being computed.
template<typename C>
static void pave (const IntervalVector &x0, const C &c, double eps, const std::function< void(Figure2D &, const IntervalVector &, const StyleProperties &)> &draw_box, const PavingStyle &style=PavingStyle::default_style())
 Draws a paving from a contractor while it is being computed.
template<typename S>
static void pave (const IntervalVector &x0, const S &s, double eps, const PavingStyle &style=PavingStyle::default_style())
 Draws a paving from a separator while it is being computed.
template<typename S>
static void pave (const IntervalVector &x0, const S &s, double eps, const std::function< void(Figure2D &, const IntervalVector &, const StyleProperties &)> &draw_box, const PavingStyle &style=PavingStyle::default_style())
 Draws a paving from a separator while it is being computed.
template<typename P>
static void draw_subpaving (const Subpaving< P > &p, const StyleProperties &style=StyleProperties())
 Draws a subpaving on the figure.

Detailed Description

Default view class, used to manage the default figure.

This class is used to manage the default figure. By default it only interacts with VIBes.

Any figure can be set as the default view.

Member Function Documentation

◆ selected_fig()

std::shared_ptr< Figure2D > codac2::DefaultFigure::selected_fig ( )
inlinestatic

Getter for the default figure.

Returns
The default figure
656 {
657 if(_selected_fig == nullptr)
658 _selected_fig = _default_fig;
659 return _selected_fig;
660 }

◆ set()

void codac2::DefaultFigure::set ( std::shared_ptr< Figure2D > fig)
inlinestatic

Setter for the default figure.

Parameters
figThe new default figure
668 {
669 _selected_fig = fig;
670 }

◆ set_axes() [1/2]

Figure2D & codac2::DefaultFigure::set_axes ( const FigureAxis & axis1,
const FigureAxis & axis2 )
inlinestatic

Setter for the axes of the figure.

Parameters
axis1First axis (horizontal)
axis2Second axis (vertical)
679 {
680 auto_init();
681 return selected_fig()->set_axes(axis1,axis2);
682 }
static std::shared_ptr< Figure2D > selected_fig()
Getter for the default figure.
Definition codac2_Figure2D.h:655

◆ set_axes() [2/2]

Figure2D & codac2::DefaultFigure::set_axes ( const IntervalVector & bbox)
inlinestatic

Setter for the axes of the figure.

Parameters
bboxBounding box
690 {
691 auto_init();
692 return selected_fig()->set_axes(bbox);
693 }

◆ set_window_properties()

void codac2::DefaultFigure::set_window_properties ( const Vector & pos,
const Vector & size )
inlinestatic

Setter for the position and size of the window.

Parameters
posPosition of the window
sizeSize of the window
702 {
703 auto_init();
704 selected_fig()->set_window_properties(pos,size);
705 }

◆ save()

void codac2::DefaultFigure::save ( const std::string & filename)
inlinestatic

Saves the figure to a file.

Parameters
filenameName of the file to save the figure to
731 {
732 auto_init();
733 selected_fig()->save(filename);
734 }

◆ draw_point()

void codac2::DefaultFigure::draw_point ( const Vector & c,
const StyleProperties & style = StyleProperties() )
inlinestatic

Draws a point on the figure.

Parameters
cCoordinates of the point
styleStyle of the point (edge color and fill color)
745 {
746 auto_init();
747 selected_fig()->draw_point(c,style);
748 }

◆ draw_box()

void codac2::DefaultFigure::draw_box ( const IntervalVector & x,
const StyleProperties & style = StyleProperties() )
inlinestatic

Draws a box on the figure.

Parameters
xBox to draw
styleStyle of the box (edge color and fill color)
757 {
758 auto_init();
759 selected_fig()->draw_box(x,style);
760 }

◆ draw_circle()

void codac2::DefaultFigure::draw_circle ( const Vector & c,
double r,
const StyleProperties & style = StyleProperties() )
inlinestatic

Draws a circle on the figure.

Parameters
cCenter of the circle
rRadius of the circle
styleStyle of the circle (edge color and fill color)
770 {
771 auto_init();
772 selected_fig()->draw_circle(c,r,style);
773 }

◆ draw_ring()

void codac2::DefaultFigure::draw_ring ( const Vector & c,
const Interval & r,
const StyleProperties & style = StyleProperties() )
inlinestatic

Draws a ring on the figure.

Parameters
cCenter of the ring
rInner and outer radius of the ring
styleStyle of the ring (edge color and fill color)
783 {
784 auto_init();
785 selected_fig()->draw_ring(c,r,style);
786 }

◆ draw_line() [1/2]

void codac2::DefaultFigure::draw_line ( const Vector & p1,
const Vector & p2,
const StyleProperties & style = StyleProperties() )
inlinestatic

Draws a line on the figure.

Parameters
p1First point of the line
p2Second point of the line
styleStyle of the line (edge color)
796 {
797 auto_init();
798 selected_fig()->draw_line(p1,p2,style);
799 }

◆ draw_line() [2/2]

void codac2::DefaultFigure::draw_line ( const Segment & e,
const StyleProperties & style = StyleProperties() )
inlinestatic

Draws a line on the figure.

Parameters
esegment to be drawn
styleStyle of the line (edge color)
808 {
809 auto_init();
810 selected_fig()->draw_line(e,style);
811 }

◆ draw_arrow()

void codac2::DefaultFigure::draw_arrow ( const Vector & p1,
const Vector & p2,
float tip_length,
const StyleProperties & style = StyleProperties() )
inlinestatic

Draws an arrow on the figure.

Parameters
p1First point of the arrow
p2Second point of the arrow
tip_lengthLength of the tip of the arrow
styleStyle of the arrow (edge color and fill color)
822 {
823 auto_init();
824 selected_fig()->draw_arrow(p1,p2,tip_length,style);
825 }

◆ draw_polyline() [1/2]

void codac2::DefaultFigure::draw_polyline ( const std::vector< Vector > & x,
const StyleProperties & style = StyleProperties() )
inlinestatic

Draws a polyline on the figure.

Parameters
xVector of the points of the polyline
styleStyle of the polyline (edge color)
834 {
835 auto_init();
836 selected_fig()->draw_polyline(x,style);
837 }

◆ draw_polyline() [2/2]

void codac2::DefaultFigure::draw_polyline ( const std::vector< Vector > & x,
float tip_length,
const StyleProperties & style = StyleProperties() )
inlinestatic

Draws a polyline on the figure.

Parameters
xVector of the points of the polyline
tip_lengthLength of the tip of the arrow
styleStyle of the polyline (edge color and fill color)
847 {
848 auto_init();
849 selected_fig()->draw_polyline(x,tip_length,style);
850 }

◆ draw_polygon()

void codac2::DefaultFigure::draw_polygon ( const Polygon & x,
const StyleProperties & style = StyleProperties() )
inlinestatic

Draws a Polygon object on the figure.

Parameters
xthe Polygon object to be drawn
styleStyle of the polygone (edge color and fill color)
859 {
860 auto_init();
861 selected_fig()->draw_polygon(x,style);
862 }

◆ draw_parallelepiped()

void codac2::DefaultFigure::draw_parallelepiped ( const Parallelepiped & p,
const StyleProperties & style = StyleProperties() )
inlinestatic

Draws a parallelepiped z+A*[-1,1]^2 on the figure.

Parameters
pParallelepiped to draw (center and shape matrix)
styleStyle of the parallelepiped (edge color and fill color)
871 {
872 auto_init();
873 selected_fig()->draw_parallelepiped(p,style);
874 }

◆ draw_zonotope()

void codac2::DefaultFigure::draw_zonotope ( const Zonotope & c,
const StyleProperties & style = StyleProperties() )
inlinestatic

Draws a zonotope c+sum_i [-1,1] A_i on the figure.

Parameters
cZonotope to draw (center and shape matrix)
styleStyle of the zonotope (edge color and fill color)
883 {
884 auto_init();
885 selected_fig()->draw_zonotope(c,style);
886 }

◆ draw_pie()

void codac2::DefaultFigure::draw_pie ( const Vector & c,
const Interval & r,
const Interval & theta,
const StyleProperties & style = StyleProperties() )
inlinestatic

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)
styleStyle of the pie (edge color and fill color)
897 {
898 auto_init();
899 selected_fig()->draw_pie(c,r,theta,style);
900 }

◆ draw_ellipse()

void codac2::DefaultFigure::draw_ellipse ( const Vector & c,
const Vector & ab,
double theta,
const StyleProperties & style = StyleProperties() )
inlinestatic

Draws an ellipse on the figure.

Parameters
cCenter of the ellipse
abHalf-lengths of the ellipse
thetaRotation angle of the ellipse (in radians)
styleStyle of the ellipse (edge color and fill color)
911 {
912 auto_init();
913 selected_fig()->draw_ellipse(c,ab,theta,style);
914 }

◆ draw_ellipsoid()

void codac2::DefaultFigure::draw_ellipsoid ( const Ellipsoid & e,
const StyleProperties & style = StyleProperties() )
inlinestatic

Draws an ellipsoid on the figure.

Parameters
eEllipsoid to draw
styleStyle of the ellipsoid (edge color and fill color)
923 {
924 auto_init();
925 selected_fig()->draw_ellipsoid(e,style);
926 }

◆ draw_trajectory() [1/4]

void codac2::DefaultFigure::draw_trajectory ( const SampledTraj< Vector > & x,
const StyleProperties & style = StyleProperties() )
inlinestatic

Draws a trajectory on the figure.

Parameters
xTrajectory to draw
styleStyle of the trajectory (edge color)
935 {
936 auto_init();
937 selected_fig()->draw_trajectory(x,style);
938 }

◆ draw_trajectory() [2/4]

void codac2::DefaultFigure::draw_trajectory ( const AnalyticTraj< VectorType > & x,
const StyleProperties & style = StyleProperties() )
inlinestatic

Draws a trajectory on the figure.

Parameters
xAnalyticTraj to draw
styleStyle of the trajectory (edge color)
947 {
948 auto_init();
949 selected_fig()->draw_trajectory(x,style);
950 }

◆ draw_trajectory() [3/4]

void codac2::DefaultFigure::draw_trajectory ( const SampledTraj< Vector > & x,
const StyleGradientProperties & style )
inlinestatic

Draws a trajectory on the figure with a colormap.

Parameters
xSampledTraj to draw
styleStyleGradientProperties to use
959 {
960 auto_init();
961 selected_fig()->draw_trajectory(x,style);
962 }

◆ draw_trajectory() [4/4]

void codac2::DefaultFigure::draw_trajectory ( const AnalyticTraj< VectorType > & x,
const StyleGradientProperties & style )
inlinestatic

Draws a trajectory on the figure with a colormap.

Parameters
xAnalyticTraj to draw
styleStyleGradientProperties to use
971 {
972 auto_init();
973 selected_fig()->draw_trajectory(x,style);
974 }

◆ plot_trajectory() [1/2]

void codac2::DefaultFigure::plot_trajectory ( const SampledTraj< double > & x,
const StyleProperties & style = StyleProperties() )
inlinestatic

Plots a trajectory on the figure (x-axis is the time).

Parameters
xSampledTraj to plot
styleStyle of the trajectory (edge color)
983 {
984 auto_init();
985 selected_fig()->plot_trajectory(x,style);
986 }

◆ plot_trajectory() [2/2]

void codac2::DefaultFigure::plot_trajectory ( const AnalyticTraj< ScalarType > & x,
const StyleProperties & style = StyleProperties() )
inlinestatic

Plots a trajectory on the figure (x-axis is the time).

Parameters
xAnalyticTraj to plot
styleStyle of the trajectory (edge color)
995 {
996 auto_init();
997 selected_fig()->plot_trajectory(x,style);
998 }

◆ plot_trajectories()

void codac2::DefaultFigure::plot_trajectories ( const SampledTraj< Vector > & x,
const StyleProperties & style = StyleProperties() )
inlinestatic

Plots a set of trajectories on the figure (x-axis is the time).

Parameters
xSampledTraj<Vector> set of trajectories to plot
styleStyle of the trajectory (edge color)
1007 {
1008 auto_init();
1009 selected_fig()->plot_trajectories(x,style);
1010 }

◆ draw_tube() [1/2]

void codac2::DefaultFigure::draw_tube ( const SlicedTube< IntervalVector > & x,
const StyleProperties & style )
inlinestatic

Draws a tube of IntervalVector on the figure.

Parameters
xSlicedTube to draw
styleStyle of the tube
1019 {
1020 auto_init();
1021 selected_fig()->draw_tube(x,style);
1022 }

◆ draw_tube() [2/2]

void codac2::DefaultFigure::draw_tube ( const SlicedTube< IntervalVector > & x,
const StyleGradientProperties & style = StyleGradientProperties(ColorMap::blue_tube(), "z:-1") )
inlinestatic

Draws a tube of IntervalVector on the figure with a colormap.

Parameters
xSlicedTube to draw
styleStyleGradientProperties to use
1030 :-1"))
1031 {
1032 auto_init();
1033 selected_fig()->draw_tube(x,style);
1034 }

◆ plot_tube() [1/2]

void codac2::DefaultFigure::plot_tube ( const SlicedTube< Interval > & x,
const StyleProperties & style = StyleProperties() )
inlinestatic

Plots a tube on the figure (x-axis is the time).

Parameters
xSlicedTube to plot
styleStyle of the tube (edge color)
1043 {
1044 auto_init();
1045 selected_fig()->plot_tube(x,style);
1046 }

◆ plot_tube() [2/2]

void codac2::DefaultFigure::plot_tube ( const SlicedTube< Interval > & x,
const SlicedTube< Interval > & v,
const StyleProperties & style = StyleProperties() )
inlinestatic

Plots a tube on the figure (x-axis is the time), with derivative information: slices are displayed as polygons.

Parameters
xSlicedTube to plot
vderivative tube of the SlicedTube to plot
styleStyle of the tube (edge color)
1057 {
1058 auto_init();
1059 selected_fig()->plot_tube(x,v,style);
1060 }

◆ draw_tank()

void codac2::DefaultFigure::draw_tank ( const Vector & x,
float size,
const StyleProperties & style = StyleProperties() )
inlinestatic

Draws a tank on the figure.

Parameters
xCoordinates of the tank
sizeSize of the tank
styleStyle of the tank (edge color and fill color)
1072 {
1073 auto_init();
1074 selected_fig()->draw_tank(x,size,style);
1075 }

◆ draw_AUV()

void codac2::DefaultFigure::draw_AUV ( const Vector & x,
float size,
const StyleProperties & style = StyleProperties() )
inlinestatic

Draws an AUV on the figure.

Parameters
xCoordinates of the AUV
sizeSize of the AUV
styleStyle of the AUV (edge color and fill color)
1085 {
1086 auto_init();
1087 selected_fig()->draw_AUV(x,size,style);
1088 }

◆ draw_motor_boat()

void codac2::DefaultFigure::draw_motor_boat ( const Vector & x,
float size,
const StyleProperties & style = StyleProperties() )
inlinestatic

Draws a motor boat on the figure.

Parameters
xCoordinates of the motor boat
sizeSize of the motor boat
styleStyle of the motor boat (edge color and fill color)
1098 {
1099 auto_init();
1100 selected_fig()->draw_motor_boat(x,size,style);
1101 }

◆ draw_text()

void codac2::DefaultFigure::draw_text ( const std::string & text,
const Vector & ul,
double scale,
const StyleProperties & style = StyleProperties() )
inlinestatic

Draws text on the figure.

Parameters
textText to display
ulPosition of the top-left corner of the text
scaleScaling of the text (VIBes only)
styleStyle of the text (edge color, layer)
1114 {
1115 auto_init();
1116 selected_fig()->draw_text(text,ul,scale,style);
1117 }

◆ draw_raster()

void codac2::DefaultFigure::draw_raster ( const std::string & filename,
const IntervalVector & bbox,
const StyleProperties & style = StyleProperties() )
inlinestatic

Draws a raster on the figure in VIBes only, only the bounding box is drawn in IPE.

Parameters
filenameThe name of the file, the path is relative to the VIBes' server folder
bboxThe bounding box of the raster
styleStyle of the raster (only the layer is used)
1127 {
1128 auto_init();
1129 selected_fig()->draw_raster(filename,bbox,style);
1130 }

◆ draw_paving() [1/4]

void codac2::DefaultFigure::draw_paving ( const PavingOut & p,
const PavingStyle & style = PavingStyle::default_style() )
inlinestatic

Draws a previously computed paving (outer approximation) on the figure.

Parameters
pPavingOut to draw (result of a paving with contractors)
stylePavingStyle for the drawing
1153 {
1154 if(auto_init())
1155 init_axes_paving(p.tree()->hull());
1156 selected_fig()->draw_paving(p, style);
1157 }

◆ draw_paving() [2/4]

void codac2::DefaultFigure::draw_paving ( const PavingOut & p,
const std::function< void(Figure2D &, const IntervalVector &, const StyleProperties &)> & draw_box,
const PavingStyle & style = PavingStyle::default_style() )
inlinestatic

Draws a previously computed paving (outer approximation) on the figure.

Parameters
pPavingOut to draw (result of a paving with contractors)
draw_boxCustom drawing function (for instance, if one wants to draw in polar coordinates)
stylePavingStyle for the drawing
1169 {
1170 if(auto_init())
1171 init_axes_paving(p.tree()->hull());
1172 selected_fig()->draw_paving(p, draw_box, style);
1173 }
static void draw_box(const IntervalVector &x, const StyleProperties &style=StyleProperties())
Draws a box on the figure.
Definition codac2_Figure2D.h:756

◆ draw_paving() [3/4]

void codac2::DefaultFigure::draw_paving ( const PavingInOut & p,
const PavingStyle & style = PavingStyle::default_style() )
inlinestatic

Draws a previously computed paving (inner/outer approximation) on the figure.

Parameters
pPavingInOut to draw (result of a paving with separators)
stylePavingStyle for the drawing
1183 {
1184 if(auto_init())
1185 init_axes_paving(p.tree()->hull());
1186 selected_fig()->draw_paving(p, style);
1187 }

◆ draw_paving() [4/4]

void codac2::DefaultFigure::draw_paving ( const PavingInOut & p,
const std::function< void(Figure2D &, const IntervalVector &, const StyleProperties &)> & draw_box,
const PavingStyle & style = PavingStyle::default_style() )
inlinestatic

Draws a previously computed paving (inner/outer approximation) on the figure.

Parameters
pPavingInOut to draw (result of a paving with separators)
draw_boxCustom drawing function (for instance, if one wants to draw in polar coordinates)
stylePavingStyle for the drawing
1199 {
1200 if(auto_init())
1201 init_axes_paving(p.tree()->hull());
1202 selected_fig()->draw_paving(p, draw_box, style);
1203 }

◆ pave() [1/4]

template<typename C>
void codac2::DefaultFigure::pave ( const IntervalVector & x0,
const C & c,
double eps,
const PavingStyle & style = PavingStyle::default_style() )
inlinestatic

Draws a paving from a contractor while it is being computed.

Parameters
x0Initial box
cContractor to be paved
epsAccuracy of the paving algorithm (the undefined boxes will have their max_diam <= eps)
stylePavingStyle for the drawing
1217 {
1218 if(auto_init())
1219 init_axes_paving(x0);
1220 selected_fig()->pave(x0, c, eps, style);
1221 }

◆ pave() [2/4]

template<typename C>
void codac2::DefaultFigure::pave ( const IntervalVector & x0,
const C & c,
double eps,
const std::function< void(Figure2D &, const IntervalVector &, const StyleProperties &)> & draw_box,
const PavingStyle & style = PavingStyle::default_style() )
inlinestatic

Draws a paving from a contractor while it is being computed.

Parameters
x0Initial box
cContractor to be paved
epsAccuracy of the paving algorithm (the undefined boxes will have their max_diam <= eps)
draw_boxOptional custom drawing function (for instance, if one wants to draw in polar coordinates)
stylePavingStyle for the drawing
1237 {
1238 if(auto_init())
1239 init_axes_paving(x0);
1240 selected_fig()->pave(x0, c, eps, draw_box, style);
1241 }

◆ pave() [3/4]

template<typename S>
void codac2::DefaultFigure::pave ( const IntervalVector & x0,
const S & s,
double eps,
const PavingStyle & style = PavingStyle::default_style() )
inlinestatic

Draws a paving from a separator while it is being computed.

Parameters
x0Initial box
sSeparator to be paved
epsAccuracy of the paving algorithm (the undefined boxes will have their max_diam <= eps)
stylePavingStyle for the drawing
1255 {
1256 if(auto_init())
1257 init_axes_paving(x0);
1258 selected_fig()->pave(x0, s, eps, style);
1259 }

◆ pave() [4/4]

template<typename S>
void codac2::DefaultFigure::pave ( const IntervalVector & x0,
const S & s,
double eps,
const std::function< void(Figure2D &, const IntervalVector &, const StyleProperties &)> & draw_box,
const PavingStyle & style = PavingStyle::default_style() )
inlinestatic

Draws a paving from a separator while it is being computed.

Parameters
x0Initial box
sSeparator to be paved
epsAccuracy of the paving algorithm (the undefined boxes will have their max_diam <= eps)
draw_boxOptional custom drawing function (for instance, if one wants to draw in polar coordinates)
stylePavingStyle for the drawing
1275 {
1276 if(auto_init())
1277 init_axes_paving(x0);
1278 selected_fig()->pave(x0, s, eps, draw_box, style);
1279 }

◆ draw_subpaving()

template<typename P>
void codac2::DefaultFigure::draw_subpaving ( const Subpaving< P > & p,
const StyleProperties & style = StyleProperties() )
inlinestatic

Draws a subpaving on the figure.

Parameters
pSubpaving to draw
styleStyle of the subpaving
1289 {
1290 auto_init();
1291 selected_fig()->draw_subpaving(p, style);
1292 }

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