10 #ifndef smtk_extension_paraview_server_vtkSMTKResource_h
11 #define smtk_extension_paraview_server_vtkSMTKResource_h
13 #include "smtk/extension/paraview/server/smtkPVServerExtModule.h"
16 #include "smtk/resource/Resource.h"
18 #include "vtkMultiBlockDataSetAlgorithm.h"
19 #include "vtkSmartPointer.h"
32 class SMTKPVSERVEREXT_EXPORT
vtkSMTKResource :
public vtkMultiBlockDataSetAlgorithm
36 void PrintSelf(ostream& os, vtkIndent indent)
override;
43 void SetResourceById(
const char* resourceIdStr);
50 virtual vtkAlgorithm* GetConverter();
54 virtual void SetWrapper(vtkSMTKWrapper*);
55 vtkGetObjectMacro(Wrapper, vtkSMTKWrapper);
58 virtual void DropResource();
64 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*)
override;
66 std::weak_ptr<smtk::resource::Resource> Resource;
68 vtkSmartPointer<vtkAlgorithm> Converter;
69 vtkSMTKWrapper* Wrapper{
nullptr };