VTK  9.5.20251215
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 "vtkDeprecation.h" // for VTK_DEPRECATED_IN_9_5_0
17#include "vtkObject.h" // for ABI namespace
18#include "vtkSmartPointer.h" // for vtkSmartPointer
19
20namespace conduit_cpp
21{
22class Node;
23}
24
25VTK_ABI_NAMESPACE_BEGIN
27class vtkCellArray;
28class vtkDataObject;
29class vtkDataSet;
30class vtkImageData;
33class vtkPoints;
37VTK_ABI_NAMESPACE_END
38
40{
41VTK_ABI_NAMESPACE_BEGIN
42
44
52VTKIOCATALYSTCONDUIT_EXPORT bool FillPartitionedDataSet(
53 vtkPartitionedDataSet* output, const conduit_cpp::Node& meshNode);
54VTK_DEPRECATED_IN_9_5_0("Use FillPartitionedDataSet instead.")
55VTKIOCATALYSTCONDUIT_EXPORT bool FillPartionedDataSet(
56 vtkPartitionedDataSet* output, const conduit_cpp::Node& meshNode);
58
62VTKIOCATALYSTCONDUIT_EXPORT bool FillAMRMesh(vtkOverlappingAMR* amr, const conduit_cpp::Node& node);
63
68
73VTKIOCATALYSTCONDUIT_EXPORT vtkSmartPointer<vtkDataSet> CreateMesh(
74 const conduit_cpp::Node& topology, const conduit_cpp::Node& coordsets);
75
79VTKIOCATALYSTCONDUIT_EXPORT vtkSmartPointer<vtkImageData> CreateImageData(
80 const conduit_cpp::Node& coordset);
81
86 const conduit_cpp::Node& coordset);
87
92 const conduit_cpp::Node& topology, const conduit_cpp::Node& coordset);
93
100 const conduit_cpp::Node& topologyNode, const conduit_cpp::Node& coordset);
101
109 const conduit_cpp::Node& topologyNode, const conduit_cpp::Node& coords);
110
112
118VTKIOCATALYSTCONDUIT_EXPORT bool AddFieldData(
119 vtkDataObject* output, const conduit_cpp::Node& stateFields, bool isAMReX = false);
120
127VTKIOCATALYSTCONDUIT_EXPORT vtkSmartPointer<vtkPoints> CreatePoints(
128 const conduit_cpp::Node& coords);
129
133VTKIOCATALYSTCONDUIT_EXPORT void SetPolyhedralCells(
134 vtkUnstructuredGrid* grid, vtkCellArray* elements, vtkCellArray* subelements);
135
137
141VTKIOCATALYSTCONDUIT_EXPORT vtkIdType GetNumberOfPointsInCellType(int vtk_cell_type);
142
147VTKIOCATALYSTCONDUIT_EXPORT int GetCellType(const std::string& shape);
148
155VTKIOCATALYSTCONDUIT_EXPORT int GetAssociation(const std::string& association);
157
158VTK_ABI_NAMESPACE_END
159}
160
161#endif
162// 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 bool FillPartionedDataSet(vtkPartitionedDataSet *output, const conduit_cpp::Node &meshNode)
Fill the vtkPartitionedDataSet input.
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.
#define VTK_DEPRECATED_IN_9_5_0(reason)
int vtkIdType
Definition vtkType.h:368