37 #include <visp3/core/vpConfig.h>
39 #ifndef DOXYGEN_SHOULD_SKIP_THIS
41 #include <visp3/gui/vpPlotCurve.h>
42 #include <visp3/gui/vpDisplayOpenCV.h>
43 #include <visp3/gui/vpDisplayX.h>
44 #include <visp3/gui/vpDisplayGDI.h>
45 #include <visp3/gui/vpDisplayGTK.h>
46 #include <visp3/gui/vpDisplayD3D.h>
48 #if defined(VISP_HAVE_DISPLAY)
49 vpPlotCurve::vpPlotCurve() :
50 color(
vpColor::red), curveStyle(point), thickness(1), nbPoint(0), lastPoint(),
51 pointListx(), pointListy(), pointListz(), legend(), xmin(0), xmax(0), ymin(0), ymax(0)
55 vpPlotCurve::~vpPlotCurve()
71 #if defined (VISP_HAVE_DISPLAY)
77 if (iP.
get_i() <= lastPoint.get_i()) {top = iP.
get_i()-5; height = lastPoint.get_i() - top+10;}
78 else {top = lastPoint.get_i()-5; height = iP.
get_i() - top+10;}
79 if (iP.
get_j() <= lastPoint.get_j()) {left = iP.
get_j()-5; width = lastPoint.get_j() - left+10;}
80 else {left = lastPoint.get_j()-5; width = iP.
get_j() - left+10;}
84 pointListx.push_back(x);
85 pointListy.push_back(y);
86 pointListz.push_back(0.0);
90 vpPlotCurve::plotList(
const vpImage<unsigned char> &I,
const double xorg,
const double yorg,
const double zoomx,
const double zoomy)
92 std::list<double>::const_iterator it_ptListx = pointListx.begin();
93 std::list<double>::const_iterator it_ptListy = pointListy.begin();
99 iP.
set_ij(yorg-(zoomy*(*it_ptListy)),xorg+(zoomx*(*it_ptListx)));
112 #elif !defined(VISP_BUILD_SHARED_LIBS)
114 void dummy_vpPlotCurve() {};
Class to define colors available for display functionnalities.
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 ...
static void displayLine(const vpImage< unsigned char > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1)
void set_ij(const double ii, const double jj)