SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
Public Member Functions | |
smtkTypeMacro (smtk::markup::ImageData) | |
smtkSuperclassMacro (smtk::markup::DiscreteGeometry) | |
template<typename... Args> | |
ImageData (Args &&... args) | |
template<typename... Args> | |
ImageData (const std::shared_ptr< AssignedIds > &pointIds, const std::shared_ptr< AssignedIds > &cellIds, Args &&... args) | |
void | initialize (const nlohmann::json &data, smtk::resource::json::Helper &helper) override |
This is called immediately after construction by Resource::add(). | |
void | assignedIds (std::vector< AssignedIds * > &assignments) const override |
Provide all the IDs (point and cell) this data participates in. | |
const AssignedIds & | pointIds () const |
const AssignedIds & | cellIds () const |
bool | setShapeData (vtkSmartPointer< vtkImageData > image, Superclass::ShapeOptions &options) |
Replace the image's shape with a new one. More... | |
vtkSmartPointer< vtkImageData > | shapeData () const |
![]() | |
smtkTypeMacro (smtk::markup::DiscreteGeometry) | |
smtkSuperclassMacro (smtk::markup::SpatialData) | |
template<typename... Args> | |
DiscreteGeometry (Args &&... args) | |
virtual vtkSmartPointer< vtkDataObject > | shape () const |
Return the VTK data defining the shape of this component. | |
![]() | |
smtkTypeMacro (smtk::markup::SpatialData) | |
smtkSuperclassMacro (smtk::markup::Component) | |
template<typename... Args> | |
SpatialData (Args &&... args) | |
void | initialize (const nlohmann::json &data, smtk::resource::json::Helper &helper) override |
Provide an initializer for resources to call after construction. | |
![]() | |
smtkTypeMacro (smtk::markup::Component) | |
smtkSuperclassMacro (smtk::graph::Component) | |
template<typename... Args> | |
Component (Args &&... args) | |
Component::Index | index () const |
The index is a compile-time intrinsic of the derived resource; as such, it cannot be set. | |
std::string | name () const override |
Return the component's name. | |
bool | setName (const std::string &name) |
Set the component's name. | |
ArcEndpointInterface< arcs::GroupsToMembers, ConstArc, IncomingArc > | groups () const |
Return the container of groups this component belongs to. | |
ArcEndpointInterface< arcs::GroupsToMembers, NonConstArc, IncomingArc > | groups () |
ArcEndpointInterface< arcs::LabelsToSubjects, ConstArc, IncomingArc > | labels () const |
Return the container of labels that reference this component. | |
ArcEndpointInterface< arcs::LabelsToSubjects, NonConstArc, IncomingArc > | labels () |
ArcEndpointInterface< arcs::URLsToImportedData, ConstArc, IncomingArc > | importedFrom () const |
Return the container of URLs from which this component was imported (if any). | |
ArcEndpointInterface< arcs::URLsToImportedData, NonConstArc, IncomingArc > | importedFrom () |
ArcEndpointInterface< arcs::OntologyIdentifiersToIndividuals, ConstArc, IncomingArc > | ontologyClasses () const |
Return the container of ontology identifiers this component realizes. More... | |
ArcEndpointInterface< arcs::OntologyIdentifiersToIndividuals, NonConstArc, IncomingArc > | ontologyClasses () |
![]() | |
smtkTypeMacro (smtk::graph::Component) | |
smtkSuperclassMacro (smtk::resource::Component) | |
const smtk::resource::ResourcePtr | resource () const override |
Access the containing resource. | |
smtk::resource::Resource * | parentResource () const override |
Return a raw (not shared) pointer to the resource that owns this component. More... | |
const smtk::common::UUID & | id () const override |
Access the component's id. | |
bool | setId (const smtk::common::UUID &uid) override |
Set the component's id. | |
template<typename ArcType > | |
ArcEndpointInterface< ArcType, ConstArc, OutgoingArc > | outgoing () const |
Return an endpoint-interface object for arcs of ArcType outgoing from this node. More... | |
template<typename ArcType > | |
ArcEndpointInterface< ArcType, NonConstArc, OutgoingArc > | outgoing () |
template<typename ArcType > | |
ArcEndpointInterface< ArcType, ConstArc, IncomingArc > | incoming () const |
Return an endpoint-interface object for arcs of ArcType incoming to this node. More... | |
template<typename ArcType > | |
ArcEndpointInterface< ArcType, NonConstArc, IncomingArc > | incoming () |
bool | disconnect (bool onlyExplicit=false) |
Remove all (editable) arcs from this node. More... | |
![]() | |
smtkTypeMacro (smtk::resource::Component) | |
smtkSuperclassMacro (smtk::resource::PersistentObject) | |
smtkSharedFromThisMacro (smtk::resource::PersistentObject) | |
template<typename ResourceType > | |
ResourceType * | parentResourceAs () const |
This variant of parentResource casts the result to the given ResourceType. | |
Links & | links () override |
Return the links that connect this component to external resources/components. | |
const Links & | links () const override |
Properties & | properties () override |
Return properties defined on this component. | |
const Properties & | properties () const override |
![]() | |
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. | |
Protected Attributes | |
std::shared_ptr< AssignedIds > | m_pointIds |
std::shared_ptr< AssignedIds > | m_cellIds |
vtkSmartPointer< vtkImageData > | m_image |
![]() | |
std::string | m_name |
![]() | |
smtk::WeakReferenceWrapper< smtk::graph::ResourceBase > | m_resource |
smtk::common::UUID | m_id |
Additional Inherited Members | |
![]() | |
using | Serialize = std::true_type |
using | Index = std::size_t |
![]() | |
typedef std::function< void(const ComponentPtr &)> | Visitor |
typedef detail::ComponentLinks | Links |
typedef detail::ComponentProperties | Properties |
![]() | |
static const Component::Index | type_index |
A unique integer corresponding to the component type. | |
![]() | |
bool | updateChildren (vtkSmartPointer< vtkDataObject > newShape, ShapeOptions &options) |
Method for subclasses to use when updating their VTK data. More... | |
![]() | |
Component (const std::shared_ptr< smtk::graph::ResourceBase > &) | |
Component (const std::shared_ptr< smtk::graph::ResourceBase > &, const smtk::common::UUID &) | |
virtual void | createDependentArcs () |
bool smtk::markup::ImageData::setShapeData | ( | vtkSmartPointer< vtkImageData > | image, |
Superclass::ShapeOptions & | options | ||
) |
Replace the image's shape with a new one.
This will call updateChildren() to add and remove Fields in order to match the point-, cell-, and field-data arrays in the new image.
Afterward, it also releases its old assigned IDs (if any) and requests new ones.
Do not call this method outside of an operation and be aware that it may modify m_pointIds and m_cellIds as well.