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=========================================================================*/
33
34#ifndef vtkConduitSource_h
35#define vtkConduitSource_h
36
38#include "vtkIOCatalystConduitModule.h" // for exports
39#include <memory> // for std::unique_ptr
40extern "C"
41{
42 typedef void conduit_node;
43}
44class VTKIOCATALYSTCONDUIT_EXPORT vtkConduitSource : public vtkDataObjectAlgorithm
45{
46public:
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
90
92
95 void SetAssemblyNode(const conduit_node* node);
97
98protected:
101
105 vtkInformationVector* outputVector) override;
106
107private:
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
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
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.
static vtkConduitSource * New()
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
a simple class to control print indentation
Definition vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
void conduit_node