41 #include <visp3/core/vpConfig.h>
42 #include <visp3/core/vpTime.h>
43 #include <visp3/gui/vpPlot.h>
45 #ifndef DOXYGEN_SHOULD_SKIP_THIS
49 for (
int i = 0; i < n; ++i)
50 for (
int j = 0; j < m; ++j)
51 M[i][j] = (2. * rand()) / RAND_MAX - 1;
58 for (
int i = 0; i < n; ++i)
59 M[i] = (2. * rand()) / RAND_MAX - 1;
63 #ifdef VISP_HAVE_DISPLAY
67 virtual ~QPlot() {
delete P; }
68 QPlot(
int graphNum,
int total, std::vector<std::string> legend)
70 P =
new vpPlot(graphNum, 700, 700, 100, 200,
"Resolution time");
72 for (
int i = 0; i < graphNum; ++i) {
76 P->setGraphThickness(i, 2);
77 P->initRange(i, 0, total, 0, 0.1);
79 P->setTitle(i, legend[2 * i]);
80 P->setLegend(i, 0,
"without " + legend[2 * i + 1]);
81 P->setLegend(i, 1, legend[2 * i + 1]);
87 void wait() { P->I.display->getClick(); }
92 QPlot(
const QPlot &qplot);
95 class VISP_EXPORT QPPlot
98 QPPlot(
int,
int, std::vector<std::string>) { }
99 void plot(
int,
int,
int,
double) { }
Implementation of column vector and the associated operations.
static const vpColor blue
Implementation of a matrix and operations on matrices.
This class enables real time drawing of 2D or 3D graphics. An instance of the class open a window whi...
VISP_EXPORT int wait(double t0, double t)
VISP_EXPORT double measureTimeMs()