24 #ifndef vtkX3DExporterWriter_h 25 #define vtkX3DExporterWriter_h 27 #include "vtkIOExportModule.h" 45 virtual int OpenFile(
const char* file) = 0;
50 virtual int OpenStream() = 0;
67 vtkGetMacro(OutputStringLength,
int);
68 vtkGetStringMacro(OutputString);
71 return reinterpret_cast<unsigned char *
>(this->OutputString);
80 char *RegisterAndGetOutputString();
83 virtual void CloseFile() = 0;
93 virtual void StartDocument() = 0;
99 virtual void EndDocument() = 0;
108 virtual void StartNode(
int nodeID) = 0;
109 virtual void EndNode() = 0;
118 virtual void SetField(
int attributeID,
const char*
value,
bool mfstring =
false) = 0;
125 virtual void SetField(
int attributeID,
int) = 0;
132 virtual void SetField(
int attributeID,
float) = 0;
139 virtual void SetField(
int attributeID,
double) = 0;
146 virtual void SetField(
int attributeID,
bool) = 0;
154 virtual void SetField(
int attributeID,
int type,
const double* a) = 0;
162 virtual void SetField(
int attributeID,
int type,
vtkDataArray* a) = 0;
170 virtual void SetField(
int attributeID,
const double* values,
size_t size) = 0;
180 virtual void SetField(
int attributeID,
const int* values,
size_t size,
bool image =
false) = 0;
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeBool WriteToOutputString
a simple class to control print indentation
abstract superclass for arrays of numeric data
dynamic, self-adjusting array of unsigned char
unsigned char * GetBinaryOutputString()
When WriteToOutputString in on, then a string is allocated, written to, and can be retrieved with the...
object to represent cell connectivity