VTK
dox/Charts/vtkContextView.h
Go to the documentation of this file.
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 =========================================================================*/
00029 #ifndef __vtkContextView_h
00030 #define __vtkContextView_h
00031 
00032 #include "vtkRenderView.h"
00033 
00034 class vtkContext2D;
00035 class vtkContextScene;
00036 class vtkRenderWindowInteractor;
00037 
00038 class VTK_CHARTS_EXPORT vtkContextView : public vtkRenderView
00039 {
00040 public:
00041   void PrintSelf(ostream& os, vtkIndent indent);
00042   vtkTypeMacro(vtkContextView,vtkRenderView);
00043 
00044   static vtkContextView* New();
00045 
00047   virtual void SetContext(vtkContext2D *context);
00048 
00050 
00051   vtkGetObjectMacro(Context, vtkContext2D);
00053 
00055   virtual void SetInteractionMode(int mode);
00056 
00058 
00059   vtkGetObjectMacro(Scene, vtkContextScene);
00061 
00063   virtual void SetScene(vtkContextScene *scene);
00064 
00067   virtual void Render();
00068 
00069 protected:
00070   vtkContextView();
00071   ~vtkContextView();
00072 
00073   vtkContextScene *Scene;
00074   vtkContext2D *Context;
00075 
00076 private:
00077   vtkContextView(const vtkContextView&);  // Not implemented.
00078   void operator=(const vtkContextView&);  // Not implemented.
00079 };
00080 
00081 #endif