VR-Forces 4.10 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 namespace makVrv
24 {
25 
26  // Struct for storing per-marker data.
28  {
29  osg::Matrixd pose; // Marker pose matrix
30  osg::Vec3 size; // Marker size
31  int id; // Marker id
32  };
33 
39  {
40  private:
43 
45  DtMixedRealityMask& operator=(const DtMixedRealityMask& other);
46 
47  public:
50 
52  virtual ~DtMixedRealityMask();
53 
56  virtual void initalizeMaskingObect(osg::Group* mountTo, osg::Vec3 offset, bool followObserver, std::string modelFile);
57 
59  virtual void startMasking();
60 
62  virtual void stopMasking();
63 
65  virtual bool maskingActive();
66 
68  virtual void setOffset(const osg::Vec3& offset);
69 
71  virtual float nearDepthRange() const;
72 
74  virtual void nearDepthRange(float nearDepth);
75 
77  virtual float farDepthRange() const;
78 
80  virtual void farDepthRange(float farDepth);
81 
83  virtual void slot_onPostUpdate();
84 
85  protected:
86 
90  virtual void initalizeMaskingObectImplementation(std::string modelFile) = 0;
91 
93  DtSceneObject* findSceneObjectFromElement(const DtElementID& id, int modelSet);
94 
95  protected:
99 
102  osg::Vec3 myMaskNodeOffset;
105 
108 
111  };
112 
113 }
Contains DLL export macros.
osg::Vec3 size
Definition: DtMixedRealityMask.h:30
bool myShouldFollowObserver
Definition: DtMixedRealityMask.h:103
Contains makVrv::DtDe class.
float myFarDepthRange
Definition: DtMixedRealityMask.h:107
A driver that manages virtual reality HMD and input devices.
Definition: DtVirtualRealityDriver.h:51
bool myMaskingActive
Definition: DtMixedRealityMask.h:100
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:23
#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:110
osg::Vec3 myMaskNodeOffset
Definition: DtMixedRealityMask.h:102
bool myUseAttachmentPosition
Definition: DtMixedRealityMask.h:104
osg::Matrixd pose
Definition: DtMixedRealityMask.h:29
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Object to handle rendering a mixed reality mask object into the scene.
Definition: DtMixedRealityMask.h:38
int id
Definition: DtMixedRealityMask.h:31
float myNearDpethRange
Definition: DtMixedRealityMask.h:106
DtDe & myDe
Definition: DtMixedRealityMask.h:96
Base class to provide boost signal/slot management.
DtSignalConnectionManager myConnections
Definition: DtMixedRealityMask.h:98
Definition: DtMixedRealityMask.h:27
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:97
osg::ref_ptr< osg::MatrixTransform > myOffsetTransform
Definition: DtMixedRealityMask.h:109
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
osg::ref_ptr< osg::Group > myMountNode
Definition: DtMixedRealityMask.h:101
voidpf uLong offset
Definition: ioapi.h:42
Contains makVrv::DtSceneObject class.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)