26#ifndef vtkJSONDataSetWriter_h
27#define vtkJSONDataSetWriter_h
29#include "vtkIOExportModule.h"
38VTK_ABI_NAMESPACE_BEGIN
54 static void ComputeMD5(
const unsigned char* content,
int size, std::string& hash);
143 std::
string WriteArray(
vtkDataArray*, const
char* className, const
char* arrayName =
nullptr);
148 int ValidStringCount;
Store on/off settings for data arrays, etc.
abstract superclass for arrays of numeric data
represent and manipulate attribute data in a dataset
abstract class to specify dataset behavior
a simple class to control print indentation
write vtkDataSet using a vtkArchiver with a JSON meta file along with all the binary arrays written a...
static std::string GetShortType(vtkDataArray *input, bool &needConversion)
Compute the target JavaScript typed array name for the given vtkDataArray (Uin8, Uint16,...
vtkDataSet * GetInput(int port)
Get the input to this writer.
static void ComputeMD5(const unsigned char *content, int size, std::string &hash)
Compute a MD5 digest of a void/(const unsigned char) pointer to compute a string hash.
bool WriteArrayContents(vtkDataArray *, VTK_FILEPATH const char *relativeFilePath)
Write the contents of the vtkDataArray to disk based on the filePath provided without any extra infor...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataSet * GetInput()
Get the input to this writer.
static std::string GetUID(vtkDataArray *, bool &needConversion)
Return a Unique identifier for that array (i.e.: Float32_356_13f880891af7b77262c49cae09a41e28 )
static vtkJSONDataSetWriter * New()
~vtkJSONDataSetWriter() override
static bool WriteArrayAsRAW(vtkDataArray *, VTK_FILEPATH const char *filePath)
For backwards compatibility, this static method writes a data array's contents directly to a file.
std::string GetValidString(const char *)
Return a Unique identifier for any invalid string.
virtual void SetArchiver(vtkArchiver *)
Specify the Scene Archiver object.
Allocate and hold a VTK object.
abstract class to write data to file(s)
virtual int Write()
Write data to output.