SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
10 #ifndef smtk_view_PhraseModelFactory_h
11 #define smtk_view_PhraseModelFactory_h
13 #include "smtk/common/Factory.h"
14 #include "smtk/view/PhraseModel.h"
24 using PhraseModelParameters = smtk::common::factory::Inputs<const Configuration*, Manager*>;
48 template<
typename Class>
51 auto phraseModel = this->create<Class>(config, m_manager);
56 phraseModel->root()->findDelegate()->setModel(phraseModel);
61 std::shared_ptr<PhraseModel> createFromConfiguration(
const Configuration* config);
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
A view Manager is responsible for creating new views (eventually) as well as view components such as ...
Definition: Manager.h:43
Configure a view, specifying types and attributes, without specifying a UI library.
Definition: Configuration.h:28
A Factory is a class that constructs instances of registered classes which all inherit a common BaseT...
Definition: Factory.h:112
std::unique_ptr< Class > create(const Configuration *config)
Simplify creation by passing in the factory's view-manager.
Definition: PhraseModelFactory.h:49
smtk::common::Singleton< detail::Manager > Manager
The Manager is a singleton interface for registering available plugins to manager instances.
Definition: Manager.h:92
A factory to create phrase models which is held by view managers.
Definition: PhraseModelFactory.h:32