SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
A class for modifying the z-coordinates of a mesh's nodes according to an interpolated data set. More...
#include <ElevateMesh.h>
Public Member Functions | |
smtkTypeMacro (smtk::mesh::ElevateMesh) | |
smtkCreateMacro (ElevateMesh) | |
smtkSharedFromThisMacro (smtk::operation::Operation) | |
smtkSuperclassMacro (smtk::operation::XMLOperation) | |
bool | ableToOperate () override |
Check if the operation's attribute resource is valid. More... | |
![]() | |
smtkTypeMacro (XMLOperation) | |
smtkSharedFromThisMacro (smtk::operation::Operation) | |
![]() | |
smtkTypeMacroBase (smtk::operation::Operation) | |
virtual Index | index () const |
virtual bool | configure (const smtk::attribute::AttributePtr &changedAttribute=smtk::attribute::AttributePtr(), const smtk::attribute::ItemPtr &changedItem=smtk::attribute::ItemPtr()) |
Update the operation's specification and operations to be consistent. More... | |
Result | operate () |
Execute the operation, log its outcome and return its results. More... | |
Outcome | safeOperate () |
Execute the operation in an asynchronous environment. More... | |
Outcome | safeOperate (Handler handler) |
virtual bool | releaseResult (Result &result) |
Release the operation result returned by operate() . More... | |
virtual smtk::io::Logger & | log () const |
Retrieve the operation's logger. More... | |
Specification | specification () |
This accessor facilitates the lazy construction of the specification, allowing for derived implementations of its creation. More... | |
Parameters | parameters () |
Access the operation's input parameters, constructing them if necessary. More... | |
Parameters | parameters () const |
Result | createResult (Outcome) |
Create an attribute representing this operation's result type. More... | |
ManagerPtr | manager () const |
Operations that are managed have a non-null pointer to their manager. | |
bool | restoreTrace (const std::string &trace) |
restore operation parameters from the trace of a previously run operation. | |
void | setManagers (const std::shared_ptr< smtk::common::Managers > &m) |
Operations may be passed application state in the form of a Managers type-container. | |
std::shared_ptr< smtk::common::Managers > | managers () const |
virtual bool | threadSafe () const |
Is this type of operation safe to launch in a thread? | |
smtk::resource::ManagerPtr | resourceManager () |
retrieve the resource manager, if available. | |
Result | operate (const BaseKey &key) |
Run an operation given a key returned by Operation::childKey(). | |
Protected Member Functions | |
Result | operateInternal () override |
Perform the actual operation and construct the result. | |
const char * | xmlDescription () const override |
![]() | |
Specification | createSpecification () override |
![]() | |
virtual ResourceAccessMap | identifyLocksRequired () |
Identify resources to lock, and whether to lock them for reading or writing. More... | |
const ResourceAccessMap & | lockedResources () const |
Returns the set of resources that are currently locked by this operation. | |
virtual void | postProcessResult (Result &) |
virtual void | markModifiedResources (Result &) |
virtual bool | unmanageResources (Result &) |
virtual void | generateSummary (Result &) |
Specification | createBaseSpecification () const |
Additional Inherited Members | |
![]() | |
enum | Outcome { Outcome::UNABLE_TO_OPERATE, Outcome::CANCELED, Outcome::FAILED, Outcome::SUCCEEDED, Outcome::UNKNOWN = -1 } |
enum | LockOption { LockAll, ParentLocksOnly, SkipLocks } |
When running a nested operation, specify how resource locks should be handled. More... | |
enum | ObserverOption { InvokeObservers, SkipObservers } |
When running a nested operation, specify whether observers should be invoked. More... | |
enum | ParametersOption { Validate, SkipValidation } |
When running a nested operation, specify whether to call the operation's ableToOperate() method or skip it. More... | |
typedef std::size_t | Index |
typedef std::shared_ptr< smtk::attribute::Attribute > | Parameters |
typedef std::shared_ptr< smtk::attribute::Attribute > | Result |
typedef std::shared_ptr< smtk::attribute::Resource > | Specification |
typedef std::shared_ptr< smtk::attribute::Definition > | Definition |
![]() | |
friend | Manager |
friend | ImportPythonOperation |
![]() | |
int | m_debugLevel { 0 } |
std::weak_ptr< Manager > | m_manager |
std::shared_ptr< smtk::common::Managers > | m_managers |
A class for modifying the z-coordinates of a mesh's nodes according to an interpolated data set.
Given a data set of either structured or unstructured data, an interpolation scheme and input mesh, the z-coordinate of each point in the input mesh is set to the interpolated values in the external data set. The resulting mesh deformation can be undone by subsequently applying the "Undo Elevate" filter, returning the mesh nodes to their original positions.
|
overridevirtual |
Check if the operation's attribute resource is valid.
Derived operations may implement more task-specific checks to ensure that the operation is in a valid state.
Reimplemented from smtk::operation::Operation.