Commit 5dbf7a5c authored by Majeid Alyassin's avatar Majeid Alyassin
Browse files

Added two methods that return DISPLAYID & GC

parent 8d13b7ce
......@@ -46,7 +46,7 @@ vtkImageXViewer::vtkImageXViewer()
{
this->DisplayId = (Display *)NULL;
this->WindowId = (Window)(NULL);
this->NumberOfColors = 200;
this->NumberOfColors = 150;
}
......@@ -196,7 +196,6 @@ static void vtkImageXViewerRenderColor(vtkImageXViewer *self, vtkImageRegion *re
}
}
//----------------------------------------------------------------------------
// Maybe we should cache the dataOut! (MTime)
void vtkImageXViewer::Render(void)
......@@ -681,11 +680,14 @@ void vtkImageXViewer::SetDisplayId(void *arg)
{
this->SetDisplayId((Display *)arg);
}
Display *vtkImageXViewer::GetDisplayId()
{
return(this->DisplayId);
}
GC vtkImageXViewer::GetGC()
{
return(this->Gc);
}
//----------------------------------------------------------------------------
Colormap vtkImageXViewer::MakeColorMap(Visual *visual)
{
......
......@@ -63,7 +63,10 @@ public:
~vtkImageXViewer();
char *GetClassName() {return "vtkImageXViewer";};
void PrintSelf(ostream& os, vtkIndent indent);
// output to the viewer.
vtkImageXViewer *GetOutput(){return this;};
XColor *GetColors();
void Render(void);
......@@ -93,7 +96,9 @@ public:
void SetDisplayId(void *);
void SetWindowId(Window);
void SetWindowId(void *);
Display *GetDisplayId();
GC GetGC();
protected:
// X stuff
Window WindowId;
......@@ -115,7 +120,7 @@ protected:
void GetDefaultVisualInfo(XVisualInfo *info);
Colormap MakeColorMap(Visual *visual);
void AllocateDirectColorMap();
Display *GetDisplayId();
// Display *GetDisplayId();
Visual *GetVisualId();
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment