1 #ifndef __vtkXImageMapper_h
2 #define __vtkXImageMapper_h
4 #include "vtkImageMapper.h"
6 #include "vtkViewport.h"
7 #include "vtkImageData.h"
10 #include <X11/cursorfont.h>
12 #include <X11/keysym.h>
16 class VTK_EXPORT vtkXImageMapper : public vtkImageMapper
22 static vtkXImageMapper *New() {return new vtkXImageMapper;};
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);
30 // Returns the X specific compositing operator.
31 int GetCompositingMode(vtkActor2D* actor);
34 // Returns the depth of the X window
35 int GetXWindowDepth(vtkWindow* window);
38 // Returns the visual id of the window
39 void GetXWindowVisualId(vtkWindow* window, Visual* visualID);
42 // Returns the visual class of the window
43 int GetXWindowVisualClass(vtkWindow* window);
46 // Returns the color map used by the window
47 void GetXWindowColors(vtkWindow* window, XColor colors[], int ncolors);
50 // Returns the color masks used by the window.
51 void GetXWindowColorMasks(vtkWindow *window, unsigned long *rmask,
52 unsigned long *gmask, unsigned long *bmask);
55 // Gets the number of colors in the pseudo color map.
56 vtkGetMacro(NumberOfColors,int);
61 unsigned char *DataOut;