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 Types | Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions
DtScriptedObjectsMovementManager Class Reference

The scripted objects movement manager contains a list of all objects that can be scheduled for scripted movement. More...

Public Types

typedef std::map< std::string,
DtScriptedMovementObject
ScriptedMovementObjects
 

Public Member Functions

 DtScriptedObjectsMovementManager (DtSimManager *)
 CTOR. More...
 
virtual ~DtScriptedObjectsMovementManager ()
 DTOR. More...
 
virtual DtSimManagersimManager () const
 
virtual void removeAllScriptedMovementObjects ()
 Removes all the current scripted movement objects from the manager. More...
 
virtual bool loadScriptedMovementObjects (const DtFilename &dir, bool append=false)
 Reads all the mtl files from the given directory and adds any scripted movement objects it finds into the manager. More...
 
virtual void addScriptedMovementObject (const DtScriptedMovementObject &)
 Adds a new scripted movement object into the manager. If named object exists, replaces. More...
 
virtual bool removeScriptedMovementObject (const std::string &)
 Removes the named scripted movement object. More...
 
virtual const
ScriptedMovementObjects
scriptedMovementObjects () const
 Returns the list of scripted movement objects. More...
 
virtual void setScriptedMovementObjects (const ScriptedMovementObjects &)
 Sets the scripted movement objects. More...
 
virtual bool scriptedMovementObject (const std::string &objectToFind, DtScriptedMovementObject &object) const
 Fills in the scripted movement object for the specified object an returns true if the object is found. More...
 
virtual DtString fileConfigurationFor (const std::string &uniqueId) const
 Given the file configuration unique id, looks up movement file configuration and then sees if that unique id exists. More...
 

Protected Types

typedef std::map< std::string,
DtScriptedMovementFileConfiguration
MovementFileConfigurations
 

Protected Member Functions

virtual void processScriptedMovementObjectsRequest (DtSimMessage *msg)
 

Static Protected Member Functions

static void scriptedMovementObjectsRequestCallback (DtSimMessage *msg, void *usr)
 Callback for request for fly out files. More...
 

Protected Attributes

DtSimManagermySimManager
 
ScriptedMovementObjects myScriptedMovementObjects
 
MovementFileConfigurations myMovementFileConfigurations
 

Private Member Functions

 DtScriptedObjectsMovementManager (const DtScriptedObjectsMovementManager &orig)
 copy constructor More...
 
DtScriptedObjectsMovementManageroperator= (const DtScriptedObjectsMovementManager &orig)
 assignment operator More...
 

Detailed Description

The scripted objects movement manager contains a list of all objects that can be scheduled for scripted movement.

Member Typedef Documentation

Constructor & Destructor Documentation

DtScriptedObjectsMovementManager::DtScriptedObjectsMovementManager ( DtSimManager )

CTOR.

virtual DtScriptedObjectsMovementManager::~DtScriptedObjectsMovementManager ( )
virtual

DTOR.

DtScriptedObjectsMovementManager::DtScriptedObjectsMovementManager ( const DtScriptedObjectsMovementManager orig)
private

copy constructor

Member Function Documentation

DtScriptedObjectsMovementManager& DtScriptedObjectsMovementManager::operator= ( const DtScriptedObjectsMovementManager orig)
private

assignment operator

virtual DtSimManager* DtScriptedObjectsMovementManager::simManager ( ) const
virtual
virtual void DtScriptedObjectsMovementManager::removeAllScriptedMovementObjects ( )
virtual

Removes all the current scripted movement objects from the manager.

virtual bool DtScriptedObjectsMovementManager::loadScriptedMovementObjects ( const DtFilename &  dir,
bool  append = false 
)
virtual

Reads all the mtl files from the given directory and adds any scripted movement objects it finds into the manager.

The final flag being true will append items. Returns true if any objects were loaded from the directory

virtual void DtScriptedObjectsMovementManager::addScriptedMovementObject ( const DtScriptedMovementObject )
virtual

Adds a new scripted movement object into the manager. If named object exists, replaces.

virtual bool DtScriptedObjectsMovementManager::removeScriptedMovementObject ( const std::string &  )
virtual

Removes the named scripted movement object.

virtual const ScriptedMovementObjects& DtScriptedObjectsMovementManager::scriptedMovementObjects ( ) const
virtual

Returns the list of scripted movement objects.

virtual void DtScriptedObjectsMovementManager::setScriptedMovementObjects ( const ScriptedMovementObjects )
virtual

Sets the scripted movement objects.

virtual bool DtScriptedObjectsMovementManager::scriptedMovementObject ( const std::string &  objectToFind,
DtScriptedMovementObject object 
) const
virtual

Fills in the scripted movement object for the specified object an returns true if the object is found.

virtual DtString DtScriptedObjectsMovementManager::fileConfigurationFor ( const std::string &  uniqueId) const
virtual

Given the file configuration unique id, looks up movement file configuration and then sees if that unique id exists.

If it does, returns the string representation of the movement file configuration, else returns the id passed in

static void DtScriptedObjectsMovementManager::scriptedMovementObjectsRequestCallback ( DtSimMessage msg,
void *  usr 
)
staticprotected

Callback for request for fly out files.

virtual void DtScriptedObjectsMovementManager::processScriptedMovementObjectsRequest ( DtSimMessage msg)
protectedvirtual

Member Data Documentation

DtSimManager* DtScriptedObjectsMovementManager::mySimManager
protected
ScriptedMovementObjects DtScriptedObjectsMovementManager::myScriptedMovementObjects
protected
MovementFileConfigurations DtScriptedObjectsMovementManager::myMovementFileConfigurations
protected

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)