VTK  9.2.5
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 
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
data source for Conduit Mesh Blueprint.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
static vtkConduitSource * New()
void SetAssemblyNode(const conduit_node *node)
Set the node to read the assembly information from, if any.
void SetGlobalFieldsNode(const conduit_node *node)
Mechanism to add global / field-data arrays.
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
void SetNode(const conduit_node *node)
Get/Set the conduit_node.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkConduitSource() override
Superclass for algorithms that produce only data object as output.
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
void conduit_node
void conduit_node