cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | List of all members
osaOSGStereo Class Reference

#include <osaOSGStereo.h>

Inheritance diagram for osaOSGStereo:
osaOSGCamera

Public Types

enum  Camera { LEFT, RIGHT }
 
- Public Types inherited from osaOSGCamera
enum  Errno { ESUCCESS, EFAILURE }
 

Public Member Functions

 osaOSGStereo (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 >())
 Create a stereo OSG viewer (actually it's a OSG viewer) More...
 
 osaOSGStereo (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 > &Rtlr, double zNear, double zFar, bool trackball=true, const vctFrame4x4< double > &Rtoffset=vctFrame4x4< double >())
 Create a stereo OSG viewer (actually it's a OSG viewer) More...
 
 ~osaOSGStereo ()
 
void setCullMask (osg::Node::NodeMask mask, osaOSGStereo::Camera idx)
 
virtual void Initialize (const std::string &name=std::string())
 
- Public Member Functions inherited from osaOSGCamera
 osaOSGCamera (osaOSGWorld *world, bool trackball=true, const vctFrame4x4< double > &Rtoffset=vctFrame4x4< double >(), bool offscreenrendering=false)
 Create an OSG viewer (actually it's a OSG viewer) More...
 
 ~osaOSGCamera ()
 
virtual void Initialize (const std::string &CMN_UNUSED(name)=std::string())
 
void setCullMask (osg::Node::NodeMask mask)
 
void SetTransform (const vctFrm3 &Rt)
 
void SetTransform (const vctFrame4x4< double > &Rt)
 
vctFrm3 GetTransform () const
 

Additional Inherited Members

- Protected Member Functions inherited from osaOSGCamera
bool IsOffscreenRenderingEnabled () const
 
void AddHUD (osaOSGHUD *hud)
 
- Protected Attributes inherited from osaOSGCamera
std::vector< osg::ref_ptr
< osaOSGHUD > > 
huds
 

Member Enumeration Documentation

Enumerator
LEFT 
RIGHT 

Constructor & Destructor Documentation

osaOSGStereo::osaOSGStereo ( 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 >() 
)

Create a stereo OSG viewer (actually it's a OSG viewer)

Create an stereo OSG viewer.

Parameters
worldThe world the camera belongs to
xThe X offset of the camera window
yThe Y offset of the camera window
widthThe width of the camera image
heightThe height of the camera image
fovyThe field of view angle
aspectRatioThe aspect ratio of the camera
zNearThe near buffer distance
zFarThe far buffer distance
baselineThe base line between the two cameras
trackballUse the default trackball
RtoffsetOffset transformation of the left camera
osaOSGStereo::osaOSGStereo ( 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 > &  Rtlr,
double  zNear,
double  zFar,
bool  trackball = true,
const vctFrame4x4< double > &  Rtoffset = vctFrame4x4< double >() 
)

Create a stereo OSG viewer (actually it's a OSG viewer)

Create an stereo OSG viewer.

Parameters
worldThe world the camera belongs to
xThe X offset of the camera window
yThe Y offset of the camera window
widthThe width of the camera image
heightThe height of the camera image
KlIntrinsic parameters of the left camera
KrIntrinsic parameters of the right camera
RtlrPosition/orientation of the right camera wrt the left camera
zNearThe near buffer distance
zFarThe far buffer distance
baselineThe base line between the two cameras
trackballUse the default trackball
RtoffsetOffset transformation of the left camera
osaOSGStereo::~osaOSGStereo ( )

Member Function Documentation

virtual void osaOSGStereo::Initialize ( const std::string &  name = std::string())
virtual
void osaOSGStereo::setCullMask ( osg::Node::NodeMask  mask,
osaOSGStereo::Camera  idx 
)
inline

The documentation for this class was generated from the following file: