controlPanelClippingVol3D = mwxvtkclipping3Dview->CreateVolControlPanel(notebook);
notebook->AddPage(controlPanelClippingVol3D, _T("Volume") );
- panelClipping3D->SplitHorizontally( window3D ,notebook , 10 );
+ panelClipping3D->SplitHorizontally( window3D ,notebook , -140 );
panelClipping3D->SetMinimumPaneSize( 20 );
//RaC Nov2012 Correctly resize internal panels with the window resize event
panelClipping3D->SetSashGravity(0.5);
panelClipping3D->SetMinimumPaneSize( 20 );
// panelClipping3D->SplitHorizontally( panelControl , window3D , 40 );
- panelClipping3D->SplitHorizontally( window3D, controlPanelMPR3D , -160 );
+ panelClipping3D->SplitHorizontally( window3D, controlPanelMPR3D , -140 );
// panelClipping3D->SplitHorizontally( controlPanelMPR3D , window3D , 0 );
// int width,height;
mchange->Modified(); //important
mchange->Update(); //important
}
-
*/
-
-
-
-
+
_planeWidgetX->SetInputData( imageData );
_planeWidgetY->SetInputData( imageData );
_planeWidgetZ->SetInputData( imageData );
_planeWidgetX->SetSlicePosition( x*spc[0] );
_planeWidgetY->SetSlicePosition( y*spc[1] );
_planeWidgetZ->SetSlicePosition( z*spc[2] );
-
_planeWidgetX->GetTexture()->SetInterpolate( _vtkmpr3Ddataviewer->GetVtkMPRBaseData()->GetInterpolate() );
_planeWidgetY->GetTexture()->SetInterpolate( _vtkmpr3Ddataviewer->GetVtkMPRBaseData()->GetInterpolate() );
_planeWidgetZ->GetTexture()->SetInterpolate( _vtkmpr3Ddataviewer->GetVtkMPRBaseData()->GetInterpolate() );
-
-
// -- Plane widget
_probe->SetSourceData( imageData );
#endif
image->GetExtent(xMin, xMax, yMin, yMax, zMin, zMax);
image->GetSpacing(xSpacing, ySpacing, zSpacing);
}
-
if (activationkey=='x')
{
planeWidget->SetPlaneOrientationToXAxes();
planeWidget->SetSlicePosition((xMax+xMin)/2.*xSpacing);
}
-
if (activationkey=='y')
{
planeWidget->SetPlaneOrientationToYAxes();
planeWidget->SetSlicePosition((yMax+yMin)/2.*ySpacing);
}
-
if (activationkey=='z')
{
planeWidget->SetPlaneOrientationToZAxes();
planeWidget->SetSlicePosition((zMax+zMin)/2.*zSpacing);
}
-
planeWidget->DisplayTextOn();
planeWidget->SetPicker(picker);
planeWidget->SetKeyPressActivationValue(activationkey);