- mImage = NULL;
- mCurrentTSlice = 0;
-
- mCurrent[0] = -VTK_DOUBLE_MAX;
- mCurrent[1] = -VTK_DOUBLE_MAX;
- mCurrent[2] = -VTK_DOUBLE_MAX;
-
- mCursor[0] = -VTK_DOUBLE_MAX;
- mCursor[1] = -VTK_DOUBLE_MAX;
- mCursor[2] = -VTK_DOUBLE_MAX;
- mCursor[3] = -VTK_DOUBLE_MAX;
-
- mSubSampling = 5;
- mScale = 1;
- mVFLog = 0;
-
- std::string text = "F1 = sagital; F2 = coronal; F3 = axial\n";
- text += "F5 = horizontal flip; F6 = vertical flip\n\n";
- text += "0,1,2,3,4,5 : preset windowing\n";
- text += "6,7,8,9 : preset colormap\n";
- text += "r : reset view\n";
- text += "l : reload image\n";
- text += "f : fly to mouse position\n";
- text += "g : go to cross hair position\n\n";
- text += "Up,down : change slice\n";
- text += "Left,right : change tenporal slice\n\n";
- text += "Scrollbar (or w/x) : zoom in/out\n";
- text += "left button : synchronize all views\n";
- text += "middle button : grab image\n";
- text += "right button : change windowing\n";
-
- crossCursor = vtkCursor2D::New();
- crossCursor->AllOff();
- crossCursor->AxesOn();
- crossCursor->SetTranslationMode(1);
- crossCursor->SetRadius(2);
-
- pdm = vtkPolyDataMapper2D::New();
- pdm->SetInput(crossCursor->GetOutput());
-
- pdmA = vtkActor2D::New();
- pdmA->SetMapper(pdm);
- pdmA->GetProperty()->SetColor(255,10,212);
- pdmA->SetVisibility(0);
- pdmA->SetPickable(0);
-
- ca = vtkCornerAnnotation::New();
- ca->GetTextProperty()->SetColor(255,10,212);
- ca->SetVisibility(1);
- mFileName = "";
-
- mVF = NULL;
- mOverlay = NULL;
- mFusion = NULL;
- mLandmarks = NULL;
-
- legend = vtkSmartPointer<vtkScalarBarActor>::New();
- //legend->SetTitle("test!");
- legend->SetPosition(0.82,0.18);
- legend->SetWidth(0.1);
- legend->SetVisibility(0);
- legend->SetLabelFormat("%.1f");
- this->GetRenderer()->AddActor(legend);
-
- this->WindowLevel->Delete();
- this->WindowLevel = vvImageMapToWLColors::New();
- this->InstallPipeline();
+ mImage = NULL;
+ mCurrentTSlice = 0;
+ mUseReducedExtent = false;
+
+ mCurrent[0] = -VTK_DOUBLE_MAX;
+ mCurrent[1] = -VTK_DOUBLE_MAX;
+ mCurrent[2] = -VTK_DOUBLE_MAX;
+
+ mCursor[0] = -VTK_DOUBLE_MAX;
+ mCursor[1] = -VTK_DOUBLE_MAX;
+ mCursor[2] = -VTK_DOUBLE_MAX;
+ mCursor[3] = -VTK_DOUBLE_MAX;
+
+ mSubSampling = 5;
+ mScale = 1;
+ mVFLog = 0;
+
+ std::string text = "F1 = sagital; F2 = coronal; F3 = axial\n";
+ text += "F5 = horizontal flip; F6 = vertical flip\n\n";
+ text += "0,1,2,3,4,5 : preset windowing\n";
+ text += "6,7,8,9 : preset colormap\n";
+ text += "z : local windowing\n";
+ text += "r : reset view\n";
+ text += "l : reload image\n";
+ text += "f : fly to mouse position\n";
+ text += "g : go to cross hair position\n\n";
+ text += "Up,down : change slice\n";
+ text += "Left,right : change tenporal slice\n\n";
+ text += "Scrollbar (or w/x) : zoom in/out\n";
+ text += "left button : synchronize all views\n";
+ text += "middle button : grab image\n";
+ text += "right button : change windowing\n";
+
+ crossCursor = vtkCursor2D::New();
+ crossCursor->AllOff();
+ crossCursor->AxesOn();
+ crossCursor->SetTranslationMode(1);
+ crossCursor->SetRadius(2);
+
+ pdm = vtkPolyDataMapper2D::New();
+ pdm->SetInput(crossCursor->GetOutput());
+
+ pdmA = vtkActor2D::New();
+ pdmA->SetMapper(pdm);
+ pdmA->GetProperty()->SetColor(255,10,212);
+ pdmA->SetVisibility(0);
+ pdmA->SetPickable(0);
+
+ ca = vtkCornerAnnotation::New();
+ ca->GetTextProperty()->SetColor(255,10,212);
+ ca->SetVisibility(1);
+ mFileName = "";
+
+ mVF = NULL;
+ mOverlay = NULL;
+ mFusion = NULL;
+ mLandmarks = NULL;
+
+ legend = vtkSmartPointer<vtkScalarBarActor>::New();
+ //legend->SetTitle("test!");
+ legend->SetPosition(0.82,0.18);
+ legend->SetWidth(0.1);
+ legend->SetVisibility(0);
+ legend->SetLabelFormat("%.1f");
+ this->GetRenderer()->AddActor(legend);
+
+ this->WindowLevel->Delete();
+ this->WindowLevel = vvImageMapToWLColors::New();
+ this->InstallPipeline();
+