SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
A class for SMTK-based sources exposed in ParaView. More...
#include <vtkSMTKResourceSource.h>
Public Types | |
typedef vtkMultiBlockDataSetAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkSMTKResourceSource * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) override |
vtkSMTKResourceSource (const vtkSMTKResourceSource &)=delete | |
vtkSMTKResourceSource & | operator= (const vtkSMTKResourceSource &)=delete |
virtual void | SetVTKResource (vtkSMTKResource *) |
Set/get the internal resource. | |
virtual vtkSMTKResource * | GetVTKResource () |
vtkMTimeType | GetMTime () override |
Return the MTime when also considering the internal resource. | |
void | Modified () override |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) override |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkSMTKResourceSource * | SafeDownCast (vtkObjectBase *o) |
static vtkSMTKResourceSource * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
int | FillOutputPortInformation (int port, vtkInformation *info) override |
Protected Attributes | |
vtkSMTKResource * | VTKResource { nullptr } |
A class for SMTK-based sources exposed in ParaView.
SMTK resources are represented in ParaView pipelines as the result of a vtkSMTKResourceSource algorithm. Internally, vtkSMTKResourceSource contains a resource generating class (vtkSMTKResourceGenerator) whose job is to construct a resource and create a vtkMultiBlockDataSet from the resource. The resulting resource is then manipulated in situ by SMTK operations; these operations flag the source (vtkSMTKResourceSource) for update. By encapsulating the resource generator within this class, we can trigger an execution of the visualizaion pipeline without affecting a regeneration of the resource. The resource will be regenerated only if the exposed methods of the resource generator (e.g. FileName) are modified. This design is based off of ParaView's vtkMetaReader.