Candy
|
This is a Viewpoint node that produces a view compensated and corrected for perspective effects for a stationary monitor. More...
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) |
![]() | |
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::SFRotation > | headOrientation |
![]() | |
std::auto_ptr< H3D::SFBool > | useHeadOrientation |
![]() | |
std::auto_ptr< H3D::SFVec3f > | screenLowerLeft |
![]() | |
std::auto_ptr< H3D::SFVec3f > | screenUpperRight |
![]() | |
std::auto_ptr< H3D::SFVec3f > | screenUp |
![]() | |
std::auto_ptr < SFSinglePointTrackerFilter > | tracker |
![]() | |
H3D::StereoInfo | default_stereo_info |
![]() | |
auto_ptr< SFFloat > | fieldOfView |
Static Public Attributes | |
static H3D::H3DNodeDatabase | database |
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.
std::auto_ptr< H3D::SFRotation > HVR::SMViewpoint::headOrientation |
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 |
The position of the lower left corner of the screen.
std::auto_ptr< H3D::SFVec3f > HVR::SMViewpoint::screenUp |
The up direction for the screen, as a unit vector.
std::auto_ptr< H3D::SFVec3f > HVR::SMViewpoint::screenUpperRight |
The position of the upper right corner of the screen.
std::auto_ptr< SFSinglePointTrackerFilter > HVR::SMViewpoint::tracker |
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 |
Set this to false if you want to deactivate head tilting.
This can be useful if the tracker provides faulty orientation data.