VR-Forces 4.10 Class Documentation
 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 | Friends
makVrv::DtCigiViewController Class Reference

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

Public Member Functions

virtual ~DtCigiViewController ()
 Destructor. More...
 

Protected Member Functions

 DtCigiViewController (DtDe &de, DtCigiConnection &connection)
 Constructor. More...
 
virtual void modifyConfiguration (const std::string &displayName, const std::string &windowName, const std::string &channelName, const DtChannelConfiguration &config)
 Changes the channel configuration. More...
 
virtual void attachObserver (int viewId, const DtCigiViewManager::DtViewControlAction &action, DtObserverObject::AttachType attachType=DtObserverObject::AttachTypeMimic, int artPartID=0)
 Attach the observer of the specified view, using the parameters in action. More...
 
virtual void slot_onViewDefinitionReceived (int viewId, DtCigiViewManager::DtViewDefinitionAction action)
 Called when we receive a view definition. More...
 
virtual void performSetViewDefinition (int viewId, const DtCigiViewManager::DtViewDefinitionAction &action)
 Perform the view definition action in a thread-safe way. More...
 
virtual void slot_onViewControlReceived (int viewId, DtCigiViewManager::DtViewControlAction action)
 Called when a view control is received. More...
 
virtual void performSetViewControl (int viewId, const DtCigiViewManager::DtViewControlAction &action)
 Perform the view control in a thread-safe way. More...
 
virtual void slot_onViewMagnificationReceived (int viewId, float magValue)
 Called when a view magnification is received. More...
 
virtual void performSetViewMagnification (int viewId, float magValue)
 Perform the operation requested in slot_onViewMagnificationReceived in the main (render) thread. More...
 
virtual void slot_onLodScaleReceived (int viewId, float scale)
 Called when a lod scale setting is received. More...
 
virtual void performSetLodScale (int viewId, float scale)
 Perform the operation requested in slot_onLodScaleReceived in the main (render) thread. More...
 
virtual void slot_onAttachViewToArtPartReceived (int viewId, DtCigiViewManager::DtViewControlAction action, int artPartId)
 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. More...
 
virtual void performAttachViewToArtPart (int viewId, DtCigiViewManager::DtViewControlAction action, int artPartId)
 Perform the operation requested in slot_onAttachViewToArtPartReceived. More...
 
virtual void slot_onSensorControlRequest (DtSensorResponder::DtSensorRequestData *request)
 Signal sent from DtSensorResponder This method checks if the Cigi connection is using a thread, if so queues the function. More...
 
virtual void performSensorControlRequest (DtSensorResponder::DtSensorRequestData &request)
 Performs the sensor operation on the ViewId in the request. More...
 
virtual void slot_channelEnabledReceived (int viewId, bool channelOn)
 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. More...
 
virtual void performChannelEnabledChange (int viewId, bool channelOn)
 Turns the channel associated with the CIGI View ID on or off. More...
 

Protected Attributes

DtDemyDe
 
DtCigiConnectionmyCigiConnection
 
DtSignalConnectionManager myConnections
 
DtMasterSensorControllermyMasterSensorController
 This can only be used from the render thread! More...
 

Friends

class DtCigiViewControllerCreator
 

Detailed Description

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

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!


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

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)