Visual Servoing Platform  version 3.4.0
vpPlotCurve.h
1 /****************************************************************************
2  *
3  * ViSP, open source Visual Servoing Platform software.
4  * Copyright (C) 2005 - 2019 by Inria. All rights reserved.
5  *
6  * This software is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  * See the file LICENSE.txt at the root directory of this source
11  * distribution for additional information about the GNU GPL.
12  *
13  * For using ViSP with software that can not be combined with the GNU
14  * GPL, please contact Inria about acquiring a ViSP Professional
15  * Edition License.
16  *
17  * See http://visp.inria.fr for more information.
18  *
19  * This software was developed at:
20  * Inria Rennes - Bretagne Atlantique
21  * Campus Universitaire de Beaulieu
22  * 35042 Rennes Cedex
23  * France
24  *
25  * If you have questions regarding the use of this file, please contact
26  * Inria at visp@inria.fr
27  *
28  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
29  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
30  *
31  * Description:
32  * Define a curve for the vpPlot class.
33  *
34  * Authors:
35  * Nicolas Melchior
36  *
37  *****************************************************************************/
38 
39 #ifndef DOXYGEN_SHOULD_SKIP_THIS
40 
41 #ifndef vpPlotCurve_H
42 #define vpPlotCurve_H
43 
44 #include <visp3/core/vpColor.h>
45 #include <visp3/core/vpImage.h>
46 
47 #include <visp3/core/vpHomogeneousMatrix.h>
48 #include <visp3/core/vpRect.h>
49 
50 #include <visp3/core/vpCameraParameters.h>
51 #include <visp3/core/vpPoint.h>
52 
53 #include <list>
54 
55 #if defined(VISP_HAVE_DISPLAY)
56 
57 class vpPlotCurve
58 {
59 public:
61  typedef enum { point, line, dashed_line, marker } vpCurveStyle;
62  vpColor color;
63  vpCurveStyle curveStyle;
64  unsigned int thickness;
65  // vpMarkerStyle markerStyle;
66  // char lineStyle[20];
67  // vpList<vpImagePoint> pointList;
68  unsigned int nbPoint;
69  vpImagePoint lastPoint;
70  std::list<double> pointListx;
71  std::list<double> pointListy;
72  std::list<double> pointListz;
73  std::string legend;
74  double xmin;
75  double xmax;
76  double ymin;
77  double ymax;
78 
79 public:
80  vpPlotCurve();
81  virtual ~vpPlotCurve();
82  void plotPoint(const vpImage<unsigned char> &I, const vpImagePoint &iP, double x, double y);
83  void plotList(const vpImage<unsigned char> &I, double xorg, double yorg, double zoomx, double zoomy);
84 };
85 
86 #endif
87 #endif
88 #endif
Class to define RGB colors available for display functionnalities.
Definition: vpColor.h:157
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
Definition: vpImagePoint.h:87