#include <OpenGL_API.hh>
|
| APIopenGL3D ()=delete |
|
| APIopenGL3D (double minX, double maxX, double minY, double maxY, double minZ, double maxZ, int ref_time_ms, int *argc, char **argv) |
|
| ~APIopenGL3D () override |
|
uint | draw_line (const Point3D &point1, const Point3D &point2, const std::string &color) override |
| draws line between 2 points More...
|
|
uint | draw_polygonal_chain (const std::vector< Point3D > &points, const std::string &color) override |
| draws polygonal_chain between n points More...
|
|
uint | draw_polyhedron (const std::vector< std::vector< Point3D > > &points_map, const std::string &color) override |
| draws polyhedron described by its apexs More...
|
|
uint | draw_surface (const std::vector< std::vector< Point3D > > &points_map, const std::string &color) override |
| draws surface described by its points More...
|
|
void | erase_shape (uint id) override |
| erase shape by id More...
|
|
void | change_shape_color (uint id, const std::string &color) override |
| change color of shape More...
|
|
void | change_ref_time_ms (int ref_time_ms) override |
| change mode for ploting and/or time between auto-replots More...
|
|
void | redraw () override |
| replot all shapes Replots all shapes, works only in negative refresh_rate_ms value mode. More...
|
|
| Draw3DAPI (int ref_time_ms=0) |
| Constructor. More...
|
|
virtual | ~Draw3DAPI () |
|
drawNS::APIopenGL3D::APIopenGL3D |
( |
| ) |
|
|
delete |
APIopenGL3D::APIopenGL3D |
( |
double |
minX, |
|
|
double |
maxX, |
|
|
double |
minY, |
|
|
double |
maxY, |
|
|
double |
minZ, |
|
|
double |
maxZ, |
|
|
int |
ref_time_ms, |
|
|
int * |
argc, |
|
|
char ** |
argv |
|
) |
| |
drawNS::APIopenGL3D::~APIopenGL3D |
( |
| ) |
|
|
inlineoverride |
void APIopenGL3D::change_ref_time_ms |
( |
int |
ref_time_ms | ) |
|
|
overridevirtual |
change mode for ploting and/or time between auto-replots
- Parameters
-
ref_time_ms | - mode for plotting (negative, 0, positive, see refresh_rate_ms) and time between auto-replots (in miliseconds). |
Implements drawNS::Draw3DAPI.
void APIopenGL3D::change_shape_color |
( |
uint |
id, |
|
|
const std::string & |
color |
|
) |
| |
|
overridevirtual |
change color of shape
- Parameters
-
id | - id of shape |
color | - color of line (see class description) |
Implements drawNS::Draw3DAPI.
uint APIopenGL3D::draw_line |
( |
const Point3D & |
point1, |
|
|
const Point3D & |
point2, |
|
|
const std::string & |
color |
|
) |
| |
|
overridevirtual |
draws line between 2 points
- Parameters
-
point1 | - first point |
point2 | - second point |
color | - color of line (see class description) |
- Returns
- id of shape (see erase_shape, change_shape_color)
Implements drawNS::Draw3DAPI.
uint APIopenGL3D::draw_polygonal_chain |
( |
const std::vector< Point3D > & |
points, |
|
|
const std::string & |
color |
|
) |
| |
|
overridevirtual |
draws polygonal_chain between n points
- Parameters
-
points | - vector of points |
color | - color of line (see class description) |
- Returns
- id of shape (see erase_shape, change_shape_color)
Implements drawNS::Draw3DAPI.
uint APIopenGL3D::draw_polyhedron |
( |
const std::vector< std::vector< Point3D > > & |
points_map, |
|
|
const std::string & |
color |
|
) |
| |
|
overridevirtual |
draws polyhedron described by its apexs
- Parameters
-
points_map | - vector of points vectors. Every vector contains points describes one "layer" of polyhedron |
color | - color of line (see class description) |
- Returns
- id of shape (see erase_shape, change_shape_color)
Implements drawNS::Draw3DAPI.
uint APIopenGL3D::draw_surface |
( |
const std::vector< std::vector< Point3D > > & |
points_map, |
|
|
const std::string & |
color |
|
) |
| |
|
overridevirtual |
draws surface described by its points
- Parameters
-
points_map | - vector of points vectors. Every vector contains points describes one "line" in surface |
color | - color of line (see class description) |
- Returns
- id of shape (see erase_shape, change_shape_color)
Implements drawNS::Draw3DAPI.
void APIopenGL3D::erase_shape |
( |
uint |
id | ) |
|
|
overridevirtual |
void APIopenGL3D::redraw |
( |
| ) |
|
|
overridevirtual |
replot all shapes Replots all shapes, works only in negative refresh_rate_ms value mode.
Implements drawNS::Draw3DAPI.
The documentation for this class was generated from the following files: