vtkMetaImporter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
12 #ifndef vtkMetaImporter_h
13 #define vtkMetaImporter_h
14 
15 #include "vtkObject.h"
16 
17 #include "vtkAOSDataArrayTemplate.h" // for PayloadType
18 #include "vtkPVVTKExtensionsIOImportModule.h" // for exports
19 #include "vtkVariant.h" // for return
20 
21 #include <memory> // for unique_ptr
22 
23 class vtkDataAssembly;
24 class vtkDataObject;
25 class vtkImporter;
26 class vtkStringArray;
27 
29 {
30 public:
31  static vtkMetaImporter* New();
32  vtkTypeMacro(vtkMetaImporter, vtkObject);
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
36 
39  void SetFileName(const char* filename);
40  const char* GetFileName();
42 
46  void UpdateInformation();
47 
49 
56  vtkVariant GetSerializedSceneDescription();
58 
60 
63  vtkDataAssembly* GetAssembly();
65 
67 
73  vtkSetStringMacro(ActiveAssembly);
74  vtkGetStringMacro(ActiveAssembly);
76 
84  vtkGetMacro(AssemblyTag, int);
85 
87 
90  void AddNodeSelector(const char* selector);
91  void RemoveAllNodeSelectors();
93 
94 protected:
96  ~vtkMetaImporter() override;
97 
98  int AssemblyTag = 0;
99  char* ActiveAssembly = nullptr;
100  std::string FileName;
101 
102 private:
103  vtkMetaImporter(const vtkMetaImporter&) = delete;
104  void operator=(const vtkMetaImporter&) = delete;
105 
106  class vtkInternals;
107  std::unique_ptr<vtkInternals> Internals;
108 };
109 
110 #endif
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
#define VTKPVVTKEXTENSIONSIOIMPORT_EXPORT
std::string FileName
An interface to access VTK Importers from ParaView server manager.
static vtkObject * New()
void operator=(const vtkObjectBase &)