00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkImporter.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00062 #ifndef __vtkImporter_h 00063 #define __vtkImporter_h 00064 00065 #include "vtkObject.h" 00066 00067 class vtkRenderWindow; 00068 class vtkRenderer; 00069 00070 class VTK_RENDERING_EXPORT vtkImporter : public vtkObject 00071 { 00072 public: 00073 vtkTypeRevisionMacro(vtkImporter,vtkObject); 00074 void PrintSelf(ostream& os, vtkIndent indent); 00075 00076 00078 00080 vtkGetObjectMacro(Renderer,vtkRenderer); 00082 00084 00090 virtual void SetRenderWindow(vtkRenderWindow*); 00091 vtkGetObjectMacro(RenderWindow,vtkRenderWindow); 00093 00094 00096 00098 void Read(); 00099 void Update() {this->Read();}; 00101 00102 00103 protected: 00104 vtkImporter(); 00105 ~vtkImporter(); 00106 00107 virtual int ImportBegin () {return 1;}; 00108 virtual void ImportEnd () {}; 00109 virtual void ImportActors (vtkRenderer*) {}; 00110 virtual void ImportCameras (vtkRenderer*) {}; 00111 virtual void ImportLights (vtkRenderer*) {}; 00112 virtual void ImportProperties (vtkRenderer*) {}; 00113 00114 vtkRenderer *Renderer; 00115 vtkRenderWindow *RenderWindow; 00116 00117 virtual void ReadData(); 00118 00119 private: 00120 vtkImporter(const vtkImporter&); // Not implemented. 00121 void operator=(const vtkImporter&); // Not implemented. 00122 }; 00123 00124 #endif 00125 00126 00127 00128