|
| smtkTypeMacro (smtk::mesh::Resource) |
|
| smtkSuperclassMacro (smtk::resource::DerivedFrom< Resource, smtk::geometry::Resource >) |
|
| smtkSharedPtrCreateMacro (smtk::resource::PersistentObject) |
|
| Resource (const Resource &other)=delete |
|
Resource & | operator= (const Resource &other)=delete |
|
resource::ComponentPtr | find (const common::UUID &compId) const override |
| Given a resource component's UUID, return the resource component.
|
|
std::function< bool(const resource::Component &)> | queryOperation (const std::string &) const override |
| given a std::string describing a query, return a functor for performing the query (accepts component as input, returns true if the component satisfies the query parameters).
|
|
void | visit (resource::Component::Visitor &v) const override |
|
bool | isValid () const |
|
bool | isModified () const |
|
const smtk::common::FileLocation & | readLocation () const |
|
void | writeLocation (const smtk::common::FileLocation &path) |
|
void | writeLocation (const std::string &path) |
|
const smtk::common::FileLocation & | writeLocation () const |
|
void | clearReadWriteLocations () |
|
std::string | interfaceName () const |
|
const smtk::common::UUID | entity () const |
|
std::size_t | numberOfMeshes () const |
|
smtk::mesh::TypeSet | types () const |
|
smtk::mesh::MeshSet | meshes () const |
|
smtk::mesh::CellSet | cells () const |
|
smtk::mesh::PointSet | points () const |
|
smtk::mesh::PointConnectivity | pointConnectivity () const |
|
void | assignDefaultNames () |
| Assign a machine-generated name to any mesh component that does not have a user-assigned name.
|
|
std::vector< std::string > | meshNames () const |
|
smtk::mesh::MeshSet | meshes (smtk::mesh::DimensionType dim) const |
|
smtk::mesh::MeshSet | meshes (const smtk::mesh::Domain &d) const |
|
smtk::mesh::MeshSet | meshes (const smtk::mesh::Dirichlet &d) const |
|
smtk::mesh::MeshSet | meshes (const smtk::mesh::Neumann &n) const |
|
smtk::mesh::MeshSet | meshes (const std::string &name) const |
|
smtk::mesh::CellSet | cells (smtk::mesh::CellType cellType) const |
|
smtk::mesh::CellSet | cells (smtk::mesh::CellTypes cellTypes) const |
|
smtk::mesh::CellSet | cells (smtk::mesh::DimensionType dim) const |
|
bool | classifyTo (const smtk::model::ResourcePtr &) |
|
smtk::model::ResourcePtr | classifiedTo () const |
|
smtk::mesh::TypeSet | findAssociatedTypes (const smtk::model::EntityRef &eref) const |
|
smtk::mesh::MeshSet | findAssociatedMeshes (const smtk::model::EntityRef &eref) const |
|
smtk::mesh::MeshSet | findAssociatedMeshes (const smtk::model::EntityRef &eref, smtk::mesh::DimensionType dim) const |
|
smtk::mesh::CellSet | findAssociatedCells (const smtk::model::EntityRef &eref) const |
|
smtk::mesh::CellSet | findAssociatedCells (const smtk::model::EntityRef &eref, smtk::mesh::CellType cellType) const |
|
smtk::mesh::CellSet | findAssociatedCells (const smtk::model::EntityRef &eref, smtk::mesh::DimensionType dim) const |
|
smtk::mesh::TypeSet | findAssociatedTypes (const smtk::common::UUID &id) const |
|
smtk::mesh::MeshSet | findAssociatedMeshes (const smtk::common::UUID &id) const |
|
smtk::mesh::MeshSet | findAssociatedMeshes (const smtk::common::UUID &id, smtk::mesh::DimensionType dim) const |
|
smtk::mesh::CellSet | findAssociatedCells (const smtk::common::UUID &id) const |
|
smtk::mesh::CellSet | findAssociatedCells (const smtk::common::UUID &id, smtk::mesh::CellType cellType) const |
|
smtk::mesh::CellSet | findAssociatedCells (const smtk::common::UUID &id, smtk::mesh::DimensionType dim) const |
|
smtk::mesh::TypeSet | findAssociatedTypes (smtk::model::EntityIterator &refIt) const |
|
smtk::mesh::MeshSet | findAssociatedMeshes (smtk::model::EntityIterator &refIt) const |
|
smtk::mesh::MeshSet | findAssociatedMeshes (smtk::model::EntityIterator &refIt, smtk::mesh::DimensionType dim) const |
|
smtk::mesh::CellSet | findAssociatedCells (smtk::model::EntityIterator &refIt) const |
|
smtk::mesh::CellSet | findAssociatedCells (smtk::model::EntityIterator &refIt, smtk::mesh::CellType cellType) const |
|
smtk::mesh::CellSet | findAssociatedCells (smtk::model::EntityIterator &refIt, smtk::mesh::DimensionType dim) const |
|
bool | setAssociation (const smtk::model::EntityRef &eref, const smtk::mesh::MeshSet &meshset) |
|
bool | hasAssociations () const |
|
bool | associateToModel (const smtk::common::UUID &uuid) |
|
bool | isAssociatedToModel () const |
|
smtk::common::UUID | associatedModel () const |
|
smtk::mesh::MeshSet | createMesh (const smtk::mesh::CellSet &cells, const smtk::common::UUID &uuid=smtk::common::UUID::null()) |
|
bool | removeMeshes (const smtk::mesh::MeshSet &meshesToDelete) |
|
std::vector< smtk::mesh::Domain > | domains () const |
|
smtk::mesh::MeshSet | domainMeshes (const smtk::mesh::Domain &m) const |
|
bool | setDomainOnMeshes (const smtk::mesh::MeshSet &meshes, const smtk::mesh::Domain &m) |
|
std::vector< smtk::mesh::Dirichlet > | dirichlets () const |
|
smtk::mesh::MeshSet | dirichletMeshes (const smtk::mesh::Dirichlet &d) const |
|
bool | setDirichletOnMeshes (const smtk::mesh::MeshSet &meshes, const smtk::mesh::Dirichlet &d) |
|
std::vector< smtk::mesh::Neumann > | neumanns () const |
|
smtk::mesh::MeshSet | neumannMeshes (const smtk::mesh::Neumann &n) const |
|
bool | setNeumannOnMeshes (const smtk::mesh::MeshSet &meshes, const smtk::mesh::Neumann &n) |
|
const smtk::mesh::InterfacePtr & | interface () const |
|
void | setModelResource (smtk::model::ResourcePtr resource) |
|
smtk::model::ResourcePtr | modelResource () const |
|
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 |
|
| smtkTypeMacro (smtk::geometry::Resource) |
|
| smtkSharedFromThisMacro (smtk::resource::PersistentObject) |
|
std::unique_ptr< Geometry > & | geometry (const Backend &backend) |
| Given a backend, return a provider of geometry for that backend. More...
|
|
std::unique_ptr< Geometry > & | geometry () |
| Return the first geometry provider (for any backend). More...
|
|
void | visitGeometry (std::function< void(std::unique_ptr< Geometry > &)> visitor) |
| Visit all existing geometry providers for this resource. More...
|
|
void | visitGeometry (std::function< void(const std::unique_ptr< Geometry > &)> visitor) const |
|
| Resource (Resource &&)=default |
|
void | copyGeometry (const std::shared_ptr< const Resource > &source, smtk::resource::CopyOptions &options) |
| Copy renderable geometry from source into this resource. More...
|
|
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 |
|
| smtkTypeMacro (smtk::resource::Resource) |
|
| smtkSuperclassMacro (smtk::resource::PersistentObject) |
|
| smtkSharedFromThisMacro (smtk::resource::PersistentObject) |
|
| Resource (Resource &&) noexcept |
|
virtual Index | index () const |
| Index is a compile-time intrinsic of the derived resource's type; as such, it cannot be set.
|
|
template<class ResourceType > |
bool | isOfType () const |
| Given a resource type, return whether or not this resource is or is derived from the resource described by the index.
|
|
const smtk::common::UUID & | id () const override |
| Set/get the UUID of a resource. More...
|
|
bool | setId (const smtk::common::UUID &myID) override |
| Set/get the UUID of a resource. More...
|
|
const std::string & | location () const |
| Set/get the location (a URL) where the resource is stored persistently. More...
|
|
virtual bool | setLocation (const std::string &location) |
| Set/get the location (a URL) where the resource is stored persistently. More...
|
|
std::string | name () const override |
| Set/get the user-assigned name of the resource. More...
|
|
virtual bool | setName (const std::string &name) |
| Set/get the user-assigned name of the resource. More...
|
|
bool | isNameSet () const |
| Set/get the user-assigned name of the resource. More...
|
|
virtual bool | clean () const |
| Resources that have a non-empty location and are identical to the data stored at location are clean. More...
|
|
void | setClean (bool state=true) |
| Resources that have a non-empty location and are identical to the data stored at location are clean. More...
|
|
void | setMarkedForRemoval (bool val) |
| Mark the resource to indicate it is about to removed (meaning it is being removed from memory not necessarily for deletion)
|
|
virtual bool | isMarkedForRemoval () const |
| Return whether the object is marked for removal.
|
|
ManagerPtr | manager () const |
| Resources that are managed have a non-null pointer to their manager.
|
|
virtual Component * | component (const smtk::common::UUID &compId) const |
| Given a component's UUID, return a raw pointer to the component.
|
|
template<typename ComponentType > |
ComponentType * | componentAs (const smtk::common::UUID &uuid) const |
| A templated version of component() that casts its result to a type. More...
|
|
virtual void | visit (std::function< void(const ComponentPtr &)> &v) const =0 |
| visit all components in a resource.
|
|
ComponentSet | filter (const std::string &queryString) const |
| Given a resource component's UUID, return the resource component.
|
|
template<typename Collection > |
Collection | filterAs (const std::string &queryString) const |
| given a a std::string describing a query and a type of container, return a set of components that satisfy both. More...
|
|
Links & | links () override |
| Fetch the links stored for this resource and its components.
|
|
const Links & | links () const override |
| Fetch the links stored for this resource and its components.
|
|
Properties & | properties () override |
|
const Properties & | properties () const override |
|
const Queries & | queries () const |
|
Queries & | queries () |
|
Lock & | lock (Key()) const |
| Classes that are granted permission to the key may retrieve the resource's lock. More...
|
|
LockType | locked () const |
| Anyone can query whether or not the resource is locked.
|
|
virtual bool | setUnitsSystem (const shared_ptr< units::System > &unitsSystem) |
| Sets the system of units used by this resource.
|
|
const shared_ptr< units::System > & | unitsSystem () const |
| Gets the system of units used by this resource.
|
|
virtual bool | setTemplateType (const smtk::string::Token &templateType) |
| Set/get the "type" of a resource's template. More...
|
|
virtual smtk::string::Token | templateType () const |
| Set/get the "type" of a resource's template. More...
|
|
virtual bool | setTemplateVersion (std::size_t templateVersion) |
| Set/get the version number of the template this instance of the resource is based upon. More...
|
|
virtual std::size_t | templateVersion () const |
| Set/get the "type" of a resource's template. More...
|
|
virtual std::shared_ptr< Resource > | clone (CopyOptions &options) const |
| Create an empty, un-managed clone of this resource instance. More...
|
|
virtual bool | copyInitialize (const std::shared_ptr< const Resource > &source, CopyOptions &options) |
| Copy initial data from a source resource into this resource. More...
|
|
virtual bool | copyFinalize (const std::shared_ptr< const Resource > &source, CopyOptions &options) |
| Finalize copying of a resource by resolving internal and external references among components copied from any of the source resources mapped in options. More...
|
|
void | copyUnitSystem (const std::shared_ptr< const Resource > &rsrc, const CopyOptions &options) |
| Copy the units system from rsrc into this resource as specified by options. More...
|
|
void | copyProperties (const std::shared_ptr< const Resource > &rsrc, CopyOptions &options) |
| Copy all property data from rsrc, mapping them along the way via options. More...
|
|
| smtkTypeMacroBase (smtk::resource::PersistentObject) |
|
template<typename T > |
T::Ptr | as () |
| Attempt to cast this object to a subclass.
|
|
template<typename T > |
T::ConstPtr | as () const |
| Attempt to cast this object to a subclass.
|
|