VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkAbstractContextBufferId.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 00037 #ifndef __vtkAbstractContextBufferId_h 00038 #define __vtkAbstractContextBufferId_h 00039 00040 #include "vtkRenderingContext2DModule.h" // For export macro 00041 #include "vtkObject.h" 00042 00043 class VTKRENDERINGCONTEXT2D_EXPORT vtkAbstractContextBufferId : public vtkObject 00044 { 00045 public: 00046 vtkTypeMacro(vtkAbstractContextBufferId, vtkObject); 00047 virtual void PrintSelf(ostream &os, vtkIndent indent); 00048 00050 00051 vtkGetMacro(Width,int); 00053 00055 00056 vtkSetMacro(Width,int); 00058 00060 00061 vtkGetMacro(Height,int); 00063 00065 00066 vtkSetMacro(Height,int); 00068 00071 virtual void Allocate()=0; 00072 00074 virtual bool IsAllocated() const=0; 00075 00077 00080 virtual void SetValues(int srcXmin, 00081 int srcYmin)=0; 00083 00088 virtual vtkIdType GetPickedItem(int x, int y)=0; 00089 00092 virtual void ReleaseGraphicsResources(); 00093 00094 protected: 00095 vtkAbstractContextBufferId(); 00096 virtual ~vtkAbstractContextBufferId(); 00097 00098 int Width; 00099 int Height; 00100 00101 private: 00102 vtkAbstractContextBufferId(const vtkAbstractContextBufferId &); // Not implemented. 00103 void operator=(const vtkAbstractContextBufferId &); // Not implemented. 00104 }; 00105 00106 #endif // #ifndef __vtkAbstractContextBufferId_h