VTK
vtkExporter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExporter.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 =========================================================================*/
38 #ifndef vtkExporter_h
39 #define vtkExporter_h
40 
41 #include "vtkIOExportModule.h" // For export macro
42 #include "vtkObject.h"
43 class vtkRenderWindow;
44 
46 {
47 public:
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
53  virtual void Write();
54 
56  void Update();
57 
59 
63 
65 
67  void SetInput(vtkRenderWindow *renWin) {this->SetRenderWindow(renWin);};
70 
73  void SetStartWrite(void (*f)(void *), void *arg);
74 
77  void SetEndWrite(void (*f)(void *), void *arg);
78 
80  void SetStartWriteArgDelete(void (*f)(void *));
81 
83  void SetEndWriteArgDelete(void (*f)(void *));
84 
86  unsigned long GetMTime();
87 
88 protected:
91 
93  virtual void WriteData() = 0;
94 
95  void (*StartWrite)(void *);
96  void (*StartWriteArgDelete)(void *);
98  void (*EndWrite)(void *);
99  void (*EndWriteArgDelete)(void *);
100  void *EndWriteArg;
101 private:
102  vtkExporter(const vtkExporter&); // Not implemented.
103  void operator=(const vtkExporter&); // Not implemented.
104 };
105 
106 #endif
107 
108 
vtkExporter::SetStartWrite
void SetStartWrite(void(*f)(void *), void *arg)
vtkExporter::SetInput
void SetInput(vtkRenderWindow *renWin)
Definition: vtkExporter.h:67
vtkExporter::StartWriteArg
void * StartWriteArg
Definition: vtkExporter.h:97
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkExporter::vtkExporter
vtkExporter()
vtkIOExportModule.h
vtkExporter::Write
virtual void Write()
vtkExporter::SetStartWriteArgDelete
void SetStartWriteArgDelete(void(*f)(void *))
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkExporter::WriteData
virtual void WriteData()=0
SetRenderWindow
virtual void SetRenderWindow(vtkRenderWindow *renwin)
GetRenderWindow
vtkRenderWindow * GetRenderWindow()
vtkExporter::SetEndWrite
void SetEndWrite(void(*f)(void *), void *arg)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkExporter::SetEndWriteArgDelete
void SetEndWriteArgDelete(void(*f)(void *))
vtkgl::f
GLclampf f
Definition: vtkgl.h:14181
vtkObject.h
vtkExporter::GetMTime
unsigned long GetMTime()
vtkExporter::~vtkExporter
~vtkExporter()
vtkExporter::Update
void Update()
vtkExporter
abstract class to write a scene to a file
Definition: vtkExporter.h:46
vtkExporter::GetInput
vtkRenderWindow * GetInput()
Definition: vtkExporter.h:68
vtkgl::void
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
vtkRenderWindow
create a window for renderers to draw into
Definition: vtkRenderWindow.h:89
vtkExporter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkExporter::EndWriteArg
void * EndWriteArg
Definition: vtkExporter.h:100
vtkExporter::SetRenderWindow
virtual void SetRenderWindow(vtkRenderWindow *)
vtkExporter::RenderWindow
vtkRenderWindow * RenderWindow
Definition: vtkExporter.h:92
VTKIOEXPORT_EXPORT
#define VTKIOEXPORT_EXPORT
Definition: vtkIOExportModule.h:15