cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
osaOSGStereo.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3 
4 #ifndef _osaOSGStereo_h
5 #define _osaOSGStereo_h
6 
10 
12 
13  public:
14 
15  enum Camera{ LEFT, RIGHT };
16 
17  private:
18 
20  int x;
22  int y;
24  int width;
26  int height;
27 
29  double baseline;
30 
31  public :
32 
34 
49  osaOSGStereo( osaOSGWorld* world,
50  int x, int y, int width, int height,
51  double fovy, double aspectRatio,
52  double zNear, double zFar,
53  double baseline,
54  bool trackball = true,
55  const vctFrame4x4<double>& Rtoffset = vctFrame4x4<double>() );
56 
58 
74  osaOSGStereo( osaOSGWorld* world,
75  int x, int y, int width, int height,
78  const vctFrame4x4<double>& Rtlr,
79  double zNear, double zFar,
80  bool trackball = true,
81  const vctFrame4x4<double>& Rtoffset = vctFrame4x4<double>());
82 
83  ~osaOSGStereo( );
84 
85  void setCullMask( osg::Node::NodeMask mask, osaOSGStereo::Camera idx ){
86  osg::View::Slave& slave = getSlave( idx );
87  osg::ref_ptr<osg::Camera> camera = slave._camera.get();
88  camera->setCullMask( mask );
89  }
90 
91  virtual void Initialize( const std::string& name = std::string() );
92 
93 #if 0
94 #ifdef SAW_OPENSCENEGRAPH_SUPPORTS_OPENCV
95  public:
96  //std::list< std::list< osaOSGBody* > > GetVisibilityList( size_t idx );
97  vctDynamicMatrix<double> GetRangeData( size_t idx );
98  vctDynamicNArray<unsigned char,3> GetRGBPlanarImage( size_t idx );
99  cv::Mat GetRGBImage( size_t idx );
100 #endif
101 #endif
102 };
103 
104 #endif
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
An nArray object of dynamic size.
Definition: vctDynamicNArray.h:122
void setCullMask(osg::Node::NodeMask mask, osaOSGStereo::Camera idx)
Definition: osaOSGStereo.h:85
Declaration of vctDynamicNArray.
Definition: osaOSGWorld.h:24
Definition: osaOSGStereo.h:11
std::string Mat
Definition: svlTypes.h:72
Camera
Definition: osaOSGStereo.h:15
virtual void Initialize(const std::string &CMN_UNUSED(name)=std::string())
Definition: osaOSGCamera.h:228
Definition: osaOSGCamera.h:27