12 #ifndef __CODAC_VIBESFIG_H__ 13 #define __CODAC_VIBESFIG_H__ 17 #include "codac_ThickPoint.h" 18 #include "codac_Polygon.h" 19 #include "codac_ConvexPolygon.h" 21 #include "codac_ConvexPolygon.h" 22 #include "codac_polygon_arithmetic.h" 49 VIBesFig(
const std::string& fig_name);
69 void set_properties(
int x,
int y,
int width,
int height);
76 void set_background(
const std::string& bg_color);
92 const IntervalVector& axis_limits(
double x_min,
double x_max,
double y_min,
double y_max,
bool same_ratio =
false,
float margin = 0.);
105 const IntervalVector& axis_limits(
const IntervalVector& viewbox,
bool same_ratio =
false,
float margin = 0.);
120 void save_image(
const std::string& suffix =
"",
const std::string& extension =
"svg",
const std::string& path =
".")
const;
146 void draw_box(
const IntervalVector& box,
const vibes::Params& params);
155 void draw_box(
const IntervalVector& box,
const std::string& color =
"",
const vibes::Params& params = vibes::Params());
163 void draw_boxes(
const std::vector<IntervalVector>& v_boxes,
const vibes::Params& params);
172 void draw_boxes(
const std::vector<IntervalVector>& v_boxes,
const std::string& color =
"",
const vibes::Params& params = vibes::Params());
181 void draw_line(
const std::vector<double>& v_x,
const std::vector<double>& v_y,
const vibes::Params& params);
191 void draw_line(
const std::vector<double>& v_x,
const std::vector<double>& v_y,
const std::string& color =
"",
const vibes::Params& params = vibes::Params());
199 void draw_line(
const std::vector<std::vector<double> >& v_pts,
const vibes::Params& params);
208 void draw_line(
const std::vector<std::vector<double> >& v_pts,
const std::string& color =
"",
const vibes::Params& params = vibes::Params());
218 void draw_circle(
double x,
double y,
double r,
const vibes::Params& params);
229 void draw_circle(
double x,
double y,
double r,
const std::string& color =
"",
const vibes::Params& params = vibes::Params());
239 void draw_ring(
double x,
double y,
const Interval& r,
const vibes::Params& params);
250 void draw_ring(
double x,
double y,
const Interval& r,
const std::string& color =
"",
const vibes::Params& params = vibes::Params());
261 void draw_pie(
double x,
double y,
const Interval& r,
const Interval& theta,
const vibes::Params& params);
273 void draw_pie(
double x,
double y,
const Interval& r,
const Interval& theta,
const std::string& color =
"",
const vibes::Params& params = vibes::Params());
281 void draw_edge(
const ThickEdge& e,
const vibes::Params& params);
290 void draw_edge(
const ThickEdge& e,
const std::string& color =
"",
const vibes::Params& params = vibes::Params());
298 void draw_polygon(
const Polygon& p,
const vibes::Params& params);
307 void draw_polygon(
const Polygon& p,
const std::string& color =
"",
const vibes::Params& params = vibes::Params());
315 void draw_polygons(
const std::vector<ConvexPolygon>& v_p,
const vibes::Params& params);
324 void draw_polygons(
const std::vector<ConvexPolygon>& v_p,
const std::string& color =
"",
const vibes::Params& params = vibes::Params());
333 void draw_polygons(
const std::vector<ConvexPolygon>& v_p,
const ColorMap& color_map,
const vibes::Params& params = vibes::Params());
334 void draw_polygon_tube(
const codac2::Tube<ConvexPolygon>& x,
const ColorMap& color_map,
const vibes::Params& params = vibes::Params());
342 void draw_point(
const ThickPoint& p,
const vibes::Params& params);
351 void draw_point(
const ThickPoint& p,
const std::string& color =
"",
const vibes::Params& params = vibes::Params());
360 void draw_point(
const ThickPoint& p,
float size,
const vibes::Params& params);
370 void draw_point(
const ThickPoint& p,
float size,
const std::string& color =
"",
const vibes::Params& params = vibes::Params());
379 void draw_points(
const std::vector<ThickPoint>& v_pts,
float size,
const vibes::Params& params);
389 void draw_points(
const std::vector<ThickPoint>& v_pts,
float size,
const std::string& color =
"",
const vibes::Params& params = vibes::Params());
400 void draw_vehicle(
double x,
double y,
double heading,
double size,
const vibes::Params& params);
412 void draw_vehicle(
double x,
double y,
double heading,
double size,
const std::string& color =
"",
const vibes::Params& params = vibes::Params());
FixPoint of a separator The fixpoint of a separator is computed by calling the "::"separate function ...
Definition: codac_capd_helpers.h:9
Definition: codac2_Action.h:19
void show()
Displays this figure.
Definition: codac_VIBesFig.h:129
Associates colors to a range of values.
Definition: codac_ColorMap.h:31
Two-dimensional graphical item based on the VIBes viewer.
Definition: codac_VIBesFig.h:37