38 #include <visp3/core/vpConfig.h>
40 #ifndef DOXYGEN_SHOULD_SKIP_THIS
42 #include <visp3/gui/vpDisplayD3D.h>
43 #include <visp3/gui/vpDisplayGDI.h>
44 #include <visp3/gui/vpDisplayGTK.h>
45 #include <visp3/gui/vpDisplayOpenCV.h>
46 #include <visp3/gui/vpDisplayX.h>
47 #include <visp3/gui/vpPlotCurve.h>
49 #if defined(VISP_HAVE_DISPLAY)
50 vpPlotCurve::vpPlotCurve()
51 : color(
vpColor::red), curveStyle(point), thickness(1), nbPoint(0), lastPoint(), pointListx(), pointListy(),
52 pointListz(), legend(), xmin(0), xmax(0), ymin(0), ymax(0)
56 vpPlotCurve::~vpPlotCurve()
70 #if defined(VISP_HAVE_DISPLAY)
76 if (iP.
get_i() <= lastPoint.get_i()) {
78 height = lastPoint.get_i() - top + 10;
80 top = lastPoint.get_i() - 5;
81 height = iP.
get_i() - top + 10;
83 if (iP.
get_j() <= lastPoint.get_j()) {
84 left = iP.
get_j() - 5;
85 width = lastPoint.get_j() - left + 10;
87 left = lastPoint.get_j() - 5;
88 width = iP.
get_j() - left + 10;
93 pointListx.push_back(x);
94 pointListy.push_back(y);
95 pointListz.push_back(0.0);
98 void vpPlotCurve::plotList(
const vpImage<unsigned char> &I,
const double xorg,
const double yorg,
const double zoomx,
101 std::list<double>::const_iterator it_ptListx = pointListx.begin();
102 std::list<double>::const_iterator it_ptListy = pointListy.begin();
106 while (k < nbPoint) {
107 iP.
set_ij(yorg - (zoomy * (*it_ptListy)), xorg + (zoomx * (*it_ptListx)));
120 #elif !defined(VISP_BUILD_SHARED_LIBS)
123 void dummy_vpPlotCurve(){};