38 #ifndef vtkJSONDataSetWriter_h
39 #define vtkJSONDataSetWriter_h
41 #include "vtkIOExportModule.h"
151 std::
string WriteArray(
vtkDataArray*, const
char* className, const
char* arrayName =
nullptr);
156 int ValidStringCount;
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()
Get the input to this writer.
vtkDataSet * GetInput(int port)
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.
virtual char * GetFileName()
static bool WriteArrayAsRAW(vtkDataArray *, const char *filePath)
For backwards compatiblity, this static method writes a data array's contents directly to a file.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool WriteArrayContents(vtkDataArray *, const char *relativeFilePath)
Write the contents of the vtkDataArray to disk based on the filePath provided without any extra infor...
static std::string GetUID(vtkDataArray *, bool &needConversion)
Return a Unique identifier for that array (i.e.
~vtkJSONDataSetWriter() override
void SetFileName(const char *)
Specify file name of vtk data file to write.
static vtkJSONDataSetWriter * New()
std::string GetValidString(const char *)
Return a Unique identifier for any invalid string.
virtual void SetArchiver(vtkArchiver *)
Specify the Scene Archiver object.
abstract class to write data to file(s)
virtual int Write()
Write data to output.