Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkExporter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkExporter.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
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&);  // Not implemented.
00115   void operator=(const vtkExporter&);  // Not implemented.
00116 };
00117 
00118 #endif
00119 
00120