00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00052 #ifndef __vtkWindow_h
00053 #define __vtkWindow_h
00054
00055 #include "vtkObject.h"
00056 #include <stdio.h>
00057
00058 class VTK_EXPORT vtkWindow : public vtkObject
00059 {
00060 public:
00061 vtkTypeMacro(vtkWindow,vtkObject);
00062 void PrintSelf(ostream& os, vtkIndent indent);
00063
00066 virtual void SetDisplayId(void *) = 0;
00067 virtual void SetWindowId(void *) = 0;
00068 virtual void SetParentId(void *) = 0;
00069 virtual void *GetGenericDisplayId() = 0;
00070 virtual void *GetGenericWindowId() = 0;
00071 virtual void *GetGenericParentId() = 0;
00072 virtual void *GetGenericContext() = 0;
00073 virtual void *GetGenericDrawable() = 0;
00074 virtual void SetWindowInfo(char *) = 0;
00075
00077 virtual int *GetPosition();
00078 virtual void SetPosition(int,int);
00079 virtual void SetPosition(int a[2]);
00080
00082 virtual int *GetSize();
00083 virtual void SetSize(int,int);
00084 virtual void SetSize(int a[2]);
00085
00087 vtkSetMacro(Mapped,int);
00088 vtkGetMacro(Mapped,int);
00089 vtkBooleanMacro(Mapped,int);
00090
00095 vtkSetMacro(Erase,int);
00096 vtkGetMacro(Erase,int);
00097 vtkBooleanMacro(Erase,int);
00098
00100 vtkSetMacro(DoubleBuffer,int);
00101 vtkGetMacro(DoubleBuffer,int);
00102 vtkBooleanMacro(DoubleBuffer,int);
00103
00105 vtkGetStringMacro(WindowName);
00106 virtual void SetWindowName(char * );
00107
00110 virtual void Render() = 0;
00111
00120 virtual unsigned char *GetPixelData(int, int, int, int, int) {
00121 return (unsigned char *)NULL;};
00122
00125 vtkGetMacro(DPI,int);
00126 vtkSetClampMacro(DPI,int,1,3000);
00127
00131 vtkSetMacro(OffScreenRendering,int);
00132 vtkGetMacro(OffScreenRendering,int);
00133 vtkBooleanMacro(OffScreenRendering,int);
00134
00137 virtual void MakeCurrent() {};
00138
00139 protected:
00140 int OffScreenRendering;
00141 vtkWindow();
00142 ~vtkWindow();
00143 vtkWindow(const vtkWindow&) {};
00144 void operator=(const vtkWindow&) {};
00145
00146 char *WindowName;
00147 int Size[2];
00148 int Position[2];
00149 int Mapped;
00150 int Erase;
00151 int DoubleBuffer;
00152 int DPI;
00153 };
00154
00155 #endif
00156
00157