17#ifndef vtkConduitArrayUtilities_h
18#define vtkConduitArrayUtilities_h
21#include "vtkIOCatalystConduitModule.h"
29VTK_ABI_NAMESPACE_BEGIN
57 const conduit_node* mcarray,
const std::string& arrayname);
70 "state/metadata/vtk_fields will only be used.")
72 const conduit_node* mcarray,
bool is_cell_data);
82 "zero-copy arrays stored on acceleration devices such as CUDA")
84 int cellType,
vtkIdType cellSize, const conduit_node* mcarray);
86 vtkIdType numberOfPoints,
int cellType,
vtkIdType cellSize, const conduit_node* mcarray);
99 "zero-copy arrays stored on acceleration devices such as CUDA. "
100 "`leafname` is always connectivity, so it is removed in the new version.")
102 const conduit_node* o2mrelation, const
std::
string& leafname);
104 vtkIdType numberOfPoints, const conduit_node* o2mrelation);
110 static
bool IsDevicePointer(const
void* p, int8_t&
id);
112 const conduit_node* mcarray,
bool force_signed);
114 const conduit_node* mcarray,
bool force_signed);
116 const conduit_node* mcarray,
bool force_signed);
object to represent cell connectivity
helper to convert Conduit arrays to VTK arrays.
static vtkConduitArrayUtilities * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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 > MCArrayToVTKArray(const conduit_node *mcarray, const std::string &arrayname)
Returns a vtkDataArray from a conduit node in the conduit mcarray protocol.
static vtkSmartPointer< vtkDataArray > MCArrayToVTKArray(const conduit_node *mcarray)
Returns a vtkDataArray from a conduit node in the conduit mcarray protocol.
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.
#define VTK_DEPRECATED_IN_9_4_0(reason)
#define VTK_DEPRECATED_IN_9_5_0(reason)