Candy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
HVR::SMViewpoint Class Reference

This is a Viewpoint node that produces a view compensated and corrected for perspective effects for a stationary monitor. More...

Inheritance diagram for HVR::SMViewpoint:
Inheritance graph
[legend]

Classes

struct  SFSinglePointTrackerFilter
 

Public Member Functions

 SMViewpoint (H3D::Inst< SFSetBind > _set_bind=0, H3D::Inst< H3D::SFVec3f > _centerOfRotation=0, H3D::Inst< H3D::SFString > _description=0, H3D::Inst< H3D::SFFloat > _fieldOfView=0, H3D::Inst< H3D::SFBool > _jump=0, H3D::Inst< H3D::SFNode > _metadata=0, H3D::Inst< SFOrientation > _orientation=0, H3D::Inst< SFPosition > _position=0, H3D::Inst< H3D::SFBool > _retainUserOffsets=0, H3D::Inst< H3D::SFTime > _bindTime=0, H3D::Inst< H3D::SFBool > _isBound=0, H3D::Inst< H3D::SFMatrix4f > _accForwardMatrix=0, H3D::Inst< H3D::SFMatrix4f > _accInverseMatrix=0, H3D::Inst< SFSinglePointTrackerFilter > _tracker=0, H3D::Inst< H3D::SFRotation > _headOrientation=0, H3D::Inst< H3D::SFBool > _useHeadOrientation=0, H3D::Inst< H3D::SFVec3f > _screenLowerLeft=0, H3D::Inst< H3D::SFVec3f > _screenUpperRight=0, H3D::Inst< H3D::SFVec3f > _screenUp=0)
 
void setupProjection (EyeMode eye_mode, H3D::H3DFloat width, H3D::H3DFloat height, H3D::H3DFloat clip_near, H3D::H3DFloat clip_far, H3D::StereoInfo *stereo_info=0, bool update_stereo_proj_shift=false)
 
void setupViewMatrix (EyeMode eye_mode, H3D::StereoInfo *stereo_info)
 
- Public Member Functions inherited from H3D::Viewpoint
 Viewpoint (Inst< SFSetBind > _set_bind=0, Inst< SFVec3f > _centerOfRotation=0, Inst< SFString > _description=0, Inst< SFFloat > _fieldOfView=0, Inst< SFBool > _jump=0, Inst< SFNode > _metadata=0, Inst< SFOrientation > _orientation=0, Inst< SFPosition > _position=0, Inst< SFBool > _retainUserOffsets=0, Inst< SFTime > _bindTime=0, Inst< SFBool > _isBound=0, Inst< SFMatrix4f > _accForwardMatrix=0, Inst< SFMatrix4f > _accInverseMatrix=0)
 
virtual bool windowFromfieldOfView (H3DFloat width, H3DFloat height, H3DFloat clip_near, H3DFloat &top, H3DFloat &bottom, H3DFloat &right, H3DFloat &left)
 

Public Attributes

std::auto_ptr< H3D::SFRotationheadOrientation
  (input/output) Specifies the orientation of the head, for stereo eye separation. More...
 
std::auto_ptr< H3D::SFBooluseHeadOrientation
  (input/output) Set this to false if you want to deactivate head tilting. More...
 
std::auto_ptr< H3D::SFVec3fscreenLowerLeft
  (input/output) The position of the lower left corner of the screen. More...
 
std::auto_ptr< H3D::SFVec3fscreenUpperRight
  (input/output) The position of the upper right corner of the screen. More...
 
std::auto_ptr< H3D::SFVec3fscreenUp
  (input/output) The up direction for the screen, as a unit vector. More...
 
std::auto_ptr
< SFSinglePointTrackerFilter
tracker
  (input/output) The SinglePointTrackerFilter tracker that defines the position and orientation in world coordinates for this viewpoint. More...
 
H3D::StereoInfo default_stereo_info
 
- Public Attributes inherited from H3D::Viewpoint
auto_ptr< SFFloatfieldOfView
 

Static Public Attributes

static H3D::H3DNodeDatabase database
 

Detailed Description

This is a Viewpoint node that produces a view compensated and corrected for perspective effects for a stationary monitor.

The displayed view will look really strange except when viewed from the specified position. The screen location is specified in the same coordindinate system as the view position.

Member Data Documentation

std::auto_ptr< H3D::SFRotation > HVR::SMViewpoint::headOrientation

(input/output) Specifies the orientation of the head, for stereo eye separation.

This is not the same as the orientation field which will rotate the view on the screen.

std::auto_ptr< H3D::SFVec3f > HVR::SMViewpoint::screenLowerLeft

(input/output) The position of the lower left corner of the screen.

std::auto_ptr< H3D::SFVec3f > HVR::SMViewpoint::screenUp

(input/output) The up direction for the screen, as a unit vector.

std::auto_ptr< H3D::SFVec3f > HVR::SMViewpoint::screenUpperRight

(input/output) The position of the upper right corner of the screen.

std::auto_ptr< SFSinglePointTrackerFilter > HVR::SMViewpoint::tracker

(input/output) The SinglePointTrackerFilter tracker that defines the position and orientation in world coordinates for this viewpoint.

The tracker's singleTrackerPosition and singleTrackerOrientation fields will be connected to the viewpoint's position and headOrientation fields.

std::auto_ptr< H3D::SFBool > HVR::SMViewpoint::useHeadOrientation

(input/output) Set this to false if you want to deactivate head tilting.

This can be useful if the tracker provides faulty orientation data.