VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtChannelManager Class Reference

Base class for handling DtChannels. More...

Inheritance diagram for makVrv::DtChannelManager:
Inheritance graph
[legend]

List of all members.

Public Types

typedef std::map< std::string,
DtChannel * > 
ChannelMap

Public Member Functions

virtual ~DtChannelManager ()
 DTOR.
virtual DtChanneladdChannel (const std::string &displayName, const std::string &windowName, const DtChannelConfiguration &wc)
 Create a new channel.
virtual void destroyChannels ()
 Destroy all channels attached to the window.
virtual void destroyChannel (const std::string &displayName, const std::string &windowName, const std::string &channelName)
 Destroys a channel.
virtual bool modifyChannel (const std::string &displayName, const std::string &windowName, const std::string &oldChannelName, const DtChannelConfiguration &config)
 Modify channel.
virtual const ChannelMapchannels () const
 Get the channel list.
virtual ChannelMapchannels ()
 Get the channel list.
virtual bool tick ()
 Called once per logical frame.
virtual void realizeChannels ()
 Realize the current configured channels.
virtual void updateAllChannelProjections ()
 Update each channel's projection.
DtChannelfindChannelByName (const std::string &name)
 Find a channel by its name.
const DtChannelfindChannelByName (const std::string &name) const
 Find a channel by its name.

Protected Member Functions

 DtChannelManager (DtDe &anIG, DtWindow *window, DtChannelConfigurations &channelConfigs)
 The CTOR.
virtual DtChannelrealizeConfiguration (DtChannelConfiguration &)
 Create a channel via a configuration.

Protected Attributes

DtDemyDe
DtChannelManagerSignalermySignaler
DtWindowmyWindow
DtChannelConfigurationsmyChannelConfigurations
ChannelMap myChannels

Detailed Description

Base class for handling DtChannels.

Derived classes should override the tick() method and advance the frame of all channels.


Member Typedef Documentation

typedef std::map<std::string,DtChannel*> makVrv::DtChannelManager::ChannelMap

Constructor & Destructor Documentation

makVrv::DtChannelManager::DtChannelManager ( DtDe anIG,
DtWindow window,
DtChannelConfigurations channelConfigs 
) [protected]

The CTOR.

DTOR.


Member Function Documentation

virtual DtChannel& makVrv::DtChannelManager::addChannel ( const std::string &  displayName,
const std::string &  windowName,
const DtChannelConfiguration wc 
) [virtual]

Create a new channel.

A new channel configuration is added to three and a channel object is created and managed by this manager. Call destroy channel to destroy the channel object.

Exceptions:
DtInvalidInputif the type is unknown.
virtual void makVrv::DtChannelManager::destroyChannels ( ) [virtual]

Destroy all channels attached to the window.

virtual void makVrv::DtChannelManager::destroyChannel ( const std::string &  displayName,
const std::string &  windowName,
const std::string &  channelName 
) [virtual]

Destroys a channel.

Reimplemented in makVrv::DtOsgChannelManager.

virtual bool makVrv::DtChannelManager::modifyChannel ( const std::string &  displayName,
const std::string &  windowName,
const std::string &  oldChannelName,
const DtChannelConfiguration config 
) [virtual]

Modify channel.

Find a channel by its name.

const DtChannel* makVrv::DtChannelManager::findChannelByName ( const std::string &  name) const

Find a channel by its name.

virtual const ChannelMap& makVrv::DtChannelManager::channels ( ) const [virtual]

Get the channel list.

Get the channel list.

virtual bool makVrv::DtChannelManager::tick ( ) [virtual]

Called once per logical frame.

Override and advance the frame of each channel.

virtual void makVrv::DtChannelManager::realizeChannels ( ) [virtual]

Realize the current configured channels.

Update each channel's projection.

Create a channel via a configuration.

Reimplemented in makVrv::DtOsgChannelManager.


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)