VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtVarjoMixedRealityMask Class Reference

Varjo implementation of mixed reality mask.

Inheritance diagram for makVrv::DtVarjoMixedRealityMask:
Inheritance graph
[legend]

Public Member Functions

 DtVarjoMixedRealityMask (DtDe &de)
 
virtual ~DtVarjoMixedRealityMask ()
 
 DtVarjoMixedRealityMask (const DtVarjoMixedRealityMask &other)=delete
 
DtVarjoMixedRealityMaskoperator= (const DtVarjoMixedRealityMask &other)=delete
 
virtual void startMasking () override
 
- Public Member Functions inherited from makVrv::DtMixedRealityMask
 DtMixedRealityMask (DtDe &de)
 
virtual ~DtMixedRealityMask ()
 
virtual void initalizeMaskingObect (osg::Group *mountTo, const osg::Vec3 &offset, bool followObserver, std::string modelFile)
 
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)
 
void setupPrepassNode (osg::Node *modelNode)
 
- Protected Member Functions inherited from makVrv::DtMixedRealityMask
DtSceneObjectfindSceneObjectFromElement (const DtElementID &id, DtModelSetId modelSet)
 

Protected Attributes

osg::ref_ptr< osg::Group > myMaskPrePassNode
 
osg::ref_ptr< osg::Program > myMaskProgram
 
bool myEnableColorWrites
 
- Protected Attributes inherited from makVrv::DtMixedRealityMask
DtDemyDe
 
DtVirtualRealityDrivermyDriverHandle
 
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
 

Constructor & Destructor Documentation

makVrv::DtVarjoMixedRealityMask::DtVarjoMixedRealityMask ( DtDe de)

Construction.

virtual makVrv::DtVarjoMixedRealityMask::~DtVarjoMixedRealityMask ( )
virtual

DTOR.

makVrv::DtVarjoMixedRealityMask::DtVarjoMixedRealityMask ( const DtVarjoMixedRealityMask other)
delete

Copy Constructor not implemented – Copy Not Allowed.

Member Function Documentation

DtVarjoMixedRealityMask& makVrv::DtVarjoMixedRealityMask::operator= ( const DtVarjoMixedRealityMask other)
delete

Assignment Operator Not implemented – Assignment Not Allowed.

virtual void makVrv::DtVarjoMixedRealityMask::startMasking ( )
overridevirtual

Override to make sure eyeTracking is calibrated.

Reimplemented from makVrv::DtMixedRealityMask.

virtual void makVrv::DtVarjoMixedRealityMask::initalizeMaskingObectImplementation ( std::string  modelFile)
protectedvirtual

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

Implements makVrv::DtMixedRealityMask.

void makVrv::DtVarjoMixedRealityMask::setupPrepassNode ( osg::Node *  modelNode)
protected

allocate prepassnode, attach to offset transform and setup stateset

Member Data Documentation

osg::ref_ptr<osg::Group> makVrv::DtVarjoMixedRealityMask::myMaskPrePassNode
protected
osg::ref_ptr<osg::Program> makVrv::DtVarjoMixedRealityMask::myMaskProgram
protected
bool makVrv::DtVarjoMixedRealityMask::myEnableColorWrites
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)