![]() |
MAK Legion API Documentation
|
The ViewManager creates and manages the views of a database. More...
Collaboration diagram for Legion::ViewManager:Public Member Functions | |
| virtual View * | createView (const std::string &viewName, Scope scope=Scope::Remote) |
| Create a view. More... | |
| template<typename SET_TYPE > | |
| View * | createSetView (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 SimulationDatabase & | database () 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 |
| SimulationDatabase & | myDatabase |
| std::map< std::string, ViewDescriptor > | myViewCreatorMap |
Friends | |
| class | SimulationDatabase |
The ViewManager creates and manages the views of a database.
The ViewManager is created and owned by the SimulationDatabase.
|
protected |
|
protected |
Constructor.
|
protectedvirtual |
Destructor.
| 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 |
Create a view.
Referenced by main(), and Clutter::SimEngine::SimEngine().
|
virtual |
Simulation database that owns this view manager.
Referenced by createSetView().
|
virtual |
Destroy a view.
Referenced by f18ShutDownHandler(), listenShutDownHandler(), and DtVehicleSim::~DtVehicleSim().
|
virtual |
Register a new type of View creator.
|
friend |
|
protected |
|
protected |
Referenced by createSetView().
|
protected |