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 
53 class VTKIOIMPORT_EXPORT vtkImporter : public vtkObject
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 
97  vtkRenderer *Renderer;
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