 |
Visual Servoing Platform
version 3.3.0
|
44 #include <visp3/core/vpConfig.h>
45 #include <visp3/core/vpTime.h>
46 #include <visp3/gui/vpPlot.h>
51 for(
int i = 0; i < n; ++i)
52 for(
int j = 0; j < m; ++j)
53 M[i][j] = (2.*rand())/RAND_MAX -1;
60 for(
int i = 0; i < n; ++i)
61 M[i] = (2.*rand())/RAND_MAX -1;
65 #ifdef VISP_HAVE_DISPLAY
70 QPlot(
int graphNum,
int total, std::vector<std::string> legend)
72 P =
new vpPlot(graphNum, 700, 700, 100, 200,
"Resolution time");
74 for(
int i = 0; i < graphNum; ++i)
83 P->
setLegend(i, 0,
"without " + legend[2*i+1]);
88 void plot(
int g,
int c,
int i,
double t)
104 class VISP_EXPORT QPPlot
107 QPPlot(
int,
int , std::vector<std::string> ) {}
108 void plot(
int ,
int ,
int ,
double ) {}
QPlot(int graphNum, int total, std::vector< std::string > legend)
VISP_EXPORT int wait(double t0, double t)
void setColor(unsigned int graphNum, unsigned int curveNum, vpColor color)
void initRange(unsigned int graphNum, double xmin, double xmax, double ymin, double ymax)
vpImage< unsigned char > I
static const vpColor blue
Implementation of column vector and the associated operations.
Implementation of a matrix and operations on matrices.
VISP_EXPORT double measureTimeMs()
void setUnitY(unsigned int graphNum, const std::string &unity)
void setLegend(unsigned int graphNum, unsigned int curveNum, const std::string &legend)
void plot(int g, int c, int i, double t)
void setTitle(unsigned int graphNum, const std::string &title)
void plot(unsigned int graphNum, unsigned int curveNum, double x, double y)
void initGraph(unsigned int graphNum, unsigned int curveNbr)
static bool getClick(const vpImage< unsigned char > &I, bool blocking=true)
This class enables real time drawing of 2D or 3D graphics. An instance of the class open a window whi...
void setGraphThickness(unsigned int graphNum, unsigned int thickness)