MAK Legion API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends | List of all members
Legion::ViewManager Class Reference

The ViewManager creates and manages the views of a database. More...

+ Collaboration diagram for Legion::ViewManager:

Public Member Functions

virtual ViewcreateView (const std::string &viewName, Scope scope=Scope::Remote)
 Create a view. More...
 
template<typename SET_TYPE >
ViewcreateSetView (const char *setViewName="SetView", Scope scope=Scope::Remote)
 Create a view of a specific type for given view name. More...
 
virtual void destroyView (View *view)
 Destroy a view. More...
 
virtual void registerView (const std::string &viewName, ViewDescriptor descriptor)
 Register a new type of View creator. More...
 
virtual SimulationDatabasedatabase () const
 Simulation database that owns this view manager. More...
 

Protected Types

typedef UInt64 ViewManagerHandle
 

Protected Member Functions

 ViewManager (ViewManagerHandle handle, SimulationDatabase &database)
 Constructor. More...
 
virtual ~ViewManager ()
 Destructor. More...
 

Protected Attributes

ViewManagerHandle myHandle
 
SimulationDatabasemyDatabase
 
std::map< std::string,
ViewDescriptor
myViewCreatorMap
 

Friends

class SimulationDatabase
 

Detailed Description

The ViewManager creates and manages the views of a database.

The ViewManager is created and owned by the SimulationDatabase.

Member Typedef Documentation

Constructor & Destructor Documentation

Legion::ViewManager::ViewManager ( ViewManagerHandle  handle,
SimulationDatabase database 
)
protected

Constructor.

virtual Legion::ViewManager::~ViewManager ( )
protectedvirtual

Destructor.

Member Function Documentation

template<typename SET_TYPE >
View * Legion::ViewManager::createSetView ( const char *  setViewName = "SetView",
Scope  scope = Scope::Remote 
)

Create a view of a specific type for given view name.

References database(), Legion::View::initialize(), legion_viewManager_createView(), myHandle, and Return_success.

Referenced by DtVehicleSim::DtVehicleSim().

virtual View* Legion::ViewManager::createView ( const std::string &  viewName,
Scope  scope = Scope::Remote 
)
virtual

Create a view.

Referenced by main(), and Clutter::SimEngine::SimEngine().

virtual SimulationDatabase& Legion::ViewManager::database ( ) const
virtual

Simulation database that owns this view manager.

Referenced by createSetView().

virtual void Legion::ViewManager::destroyView ( View view)
virtual
virtual void Legion::ViewManager::registerView ( const std::string &  viewName,
ViewDescriptor  descriptor 
)
virtual

Register a new type of View creator.

Friends And Related Function Documentation

friend class SimulationDatabase
friend

Member Data Documentation

SimulationDatabase& Legion::ViewManager::myDatabase
protected
ViewManagerHandle Legion::ViewManager::myHandle
protected

Referenced by createSetView().

std::map<std::string, ViewDescriptor> Legion::ViewManager::myViewCreatorMap
protected

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

Document ID: Generated on Mon Mar 8 15:11:30 EST 2021 from SVN revision 225633
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)