16#ifndef vtkConduitArrayUtilities_h
17#define vtkConduitArrayUtilities_h
19#include "vtkIOCatalystConduitModule.h"
27VTK_ABI_NAMESPACE_BEGIN
44 const conduit_node* mcarray,
const std::string& arrayname);
54 vtkIdType cellSize,
const conduit_node* mcarray);
67 const conduit_node* o2mrelation,
const std::string& leafname);
74 const conduit_node* mcarray,
bool force_signed);
76 const conduit_node* mcarray,
bool force_signed);
78 const conduit_node* mcarray,
bool force_signed);
object to represent cell connectivity
helper to convert Conduit arrays to VTK arrays.
static vtkSmartPointer< vtkDataArray > MCArrayToVTKSOAArray(const conduit_node *mcarray, bool force_signed)
static vtkConduitArrayUtilities * New()
static vtkSmartPointer< vtkDataArray > MCArrayToVTKAOSArray(const conduit_node *mcarray, bool force_signed)
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 vtkSmartPointer< vtkDataArray > MCArrayToVTKArrayImpl(const conduit_node *mcarray, bool force_signed)
static vtkSmartPointer< vtkCellArray > O2MRelationToVTKCellArray(const conduit_node *o2mrelation, const std::string &leafname)
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< vtkCellArray > MCArrayToVTKCellArray(vtkIdType cellSize, const conduit_node *mcarray)
Converts an mcarray to vtkCellArray.
~vtkConduitArrayUtilities() override
abstract superclass for arrays of numeric data
a simple class to control print indentation
abstract base class for most VTK objects
Hold a reference to a vtkObjectBase instance.