44 #include <visp3/core/vpConfig.h> 45 #include <visp3/core/vpTime.h> 46 #include <visp3/gui/vpPlot.h> 48 #ifndef DOXYGEN_SHOULD_SKIP_THIS 52 for(
int i = 0; i < n; ++i)
53 for(
int j = 0; j < m; ++j)
54 M[i][j] = (2.*rand())/RAND_MAX -1;
61 for(
int i = 0; i < n; ++i)
62 M[i] = (2.*rand())/RAND_MAX -1;
66 #ifdef VISP_HAVE_DISPLAY 70 virtual ~QPlot() {
delete P; }
71 QPlot(
int graphNum,
int total, std::vector<std::string> legend)
73 P =
new vpPlot(graphNum, 700, 700, 100, 200,
"Resolution time");
75 for(
int i = 0; i < graphNum; ++i)
80 P->setGraphThickness(i,2);
81 P->initRange(i, 0, total, 0, 0.1);
83 P->setTitle(i, legend[2*i]);
84 P->setLegend(i, 0,
"without " + legend[2*i+1]);
85 P->setLegend(i, 1, legend[2*i+1]);
89 void plot(
int g,
int c,
int i,
double t)
96 P->I.display->getClick();
102 QPlot(
const QPlot &qplot);
105 class VISP_EXPORT QPPlot
108 QPPlot(
int,
int , std::vector<std::string> ) {}
109 void plot(
int ,
int ,
int ,
double ) {}
113 #endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS Implementation of a matrix and operations on matrices.
VISP_EXPORT int wait(double t0, double t)
VISP_EXPORT double measureTimeMs()
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...
static const vpColor blue