ViSP  2.9.0
vpProjectionDisplay.h
1 /****************************************************************************
2  *
3  * $Id: vpProjectionDisplay.h 4632 2014-02-03 17:06:40Z fspindle $
4  *
5  * This file is part of the ViSP software.
6  * Copyright (C) 2005 - 2014 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_DISPLAY)
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/vpDisplayOpenCV.h>
61 #include <visp/vpDisplayD3D.h>
62 #include <visp/vpForwardProjection.h>
63 
64 #include <list>
65 
70 class VISP_EXPORT vpProjectionDisplay
71 {
72 private:
75 
76 #if defined VISP_HAVE_X11
77  vpDisplayX dIcam ;
78  vpDisplayX dIext ;
79 #elif defined VISP_HAVE_GTK
80  vpDisplayGTK dIcam ;
81  vpDisplayGTK dIext ;
82 #elif defined VISP_HAVE_GDI
83  vpDisplayGDI dIcam ;
84  vpDisplayGDI dIext ;
85 #elif defined VISP_HAVE_OPENCV
86  vpDisplayOpenCV dIcam ;
87  vpDisplayOpenCV dIext ;
88 #elif defined(VISP_HAVE_D3D9)
89  vpDisplayD3D dIcam ;
90  vpDisplayD3D dIext ;
91 #endif
92 public:
93  void init() ;
94  void init(int select) ;
95  void close() ;
96  static int internalView() { return 0x01 ; }
97  static int externalView() { return 0x02 ; }
98 
101  : Icam(), Iext(),
102 #if defined (VISP_HAVE_DISPLAY)
103  dIcam(), dIext(),
104 #endif
105  listFp(), o(), x(), y(), z(), traj()
106  {
107  init();
108  }
110  : Icam(), Iext(),
111 #if defined (VISP_HAVE_DISPLAY)
112  dIcam(), dIext(),
113 #endif
114  listFp(), o(), x(), y(), z(), traj()
115  {
116  init(select) ;
117  }
118 
119  void insert( vpForwardProjection &fp) ;
120  void display(vpImage<unsigned char> &I,
121  const vpHomogeneousMatrix &cextMo,
122  const vpHomogeneousMatrix &cMo,
123  const vpCameraParameters &cam,
124  const vpColor &color,
125  const bool &displayTraj = false,
126  const unsigned int thickness=1);
127  void displayCamera(vpImage<unsigned char> &I,
128  const vpHomogeneousMatrix &cextMo,
129  const vpHomogeneousMatrix &cMo,
130  const vpCameraParameters &cam,
131  const unsigned int thickness=1) ;
132 
133 private:
134  std::list<vpForwardProjection *> listFp ;
135  vpPoint o ;
136  vpPoint x ;
137  vpPoint y ;
138  vpPoint z ;
139  vpMatrix traj;
140 } ;
141 
142 
143 
144 #endif
145 #endif
146 
147 /*
148  * Local variables:
149  * c-basic-offset: 2
150  * End:
151  */
Definition of the vpMatrix class.
Definition: vpMatrix.h:98
The class provides a data structure for the homogeneous matrices as well as a set of operations on th...
Display for windows using GDI (available on any windows 32 platform).
Definition: vpDisplayGDI.h:132
Class to define colors available for display functionnalities.
Definition: vpColor.h:125
Define the X11 console to display images.
Definition: vpDisplayX.h:152
Class that defines what is a point.
Definition: vpPoint.h:65
Display for windows using Direct3D.
Definition: vpDisplayD3D.h:109
Class that defines what is a generic geometric feature.
The vpDisplayOpenCV allows to display image using the opencv library.
Generic class defining intrinsic camera parameters.
The vpDisplayGTK allows to display image using the GTK+ library version 1.2.
Definition: vpDisplayGTK.h:145
interface with the image for feature display