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