VTK  9.4.2
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
8#ifndef vtkConduitToDataObject_h
9#define vtkConduitToDataObject_h
10
11#include "vtkIOCatalystConduitModule.h" // For windows import/export of shared libraries
12
13#include "vtkObject.h" // for ABI namespace
14#include "vtkSmartPointer.h"
15
16namespace conduit_cpp
17{
18class Node;
19}
20
21VTK_ABI_NAMESPACE_BEGIN
23class vtkCellArray;
24class vtkDataObject;
25class vtkDataSet;
26class vtkImageData;
29class vtkPoints;
33VTK_ABI_NAMESPACE_END
34
36{
37VTK_ABI_NAMESPACE_BEGIN
38
47VTKIOCATALYSTCONDUIT_EXPORT bool FillPartionedDataSet(
48 vtkPartitionedDataSet* output, const conduit_cpp::Node& meshNode);
49
53VTKIOCATALYSTCONDUIT_EXPORT bool FillAMRMesh(vtkOverlappingAMR* amr, const conduit_cpp::Node& node);
54
59
64VTKIOCATALYSTCONDUIT_EXPORT vtkSmartPointer<vtkDataSet> CreateMesh(
65 const conduit_cpp::Node& topology, const conduit_cpp::Node& coordsets);
66
71 const conduit_cpp::Node& coordset);
72
77 const conduit_cpp::Node& coordset);
78
83 const conduit_cpp::Node& topology, const conduit_cpp::Node& coordset);
84
91 const conduit_cpp::Node& topologyNode, const conduit_cpp::Node& coordset);
92
100 const conduit_cpp::Node& topologyNode, const conduit_cpp::Node& coords);
101
103
109VTKIOCATALYSTCONDUIT_EXPORT bool AddFieldData(
110 vtkDataObject* output, const conduit_cpp::Node& stateFields, bool isAMReX = false);
111
118VTKIOCATALYSTCONDUIT_EXPORT vtkSmartPointer<vtkPoints> CreatePoints(
119 const conduit_cpp::Node& coords);
120
124VTKIOCATALYSTCONDUIT_EXPORT void SetPolyhedralCells(
125 vtkUnstructuredGrid* grid, vtkCellArray* elements, vtkCellArray* subelements);
126
128
132VTKIOCATALYSTCONDUIT_EXPORT vtkIdType GetNumberOfPointsInCellType(int vtk_cell_type);
133
138VTKIOCATALYSTCONDUIT_EXPORT int GetCellType(const std::string& shape);
139
146VTKIOCATALYSTCONDUIT_EXPORT int GetAssociation(const std::string& association);
148
149VTK_ABI_NAMESPACE_END
150}
151
152#endif
153// 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
hierarchical dataset of vtkUniformGrids
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 vtkSmartPointer< vtkDataSet > CreateMesh(const conduit_cpp::Node &topology, const conduit_cpp::Node &coordsets)
vtkDataSet creation.
int vtkIdType
Definition vtkType.h:315