![]() |
VR-Forces 5.0.3 Developer's Guide
|
Object to handle rendering a mixed reality mask object into the scene. Typically the it renders an object to the alpha channel only to allow a video feed to be rendered in the transparent areas.

Public Member Functions | |
| DtMixedRealityMask (DtDe &de) | |
| virtual | ~DtMixedRealityMask () |
| virtual void | initalizeMaskingObect (osg::Group *mountTo, const osg::Vec3 &offset, bool followObserver, std::string modelFile) |
| virtual void | startMasking () |
| virtual void | stopMasking () |
| virtual bool | maskingActive () |
| virtual void | setOffset (const osg::Vec3 &offset) |
| virtual float | nearDepthRange () const |
| virtual void | nearDepthRange (float nearDepth) |
| virtual float | farDepthRange () const |
| virtual void | farDepthRange (float farDepth) |
| virtual bool | chromaKeyActive () const |
| virtual void | chromaKeyActive (bool active) |
| virtual osg::Vec3 | chromaKeyHsvColor () const |
| virtual void | chromaKeyHsvColor (osg::Vec3 hsv) |
| virtual osg::Vec3 | chromaKeyHsvTolerance () const |
| virtual void | chromaKeyHsvTolerance (osg::Vec3 tol) |
| virtual osg::Vec3 | chromaKeyHsvFalloff () const |
| virtual void | chromaKeyHsvFalloff (osg::Vec3 falloff) |
| virtual void | slot_onPostUpdate () |
Protected Member Functions | |
| virtual void | initalizeMaskingObectImplementation (std::string modelFile)=0 |
| DtSceneObject * | findSceneObjectFromElement (const DtElementID &id, int modelSet) |
Protected Attributes | |
| DtDe & | myDe |
| DtVirtualRealityDriver * | myDriverHandle |
| DtSignalConnectionManager | myConnections |
| bool | myMaskingActive |
| osg::ref_ptr< osg::Group > | myMountNode |
| osg::Vec3 | myMaskNodeOffset |
| bool | myShouldFollowObserver |
| bool | myUseAttachmentPosition |
| float | myNearDpethRange |
| float | myFarDepthRange |
| bool | myChromaKeyActive |
| osg::Vec3 | myChromaHsvColor |
| osg::Vec3 | myChromaHsvTolerance |
| osg::Vec3 | myChromaHsvFalloff |
| osg::ref_ptr < osg::MatrixTransform > | myOffsetTransform |
| osg::ref_ptr < osg::MatrixTransform > | myMixedRealityMaskNode |
Private Member Functions | |
| DtMixedRealityMask (const DtMixedRealityMask &other) | |
| DtMixedRealityMask & | operator= (const DtMixedRealityMask &other) |
|
private |
Copy Constructor not implemented – Copy Not Allowed.
| makVrv::DtMixedRealityMask::DtMixedRealityMask | ( | DtDe & | de | ) |
constructor
|
virtual |
DTOR.
|
private |
Assignment Operator Not implemented – Assignment Not Allowed.
|
virtual |
initalise the mask object by setting the offset, clearing any exisiting children then calling the provider specific implementation
|
virtual |
start masking by attaching the node to the scene and enabling our callbacks
Reimplemented in makVrv::DtVarjoMixedRealityMask.
|
virtual |
stop masking by dettaching the node from the scene and disabling our callbacks
|
virtual |
is masking currently active
|
virtual |
set the translation of the offset transform matrix
|
virtual |
returns the near depth range for depth testing MR
|
virtual |
set the far depth range for depth testing MR
|
virtual |
returns the near depth range for depth testing MR
|
virtual |
set the far depth range for depth testing MR
|
virtual |
is chroma keying active
|
virtual |
is chroma keying active
|
virtual |
the key color in hsv space
|
virtual |
the key color in hsv space
|
virtual |
the key tolerence
|
virtual |
the key tolerence
|
virtual |
the key falloff
|
virtual |
the key falloff
|
virtual |
post update event for syncing model with observer position if required
|
protectedpure virtual |
provider specific implementation of object initalization, objects should be attached to the offset transform, when this function is called all object transform children will have been removed
Implemented in makVrv::DtVarjoMixedRealityMask, and makVrv::DtOpenVRMixedRealityMask.
|
protected |
find scene object, used to find the observer attached objects
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |