DataDirector API
Public Member Functions | Protected Attributes | List of all members
DDD_GlsDisplayFrameAdapter Class Reference

Public Member Functions

 DDD_GlsDisplayFrameAdapter (glsDisplayFrame *frame)
 
virtual ~DDD_GlsDisplayFrameAdapter ()
 
bool LoadXML (const char *filename)
 
void Process (double time)
 
glsDisplayFrame * GetDisplayFrame ()
 
DDD_AttributeBaseFindAttribute (const std::string &name)
 
DDD_AssetBaseFindAsset (const std::string &name)
 
void StartAssets ()
 
void StopAssets ()
 

Protected Attributes

DDD_DataDirector_director
 
glsDisplayFrame * _frame
 

Constructor & Destructor Documentation

DDD_GlsDisplayFrameAdapter ( glsDisplayFrame *  frame)

Constructor.

Parameters
frameThe glsDisplayFrame to associate with this adapter
virtual ~DDD_GlsDisplayFrameAdapter ( )
virtual

Destructor

Member Function Documentation

DDD_AssetBase* FindAsset ( const std::string &  name)
inline

Searches all instantiated assets by name

Parameters
assetNameAsset instance name to find
Returns
Returns a pointer to the asset if found or NULL if not found
DDD_AttributeBase* FindAttribute ( const std::string &  name)
inline

Searches all instantiated assets for the attribute

Parameters
nameThe fully qualified name of the attribute to find (e.g. assetName.attribName)
Returns
Returns a pointer to the attribute or NULL if not found
glsDisplayFrame* GetDisplayFrame ( )
inline
Returns
Returns a pointer to the glsDisplayFrame associated with this adapter
bool LoadXML ( const char *  filename)

Load a Data Director XML config file. Any RSO assets in the config file will be treated as references to RSOs contained in the associated glDisplayFrame

Parameters
filenameThe name of the XML file to load
Returns
True if the XML was successfully parsed
void Process ( double  time)

Pump the Data Director instance associated with this adapter. This call is normally placed into the Calculate method of the glsDisplayFrame associated with this adapter

Parameters
timeThe process/calculate time
void StartAssets ( )
inline

Starts all assets

void StopAssets ( )
inline

Stops all assets

Member Data Documentation

DDD_DataDirector* _director
protected

Data Director instance

glsDisplayFrame* _frame
protected

glsDisplayFrame associated with this adapter


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