VTK
dox/Charts/vtkAbstractContextBufferId.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkAbstractContextBufferId.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 =========================================================================*/
00015 
00037 #ifndef __vtkAbstractContextBufferId_h
00038 #define __vtkAbstractContextBufferId_h
00039 
00040 #include "vtkObject.h"
00041 
00042 class VTK_CHARTS_EXPORT vtkAbstractContextBufferId : public vtkObject
00043 {
00044 public:
00045   vtkTypeMacro(vtkAbstractContextBufferId, vtkObject);
00046   virtual void PrintSelf(ostream &os, vtkIndent indent);
00047   
00049 
00050   vtkGetMacro(Width,int);
00052   
00054 
00055   vtkSetMacro(Width,int);
00057   
00059 
00060   vtkGetMacro(Height,int);
00062   
00064 
00065   vtkSetMacro(Height,int);
00067   
00070   virtual void Allocate()=0;
00071   
00073   virtual bool IsAllocated() const=0;
00074   
00076 
00079   virtual void SetValues(int srcXmin,
00080                          int srcYmin)=0;
00082   
00087   virtual vtkIdType GetPickedItem(int x, int y)=0;
00088   
00091   virtual void ReleaseGraphicsResources();
00092   
00093 protected:
00094   vtkAbstractContextBufferId();
00095   virtual ~vtkAbstractContextBufferId();
00096   
00097   int Width;
00098   int Height;
00099   
00100 private:
00101   vtkAbstractContextBufferId(const vtkAbstractContextBufferId &); // Not implemented.
00102   void operator=(const vtkAbstractContextBufferId &);   // Not implemented.
00103 };
00104 
00105 #endif // #ifndef __vtkAbstractContextBufferId_h