cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
osaOSGMono.h
Go to the documentation of this file.
1 
2 
3 #ifndef _osaOSGMono_h
4 #define _osaOSGMono_h
5 
6 #include <sawOpenSceneGraph/sawOpenSceneGraphConfig.h>
7 
11 
12 
14 
15  private:
16 
18  int x;
20  int y;
22  int width;
24  int height;
25 
26  // set this to true if you want to render quad buffer stereo
27  bool quadbufferstereo;
28  bool IsQuadBufferStereoEnabled() const { return quadbufferstereo; }
29 
30  public :
31 
33 
50  osaOSGMono( osaOSGWorld* world,
51  int x, int y, int width, int height,
52  double fovy, double aspectRatio,
53  double zNear, double zFar,
54  bool trackball = true,
55  const vctFrame4x4<double>& Rtoffset = vctFrame4x4<double>(),
56  bool quadbufferstereo = false,
57  bool offscreenrendering = false );
58 
59  osaOSGMono( osaOSGWorld* world,
60  int x, int y, int width, int height,
62  double zNear, double zFar,
63  bool trackball = true,
64  const vctFrame4x4<double>& Rtoffset = vctFrame4x4<double>(),
65  bool quadbufferstereo = false,
66  bool offscreenrendering = false );
67 
68  ~osaOSGMono();
69 
70  virtual void Initialize( const std::string& name = std::string() );
71 
72 #ifdef SAW_OPENSCENEGRAPH_SUPPORTS_OPENCV
73 
74  public:
75 
76  osaOSGCamera::Errno GetRangeData( vctDynamicMatrix<double>& rangedata );
78  osaOSGCamera::Errno GetRGBImage( cv::Mat& rgb );
79  osaOSGCamera::Errno GetDepthImage( cv::Mat& depth );
80 
81 #endif
82 
83 };
84 
85 #endif
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
An nArray object of dynamic size.
Definition: vctDynamicNArray.h:122
Declaration of vctDynamicNArray.
Definition: osaOSGWorld.h:24
Errno
Definition: osaOSGCamera.h:33
Definition: osaOSGMono.h:13
std::string Mat
Definition: svlTypes.h:72
virtual void Initialize(const std::string &CMN_UNUSED(name)=std::string())
Definition: osaOSGCamera.h:228
Definition: osaOSGCamera.h:27