16#ifndef vtkConduitArrayUtilities_h
17#define vtkConduitArrayUtilities_h
19#include "vtkIOCatalystConduitModule.h"
27VTK_ABI_NAMESPACE_BEGIN
55 const conduit_node* mcarray,
const std::string& arrayname);
object to represent cell connectivity
static vtkSmartPointer< vtkCellArray > MCArrayToVTKCellArray(vtkIdType numberOfPoints, int cellType, vtkIdType cellSize, const conduit_node *mcarray)
Converts an mcarray to vtkCellArray.
static vtkConduitArrayUtilities * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkSmartPointer< vtkDataArray > SetNumberOfComponents(vtkDataArray *array, int num_components)
If the number of components in the array does not match the target, a new array is created.
static bool IsDevicePointer(const void *p, int8_t &id, bool &working)
Returns true if p is a device pointer, false if it is a host pointer.
static vtkSmartPointer< vtkDataArray > MCArrayToVTKStridedArray(const conduit_node *mcarray)
static vtkSmartPointer< vtkCellArray > O2MRelationToVTKCellArray(vtkIdType numberOfPoints, const conduit_node *o2mrelation)
Read a O2MRelation element.
static vtkSmartPointer< vtkDataArray > MCArrayToVTKArray(const conduit_node *mcarray, const std::string &arrayname)
Returns a vtkDataArray from a conduit node in the conduit mcarray protocol.
vtkConduitArrayUtilities()
static vtkSmartPointer< vtkDataArray > MCArrayToVTKArray(const conduit_node *mcarray)
Returns a vtkDataArray from a conduit node in the conduit mcarray protocol.
static vtkSmartPointer< vtkDataArray > MCArrayToVTKSOAArray(const conduit_node *mcarray)
static vtkSmartPointer< vtkDataArray > MCArrayToVTKAOSArray(const conduit_node *mcarray)
static bool IsDevicePointer(const void *p, int8_t &id)
~vtkConduitArrayUtilities() override
a simple class to control print indentation
Hold a reference to a vtkObjectBase instance.
struct conduit_node_impl conduit_node