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 "vtkRenderingContext2DModule.h" // For export macro
41 #include "vtkObject.h"
42 
43 class vtkRenderWindow;
44 
46 {
47 public:
49  virtual void PrintSelf(ostream &os, vtkIndent indent);
50 
52 
54 
55  vtkGetMacro(Width,int);
57 
59 
60  vtkSetMacro(Width,int);
62 
64 
65  vtkGetMacro(Height,int);
67 
69 
70  vtkSetMacro(Height,int);
72 
74 
75  virtual void SetContext(vtkRenderWindow *context) = 0;
76  virtual vtkRenderWindow *GetContext() = 0;
78 
81  virtual bool IsSupported() = 0;
82 
85  virtual void Allocate()=0;
86 
88  virtual bool IsAllocated() const=0;
89 
91 
94  virtual void SetValues(int srcXmin,
95  int srcYmin)=0;
97 
102  virtual vtkIdType GetPickedItem(int x, int y)=0;
103 
106  virtual void ReleaseGraphicsResources();
107 
108 protected:
111 
112  int Width;
113  int Height;
114 
115 private:
116  vtkAbstractContextBufferId(const vtkAbstractContextBufferId &); // Not implemented.
117  void operator=(const vtkAbstractContextBufferId &); // Not implemented.
118 };
119 
120 #endif // #ifndef vtkAbstractContextBufferId_h
vtkIdType
int vtkIdType
Definition: vtkType.h:275
VTKRENDERINGCONTEXT2D_EXPORT
#define VTKRENDERINGCONTEXT2D_EXPORT
Definition: vtkRenderingContext2DModule.h:15
vtkAbstractContextBufferId::~vtkAbstractContextBufferId
virtual ~vtkAbstractContextBufferId()
vtkAbstractContextBufferId::vtkAbstractContextBufferId
vtkAbstractContextBufferId()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkAbstractContextBufferId::GetPickedItem
virtual vtkIdType GetPickedItem(int x, int y)=0
vtkAbstractContextBufferId
2D array of ids, used for picking.
Definition: vtkAbstractContextBufferId.h:46
vtkAbstractContextBufferId::IsAllocated
virtual bool IsAllocated() const =0
vtkAbstractContextBufferId::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources()
vtkAbstractContextBufferId::SetContext
virtual void SetContext(vtkRenderWindow *context)=0
vtkAbstractContextBufferId::IsSupported
virtual bool IsSupported()=0
vtkAbstractContextBufferId::GetContext
virtual vtkRenderWindow * GetContext()=0
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkObject.h
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkAbstractContextBufferId::Height
int Height
Definition: vtkAbstractContextBufferId.h:113
vtkgl::y
GLint GLint GLint GLint GLint GLint y
Definition: vtkgl.h:11318
vtkAbstractContextBufferId::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkRenderWindow
create a window for renderers to draw into
Definition: vtkRenderWindow.h:89
vtkAbstractContextBufferId::Allocate
virtual void Allocate()=0
vtkRenderingContext2DModule.h
vtkAbstractContextBufferId::Width
int Width
Definition: vtkAbstractContextBufferId.h:112
vtkAbstractContextBufferId::SetValues
virtual void SetValues(int srcXmin, int srcYmin)=0
vtkAbstractContextBufferId::New
static vtkAbstractContextBufferId * New()