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=========================================================================*/
31#ifndef vtkConduitSource_h
32#define vtkConduitSource_h
33
35#include "vtkIOCatalystConduitModule.h" // for exports
36#include <memory> // for std::unique_ptr
37extern "C"
38{
39 typedef void conduit_node;
40}
41class VTKIOCATALYSTCONDUIT_EXPORT vtkConduitSource : public vtkDataObjectAlgorithm
42{
43public:
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
49
53 vtkSetMacro(UseMultiMeshProtocol, bool);
54 vtkGetMacro(UseMultiMeshProtocol, bool);
55 vtkBooleanMacro(UseMultiMeshProtocol, bool);
57
59
63 vtkSetMacro(OutputMultiBlock, bool);
64 vtkGetMacro(OutputMultiBlock, bool);
65 vtkBooleanMacro(OutputMultiBlock, bool);
67
69
73 void SetNode(const conduit_node* node);
75
77
87
89
92 void SetAssemblyNode(const conduit_node* node);
94
95protected:
98
102 vtkInformationVector* outputVector) override;
103
104private:
105 vtkConduitSource(const vtkConduitSource&) = delete;
106 void operator=(const vtkConduitSource&) = delete;
107
108 class vtkInternals;
109 std::unique_ptr<vtkInternals> Internals;
110 bool UseMultiMeshProtocol;
111 bool OutputMultiBlock;
112};
113
114#endif
data source for Conduit Mesh Blueprint.
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
Superclass for algorithms that produce only data object as output.
a simple class to control print indentation
Definition vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
void conduit_node