VTK
dox/Charts/vtkContextActor.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkContextActor.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 =========================================================================*/
00026 #ifndef __vtkContextActor_h
00027 #define __vtkContextActor_h
00028 
00029 #include "vtkProp.h"
00030 
00031 class vtkContext2D;
00032 class vtkContextScene;
00033 
00034 class VTK_CHARTS_EXPORT vtkContextActor : public vtkProp
00035 {
00036 public:
00037   void PrintSelf(ostream& os, vtkIndent indent);
00038   vtkTypeMacro(vtkContextActor,vtkProp);
00039 
00040   static vtkContextActor* New();
00041 
00043   virtual int RenderOverlay(vtkViewport *viewport);
00044 
00046   virtual void SetContext(vtkContext2D *context);
00047 
00049 
00050   vtkGetObjectMacro(Context, vtkContext2D);
00052 
00054 
00055   vtkGetObjectMacro(Scene, vtkContextScene);
00057 
00059   virtual void SetScene(vtkContextScene *scene);
00060 
00064   virtual void ReleaseGraphicsResources(vtkWindow *window);
00065 
00066 protected:
00067   vtkContextActor();
00068   ~vtkContextActor();
00069 
00072   void Initialize(vtkViewport* viewport);
00073 
00074   vtkContextScene *Scene;
00075   vtkContext2D *Context;
00076   bool Initialized;
00077 
00078 private:
00079   vtkContextActor(const vtkContextActor&);  // Not implemented.
00080   void operator=(const vtkContextActor&);  // Not implemented.
00081 };
00082 
00083 #endif