00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkContextView.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 =========================================================================*/ 00033 #ifndef __vtkContextView_h 00034 #define __vtkContextView_h 00035 00036 #include "vtkRenderViewBase.h" 00037 #include "vtkSmartPointer.h" // Needed for SP ivars 00038 00039 class vtkContext2D; 00040 class vtkContextScene; 00041 00042 class VTK_CHARTS_EXPORT vtkContextView : public vtkRenderViewBase 00043 { 00044 public: 00045 void PrintSelf(ostream& os, vtkIndent indent); 00046 vtkTypeMacro(vtkContextView, vtkRenderViewBase); 00047 00048 static vtkContextView* New(); 00049 00051 virtual void SetContext(vtkContext2D *context); 00052 00054 virtual vtkContext2D* GetContext(); 00055 00057 virtual void SetScene(vtkContextScene *scene); 00058 00060 virtual vtkContextScene* GetScene(); 00061 00062 protected: 00063 vtkContextView(); 00064 ~vtkContextView(); 00065 00066 vtkSmartPointer<vtkContextScene> Scene; 00067 vtkSmartPointer<vtkContext2D> Context; 00068 00069 private: 00070 vtkContextView(const vtkContextView&); // Not implemented. 00071 void operator=(const vtkContextView&); // Not implemented. 00072 }; 00073 00074 #endif