Visual Servoing Platform version 3.6.0
Loading...
Searching...
No Matches
vpPlotCurve.h
1/****************************************************************************
2 *
3 * ViSP, open source Visual Servoing Platform software.
4 * Copyright (C) 2005 - 2023 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 https://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*****************************************************************************/
35
36#ifndef DOXYGEN_SHOULD_SKIP_THIS
37
38#ifndef vpPlotCurve_H
39#define vpPlotCurve_H
40
41#include <visp3/core/vpColor.h>
42#include <visp3/core/vpImage.h>
43
44#include <visp3/core/vpHomogeneousMatrix.h>
45#include <visp3/core/vpRect.h>
46
47#include <visp3/core/vpCameraParameters.h>
48#include <visp3/core/vpPoint.h>
49
50#include <list>
51
52#if defined(VISP_HAVE_DISPLAY)
53
54class vpPlotCurve
55{
56public:
58 typedef enum { point, line, dashed_line, marker } vpCurveStyle;
59 vpColor color;
60 vpCurveStyle curveStyle;
61 unsigned int thickness;
62 // vpMarkerStyle markerStyle;
63 // char lineStyle[20];
64 // vpList<vpImagePoint> pointList;
65 unsigned int nbPoint;
66 vpImagePoint lastPoint;
67 std::list<double> pointListx;
68 std::list<double> pointListy;
69 std::list<double> pointListz;
70 std::string legend;
71 double xmin;
72 double xmax;
73 double ymin;
74 double ymax;
75
76public:
77 vpPlotCurve();
78 virtual ~vpPlotCurve();
79 void plotPoint(const vpImage<unsigned char> &I, const vpImagePoint &iP, double x, double y);
80 void plotList(const vpImage<unsigned char> &I, double xorg, double yorg, double zoomx, double zoomy);
81};
82
83#endif
84#endif
85#endif
Class to define RGB colors available for display functionalities.
Definition vpColor.h:152
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
Definition of the vpImage class member functions.
Definition vpImage.h:135