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

A DtCigiViewControl receives messages from the DtCigiConnection and actually changes the channel settings or attaches an observer.

Classes

struct  AttachData
 

Public Member Functions

virtual ~DtCigiViewController ()
 

Protected Types

typedef std::multimap
< DtUniqueID, AttachData
AttachedEntityToViewIDsMap
 
typedef std::pair
< AttachedEntityToViewIDsMap::iterator,
AttachedEntityToViewIDsMap::iterator > 
RangeIterAttachedViews
 
typedef std::pair
< AttachedEntityToViewIDsMap::const_iterator,
AttachedEntityToViewIDsMap::const_iterator > 
ConstRangeIterAttachedViews
 

Protected Member Functions

 DtCigiViewController (DtDe &de, DtCigiConnection &connection)
 
virtual void modifyConfiguration (const std::string &displayName, const std::string &windowName, const std::string &channelName, const DtChannelConfiguration &config)
 
virtual void attachObserver (int viewId, const DtCigiViewManager::DtViewControlAction &action, DtObserverObject::AttachType attachType=DtObserverObject::AttachTypeMimic, int artPartID=0)
 
virtual void slot_onViewDefinitionReceived (int viewId, DtCigiViewManager::DtViewDefinitionAction action)
 
virtual void performSetViewDefinition (int viewId, const DtCigiViewManager::DtViewDefinitionAction &action)
 
virtual void slot_onViewControlReceived (int viewId, DtCigiViewManager::DtViewControlAction action)
 
virtual void performSetViewControl (int viewId, const DtCigiViewManager::DtViewControlAction &action)
 
virtual void slot_onViewMagnificationReceived (int viewId, float magValue)
 
virtual void performSetViewMagnification (int viewId, float magValue)
 
virtual void slot_onLodScaleReceived (int viewId, float scale)
 
virtual void performSetLodScale (int viewId, float scale)
 
virtual void slot_onAttachViewToArtPartReceived (int viewId, DtCigiViewManager::DtViewControlAction action, int artPartId)
 
virtual void performAttachViewToArtPart (int viewId, DtCigiViewManager::DtViewControlAction action, int artPartId)
 
virtual void slot_onSensorControlRequest (DtSensorResponder::DtSensorRequestData *request)
 
virtual void performSensorControlRequest (DtSensorResponder::DtSensorRequestData &request)
 
virtual void slot_channelEnabledReceived (int viewId, bool channelOn)
 
virtual void performChannelEnabledChange (int viewId, bool channelOn)
 

Protected Attributes

DtDemyDe
 
DtCigiConnectionmyCigiConnection
 
DtSignalConnectionManager myConnections
 
DtMasterSensorControllermyMasterSensorController
 
AttachedEntityToViewIDsMap myAttachedEntityToViewIDsMap
 

Friends

class DtCigiViewControllerCreator
 

Member Typedef Documentation

typedef std::pair<AttachedEntityToViewIDsMap::iterator, AttachedEntityToViewIDsMap::iterator> makVrv::DtCigiViewController::RangeIterAttachedViews
protected
typedef std::pair<AttachedEntityToViewIDsMap::const_iterator, AttachedEntityToViewIDsMap::const_iterator> makVrv::DtCigiViewController::ConstRangeIterAttachedViews
protected

Constructor & Destructor Documentation

virtual makVrv::DtCigiViewController::~DtCigiViewController ( )
virtual

Destructor.

makVrv::DtCigiViewController::DtCigiViewController ( DtDe de,
DtCigiConnection connection 
)
protected

Constructor.

Member Function Documentation

virtual void makVrv::DtCigiViewController::modifyConfiguration ( const std::string &  displayName,
const std::string &  windowName,
const std::string &  channelName,
const DtChannelConfiguration config 
)
protectedvirtual

Changes the channel configuration.

