SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
A base class for manipulating SMTK resources in ParaView. More...
#include <vtkSMTKResource.h>
Public Types | |
typedef vtkMultiBlockDataSetAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkSMTKResource * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) override |
vtkSMTKResource (const vtkSMTKResource &)=delete | |
vtkSMTKResource & | operator= (const vtkSMTKResource &)=delete |
void | SetResourceById (const char *resourceIdStr) |
Set the SMTK resource by the string representation of its resource Id. | |
void | SetResource (const smtk::resource::ResourcePtr &resource) |
Set/get the SMTK resource. | |
smtk::resource::ResourcePtr | GetResource () const |
virtual vtkAlgorithm * | GetConverter () |
This accessor facilitates the lazy construction of the converter. | |
virtual void | SetWrapper (vtkSMTKWrapper *) |
Set/get the SMTK wrapper to which the resource is added (and whose operators are used to read) | |
virtual vtkSMTKWrapper * | GetWrapper () |
virtual void | DropResource () |
Remove any loaded resource from the resource manager being used by the reader. | |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkSMTKResource * | SafeDownCast (vtkObjectBase *o) |
static vtkSMTKResource * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) override |
Protected Attributes | |
std::weak_ptr< smtk::resource::Resource > | Resource |
smtk::common::UUID | ResourceId |
vtkSmartPointer< vtkAlgorithm > | Converter |
vtkSMTKWrapper * | Wrapper { nullptr } |
A base class for manipulating SMTK resources in ParaView.
SMTK resources are presented through ParaView as the result of vtkSMTKResourceSource, but the actual ownership of the resource and its conversion into a vtkMultiBlockDataSet is handled by vtkSMTKResource and its derived classes. The source and resource are separated into two different filters to facilitate the update of the source filter without triggering a regeneration of the resource.