Commit 5f76173d authored by Ken Martin's avatar Ken Martin
Browse files

ENH: added new pipeline setInptuConnection method

parent 6ba636e7
......@@ -53,7 +53,9 @@ public:
// Set/Get the input to the viewer.
void SetInput(vtkImageData *in) {this->ImageMapper->SetInput(in);};
vtkImageData *GetInput() { return this->ImageMapper->GetInput();};
virtual void SetInputConnection(vtkAlgorithmOutput* input) {
this->ImageMapper->SetInputConnection(input);};
// Description:
// What is the possible Min/ Max z slices available.
int GetWholeZMin() {return this->ImageMapper->GetWholeZMin();};
......
......@@ -80,6 +80,8 @@ public:
void SetInput(vtkImageData *in) {this->WindowLevel->SetInput(in);}
vtkImageData *GetInput()
{ return vtkImageData::SafeDownCast(this->WindowLevel->GetInput());}
virtual void SetInputConnection(vtkAlgorithmOutput* input) {
this->WindowLevel->SetInputConnection(input);};
// Description:
// Return the minimum and maximum z-slice values.
......
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