12 #ifndef vtkX3DExporterWriter_h
13 #define vtkX3DExporterWriter_h
15 #include "vtkIOExportModule.h"
19 VTK_ABI_NAMESPACE_BEGIN
34 virtual int OpenFile(
const char* file) = 0;
39 virtual int OpenStream() = 0;
56 vtkGetMacro(OutputStringLength,
vtkIdType);
57 vtkGetStringMacro(OutputString);
60 return reinterpret_cast<unsigned char*
>(this->OutputString);
69 char* RegisterAndGetOutputString();
72 virtual void CloseFile() = 0;
82 virtual void StartDocument() = 0;
88 virtual void EndDocument() = 0;
97 virtual void StartNode(
int nodeID) = 0;
98 virtual void EndNode() = 0;
107 virtual void SetField(
int attributeID,
const char*
value,
bool mfstring =
false) = 0;
114 virtual void SetField(
int attributeID,
int) = 0;
121 virtual void SetField(
int attributeID,
float) = 0;
128 virtual void SetField(
int attributeID,
double) = 0;
135 virtual void SetField(
int attributeID,
bool) = 0;
143 virtual void SetField(
int attributeID,
int type,
const double* a) = 0;
159 virtual void SetField(
int attributeID,
const double* values,
size_t size) = 0;
169 virtual void SetField(
int attributeID,
const int* values,
size_t size,
bool image =
false) = 0;
191 VTK_ABI_NAMESPACE_END
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
vtkIdType OutputStringLength
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