46 #include <visp3/core/vpConfig.h>
47 #include <visp3/core/vpDisplay.h>
48 #include <visp3/gui/vpPlotGraph.h>
111 #if defined(VISP_HAVE_DISPLAY)
121 unsigned int graphNbr;
122 vpPlotGraph* graphList;
146 vpPlot(
const unsigned int nbGraph,
147 const unsigned int height=700,
148 const unsigned int width=700,
149 const int x=-1,
const int y=-1,
const std::string &title=
"");
151 void getPixelValue(
const bool block);
152 void init(
const unsigned int nbGraph,
153 const unsigned int height=700,
154 const unsigned int width=700,
155 const int x=-1,
const int y=-1,
const std::string &title=
"");
156 void initGraph (
unsigned int graphNum,
unsigned int curveNbr);
158 void initRange (
const unsigned int graphNum,
double xmin,
double xmax,
double ymin,
double ymax);
159 void initRange (
const unsigned int graphNum,
double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax);
160 void navigate (
void);
162 void plot (
const unsigned int graphNum,
const unsigned int curveNum,
const double x,
const double y);
163 void plot(
const unsigned int graphNum,
const double x,
const vpColVector &v_y);
164 void plot(
const unsigned int graphNum,
const double x,
const vpRowVector &v_y);
165 void plot(
const unsigned int graphNum,
const double x,
const vpPoseVector &v_y);
167 void plot(
const unsigned int graphNum,
const double x,
const vpRotationVector &v_y);
171 void resetPointList (
const unsigned int graphNum);
172 void resetPointList (
const unsigned int graphNum,
const unsigned int curveNum);
174 void saveData(
const unsigned int graphNum,
const std::string &dataFile,
const std::string &title_prefix=
"");
175 void setColor (
const unsigned int graphNum,
const unsigned int curveNum,
vpColor color);
176 void setGraphThickness (
const unsigned int graphNum,
const unsigned int thickness);
177 void setGridThickness (
const unsigned int graphNum,
const unsigned int thickness);
185 if (display->isInitialised())
188 void setLegend (
const unsigned int graphNum,
const unsigned int curveNum,
const std::string &legend);
189 void setTitle (
const unsigned int graphNum,
const std::string &title);
190 void setUnitX (
const unsigned int graphNum,
const std::string &unitx);
191 void setUnitY (
const unsigned int graphNum,
const std::string &unity);
192 void setUnitZ (
const unsigned int graphNum,
const std::string &unitz);
193 void setThickness (
const unsigned int graphNum,
const unsigned int curveNum,
const unsigned int thickness);
196 void initNbGraph (
unsigned int nbGraph);
Implementation of a generic rotation vector.
Class that defines generic functionnalities for display.
vpImage< unsigned char > I
Implementation of row vector and the associated operations.
Class to define colors available for display functionnalities.
static void setFont(const vpImage< unsigned char > &I, const std::string &font)
void setFont(const std::string &font)
Implementation of column vector and the associated operations.
Implementation of a pose vector and operations on poses.
This class enables real time drawing of 2D or 3D graphics. An instance of the class open a window whi...
Class that consider the case of a translation vector.