OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / SGI / util / SGI / include / imaging / vtkXImageMapper.h
1 #ifndef __vtkXImageMapper_h
2 #define __vtkXImageMapper_h
3
4 #include "vtkImageMapper.h"
5 #include "vtkWindow.h"
6 #include "vtkViewport.h"
7 #include "vtkImageData.h"
8 #include <X11/Xlib.h>
9 #include <X11/Xutil.h>
10 #include <X11/cursorfont.h>
11 #include <X11/X.h>
12 #include <X11/keysym.h>
13
14 class vtkActor2D;
15
16 class VTK_EXPORT vtkXImageMapper : public vtkImageMapper
17 {
18 public:
19   vtkXImageMapper();
20   ~vtkXImageMapper();
21
22   static vtkXImageMapper *New() {return new vtkXImageMapper;};
23
24   // Description:
25   // Called by the Render function in vtkImageMapper.  Actually draws
26   // the image to the screen.
27   void RenderData(vtkViewport* viewport, vtkImageData* data, vtkActor2D* actor);
28
29   // Description:
30   // Returns the X specific compositing operator.
31   int GetCompositingMode(vtkActor2D* actor);
32
33   // Description:
34   // Returns the depth of the X window
35   int GetXWindowDepth(vtkWindow* window);
36
37   // Description:
38   // Returns the visual id of the window
39   void GetXWindowVisualId(vtkWindow* window, Visual* visualID);
40
41   // Description:
42   // Returns the visual class of the window
43   int GetXWindowVisualClass(vtkWindow* window);
44  
45   // Description:
46   // Returns the color map used by the window
47   void GetXWindowColors(vtkWindow* window, XColor colors[], int ncolors);
48
49   // Description:
50   // Returns the color masks used by the window.
51   void GetXWindowColorMasks(vtkWindow *window, unsigned long *rmask,
52                             unsigned long *gmask, unsigned long *bmask);
53
54   // Description:
55   // Gets the number of colors in the pseudo color map.
56   vtkGetMacro(NumberOfColors,int);
57
58 protected:
59
60   XImage          *Image;
61   unsigned char   *DataOut;
62   int             DataOutSize;
63   int             NumberOfColors;
64 };
65
66
67 #endif
68
69
70
71