SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
A resource for annotating geometric models. More...
#include <Resource.h>
Public Member Functions | |
smtkTypeMacro (smtk::markup::Resource) | |
smtkCreateMacro (smtk::resource::PersistentObject) | |
smtkSuperclassMacro (smtk::resource::DerivedFrom< Resource, GraphResource >) | |
Resource (const Resource &)=delete | |
bool | setLocation (const std::string &location) override |
Override methods that revise the location of the resource so we can reset resource-relative URLs. | |
bool | copyInitialize (const std::shared_ptr< const smtk::resource::Resource > &source, smtk::resource::CopyOptions &options) override |
Override copyInitialize() to copy domain information. | |
template<typename componentT , typename... Args> | |
smtk::shared_ptr< componentT > | createNode (Args &&... args) |
std::function< bool(const smtk::resource::Component &)> | queryOperation (const std::string &query) const override |
Return a boolean functor that classifies components according to query. | |
DomainMap & | domains () |
Return the resource's catalog of domains. | |
const DomainMap & | domains () const |
Public Member Functions inherited from smtk::resource::DerivedFrom< smtk::markup::Resource, GraphResource > | |
bool | isOfType (const Resource::Index &index) const override |
given a resource index, return whether or not this resource is or is derived from the resource described by the index. | |
bool | isOfType (const std::string &typeName) const override |
given a resource's unique name, return whether or not this resource is or is derived from the resource described by the name. | |
int | numberOfGenerationsFromBase (const std::string &typeName) const override |
DerivedFrom (const DerivedFrom &)=delete | |
Static Public Member Functions | |
static DomainFactory & | domainFactory () |
Return the factory used to construct markup domains. More... | |
Protected Member Functions | |
Resource (const smtk::common::UUID &, smtk::resource::Manager::Ptr manager=nullptr) | |
Resource (smtk::resource::Manager::Ptr manager=nullptr) | |
void | initialize () |
template<typename Modifier > | |
bool | modifyComponent (Component &component, const Modifier &modifier) |
Protected Member Functions inherited from smtk::resource::DerivedFrom< smtk::markup::Resource, GraphResource > | |
DerivedFrom (T &&... all) | |
Forward all constructor arguments to the parent class. | |
DerivedFrom (DerivedFrom &&rhs) noexcept=default | |
Protected Attributes | |
DomainMap | m_domains |
Static Protected Attributes | |
static DomainFactory | s_domainFactory |
Friends | |
class | Component |
Additional Inherited Members | |
Public Types inherited from smtk::resource::DerivedFrom< smtk::markup::Resource, GraphResource > | |
using | ParentResource = GraphResource |
using | Superclass = GraphResource |
using | DirectSuperclass = DerivedFrom< smtk::markup::Resource, GraphResource > |
Static Public Attributes inherited from smtk::resource::DerivedFrom< smtk::markup::Resource, GraphResource > | |
static const Resource::Index | type_index |
A static index for this resource type. More... | |
A resource for annotating geometric models.
The key concept this resource embodies is a set-theoretic approach to referencing geometry. The resource itself owns a catalog of domains, each of which provides a way to enumerate its members and reference sets members (and in some cases, the geometric boundaries of those members).
There are two types of domains: discrete and parametric. Discrete domains have members represented by integer identifiers which live in an "ID space". Parametric domains have members represented by continuous ranges which live in a "parameter space".
|
inlinestatic |
Return the factory used to construct markup domains.
This factory is used to deserialize components from json objects.