38#ifndef vtkJSONDataSetWriter_h
39#define vtkJSONDataSetWriter_h
41#include "vtkIOExportModule.h"
147 bool IsDataSetValid() {
return this->ValidDataSet; }
154 std::
string WriteArray(
vtkDataArray*, const
char* className, const
char* arrayName =
nullptr);
159 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,...
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.
static std::string GetUID(vtkDataArray *, bool &needConversion)
Return a Unique identifier for that array (i.e.
static vtkJSONDataSetWriter * New()
~vtkJSONDataSetWriter() override
static bool WriteArrayAsRAW(vtkDataArray *, VTK_FILEPATH const char *filePath)
For backwards compatiblity, 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.
abstract class to write data to file(s)
virtual int Write()
Write data to output.
std::string GetFileName(const std::string &fileName) noexcept
Set the appropriate file name based on recognized user input.
#define VTK_DEPRECATED_IN_9_0_0(reason)