vtkExporter.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00051 #ifndef __vtkExporter_h
00052 #define __vtkExporter_h
00053
00054 #include "vtkObject.h"
00055 class vtkRenderWindow;
00056
00057 class VTK_RENDERING_EXPORT vtkExporter : public vtkObject
00058 {
00059 public:
00060 vtkTypeRevisionMacro(vtkExporter,vtkObject);
00061 void PrintSelf(ostream& os, vtkIndent indent);
00062
00065 virtual void Write();
00066
00068 void Update();
00069
00071
00072 virtual void SetRenderWindow(vtkRenderWindow*);
00073 vtkGetObjectMacro(RenderWindow,vtkRenderWindow);
00075
00077
00079 void SetInput(vtkRenderWindow *renWin) {this->SetRenderWindow(renWin);};
00080 vtkRenderWindow *GetInput() {return this->GetRenderWindow();};
00082
00085 void SetStartWrite(void (*f)(void *), void *arg);
00086
00089 void SetEndWrite(void (*f)(void *), void *arg);
00090
00092 void SetStartWriteArgDelete(void (*f)(void *));
00093
00095 void SetEndWriteArgDelete(void (*f)(void *));
00096
00098 unsigned long GetMTime();
00099
00100 protected:
00101 vtkExporter();
00102 ~vtkExporter();
00103
00104 vtkRenderWindow *RenderWindow;
00105 virtual void WriteData() = 0;
00106
00107 void (*StartWrite)(void *);
00108 void (*StartWriteArgDelete)(void *);
00109 void *StartWriteArg;
00110 void (*EndWrite)(void *);
00111 void (*EndWriteArgDelete)(void *);
00112 void *EndWriteArg;
00113 private:
00114 vtkExporter(const vtkExporter&);
00115 void operator=(const vtkExporter&);
00116 };
00117
00118 #endif
00119
00120