|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
   22 #ifndef vtkX3DExporterXMLWriter_h 
   23 #define vtkX3DExporterXMLWriter_h 
   25 #include "vtkIOExportModule.h"  
   29 class vtkX3DExporterXMLNodeInfoStack;
 
   40   int OpenFile(
const char* file) 
override;
 
   41   void Flush() 
override;
 
   54   void SetField(
int attributeID, 
const char*, 
bool mfstring = 
true) 
override;
 
   56   void SetField(
int attributeID, 
int) 
override;
 
   58   void SetField(
int attributeID, 
float) 
override;
 
   60   void SetField(
int attributeID, 
double) 
override;
 
   62   void SetField(
int attributeID, 
bool) 
override;
 
   65   void SetField(
int attributeID, 
int type, 
const double* a) 
override;
 
   67   void SetField(
int attributeID, 
const double* values, 
size_t size) 
override;
 
   69   void SetField(
int attributeID, 
const int* values, 
size_t size, 
bool image = 
false) 
override;
 
   76   const char* GetNewline() { 
return "\n"; }
 
   82   ostream* OutputStream;
 
   83   vtkX3DExporterXMLNodeInfoStack* InfoStack;
 
  
virtual void StartDocument()=0
Starts a document and sets all necessary information, i.e.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
virtual void EndDocument()=0
Ends a document and sets all necessary information or necessary bytes to finish the encoding correctl...
abstract superclass for arrays of numeric data
virtual void CloseFile()=0
virtual int OpenFile(const char *file)=0
Opens the file specified with file returns 1 if successful otherwise 0.
virtual void SetField(int attributeID, const char *value, bool mfstring=false)=0
Sets the field specified with attributeID of the active node to the given value.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
virtual void StartNode(int nodeID)=0
Starts/ends a new X3D node specified via nodeID.
virtual int OpenStream()=0
Init data support to be a stream instead of a file.