41 #include <visp/vpConfig.h>
42 #ifndef DOXYGEN_SHOULD_SKIP_THIS
45 #include <visp/vpPlotCurve.h>
46 #include <visp/vpDisplayOpenCV.h>
47 #include <visp/vpDisplayX.h>
48 #include <visp/vpDisplayGDI.h>
50 #if defined(VISP_HAVE_X11) || defined(VISP_HAVE_GDI) || defined(VISP_HAVE_OPENCV)
51 vpPlotCurve::vpPlotCurve()
61 vpPlotCurve::~vpPlotCurve()
77 #if( defined (VISP_HAVE_X11) || defined (VISP_HAVE_GDI) || defined (VISP_HAVE_OPENCV) )
83 if (iP.
get_i() <= lastPoint.get_i()) {top = iP.
get_i()-5; height = lastPoint.get_i() - top+10;}
84 else {top = lastPoint.get_i()-5; height = iP.
get_i() - top+10;}
85 if (iP.
get_j() <= lastPoint.get_j()) {left = iP.
get_j()-5; width = lastPoint.get_j() - left+10;}
86 else {left = lastPoint.get_j()-5; width = iP.
get_j() - left+10;}
90 pointListx.push_back(x);
91 pointListy.push_back(y);
92 pointListz.push_back(0.0);
96 vpPlotCurve::plotList(
const vpImage<unsigned char> &I,
const double xorg,
const double yorg,
const double zoomx,
const double zoomy)
98 std::list<double>::const_iterator it_ptListx = pointListx.begin();
99 std::list<double>::const_iterator it_ptListy = pointListy.begin();
105 iP.
set_ij(yorg-(zoomy*(*it_ptListy)),xorg+(zoomx*(*it_ptListx)));
void set_ij(const double i, const double j)
Defines a rectangle in the plane.
static void flushROI(const vpImage< unsigned char > &I, const vpRect &roi)
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
virtual void displayLine(const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1)=0