00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkContextView.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 =========================================================================*/ 00026 #ifndef __vtkContextView_h 00027 #define __vtkContextView_h 00028 00029 #include "vtkRenderView.h" 00030 00031 class vtkContext2D; 00032 class vtkContextScene; 00033 class vtkRenderWindowInteractor; 00034 00035 class VTK_CHARTS_EXPORT vtkContextView : public vtkRenderView 00036 { 00037 public: 00038 void PrintSelf(ostream& os, vtkIndent indent); 00039 vtkTypeRevisionMacro(vtkContextView,vtkRenderView); 00040 00041 static vtkContextView* New(); 00042 00044 virtual void SetContext(vtkContext2D *context); 00045 00047 00048 vtkGetObjectMacro(Context, vtkContext2D); 00050 00052 virtual void SetInteractionMode(int mode); 00053 00055 00056 vtkGetObjectMacro(Scene, vtkContextScene); 00058 00060 virtual void SetScene(vtkContextScene *scene); 00061 00064 virtual void Render(); 00065 00066 protected: 00067 vtkContextView(); 00068 ~vtkContextView(); 00069 00070 vtkContextScene *Scene; 00071 vtkContext2D *Context; 00072 00073 private: 00074 vtkContextView(const vtkContextView&); // Not implemented. 00075 void operator=(const vtkContextView&); // Not implemented. 00076 }; 00077 00078 #endif