Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages
Rendering/vtkVRMLExporter.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00047 #ifndef __vtkVRMLExporter_h
00048 #define __vtkVRMLExporter_h
00049
00050 #include "vtkExporter.h"
00051
00052 class vtkLight;
00053 class vtkActor;
00054 class vtkPoints;
00055 class vtkDataArray;
00056 class vtkUnsignedCharArray;
00057
00058 class VTK_RENDERING_EXPORT vtkVRMLExporter : public vtkExporter
00059 {
00060 public:
00061 static vtkVRMLExporter *New();
00062 vtkTypeRevisionMacro(vtkVRMLExporter,vtkExporter);
00063 void PrintSelf(ostream& os, vtkIndent indent);
00064
00066
00067 vtkSetStringMacro(FileName);
00068 vtkGetStringMacro(FileName);
00070
00072
00073 vtkSetMacro(Speed,float);
00074 vtkGetMacro(Speed,float);
00076
00079 void SetFilePointer(FILE *);
00080
00081 protected:
00082 vtkVRMLExporter();
00083 ~vtkVRMLExporter();
00084
00085 void WriteData();
00086 void WriteALight(vtkLight *aLight, FILE *fp);
00087 void WriteAnActor(vtkActor *anActor, FILE *fp);
00088 void WritePointData(vtkPoints *points, vtkDataArray *normals,
00089 vtkDataArray *tcoords, vtkUnsignedCharArray *colors,
00090 FILE *fp);
00091 char *FileName;
00092 FILE *FilePointer;
00093 float Speed;
00094 private:
00095 vtkVRMLExporter(const vtkVRMLExporter&);
00096 void operator=(const vtkVRMLExporter&);
00097 };
00098
00099 #endif
00100