ViSP
Main Page
Related Pages
Modules
Classes
Examples
All
Classes
Functions
Variables
Enumerations
Enumerator
Friends
Groups
Pages
vpPlot.h
1
/****************************************************************************
2
*
3
* $Id: vpPlot.h 4056 2013-01-05 13:04:42Z fspindle $
4
*
5
* This file is part of the ViSP software.
6
* Copyright (C) 2005 - 2013 by INRIA. All rights reserved.
7
*
8
* This software is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU General Public License
10
* ("GPL") version 2 as published by the Free Software Foundation.
11
* See the file LICENSE.txt at the root directory of this source
12
* distribution for additional information about the GNU GPL.
13
*
14
* For using ViSP with software that can not be combined with the GNU
15
* GPL, please contact INRIA about acquiring a ViSP Professional
16
* Edition License.
17
*
18
* See http://www.irisa.fr/lagadic/visp/visp.html for more information.
19
*
20
* This software was developed at:
21
* INRIA Rennes - Bretagne Atlantique
22
* Campus Universitaire de Beaulieu
23
* 35042 Rennes Cedex
24
* France
25
* http://www.irisa.fr/lagadic
26
*
27
* If you have questions regarding the use of this file, please contact
28
* INRIA at visp@inria.fr
29
*
30
* This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
31
* WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
32
*
33
*
34
* Description:
35
* Plot curves.
36
*
37
* Authors:
38
* Nicolas Melchior
39
*
40
*****************************************************************************/
41
47
#ifndef vpPlot_H
48
#define vpPlot_H
49
50
#include <visp/vpConfig.h>
51
#include <visp/vpDisplay.h>
52
#include <visp/vpPlotGraph.h>
53
115
#if defined(VISP_HAVE_DISPLAY)
116
117
class
VISP_EXPORT
vpPlot
118
{
119
public
:
120
vpImage<unsigned char>
I
;
121
122
private
:
123
vpDisplay
*display;
124
125
unsigned
int
graphNbr;
126
vpPlotGraph* graphList;
127
128
unsigned
int
margei;
129
unsigned
int
margej;
130
131
float
factori;
132
float
factorj;
133
134
public
:
135
vpPlot
();
136
vpPlot
(
const
unsigned
int
nbGraph,
137
const
unsigned
int
height=700,
138
const
unsigned
int
width=700,
139
const
int
x=-1,
const
int
y=-1,
const
char
*title=NULL);
140
~
vpPlot
();
141
void
init(
const
unsigned
int
nbGraph,
142
const
unsigned
int
height=700,
143
const
unsigned
int
width=700,
144
const
int
x=-1,
const
int
y=-1,
const
char
*title=NULL);
145
void
initGraph (
unsigned
int
graphNum,
unsigned
int
curveNbr);
146
147
void
initRange (
const
unsigned
int
graphNum,
double
xmin,
double
xmax,
double
ymin,
double
ymax);
148
void
initRange (
const
unsigned
int
graphNum,
double
xmin,
double
xmax,
double
ymin,
double
ymax,
double
zmin,
double
zmax);
149
void
setColor (
const
unsigned
int
graphNum,
const
unsigned
int
curveNum,
vpColor
color);
155
void
setFont(
const
char
*font)
156
{
157
if
(display->isInitialised())
158
vpDisplay::setFont
(I, font);
159
}
160
void
setTitle (
const
unsigned
int
graphNum,
const
char
*title);
161
void
setUnitX (
const
unsigned
int
graphNum,
const
char
*unitx);
162
void
setUnitY (
const
unsigned
int
graphNum,
const
char
*unity);
163
void
setUnitZ (
const
unsigned
int
graphNum,
const
char
*unitz);
164
void
setLegend (
const
unsigned
int
graphNum,
const
unsigned
int
curveNum,
const
char
*legend);
165
void
setThickness (
const
unsigned
int
graphNum,
const
unsigned
int
curveNum,
const
unsigned
int
thickness);
166
167
void
plot (
const
unsigned
int
graphNum,
const
unsigned
int
curveNum,
const
double
x,
const
double
y);
168
void
plot(
const
unsigned
int
graphNum,
const
double
x,
const
vpColVector
&v_y);
169
void
plot (
const
unsigned
int
graphNum,
const
unsigned
int
curveNum,
const
double
x,
const
double
y,
const
double
z);
170
void
plot(
const
unsigned
int
graphNum,
const
double
x,
const
vpColVector
&v_y,
const
vpColVector
&v_z);
171
172
void
navigate (
void
);
173
174
void
getPixelValue(
const
bool
block);
175
176
void
resetPointList (
const
unsigned
int
graphNum);
177
void
resetPointList (
const
unsigned
int
graphNum,
const
unsigned
int
curveNum);
178
179
void
saveData(
const
unsigned
int
graphNum,
const
char
* dataFile);
180
181
private
:
182
void
initNbGraph (
unsigned
int
nbGraph);
183
void
displayGrid();
184
};
185
#endif
186
187
#endif
src
tools
plot
vpPlot.h
Generated on Fri Apr 26 2013 19:54:35 for ViSP by
1.8.1.2