![]() |
VR-Forces 4.10 Class Documentation
|
A concrete interface of a tracked camera using the Zed Mini. More...

Public Member Functions | |
| DtZedTrackedCamera (DtDe &de) | |
| CTOR. More... | |
| virtual | ~DtZedTrackedCamera () |
| DTOR. More... | |
| DtZedTrackedCamera ()=delete | |
| default CTOR More... | |
| DtZedTrackedCamera (const DtZedTrackedCamera &)=delete | |
| default copy CTOR More... | |
| DtZedTrackedCamera & | operator= (const DtZedTrackedCamera &)=delete |
| default assignment operator More... | |
| virtual bool | startStream () |
| start streaming video to the attached osg textures More... | |
| virtual void | stopStream () |
| stop streaming video to the attached osg textures More... | |
| virtual void | tick () |
| toggle streaming video More... | |
| virtual void | reset () |
| virtual void | setUseDepth (bool set) |
| virtual bool | useDepth () |
| virtual void | resetCameraProjection () |
| reset the camera projection More... | |
| virtual void | setCameraSetting (sl::CAMERA_SETTINGS setting, int value) |
| virtual int | getCameraSetting (sl::CAMERA_SETTINGS setting) |
| virtual void | resetCameraSettings () |
Public Member Functions inherited from makVrv::DtTrackedCamera | |
| DtTrackedCamera (DtDe &de) | |
| CTOR. More... | |
| virtual | ~DtTrackedCamera () |
| DTOR. More... | |
| virtual osg::ref_ptr < osg::Texture2D > | texture (Eye id) |
| get the osg texture for a given eye. The data for the texture is updated each frame. More... | |
| virtual osg::Matrixd | pose (Eye e) |
| Get the pose of the camera this frame. More... | |
| virtual osg::Matrixd | projection () |
| get the projection matrix for the camera. More... | |
| virtual void | toggleStreaming () |
| toggle streaming video More... | |
| virtual bool | isDualCamera () |
| whether or not this camera provides two video feeds simultaneously for stereo vision. More... | |
| virtual void | setCameraFov (float x, float y) |
| set the camera FOV manually instead of pulling it from the camera More... | |
| virtual void | setCameraEye (float x, float y, float z, float pitch) |
| set the camera eye location manually instead of pulling it from the camera More... | |
Static Public Member Functions | |
| static bool | hasTrackedCamera () |
| returns whether or not a tracked camera exists on the current device More... | |
Static Public Attributes | |
| static int | theDepth |
Protected Member Functions | |
| virtual osg::Matrixd | createProjectionMatrix (float zn, float zf, const float *fovx=NULL, const float *fovy=NULL) |
| create a projection matrix More... | |
| virtual void | addDepthTexture (int width, int height, unsigned char *buffer) |
Protected Member Functions inherited from makVrv::DtTrackedCamera | |
| virtual void | addEyeTexture (int width, int height, unsigned char *buffer) |
| create an osg texture More... | |
| virtual void | invertBuffer () |
| flip the image buffer upside down so it is appropriate for openGL use More... | |
Protected Attributes | |
| sl::Camera | myCamera |
| sl::Mat | myLeftImage |
| sl::Mat | myRightImage |
| sl::Mat | myDepthImage |
| bool | myUseDepth |
Protected Attributes inherited from makVrv::DtTrackedCamera | |
| DtDe & | myDe |
| bool | myIsStreaming |
| UInt64 | myLastFrameSequence |
| unsigned int | myFrameWidth |
| unsigned int | myFrameHeight |
| unsigned int | myFrameBufferSize |
| unsigned char * | myFrameBuffer |
| unsigned char * | myFrameFlipBuffer |
| bool | myIsDualCamera |
| int | myDualFormat |
| std::vector< osg::ref_ptr < osg::Texture2D > > | myTextures |
| std::vector< osg::ref_ptr < osg::Image > > | myImages |
| osg::Matrixd | myProjection |
| osg::Matrixd | myView |
| std::vector< osg::Matrixd > | myHeadToCameraMatrix |
| int | myFrameType |
Additional Inherited Members | |
Public Types inherited from makVrv::DtTrackedCamera | |
| enum | Eye { Mono = 0, Left = 0, Right } |
Protected Types inherited from makVrv::DtTrackedCamera | |
| typedef unsigned long long | UInt64 |
A concrete interface of a tracked camera using the Zed Mini.
| makVrv::DtZedTrackedCamera::DtZedTrackedCamera | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
delete |
default CTOR
|
delete |
default copy CTOR
|
delete |
default assignment operator
|
static |
returns whether or not a tracked camera exists on the current device
|
virtual |
start streaming video to the attached osg textures
Implements makVrv::DtTrackedCamera.
|
virtual |
stop streaming video to the attached osg textures
Implements makVrv::DtTrackedCamera.
|
virtual |
toggle streaming video
Implements makVrv::DtTrackedCamera.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
reset the camera projection
Implements makVrv::DtTrackedCamera.
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
create a projection matrix
zn - near clipping plane zf - far clipping plane fovx - width of view volume fovy - height of view volume If fovx and fovy are specified, computes an orthographic projection based on those values. If fovx and fovy are not specified, computes a perspective projection based on the myFramewidth, myFrameheight, and camera parameters.
Implements makVrv::DtTrackedCamera.
|
protectedvirtual |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |