15 #include <vlpi/exponentialSmoother.h>
17 #include <osg/ref_ptr>
18 #include <osg/MatrixTransform>
33 class DtGlStudioDrawable;
34 class DtChannelSpecificGroup;
35 class DtGlStudioEventProcessor;
37 class DtChannelManager;
39 class DtChannelConfiguration;
40 class DtWindowConfiguration;
41 class DtGlStudioAttributeUpdater;
42 class DtObserverObject;
65 virtual void createCockpit(
const std::string&
filename,
69 virtual void removeCockpit();
72 virtual void setProperty(
const std::string& prop,
const std::string& val);
75 virtual void setChannelKeyword(
const std::string& channelKeyword);
78 virtual void setPerspective(
const double& width,
const double& height);
81 virtual void setOffset(
const double& x,
const double& y,
const double& z);
84 virtual void setDynamicScale(
const double& x,
const double& y,
88 virtual void setDynamicRotate(
const double& x,
const double& y,
92 virtual void setVisible(
bool vis);
95 virtual void addUpdater(
const std::string& name,
const std::string& type);
99 virtual void updateTSPI(
const DtVector& loc,
const DtVector& vel,
100 const DtVector& accel,
const DtTaitBryan& orient,
101 const DtVector& rotVel,
int algorithm);
104 virtual void setObserverName(
const std::string& obsName);
105 virtual std::string observerName()
const;
110 virtual void setRenderCockpitOnly(
bool cockpitOnly);
111 virtual bool renderCockpitOnly();
116 virtual void setRenderAsOverlay(
bool renderAsOverlay);
117 virtual bool renderAsOverlay();
130 virtual std::string className()
const;
137 virtual void updateMatrixTransform();
143 virtual double update();
148 virtual bool needsUpdate(
DtTime tNow );
151 virtual void update(
DtTime tNow );
161 virtual void initGlStudio();
164 virtual osg::Group* createOverlayObjects();
168 virtual osg::Group* createChannelNode();
171 virtual void deepRemoveChildren(osg::Group* g);
180 virtual void slot_channelModified(
const std::string& deName,
const std::string& windowName,
184 virtual void slot_smoothingEnabled(
bool smooth);
186 virtual void slot_smoothingPeriod(
const double& period);
std::string myObserverName
Definition: DtOsgGlStudioCockpit.h:208
double myWidth
Definition: DtOsgGlStudioCockpit.h:194
bool myHasSmootherValues
Definition: DtOsgGlStudioCockpit.h:224
DtSignalConnectionManager myConnections
Auto-disconnects on destruction; avoids singleton lookups in the DTOR.
Definition: DtOsgGlStudioCockpit.h:231
Processor to handle events for the osgWidget overlay on a channel.
Definition: DtGlStudioEventProcessor.h:38
double myHeight
Definition: DtOsgGlStudioCockpit.h:195
double myDynamicRotateY
Definition: DtOsgGlStudioCockpit.h:206
double myOffsetZ
Definition: DtOsgGlStudioCockpit.h:201
DtAttributeUpdateMap myAttributeUpdaters
Definition: DtOsgGlStudioCockpit.h:158
DtPerspective
Definition: DtOsgGlStudioCockpit.h:52
double myDynamicRotateZ
Definition: DtOsgGlStudioCockpit.h:207
std::string myChannelKeyword
Definition: DtOsgGlStudioCockpit.h:198
osg::ref_ptr< osg::MatrixTransform > myMatrixTransform
Definition: DtOsgGlStudioCockpit.h:218
DtPerspective myPerspective
Definition: DtOsgGlStudioCockpit.h:196
An abstract base class for objects that require updates. This object automatically adds itself to a D...
Definition: DtTickable.h:26
double myCurrentTime
Definition: DtOsgGlStudioCockpit.h:228
DtGlStudioDrawable * myGlStudioComponent
Definition: DtOsgGlStudioCockpit.h:220
double myDynamicScaleZ
Definition: DtOsgGlStudioCockpit.h:204
This class encapsulates a mouse button event.
Definition: DtMouseEvent.h:19
DtExponentialSmoother mySmoother
Definition: DtOsgGlStudioCockpit.h:225
std::string myFilename
Definition: DtOsgGlStudioCockpit.h:193
The abstract Channel Class.
Definition: DtChannel.h:35
double myOffsetY
Definition: DtOsgGlStudioCockpit.h:200
DtGlStudioEventProcessor * myEventProcessor
Definition: DtOsgGlStudioCockpit.h:221
bool myIsVisible
Definition: DtOsgGlStudioCockpit.h:209
bool myRenderCockpitOnly
Definition: DtOsgGlStudioCockpit.h:211
A group node that culls it's group members based on channels.
Definition: DtChannelSpecificGroup.h:31
The OSG Drawable that contains a GL Studio HUD.
Definition: DtGlStudioDrawable.h:49
DtOsgGlStudioCockpit is the implementation of the distributed object of the same name (and under our ...
Definition: DtOsgGlStudioCockpit.h:49
This abstract base class defines the interface for OS-specific keyboard and mouse event listeners...
Definition: DtObserverObject.h:35
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
bool myObserverIs2D
Definition: DtOsgGlStudioCockpit.h:210
double myDynamicRotateX
Definition: DtOsgGlStudioCockpit.h:205
double myOffsetX
Definition: DtOsgGlStudioCockpit.h:199
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
double myDynamicScaleY
Definition: DtOsgGlStudioCockpit.h:203
std::map< std::string, DtGlStudioAttributeUpdater * > DtAttributeUpdateMap
Definition: DtOsgGlStudioCockpit.h:53
Base class for handling DtChannels. Derived classes should override the tick() method and advance the...
Definition: DtChannelManager.h:32
DtClock myClock
Definition: DtOsgGlStudioCockpit.h:226
osg::ref_ptr< osg::Group > myGlStudioGroup
Definition: DtOsgGlStudioCockpit.h:213
#define DT_DLL_VRVGLSTUDIOSHARED
Definition: DtGlStudioShared.h:22
Base class to provide boost signal/slot management.
Contains the declaration for makVrv::DtTickable.
Configuration for a single channel Serialized and sent to remote displays as necessary to configure r...
Definition: DtChannelConfiguration.h:24
std::string myRsoName
Definition: DtOsgGlStudioCockpit.h:192
bool myRenderAsOverlay
Definition: DtOsgGlStudioCockpit.h:197
A DtSceneObject represents an object that can be positioned in the scene by (possibly) attaching it t...
Definition: DtSceneObject.h:44
Contains makVrv::DtUniqueID type.
DtUniqueID myId
Definition: DtOsgGlStudioCockpit.h:191
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
DtDe & myDe
Definition: DtOsgGlStudioCockpit.h:190
osg::ref_ptr< osg::Switch > myViewSwitchNode
Definition: DtOsgGlStudioCockpit.h:216
double myDynamicScaleX
Definition: DtOsgGlStudioCockpit.h:202
DtSceneObject * myHostSceneObject
Definition: DtOsgGlStudioCockpit.h:222
osg::ref_ptr< osg::Group > myGlStudio3DGroup
Definition: DtOsgGlStudioCockpit.h:215
double myPreviousTime
Definition: DtOsgGlStudioCockpit.h:227
osg::ref_ptr< osg::Group > myGlStudioPost2DGroup
Definition: DtOsgGlStudioCockpit.h:214
DtChannelSpecificGroup * myChannelNode
Definition: DtOsgGlStudioCockpit.h:219