VTK
vtkImporter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImporter.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 =========================================================================*/
44 #ifndef vtkImporter_h
45 #define vtkImporter_h
46 
47 #include "vtkIOImportModule.h" // For export macro
48 #include "vtkObject.h"
49 
50 class vtkRenderWindow;
51 class vtkRenderer;
52 
54 {
55 public:
56  vtkTypeMacro(vtkImporter,vtkObject);
57  void PrintSelf(ostream& os, vtkIndent indent);
58 
59 
61 
63  vtkGetObjectMacro(Renderer,vtkRenderer);
65 
67 
73  virtual void SetRenderWindow(vtkRenderWindow*);
74  vtkGetObjectMacro(RenderWindow,vtkRenderWindow);
76 
77 
79 
81  void Read();
82  void Update() {this->Read();};
84 
85 
86 protected:
87  vtkImporter();
88  ~vtkImporter();
89 
90  virtual int ImportBegin () {return 1;};
91  virtual void ImportEnd () {}
92  virtual void ImportActors (vtkRenderer*) {}
93  virtual void ImportCameras (vtkRenderer*) {}
94  virtual void ImportLights (vtkRenderer*) {}
95  virtual void ImportProperties (vtkRenderer*) {}
96 
99 
100  virtual void ReadData();
101 
102 private:
103  vtkImporter(const vtkImporter&); // Not implemented.
104  void operator=(const vtkImporter&); // Not implemented.
105 };
106 
107 #endif
108 
109 
110 
111 
abstract base class for most VTK objects
Definition: vtkObject.h:61
virtual void ImportCameras(vtkRenderer *)
Definition: vtkImporter.h:93
virtual void SetRenderWindow(vtkRenderWindow *renwin)
void Update()
Definition: vtkImporter.h:82
abstract specification for renderers
Definition: vtkRenderer.h:63
importer abstract class
Definition: vtkImporter.h:53
virtual void ImportEnd()
Definition: vtkImporter.h:91
virtual int ImportBegin()
Definition: vtkImporter.h:90
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void ImportActors(vtkRenderer *)
Definition: vtkImporter.h:92
vtkWeakPointer< vtkRenderWindow > RenderWindow
virtual void ImportLights(vtkRenderer *)
Definition: vtkImporter.h:94
create a window for renderers to draw into
#define VTKIOIMPORT_EXPORT
vtkRenderWindow * RenderWindow
Definition: vtkImporter.h:98
vtkRenderer * Renderer
Definition: vtkImporter.h:97
virtual void ImportProperties(vtkRenderer *)
Definition: vtkImporter.h:95