VTK
|
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 "vtkViewsCoreModule.h" // For export macro 00040 #include "vtkView.h" 00041 #include "vtkSmartPointer.h" // For SP ivars 00042 00043 class vtkInteractorObserver; 00044 class vtkRenderer; 00045 class vtkRenderWindow; 00046 class vtkRenderWindowInteractor; 00047 00048 class VTKVIEWSCORE_EXPORT vtkRenderViewBase : public vtkView 00049 { 00050 public: 00051 static vtkRenderViewBase* New(); 00052 vtkTypeMacro(vtkRenderViewBase, vtkView); 00053 void PrintSelf(ostream& os, vtkIndent indent); 00054 00056 virtual vtkRenderer* GetRenderer(); 00057 00058 // Sets the renderer for this view. 00059 virtual void SetRenderer(vtkRenderer* ren); 00060 00062 virtual vtkRenderWindow* GetRenderWindow(); 00063 00067 virtual void SetRenderWindow(vtkRenderWindow *win); 00068 00070 00073 virtual vtkRenderWindowInteractor* GetInteractor(); 00074 virtual void SetInteractor(vtkRenderWindowInteractor*); 00076 00079 virtual void Render(); 00080 00083 virtual void ResetCamera(); 00084 00087 virtual void ResetCameraClippingRange(); 00088 00089 protected: 00090 vtkRenderViewBase(); 00091 ~vtkRenderViewBase(); 00092 00094 virtual void PrepareForRendering(); 00095 00096 vtkSmartPointer<vtkRenderer> Renderer; 00097 vtkSmartPointer<vtkRenderWindow> RenderWindow; 00098 00099 private: 00100 vtkRenderViewBase(const vtkRenderViewBase&); // Not implemented. 00101 void operator=(const vtkRenderViewBase&); // Not implemented. 00102 }; 00103 00104 #endif