VTK  9.6.20260204
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
10
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
19namespace conduit_cpp
20{
21class Node;
22}
23
24VTK_ABI_NAMESPACE_BEGIN
26class vtkCellArray;
27class vtkDataObject;
28class vtkDataSet;
29class vtkImageData;
32class vtkPoints;
36VTK_ABI_NAMESPACE_END
37
39{
40VTK_ABI_NAMESPACE_BEGIN
41
50VTKIOCATALYSTCONDUIT_EXPORT bool FillPartitionedDataSet(
51 vtkPartitionedDataSet* output, const conduit_cpp::Node& meshNode);
52
56VTKIOCATALYSTCONDUIT_EXPORT bool FillAMRMesh(vtkOverlappingAMR* amr, const conduit_cpp::Node& node);
57
62
67VTKIOCATALYSTCONDUIT_EXPORT vtkSmartPointer<vtkDataSet> CreateMesh(
68 const conduit_cpp::Node& topology, const conduit_cpp::Node& coordsets);
69
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
103 const conduit_cpp::Node& topologyNode, const conduit_cpp::Node& coords);
104
106
112VTKIOCATALYSTCONDUIT_EXPORT bool AddFieldData(
113 vtkDataObject* output, const conduit_cpp::Node& stateFields, bool isAMReX = false);
114
121VTKIOCATALYSTCONDUIT_EXPORT vtkSmartPointer<vtkPoints> CreatePoints(
122 const conduit_cpp::Node& coords);
123
127VTKIOCATALYSTCONDUIT_EXPORT void SetPolyhedralCells(
128 vtkUnstructuredGrid* grid, vtkCellArray* elements, vtkCellArray* subelements);
129
131
135VTKIOCATALYSTCONDUIT_EXPORT vtkIdType GetNumberOfPointsInCellType(int vtk_cell_type);
136
141VTKIOCATALYSTCONDUIT_EXPORT int GetCellType(const std::string& shape);
142
149VTKIOCATALYSTCONDUIT_EXPORT int GetAssociation(const std::string& association);
151
152VTK_ABI_NAMESPACE_END
153}
154
155#endif
156// VTK-HeaderTest-Exclude: vtkConduitToDataObject.h
Abstract superclass for all arrays.
object to represent cell connectivity
general representation of visualization data
abstract class to specify dataset behavior
Definition vtkDataSet.h:166
topologically and geometrically regular array of data
a multi-resolution dataset based on vtkCartesianGrid allowing overlaps
composite dataset to encapsulates a dataset consisting of partitions.
represent and manipulate 3D points
Definition vtkPoints.h:139
a dataset that is topologically regular with variable spacing in the three coordinate directions
Hold a reference to a vtkObjectBase instance.
topologically regular array of data
dataset represents arbitrary combinations of all possible cell types
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< vtkDataSet > CreateMixedUnstructuredGrid(const conduit_cpp::Node &topologyNode, const conduit_cpp::Node &coords)
Create a vtkUnstructuredGrid from a coordset and a topology node.
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< 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< vtkImageData > CreateImageData(const conduit_cpp::Node &coordset)
Create a vtkImageData from a coordset node.
VTKIOCATALYSTCONDUIT_EXPORT void SetPolyhedralCells(vtkUnstructuredGrid *grid, vtkCellArray *elements, vtkCellArray *subelements)
Create polyhedron in grid from elements and subelements.
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 AddFieldData(vtkDataObject *output, const conduit_cpp::Node &stateFields, bool isAMReX=false)
Add FieldData arrays to output data object.
VTKIOCATALYSTCONDUIT_EXPORT bool FillAMRMesh(vtkOverlappingAMR *amr, const conduit_cpp::Node &node)
Fill the vtkOverlappingAMR input.
VTKIOCATALYSTCONDUIT_EXPORT vtkIdType GetNumberOfPointsInCellType(int vtk_cell_type)
Return the number of points in VTK cell type.
VTKIOCATALYSTCONDUIT_EXPORT vtkSmartPointer< vtkRectilinearGrid > CreateRectilinearGrid(const conduit_cpp::Node &coordset)
Create a vtkRectilinearGrid from a coordset node.
VTKIOCATALYSTCONDUIT_EXPORT int GetAssociation(const std::string &association)
Get vtkDataObject attribute type from conduit association string.
VTKIOCATALYSTCONDUIT_EXPORT bool FillPartitionedDataSet(vtkPartitionedDataSet *output, const conduit_cpp::Node &meshNode)
Fill the vtkPartitionedDataSet input.
VTKIOCATALYSTCONDUIT_EXPORT vtkSmartPointer< vtkDataSet > CreateMesh(const conduit_cpp::Node &topology, const conduit_cpp::Node &coordsets)
vtkDataSet creation.
int vtkIdType
Definition vtkType.h:354