ViSP  2.8.0
vpProjectionDisplay.h
1 /****************************************************************************
2  *
3  * $Id: vpProjectionDisplay.h 4238 2013-05-06 13:29:30Z 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_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 
99  vpProjectionDisplay() { init() ;}
100  vpProjectionDisplay(int select) { init(select) ;}
101 
102  void insert( vpForwardProjection &fp) ;
103  void display(vpImage<unsigned char> &I,
104  const vpHomogeneousMatrix &cextMo,
105  const vpHomogeneousMatrix &cMo,
106  const vpCameraParameters &cam,
107  const vpColor &color,
108  const bool &displayTraj = false,
109  const unsigned int thickness=1);
110  void displayCamera(vpImage<unsigned char> &I,
111  const vpHomogeneousMatrix &cextMo,
112  const vpHomogeneousMatrix &cMo,
113  const vpCameraParameters &cam,
114  const unsigned int thickness=1) ;
115 
116 private:
117  std::list<vpForwardProjection *> listFp ;
118  vpPoint o ;
119  vpPoint x ;
120  vpPoint y ;
121  vpPoint z ;
122  vpMatrix traj;
123 } ;
124 
125 
126 
127 #endif
128 #endif
129 
130 /*
131  * Local variables:
132  * c-basic-offset: 2
133  * End:
134  */
Definition of the vpMatrix class.
Definition: vpMatrix.h:96
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:133
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