virtual void makVrv::DtCigiViewController::attachObserver ( int  viewId,
const DtCigiViewManager::DtViewControlAction action,
DtObserverObject::AttachType  attachType = DtObserverObject::AttachTypeMimic,
int  artPartID = 0 
)
protectedvirtual

Attach the observer of the specified view, using the parameters in action.

virtual void makVrv::DtCigiViewController::slot_onViewDefinitionReceived ( int  viewId,
DtCigiViewManager::DtViewDefinitionAction  action 
)
protectedvirtual

Called when we receive a view definition.

virtual void makVrv::DtCigiViewController::performSetViewDefinition ( int  viewId,
const DtCigiViewManager::DtViewDefinitionAction action 
)
protectedvirtual

Perform the view definition action in a thread-safe way.

virtual void makVrv::DtCigiViewController::slot_onViewControlReceived ( int  viewId,
DtCigiViewManager::DtViewControlAction  action 
)
protectedvirtual

Called when a view control is received.

virtual void makVrv::DtCigiViewController::performSetViewControl ( int  viewId,
const DtCigiViewManager::DtViewControlAction action 
)
protectedvirtual

Perform the view control in a thread-safe way.

virtual void makVrv::DtCigiViewController::slot_onViewMagnificationReceived ( int  viewId,
float  magValue 
)
protectedvirtual

Called when a view magnification is received.

virtual void makVrv::DtCigiViewController::performSetViewMagnification ( int  viewId,
float  magValue 
)
protectedvirtual

Perform the operation requested in slot_onViewMagnificationReceived in the main (render) thread.

virtual void makVrv::DtCigiViewController::slot_onLodScaleReceived ( int  viewId,
float  scale 
)
protectedvirtual

Called when a lod scale setting is received.

virtual void makVrv::DtCigiViewController::performSetLodScale ( int  viewId,
float  scale 
)
protectedvirtual

Perform the operation requested in slot_onLodScaleReceived in the main (render) thread.

virtual void makVrv::DtCigiViewController::slot_onAttachViewToArtPartReceived ( int  viewId,
DtCigiViewManager::DtViewControlAction  action,
int  artPartId 
)
protectedvirtual

Called when a view or view group is attached to an articulated part This method checks if the Cigi connection is using a thread, if so queues the function.

virtual void makVrv::DtCigiViewController::performAttachViewToArtPart ( int  viewId,
DtCigiViewManager::DtViewControlAction  action,
int  artPartId 
)
protectedvirtual

Perform the operation requested in slot_onAttachViewToArtPartReceived.

virtual void makVrv::DtCigiViewController::slot_onSensorControlRequest ( DtSensorResponder::DtSensorRequestData request)
protectedvirtual

Signal sent from DtSensorResponder This method checks if the Cigi connection is using a thread, if so queues the function.

virtual void makVrv::DtCigiViewController::performSensorControlRequest ( DtSensorResponder::DtSensorRequestData request)
protectedvirtual

Performs the sensor operation on the ViewId in the request.

virtual void makVrv::DtCigiViewController::slot_channelEnabledReceived ( int  viewId,
bool  channelOn 
)
protectedvirtual

Turns the channel associated with the CIGI View ID on or off This method checks if the Cigi connection is using a thread, if so queues the function.

virtual void makVrv::DtCigiViewController::performChannelEnabledChange ( int  viewId,
bool  channelOn 
)
protectedvirtual

Turns the channel associated with the CIGI View ID on or off.

Friends And Related Function Documentation

friend class DtCigiViewControllerCreator
friend

Member Data Documentation

DtDe& makVrv::DtCigiViewController::myDe
protected
DtCigiConnection& makVrv::DtCigiViewController::myCigiConnection
protected
DtSignalConnectionManager makVrv::DtCigiViewController::myConnections
protected
DtMasterSensorController* makVrv::DtCigiViewController::myMasterSensorController
protected

This can only be used from the render thread!

AttachedEntityToViewIDsMap makVrv::DtCigiViewController::myAttachedEntityToViewIDsMap
protected

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

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)