VTK
vtkX3DExporterWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkX3DExporterWriter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
23 #ifndef __vtkX3DExporterWriter_h
24 #define __vtkX3DExporterWriter_h
25 
26 #include <vtkObject.h>
27 
28 // Forward declarations
29 class vtkDataArray;
31 class vtkCellArray;
32 
34 {
35 public:
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
40 
42  virtual int OpenFile(const char* file) = 0;
43  // Closes the file if open
44  virtual void CloseFile() = 0;
45  // Flush can be called optionally after some operations to
46  // flush the buffer to the filestream. A writer not necessarily
47  // implements this function
48  virtual void Flush() {};
50 
53  virtual void StartDocument() = 0;
54 
57  virtual void EndDocument() = 0;
58 
60 
64  virtual void StartNode(int nodeID) = 0;
65  virtual void EndNode() = 0;
67 
71  virtual void SetField(int attributeID, const char* value, bool mfstring = false) = 0;
72 
75  virtual void SetField(int attributeID, int) = 0;
76 
79  virtual void SetField(int attributeID, float) = 0;
80 
83  virtual void SetField(int attributeID, double) = 0;
84 
87  virtual void SetField(int attributeID, bool) = 0;
88 
92  virtual void SetField(int attributeID, int type, const double* a) = 0;
93 
97  virtual void SetField(int attributeID, int type, vtkDataArray* a) = 0;
98 
102  virtual void SetField(int attributeID, const double* values, size_t size) = 0;
103 
108  virtual void SetField(int attributeID, const int* values, size_t size, bool image = false) = 0;
109 
111 
115 protected:
119 
120 private:
121  vtkX3DExporterWriter(const vtkX3DExporterWriter&); // Not implemented.
122  void operator=(const vtkX3DExporterWriter&); // Not implemented.
123 };
124 #endif
125 
X3D Exporter Writer.
abstract base class for most VTK objects
Definition: vtkObject.h:60
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:37
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:53
dynamic, self-adjusting array of unsigned char
object to represent cell connectivity
Definition: vtkCellArray.h:48
#define VTK_HYBRID_EXPORT