Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

vtkImporter.h

Go to the documentation of this file.
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 =========================================================================*/
00048 #ifndef __vtkImporter_h
00049 #define __vtkImporter_h
00050 
00051 #include "vtkObject.h"
00052 
00053 class vtkRenderWindow;
00054 class vtkRenderer;
00055 
00056 class VTK_RENDERING_EXPORT vtkImporter : public vtkObject
00057 {
00058 public:
00059   vtkTypeRevisionMacro(vtkImporter,vtkObject);
00060   void PrintSelf(ostream& os, vtkIndent indent);
00061 
00062 
00064 
00066   vtkGetObjectMacro(Renderer,vtkRenderer);
00068 
00070 
00076   virtual void SetRenderWindow(vtkRenderWindow*);
00077   vtkGetObjectMacro(RenderWindow,vtkRenderWindow);
00079 
00080 
00082 
00084   void Read();
00085   void Update() {this->Read();};
00087   
00088 
00089 protected:
00090   vtkImporter();
00091   ~vtkImporter();
00092 
00093   virtual int ImportBegin () {return 1;};
00094   virtual void ImportEnd () {};
00095   virtual void ImportActors (vtkRenderer*) {};
00096   virtual void ImportCameras (vtkRenderer*) {};
00097   virtual void ImportLights (vtkRenderer*) {};
00098   virtual void ImportProperties (vtkRenderer*) {};
00099 
00100   vtkRenderer *Renderer;
00101   vtkRenderWindow *RenderWindow;
00102 
00103   virtual void ReadData();
00104 
00105 private:
00106   vtkImporter(const vtkImporter&);  // Not implemented.
00107   void operator=(const vtkImporter&);  // Not implemented.
00108 };
00109 
00110 #endif
00111 
00112 
00113 
00114