ViSP
Main Page
Related Pages
Modules
Classes
Examples
All
Classes
Functions
Variables
Enumerations
Enumerator
Friends
Groups
Pages
vpProjectionDisplay.h
1
/****************************************************************************
2
*
3
* $Id: vpProjectionDisplay.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
* Interface with the image for feature display.
36
*
37
* Authors:
38
* Eric Marchand
39
*
40
*****************************************************************************/
41
42
43
#ifndef vpProjectionDisplay_H
44
#define vpProjectionDisplay_H
45
51
#include <visp/vpConfig.h>
52
#if (defined (VISP_HAVE_X11) || defined(VISP_HAVE_GTK) || defined(VISP_HAVE_GDI))
53
54
#include <visp/vpCameraParameters.h>
55
#include <visp/vpColor.h>
56
#include <visp/vpImage.h>
57
#include <visp/vpDisplayX.h>
58
#include <visp/vpDisplayGTK.h>
59
#include <visp/vpDisplayGDI.h>
60
#include <visp/vpForwardProjection.h>
61
62
#include <list>
63
68
class
VISP_EXPORT
vpProjectionDisplay
69
{
70
private
:
71
vpImage<unsigned char>
Icam ;
72
vpImage<unsigned char>
Iext ;
73
74
#if defined VISP_HAVE_X11
75
vpDisplayX
dIcam ;
76
vpDisplayX
dIext ;
77
#elif defined VISP_HAVE_GTK
78
vpDisplayGTK
dIcam ;
79
vpDisplayGTK
dIext ;
80
#elif defined VISP_HAVE_GDI
81
vpDisplayGDI
dIcam ;
82
vpDisplayGDI
dIext ;
83
#endif
84
public
:
85
void
init() ;
86
void
init(
int
select) ;
87
void
close() ;
88
static
int
internalView
() {
return
0x01 ; }
89
static
int
externalView
() {
return
0x02 ; }
90
91
vpProjectionDisplay
() { init() ;}
92
vpProjectionDisplay
(
int
select) { init(select) ;}
93
private
:
94
std::list<vpForwardProjection *> listFp ;
95
public
:
96
void
insert(
vpForwardProjection
&fp) ;
97
98
public
:
99
/*
100
void display(const vpHomogeneousMatrix &cextMo,
101
const vpHomogeneousMatrix &cMo,
102
const vpCameraParameters &cam,
103
const vpColor color,
104
const int select) ;
105
*/
106
void
display(
vpImage<unsigned char>
&I,
107
const
vpHomogeneousMatrix
&cextMo,
108
const
vpHomogeneousMatrix
&cMo,
109
const
vpCameraParameters
&cam,
110
const
vpColor
color,
111
const
bool
&displayTraj =
false
);
112
113
114
private
:
115
vpPoint
o ;
116
vpPoint
x ;
117
vpPoint
y ;
118
vpPoint
z ;
119
vpMatrix
traj;
120
121
public
:
122
void
displayCamera(
vpImage<unsigned char>
&I,
123
const
vpHomogeneousMatrix
&cextMo,
124
const
vpHomogeneousMatrix
&cMo,
125
const
vpCameraParameters
&cam) ;
126
} ;
127
128
129
130
#endif
131
#endif
132
133
/*
134
* Local variables:
135
* c-basic-offset: 2
136
* End:
137
*/
src
simulator
coin-simulator
vpProjectionDisplay.h
Generated on Wed Jun 12 2013 05:39:46 for ViSP by
1.8.1.2