NIREP
|
00001 // Author: Jeffrey Hawley 00002 00003 #include "NIREPRectilinearWipeWidget.h" 00004 00005 00006 vtkStandardNewMacro( NIREPRectilinearWipeWidget ); 00007 vtkCxxRevisionMacro(NIREPRectilinearWipeWidget, "$Revision: 1.4 $"); 00008 00009 NIREPRectilinearWipeWidget::NIREPRectilinearWipeWidget() 00010 { 00011 this->RectilinearWipeWidget = vtkRectilinearWipeWidget::New(); 00012 this->ImageRectilinearWipe = vtkImageRectilinearWipe::New(); 00013 this->ImageActor = vtkImageActor::New(); 00014 this->RectilinearWipeRepresentation = vtkRectilinearWipeRepresentation::New(); 00015 } 00016 NIREPRectilinearWipeWidget::~NIREPRectilinearWipeWidget() 00017 { 00018 } 00019 00020 void NIREPRectilinearWipeWidget::CreateWidget() 00021 { 00022 } 00023 00024 //Programmer: 00025 //Date: 00026 //Function: 00027 //Copyright: University of Iowa 00028 //Inputs: 00029 //Outputs: 00030 void NIREPRectilinearWipeWidget::Make() 00031 { 00032 /* vtkRenderer *Renderer = vtkRenderer::New(); 00033 Window->GetRenderWindow()->AddRenderer(Renderer); 00034 00035 00036 this->Update(); 00037 00038 this->ImageRectilinearWipe->SetInput1(this->GetDataManager()->Get2DImage(this->GetImageOne(),this->GetView(),this->GetSlice())); 00039 this->ImageRectilinearWipe->SetInput2(this->GetDataManager()->Get2DImage(this->GetImageTwo(),this->GetView(),this->GetSlice())); 00040 this->ImageRectilinearWipe->Update(); 00041 this->ImageActor->SetInput(this->ImageRectilinearWipe->GetOutput()); 00042 00043 Renderer->AddActor(this->ImageActor); 00044 00045 this->RectilinearWipeRepresentation->SetImageActor(this->ImageActor); 00046 this->RectilinearWipeRepresentation->SetRectilinearWipe(this->ImageRectilinearWipe); 00047 00048 this->RectilinearWipeWidget->SetCurrentRenderer(Renderer); 00049 this->RectilinearWipeWidget->SetInteractor(this->GetWindow()); 00050 this->RectilinearWipeWidget->SetRepresentation(this->RectilinearWipeRepresentation); 00051 00052 Renderer->ResetCamera(); 00053 00054 this->RectilinearWipeWidget->EnabledOn();*/ 00055 00056 00057 } 00058 00059 //Programmer: 00060 //Date: 00061 //Function: 00062 //Copyright: University of Iowa 00063 //Inputs: 00064 //Outputs: 00065 void NIREPRectilinearWipeWidget::Update() 00066 { 00067 //this->reader->Update(this->sliceNumber); 00068 00069 //Need to make sure that you keep on rendering the image each time there is a change 00070 this->Window->Render(); 00071 }