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 ) {}
Implementation of a matrix and operations on matrices.
void initRange(const unsigned int graphNum, double xmin, double xmax, double ymin, double ymax)
void setColor(const unsigned int graphNum, const unsigned int curveNum, vpColor color)
static bool getClick(const vpImage< unsigned char > &I, bool blocking=true)
QPlot(int graphNum, int total, std::vector< std::string > legend)
vpImage< unsigned char > I
void plot(const unsigned int graphNum, const unsigned int curveNum, const double x, const double y)
void setUnitY(const unsigned int graphNum, const std::string &unity)
void setTitle(const unsigned int graphNum, const std::string &title)
VISP_EXPORT double measureTimeMs()
void plot(int g, int c, int i, double t)
void setLegend(const unsigned int graphNum, const unsigned int curveNum, const std::string &legend)
void initGraph(unsigned int graphNum, unsigned int curveNbr)
Implementation of column vector and the associated operations.
This class enables real time drawing of 2D or 3D graphics. An instance of the class open a window whi...
void setGraphThickness(const unsigned int graphNum, const unsigned int thickness)
static const vpColor blue