00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkRenderViewBase.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 =========================================================================*/ 00015 00036 #ifndef __vtkRenderViewBase_h 00037 #define __vtkRenderViewBase_h 00038 00039 #include "vtkView.h" 00040 #include "vtkSmartPointer.h" // For SP ivars 00041 00042 class vtkInteractorObserver; 00043 class vtkRenderer; 00044 class vtkRenderWindow; 00045 class vtkRenderWindowInteractor; 00046 00047 class VTK_VIEWS_EXPORT vtkRenderViewBase : public vtkView 00048 { 00049 public: 00050 static vtkRenderViewBase* New(); 00051 vtkTypeMacro(vtkRenderViewBase, vtkView); 00052 void PrintSelf(ostream& os, vtkIndent indent); 00053 00055 virtual vtkRenderer* GetRenderer(); 00056 00057 // Sets the renderer for this view. 00058 virtual void SetRenderer(vtkRenderer* ren); 00059 00061 virtual vtkRenderWindow* GetRenderWindow(); 00062 00066 virtual void SetRenderWindow(vtkRenderWindow *win); 00067 00069 00072 virtual vtkRenderWindowInteractor* GetInteractor(); 00073 virtual void SetInteractor(vtkRenderWindowInteractor*); 00075 00078 virtual void Render(); 00079 00082 virtual void ResetCamera(); 00083 00086 virtual void ResetCameraClippingRange(); 00087 00088 protected: 00089 vtkRenderViewBase(); 00090 ~vtkRenderViewBase(); 00091 00093 virtual void PrepareForRendering(); 00094 00095 vtkSmartPointer<vtkRenderer> Renderer; 00096 vtkSmartPointer<vtkRenderWindow> RenderWindow; 00097 00098 private: 00099 vtkRenderViewBase(const vtkRenderViewBase&); // Not implemented. 00100 void operator=(const vtkRenderViewBase&); // Not implemented. 00101 }; 00102 00103 #endif