 |
VTK
9.0.1
|
Go to the documentation of this file.
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;
static std::string GetUID(vtkDataArray *, bool &needConversion)
Return a Unique identifier for that array (i.e.
vtkDataSet * GetInput()
Get the input to this writer.
represent and manipulate attribute data in a dataset
virtual void SetArchiver(vtkArchiver *)
Specify the Scene Archiver object.
virtual int Write()
Write data to output.
virtual char * GetFileName()
vtkDataSet * GetInput(int port)
~vtkJSONDataSetWriter() override
abstract superclass for arrays of numeric data
static std::string GetShortType(vtkDataArray *input, bool &needConversion)
Compute the target JavaScript typed array name for the given vtkDataArray (Uin8, Uint16,...
static bool WriteArrayAsRAW(vtkDataArray *, const char *filePath)
For backwards compatiblity, this static method writes a data array's contents directly to a file.
a simple class to control print indentation
abstract class to write data to file(s)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract class to specify dataset behavior
write vtkDataSet using a vtkArchiver with a JSON meta file along with all the binary arrays written a...
void SetFileName(const char *)
Specify file name of vtk data file to write.
static vtkJSONDataSetWriter * New()
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 *, const char *relativeFilePath)
Write the contents of the vtkDataArray to disk based on the filePath provided without any extra infor...
std::string GetValidString(const char *)
Return a Unique identifier for any invalid string.