VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/IO/Import/vtkImporter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkImporter.h
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 =========================================================================*/
00044 #ifndef vtkImporter_h
00045 #define vtkImporter_h
00046 
00047 #include "vtkIOImportModule.h" // For export macro
00048 #include "vtkObject.h"
00049 
00050 class vtkRenderWindow;
00051 class vtkRenderer;
00052 
00053 class VTKIOIMPORT_EXPORT vtkImporter : public vtkObject
00054 {
00055 public:
00056   vtkTypeMacro(vtkImporter,vtkObject);
00057   void PrintSelf(ostream& os, vtkIndent indent);
00058 
00059 
00061 
00063   vtkGetObjectMacro(Renderer,vtkRenderer);
00065 
00067 
00073   virtual void SetRenderWindow(vtkRenderWindow*);
00074   vtkGetObjectMacro(RenderWindow,vtkRenderWindow);
00076 
00077 
00079 
00081   void Read();
00082   void Update() {this->Read();};
00084 
00085 
00086 protected:
00087   vtkImporter();
00088   ~vtkImporter();
00089 
00090   virtual int ImportBegin () {return 1;};
00091   virtual void ImportEnd () {}
00092   virtual void ImportActors (vtkRenderer*) {}
00093   virtual void ImportCameras (vtkRenderer*) {}
00094   virtual void ImportLights (vtkRenderer*) {}
00095   virtual void ImportProperties (vtkRenderer*) {}
00096 
00097   vtkRenderer *Renderer;
00098   vtkRenderWindow *RenderWindow;
00099 
00100   virtual void ReadData();
00101 
00102 private:
00103   vtkImporter(const vtkImporter&);  // Not implemented.
00104   void operator=(const vtkImporter&);  // Not implemented.
00105 };
00106 
00107 #endif
00108 
00109 
00110 
00111