VR-Forces 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 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 ()
 
virtual void reset ()
 
 DtCigiViewController ()=delete
 
 DtCigiViewController (DtCigiViewController &)=delete
 
 DtCigiViewController (DtCigiViewController &&)=delete
 
DtCigiViewControlleroperator= (DtCigiViewController &)=delete
 
DtCigiViewControlleroperator= (DtCigiViewController &&)=delete
 

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 slot_onEntityLodScaleReceived (int viewId, float scale)
 
virtual void slot_onTerrainLodScaleReceived (int viewId, float scale)
 
virtual void performSetLodScale (int viewId, float scale, bool setEntityLodScale, bool setTerrainLodScale)
 
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)
 
virtual void clearSensors ()
 

Protected Attributes

DtDemyDe
 
DtCigiConnectionmyCigiConnection
 
DtSignalConnectionManager myConnections
 
DtMasterSensorControllermyMasterSensorController
 
std::unordered_map< int,
AttachData
myViewIdsToAttachDataMap
 
std::unordered_set< intmyViewIdsToClearSensor
 

Friends

class DtCigiViewControllerCreator
 

Constructor & Destructor Documentation

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

Destructor.

makVrv::DtCigiViewController::DtCigiViewController ( )
delete

Not allowed.

makVrv::DtCigiViewController::DtCigiViewController ( DtCigiViewController )
delete

Not allowed.

makVrv::DtCigiViewController::DtCigiViewController ( DtCigiViewController &&  )
delete

Not allowed.

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

Constructor.

Member Function Documentation

virtual void makVrv::DtCigiViewController::reset ( )
virtual

Reset the internal containers when the CIGI connection is reset via IGMode reset.

DtCigiViewController& makVrv::DtCigiViewController::operator= ( DtCigiViewController )
delete

Not allowed.

DtCigiViewController& makVrv::DtCigiViewController::operator= ( DtCigiViewController &&  )
delete

Not allowed.

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 (for both entities and terrain visuals) is received.

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

Called when a entity lod scale setting is received.

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

Called when a terrain lod scale setting is received.

virtual void makVrv::DtCigiViewController::performSetLodScale ( int  viewId,
float  scale,
bool  setEntityLodScale,
bool  setTerrainLodScale 
)
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.

virtual void makVrv::DtCigiViewController::clearSensors ( )
protectedvirtual

For all the view IDs in myViewIdsToClearSensor set them to "No Sensor" Used in reset and DTOR.

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!

std::unordered_map< int, AttachData > makVrv::DtCigiViewController::myViewIdsToAttachDataMap
protected
std::unordered_set< int > makVrv::DtCigiViewController::myViewIdsToClearSensor
protected

Used in render thread if multithreaded connection is on.


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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)