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

#include <osaOSGCamera.h>

Inheritance diagram for osaOSGCamera:
osaOSGMono osaOSGStereo

Classes

class  Data
 User data for the camera. More...
 
class  UpdateCallback
 Update Callback. More...
 

Public Types

enum  Errno { ESUCCESS, EFAILURE }
 

Public Member Functions

 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
 

Protected Member Functions

bool IsOffscreenRenderingEnabled () const
 
void AddHUD (osaOSGHUD *hud)
 

Protected Attributes

std::vector< osg::ref_ptr
< osaOSGHUD > > 
huds
 

Friends

class osaOSGHUD
 
class mtsOSGCameraTask
 Allow mtsOSGCameraTask to update this transformation. More...
 

Member Enumeration Documentation

Enumerator
ESUCCESS 
EFAILURE 

Constructor & Destructor Documentation

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)

Create an OSG viewer wrapped in a MTS continuous task. The camera also creates an MTS required interface called "Transformation" if a function name is provided. This function is used to update the position of the camera at each update traversal.

Parameters
worldThe world the camera belongs to
trackballCreate the default trackball
offscreenrenderingRender in p-buffer
osaOSGCamera::~osaOSGCamera ( )

Member Function Documentation

void osaOSGCamera::AddHUD ( osaOSGHUD hud)
protected
vctFrm3 osaOSGCamera::GetTransform ( ) const
virtual void osaOSGCamera::Initialize ( const std::string &  CMN_UNUSEDname = std::string())
inlinevirtual
bool osaOSGCamera::IsOffscreenRenderingEnabled ( ) const
inlineprotected
void osaOSGCamera::setCullMask ( osg::Node::NodeMask  mask)
inline
void osaOSGCamera::SetTransform ( const vctFrm3 Rt)
void osaOSGCamera::SetTransform ( const vctFrame4x4< double > &  Rt)

Friends And Related Function Documentation

friend class mtsOSGCameraTask
friend

Allow mtsOSGCameraTask to update this transformation.

friend class osaOSGHUD
friend

Member Data Documentation

std::vector< osg::ref_ptr< osaOSGHUD > > osaOSGCamera::huds
protected

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