VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
27 #include "vtkRenderingContext2DModule.h" // For export macro
29 
30 class vtkIntArray;
31 
33 {
34 public:
36  virtual void PrintSelf(ostream &os, vtkIndent indent);
37 
39  static vtkContextBufferId *New();
40 
43  virtual void Allocate();
44 
46  virtual bool IsAllocated() const;
47 
49 
52  virtual void SetValues(int srcXmin,
53  int srcYmin);
55 
60  virtual vtkIdType GetPickedItem(int x, int y);
61 
62 protected:
64  virtual ~vtkContextBufferId();
65 
67 
70  void SetValue(vtkIdType i,
71  int value);
73 
76  int GetValue(vtkIdType i);
77 
79 
80 private:
81  vtkContextBufferId(const vtkContextBufferId &); // Not implemented.
82  void operator=(const vtkContextBufferId &); // Not implemented.
83 };
84 
85 #endif // #ifndef __vtkContextBufferId_h
virtual vtkIdType GetPickedItem(int x, int y)=0
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
int vtkIdType
Definition: vtkType.h:268
virtual void Allocate()=0
GLint GLint GLint GLint GLint GLint y
Definition: vtkgl.h:11318
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:45
#define VTKRENDERINGCONTEXT2D_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:38
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.