00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkContextBufferId.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 00024 #ifndef __vtkContextBufferId_h 00025 #define __vtkContextBufferId_h 00026 00027 #include "vtkAbstractContextBufferId.h" 00028 00029 class vtkIntArray; 00030 00031 class VTK_CHARTS_EXPORT vtkContextBufferId : public vtkAbstractContextBufferId 00032 { 00033 public: 00034 vtkTypeMacro(vtkContextBufferId, vtkAbstractContextBufferId); 00035 virtual void PrintSelf(ostream &os, vtkIndent indent); 00036 00038 static vtkContextBufferId *New(); 00039 00042 virtual void Allocate(); 00043 00045 virtual bool IsAllocated() const; 00046 00048 00051 virtual void SetValues(int srcXmin, 00052 int srcYmin); 00054 00059 virtual vtkIdType GetPickedItem(int x, int y); 00060 00061 protected: 00062 vtkContextBufferId(); 00063 virtual ~vtkContextBufferId(); 00064 00066 00069 void SetValue(vtkIdType i, 00070 int value); 00072 00075 int GetValue(vtkIdType i); 00076 00077 vtkIntArray *IdArray; 00078 00079 private: 00080 vtkContextBufferId(const vtkContextBufferId &); // Not implemented. 00081 void operator=(const vtkContextBufferId &); // Not implemented. 00082 }; 00083 00084 #endif // #ifndef __vtkContextBufferId_h