VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Views/Context2D/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 =========================================================================*/
00033 #ifndef vtkContextView_h
00034 #define vtkContextView_h
00035 
00036 #include "vtkViewsContext2DModule.h" // For export macro
00037 #include "vtkRenderViewBase.h"
00038 #include "vtkSmartPointer.h" // Needed for SP ivars
00039 
00040 class vtkContext2D;
00041 class vtkContextScene;
00042 
00043 class VTKVIEWSCONTEXT2D_EXPORT vtkContextView : public vtkRenderViewBase
00044 {
00045 public:
00046   void PrintSelf(ostream& os, vtkIndent indent);
00047   vtkTypeMacro(vtkContextView, vtkRenderViewBase);
00048 
00049   static vtkContextView* New();
00050 
00052   virtual void SetContext(vtkContext2D *context);
00053 
00055   virtual vtkContext2D* GetContext();
00056 
00058   virtual void SetScene(vtkContextScene *scene);
00059 
00061   virtual vtkContextScene* GetScene();
00062 
00063 protected:
00064   vtkContextView();
00065   ~vtkContextView();
00066 
00067   vtkSmartPointer<vtkContextScene> Scene;
00068   vtkSmartPointer<vtkContext2D> Context;
00069 
00070 private:
00071   vtkContextView(const vtkContextView&);  // Not implemented.
00072   void operator=(const vtkContextView&);  // Not implemented.
00073 };
00074 
00075 #endif