cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mtsOSGStereo.h
Go to the documentation of this file.
1 /*
2 
3  Author(s): Simon Leonard
4  Created on: Dec 02 2009
5 
6  (C) Copyright 2009 Johns Hopkins University (JHU), All Rights
7  Reserved.
8 
9 --- begin cisst license - do not edit ---
10 
11 This software is provided "as is" under an open source license, with
12 no warranty. The complete license can be found in license.txt and
13 http://www.cisst.org/cisst/license.txt.
14 
15 --- end cisst license ---
16 */
17 
18 
19 #ifndef _mtsOSGStereo_h
20 #define _mtsOSGStereo_h
21 
22 
26 
28 
29  public:
30 
31  // Main constructor
34  mtsOSGStereo( const std::string& name,
35  osaOSGWorld* world,
36  int x, int y, int width, int height,
37  double fovy, double aspectRatio,
38  double zNear, double zFar,
39  double baseline,
40  bool trackball = true,
41  const vctFrame4x4<double>& Rtoffset = vctFrame4x4<double>() ) :
42  mtsOSGCameraTask( name,
43  new osaOSGStereo( world,
44  x, y,
45  width, height,
46  fovy, aspectRatio,
47  zNear, zFar,
48  baseline,
49  trackball,
50  Rtoffset ) ){}
51 
52  mtsOSGStereo( const std::string& name,
53  osaOSGWorld* world,
54  int x, int y, int width, int height,
57  const vctFrame4x4<double>& vctRt,
58  double zNear, double zFar,
59  bool trackball,
60  const vctFrame4x4<double>& Rtoffset = vctFrame4x4<double>() ) :
61  mtsOSGCameraTask( name,
62  new osaOSGStereo( world,
63  x, y,
64  width, height,
65  Kl, Kr, vctRt,
66  zNear, zFar,
67  trackball,
68  Rtoffset ) ){}
69 
71 
72  void setCullMask( osg::Node::NodeMask mask, osaOSGStereo::Camera idx ){
73  osaOSGStereo* stereo = dynamic_cast< osaOSGStereo* >( camera.get() );
74  if( stereo != NULL )
75  { stereo->setCullMask( mask, idx ); }
76  }
77 
78 };
79 
80 #endif
void setCullMask(osg::Node::NodeMask mask, osaOSGStereo::Camera idx)
Definition: osaOSGStereo.h:85
Definition: mtsOSGCameraTask.h:28
Definition: osaOSGStereo.h:11
Definition: osaOSGWorld.h:24
Definition: mtsOSGStereo.h:27
~mtsOSGStereo()
Definition: mtsOSGStereo.h:70
osg::ref_ptr< osaOSGCamera > camera
Definition: mtsOSGCameraTask.h:34
Camera
Definition: osaOSGStereo.h:15
void setCullMask(osg::Node::NodeMask mask, osaOSGStereo::Camera idx)
Definition: mtsOSGStereo.h:72
mtsOSGStereo(const std::string &name, osaOSGWorld *world, int x, int y, int width, int height, double fovy, double aspectRatio, double zNear, double zFar, double baseline, bool trackball=true, const vctFrame4x4< double > &Rtoffset=vctFrame4x4< double >())
Definition: mtsOSGStereo.h:34
mtsOSGStereo(const std::string &name, osaOSGWorld *world, int x, int y, int width, int height, const vctFixedSizeMatrix< double, 3, 3 > &Kl, const vctFixedSizeMatrix< double, 3, 3 > &Kr, const vctFrame4x4< double > &vctRt, double zNear, double zFar, bool trackball, const vctFrame4x4< double > &Rtoffset=vctFrame4x4< double >())
Definition: mtsOSGStereo.h:52