VTK  9.2.6
vtkConduitSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkConduitSource.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
34 #ifndef vtkConduitSource_h
35 #define vtkConduitSource_h
36 
37 #include "vtkDataObjectAlgorithm.h"
38 #include "vtkIOCatalystConduitModule.h" // for exports
39 #include <memory> // for std::unique_ptr
40 extern "C"
41 {
42  typedef void conduit_node;
43 }
44 class VTKIOCATALYSTCONDUIT_EXPORT vtkConduitSource : public vtkDataObjectAlgorithm
45 {
46 public:
47  static vtkConduitSource* New();
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
52 
56  vtkSetMacro(UseMultiMeshProtocol, bool);
57  vtkGetMacro(UseMultiMeshProtocol, bool);
58  vtkBooleanMacro(UseMultiMeshProtocol, bool);
60 
62 
66  vtkSetMacro(OutputMultiBlock, bool);
67  vtkGetMacro(OutputMultiBlock, bool);
68  vtkBooleanMacro(OutputMultiBlock, bool);
70 
72 
76  void SetNode(const conduit_node* node);
78 
80 
88  void SetGlobalFieldsNode(const conduit_node* node);
90 
92 
95  void SetAssemblyNode(const conduit_node* node);
97 
98 protected:
100  ~vtkConduitSource() override;
101 
104  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
105  vtkInformationVector* outputVector) override;
106 
107 private:
108  vtkConduitSource(const vtkConduitSource&) = delete;
109  void operator=(const vtkConduitSource&) = delete;
110 
111  class vtkInternals;
112  std::unique_ptr<vtkInternals> Internals;
113  bool UseMultiMeshProtocol;
114  bool OutputMultiBlock;
115 };
116 
117 #endif
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Store vtkAlgorithm input/output information.
static vtkDataObjectAlgorithm * New()
data source for Conduit Mesh Blueprint.
a simple class to control print indentation
Definition: vtkIndent.h:39
Superclass for algorithms that produce only data object as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void conduit_node
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void conduit_node
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.