VTK  9.7.1
vtkConduitToDataObject.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
11 #ifndef vtkConduitToDataObject_h
12 #define vtkConduitToDataObject_h
13 
14 #include "vtkIOCatalystConduitModule.h" // For windows import/export of shared libraries
15 
16 #include "vtkObject.h" // for ABI namespace
17 #include "vtkSmartPointer.h" // for vtkSmartPointer
18 
19 namespace conduit_cpp
20 {
21 class Node;
22 }
23 
24 VTK_ABI_NAMESPACE_BEGIN
25 class vtkAbstractArray;
26 class vtkCellArray;
27 class vtkDataObject;
28 class vtkDataSet;
29 class vtkImageData;
30 class vtkOverlappingAMR;
32 class vtkPoints;
33 class vtkRectilinearGrid;
34 class vtkStructuredGrid;
36 VTK_ABI_NAMESPACE_END
37 
39 {
40 VTK_ABI_NAMESPACE_BEGIN
41 
50 VTKIOCATALYSTCONDUIT_EXPORT bool FillPartitionedDataSet(
51  vtkPartitionedDataSet* output, const conduit_cpp::Node& meshNode);
52 
56 VTKIOCATALYSTCONDUIT_EXPORT bool FillAMRMesh(vtkOverlappingAMR* amr, const conduit_cpp::Node& node);
57 
61 
67 VTKIOCATALYSTCONDUIT_EXPORT vtkSmartPointer<vtkDataSet> CreateMesh(
68  const conduit_cpp::Node& topology, const conduit_cpp::Node& coordsets);
69 
73 VTKIOCATALYSTCONDUIT_EXPORT vtkSmartPointer<vtkImageData> CreateImageData(
74  const conduit_cpp::Node& coordset);
75 
80  const conduit_cpp::Node& coordset);
81 
86  const conduit_cpp::Node& topology, const conduit_cpp::Node& coordset);
87 
94  const conduit_cpp::Node& topologyNode, const conduit_cpp::Node& coordset);
95 
102 VTKIOCATALYSTCONDUIT_EXPORT vtkSmartPointer<vtkDataSet> CreateMixedUnstructuredGrid(
103  const conduit_cpp::Node& topologyNode, const conduit_cpp::Node& coords);
104 
106 
112 VTKIOCATALYSTCONDUIT_EXPORT bool AddFieldData(
113  vtkDataObject* output, const conduit_cpp::Node& stateFields, bool isAMReX = false);
114 
121 VTKIOCATALYSTCONDUIT_EXPORT vtkSmartPointer<vtkPoints> CreatePoints(
122  const conduit_cpp::Node& coords);
123 
127 VTKIOCATALYSTCONDUIT_EXPORT void SetPolyhedralCells(
128  vtkUnstructuredGrid* grid, vtkCellArray* elements, vtkCellArray* subelements);
129 
131 
135 VTKIOCATALYSTCONDUIT_EXPORT vtkIdType GetNumberOfPointsInCellType(int vtk_cell_type);
136 
141 VTKIOCATALYSTCONDUIT_EXPORT int GetCellType(const std::string& shape);
142 
149 VTKIOCATALYSTCONDUIT_EXPORT int GetAssociation(const std::string& association);
151 
152 VTK_ABI_NAMESPACE_END
153 }
154 
155 #endif
156 // VTK-HeaderTest-Exclude: vtkConduitToDataObject.h
composite dataset to encapsulates a dataset consisting of partitions.
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
Abstract superclass for all arrays.
VTKIOCATALYSTCONDUIT_EXPORT vtkIdType GetNumberOfPointsInCellType(int vtk_cell_type)
Return the number of points in VTK cell type.
int vtkIdType
Definition: vtkType.h:363
VTKIOCATALYSTCONDUIT_EXPORT bool FillPartitionedDataSet(vtkPartitionedDataSet *output, const conduit_cpp::Node &meshNode)
Fill the vtkPartitionedDataSet input.
VTKIOCATALYSTCONDUIT_EXPORT vtkSmartPointer< vtkDataSet > CreateMonoShapedUnstructuredGrid(const conduit_cpp::Node &topologyNode, const conduit_cpp::Node &coordset)
Create a vtkUnstructuredGrid from a topology and a coordset node.
VTKIOCATALYSTCONDUIT_EXPORT vtkSmartPointer< vtkPoints > CreatePoints(const conduit_cpp::Node &coords)
Create a vtkPoints from a coordset node that respect the following requirements:
VTKIOCATALYSTCONDUIT_EXPORT vtkSmartPointer< vtkStructuredGrid > CreateStructuredGrid(const conduit_cpp::Node &topology, const conduit_cpp::Node &coordset)
Create a vtkStructuredGrid from a topology and a coordset nodes.
VTKIOCATALYSTCONDUIT_EXPORT vtkSmartPointer< vtkDataSet > CreateMixedUnstructuredGrid(const conduit_cpp::Node &topologyNode, const conduit_cpp::Node &coords)
Create a vtkUnstructuredGrid from a coordset and a topology node.
VTKIOCATALYSTCONDUIT_EXPORT int GetCellType(const std::string &shape)
Get vtk cell type from conduit shape name throw a runtime_error on unsupported type.
VTKIOCATALYSTCONDUIT_EXPORT bool FillAMRMesh(vtkOverlappingAMR *amr, const conduit_cpp::Node &node)
Fill the vtkOverlappingAMR input.
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
dataset represents arbitrary combinations of all possible cell types
VTKIOCATALYSTCONDUIT_EXPORT vtkSmartPointer< vtkImageData > CreateImageData(const conduit_cpp::Node &coordset)
Create a vtkImageData from a coordset node.
VTKIOCATALYSTCONDUIT_EXPORT bool AddFieldData(vtkDataObject *output, const conduit_cpp::Node &stateFields, bool isAMReX=false)
Add FieldData arrays to output data object.
VTKIOCATALYSTCONDUIT_EXPORT vtkSmartPointer< vtkRectilinearGrid > CreateRectilinearGrid(const conduit_cpp::Node &coordset)
Create a vtkRectilinearGrid from a coordset node.
object to represent cell connectivity
Definition: vtkCellArray.h:177
topologically regular array of data
a multi-resolution dataset based on vtkCartesianGrid allowing overlaps
VTKIOCATALYSTCONDUIT_EXPORT int GetAssociation(const std::string &association)
Get vtkDataObject attribute type from conduit association string.
VTKIOCATALYSTCONDUIT_EXPORT vtkSmartPointer< vtkDataSet > CreateMesh(const conduit_cpp::Node &topology, const conduit_cpp::Node &coordsets)
vtkDataSet creation.
general representation of visualization data
Definition: vtkDataObject.h:55
represent and manipulate 3D points
Definition: vtkPoints.h:30
VTKIOCATALYSTCONDUIT_EXPORT void SetPolyhedralCells(vtkUnstructuredGrid *grid, vtkCellArray *elements, vtkCellArray *subelements)
Create polyhedron in grid from elements and subelements.