VTK
vtkContextBufferId.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkContextBufferId.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
24 #ifndef __vtkContextBufferId_h
25 #define __vtkContextBufferId_h
26 
28 
29 class vtkIntArray;
30 
32 {
33 public:
35  virtual void PrintSelf(ostream &os, vtkIndent indent);
36 
38  static vtkContextBufferId *New();
39 
42  virtual void Allocate();
43 
45  virtual bool IsAllocated() const;
46 
48 
51  virtual void SetValues(int srcXmin,
52  int srcYmin);
54 
59  virtual vtkIdType GetPickedItem(int x, int y);
60 
61 protected:
63  virtual ~vtkContextBufferId();
64 
66 
69  void SetValue(vtkIdType i,
70  int value);
72 
75  int GetValue(vtkIdType i);
76 
78 
79 private:
80  vtkContextBufferId(const vtkContextBufferId &); // Not implemented.
81  void operator=(const vtkContextBufferId &); // Not implemented.
82 };
83 
84 #endif // #ifndef __vtkContextBufferId_h
#define VTK_CHARTS_EXPORT
virtual vtkIdType GetPickedItem(int x, int y)=0
int vtkIdType
Definition: vtkType.h:255
virtual void Allocate()=0
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:42
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual void SetValues(int srcXmin, int srcYmin)=0
2D array of ids, used for picking.
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual bool IsAllocated() const =0
static vtkObject * New()
2D array of ids, used for picking.