VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtMixedRealityMask.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
10 
11 #pragma once
12 
15 
16 #include <vrvCore/DtDe.h>
17 #include <vrvCore/DtSceneObject.h>
18 
20 
21 #include <osg/MatrixTransform>
22 
23 #include <boost/signal.hpp>
24 
25 namespace makVrv
26 {
27 
33  {
34  private:
37 
39  DtMixedRealityMask& operator=(const DtMixedRealityMask& other);
40 
41  public:
44 
46  virtual ~DtMixedRealityMask();
47 
50  virtual void initalizeMaskingObect(osg::Group* mountTo, osg::Vec3 offset, bool followObserver, std::string modelFile);
51 
53  virtual void startMasking();
54 
56  virtual void stopMasking();
57 
59  virtual void setOffset(const osg::Vec3& offset);
60 
62  virtual float nearDepthRange() const;
63 
65  virtual void nearDepthRange(float nearDepth);
66 
68  virtual float farDepthRange() const;
69 
71  virtual void farDepthRange(float farDepth);
72 
74  virtual void slot_onPostUpdate();
75 
76  protected:
77 
81  virtual void initalizeMaskingObectImplementation(std::string modelFile) = 0;
82 
84  DtSceneObject* findSceneObjectFromElement(const DtElementID& id, int modelSet);
85 
86  protected:
90 
93  osg::Vec3 myMaskNodeOffset;
96 
99 
102  };
103 
104 }
Contains DLL export macros.
bool myShouldFollowObserver
Definition: DtMixedRealityMask.h:94
Contains makVrv::DtDe class.
float myFarDepthRange
Definition: DtMixedRealityMask.h:98
A driver that manages virtual reality HMD and input devices.
Definition: DtVirtualRealityDriver.h:49
bool myMaskingActive
Definition: DtMixedRealityMask.h:91
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:26
#define DT_DLL_VRVVR
Definition: vrvVirtualReality.h:19
A driver that manages virtual reality HMD and input devices.
osg::ref_ptr< osg::MatrixTransform > myMixedRealityMaskNode
Definition: DtMixedRealityMask.h:101
osg::Vec3 myMaskNodeOffset
Definition: DtMixedRealityMask.h:93
bool myUseAttachmentPosition
Definition: DtMixedRealityMask.h:95
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:24
Object to handle rendering a mixed reality mask object into the scene.
Definition: DtMixedRealityMask.h:32
float myNearDpethRange
Definition: DtMixedRealityMask.h:97
DtDe & myDe
Definition: DtMixedRealityMask.h:87
Base class to provide boost signal/slot management.
DtSignalConnectionManager myConnections
Definition: DtMixedRealityMask.h:89
A DtSceneObject represents an object that can be positioned in the scene by (possibly) attaching it t...
Definition: DtSceneObject.h:41
DtVirtualRealityDriver * myDriverHandle
Definition: DtMixedRealityMask.h:88
osg::ref_ptr< osg::MatrixTransform > myOffsetTransform
Definition: DtMixedRealityMask.h:100
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
osg::ref_ptr< osg::Group > myMountNode
Definition: DtMixedRealityMask.h:92
voidpf uLong offset
Definition: ioapi.h:42
Contains makVrv::DtSceneObject class.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)