VTK
vtkAbstractContextBufferId.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAbstractContextBufferId.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 
37 #ifndef __vtkAbstractContextBufferId_h
38 #define __vtkAbstractContextBufferId_h
39 
40 #include "vtkObject.h"
41 
43 {
44 public:
46  virtual void PrintSelf(ostream &os, vtkIndent indent);
47 
49 
50  vtkGetMacro(Width,int);
52 
54 
55  vtkSetMacro(Width,int);
57 
59 
60  vtkGetMacro(Height,int);
62 
64 
65  vtkSetMacro(Height,int);
67 
70  virtual void Allocate()=0;
71 
73  virtual bool IsAllocated() const=0;
74 
76 
79  virtual void SetValues(int srcXmin,
80  int srcYmin)=0;
82 
87  virtual vtkIdType GetPickedItem(int x, int y)=0;
88 
91  virtual void ReleaseGraphicsResources();
92 
93 protected:
95  virtual ~vtkAbstractContextBufferId();
96 
97  int Width;
98  int Height;
99 
100 private:
101  vtkAbstractContextBufferId(const vtkAbstractContextBufferId &); // Not implemented.
102  void operator=(const vtkAbstractContextBufferId &); // Not implemented.
103 };
104 
105 #endif // #ifndef __vtkAbstractContextBufferId_h
#define VTK_CHARTS_EXPORT
abstract base class for most VTK objects
Definition: vtkObject.h:60
int vtkIdType
Definition: vtkType.h:255
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:37
2D array of ids, used for picking.