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 =========================================================================*/
45 #ifndef vtkImporter_h
46 #define vtkImporter_h
47 
48 #include "vtkIOImportModule.h" // For export macro
49 #include "vtkObject.h"
50 
51 class vtkRenderWindow;
52 class vtkRenderer;
53 
54 class VTKIOIMPORT_EXPORT vtkImporter : public vtkObject
55 {
56 public:
57  vtkTypeMacro(vtkImporter,vtkObject);
58  void PrintSelf(ostream& os, vtkIndent indent) override;
59 
60 
62 
66  vtkGetObjectMacro(Renderer,vtkRenderer);
68 
70 
78  virtual void SetRenderWindow(vtkRenderWindow*);
79  vtkGetObjectMacro(RenderWindow,vtkRenderWindow);
81 
82 
84 
87  void Read();
88  void Update() {this->Read();};
90 
91 
92 protected:
93  vtkImporter();
94  ~vtkImporter() override;
95 
96  virtual int ImportBegin () {return 1;};
97  virtual void ImportEnd () {}
98  virtual void ImportActors (vtkRenderer*) {}
99  virtual void ImportCameras (vtkRenderer*) {}
100  virtual void ImportLights (vtkRenderer*) {}
101  virtual void ImportProperties (vtkRenderer*) {}
102 
105 
106  virtual void ReadData();
107 
108 private:
109  vtkImporter(const vtkImporter&) = delete;
110  void operator=(const vtkImporter&) = delete;
111 };
112 
113 #endif
114 
115 
116 
117 
abstract base class for most VTK objects
Definition: vtkObject.h:59
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void ImportCameras(vtkRenderer *)
Definition: vtkImporter.h:99
void Update()
Import the actors, cameras, lights and properties into a vtkRenderWindow.
Definition: vtkImporter.h:88
abstract specification for renderers
Definition: vtkRenderer.h:63
importer abstract class
Definition: vtkImporter.h:54
virtual void ImportEnd()
Definition: vtkImporter.h:97
virtual int ImportBegin()
Definition: vtkImporter.h:96
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual void ImportActors(vtkRenderer *)
Definition: vtkImporter.h:98
virtual void ImportLights(vtkRenderer *)
Definition: vtkImporter.h:100
create a window for renderers to draw into
vtkRenderWindow * RenderWindow
Definition: vtkImporter.h:104
vtkRenderer * Renderer
Definition: vtkImporter.h:103
virtual void ImportProperties(vtkRenderer *)
Definition: vtkImporter.h:101