SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Public Member Functions | Protected Member Functions | List of all members
smtk::geometry::Manager Class Reference

Maintain a list of backends for which resources should provide geometry. More...

#include <Manager.h>

Inheritance diagram for smtk::geometry::Manager:
[legend]
Collaboration diagram for smtk::geometry::Manager:
[legend]

Public Member Functions

 smtkTypedefs (smtk::geometry::Manager)
 
 smtkCreateMacro (Manager)
 
template<typename Backend >
bool registerBackend ()
 Register a geometry backend type with the resource manager.
 
template<typename Backend >
bool unregisterBackend ()
 Unregister a geometry backend type with the resource manager.
 
void visitBackends (std::function< void(const Backend &)> visitor) const
 Visit geometry backends that have been registered.
 
void registerResourceManager (const smtk::resource::Manager::Ptr &manager)
 Watch the given resource manager and add geometry objects to its resources as possible.
 

Protected Member Functions

void constructGeometry (const std::shared_ptr< smtk::resource::Manager > &resourceManager, Backend &backend)
 For any resources in resourceManager, attempt to construct geometry for backend.
 

Detailed Description

Maintain a list of backends for which resources should provide geometry.

A geometry manager accepts registration of different backends for reprensenting geometry. Given a resource manager, it observes resources added to the resource manager and attempts to create geometry objects specific to registered backends for each resource.

Unlike other SMTK managers, this manager does not own or track instances of Geometry objects; those objects have their lifetime tied to the life of the resource which owns them.


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