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
51class vtkRenderWindow;
52class vtkRenderer;
53
54class VTKIOIMPORT_EXPORT vtkImporter : public vtkObject
55{
56public:
57 vtkTypeMacro(vtkImporter,vtkObject);
58 void PrintSelf(ostream& os, vtkIndent indent);
59
60
62
66 vtkGetObjectMacro(Renderer,vtkRenderer);
68
70
79 vtkGetObjectMacro(RenderWindow,vtkRenderWindow);
81
82
84
87 void Read();
88 void Update() {this->Read();};
90
91
92protected:
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
108private:
109 vtkImporter(const vtkImporter&) VTK_DELETE_FUNCTION;
110 void operator=(const vtkImporter&) VTK_DELETE_FUNCTION;
111};
112
113#endif
114
115
116
117
importer abstract class
Definition: vtkImporter.h:55
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void ImportProperties(vtkRenderer *)
Definition: vtkImporter.h:101
virtual void ReadData()
void Update()
Definition: vtkImporter.h:88
vtkRenderWindow * RenderWindow
Definition: vtkImporter.h:104
virtual void ImportCameras(vtkRenderer *)
Definition: vtkImporter.h:99
virtual void ImportActors(vtkRenderer *)
Definition: vtkImporter.h:98
virtual int ImportBegin()
Definition: vtkImporter.h:96
vtkRenderer * Renderer
Definition: vtkImporter.h:103
virtual void ImportEnd()
Definition: vtkImporter.h:97
virtual void SetRenderWindow(vtkRenderWindow *)
Set the vtkRenderWindow to contain the imported actors, cameras and lights, If no vtkRenderWindow is ...
void Read()
Import the actors, cameras, lights and properties into a vtkRenderWindow.
virtual void ImportLights(vtkRenderer *)
Definition: vtkImporter.h:100
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract base class for most VTK objects
Definition: vtkObject.h:60
create a window for renderers to draw into
abstract specification for renderers
Definition: vtkRenderer.h:64