Program: wxMaracas
Module: $RCSfile: wxMPRWidget.cxx,v $
Language: C++
- Date: $Date: 2009/03/24 10:49:21 $
- Version: $Revision: 1.5 $
+ Date: $Date: 2009/03/30 15:31:15 $
+ Version: $Revision: 1.6 $
Copyright: (c) 2002, 2003
License:
ckBoxX->SetValue(false);
ckBoxY->SetValue(false);
ckBoxZ->SetValue(false);
- _ckBoxXYZ->SetValue(true);
+ _ckBoxXYZ->SetValue(false);
_ckBoxPlane->SetValue(false);
_positionX->SetSize(400,20);
_wxvtk3Dbaseview->GetRenderer()->ResetCameraClippingRange();
-
// vtkPointWidget
_myCallback = vtkmyPWCallback_3DPointWidget::New();
_myCallback->SetWxVtkMPR3DView(this);
_myCallback->SetVtkPointWidget(_pointWidget);
_pointWidget->SetInteractor( GetWxvtk3Dbaseview()->GetWxVTKRenderWindowInteractor() );
_pointWidget->SetInput( GetVtkMPR3DDataViewer()->GetVtkMPRBaseData()->GetImageData() );
+
_pointWidget->AllOff();
+
_pointWidget->PlaceWidget();
// _pointWidget->SetPosition( x,y,z );
- _pointWidget->On();
+
+//EED01 29Mars2009
+// MACOS probleme vtk-window out of wx-window
+// _pointWidget->On();
+
_pointWidget->AddObserver(vtkCommand::InteractionEvent,_myCallback);
contourMapper->SetScalarRange( imageData->GetScalarRange() );
_contourPlaneActor = vtkActor::New();
_contourPlaneActor->SetMapper(contourMapper);
+
_contourPlaneActor->VisibilityOff();
_planeWidget->SetInteractor( GetWxvtk3Dbaseview()->GetWxVTKRenderWindowInteractor() );
_planeWidget->AddObserver(vtkCommand::InteractionEvent,_myCallback);
+
_planeWidget->Off();
_wxvtk3Dbaseview->GetRenderer()->AddActor( _contourPlaneActor );
}
VisibleActor(3, false );
_boxWidgetS1->HandlesOn ();
- _boxWidgetS1->On();
+
+//EED 29Mars2009
+// _boxWidgetS1->On();
+
_boxWidgetS1->Off();
_boxWidgetS1->GetPlanes( this->GetVtkClipping3DDataViewer()->GetTissuePlanes(0) );
_boxWidgetVolume->AddObserver( vtkCommand::InteractionEvent , _vtkclipping3Ddataviewer->GetObserverV() );
_boxWidgetVolume->HandlesOn ();
- _boxWidgetVolume->On();
+
+//EED 29Mars2009
+// _boxWidgetVolume->On();
+
_boxWidgetVolume->Off();
{
_wxvtk3Dbaseview_Clipping3D_BB->GetInteractorStyleBaseView()->AddInteractorStyleMaracas( vtkinteractorstyle3Dview );
}
-
- RefreshView(true);
+
+//EED 29Mars2009
+// RefreshView(true);
+
}
//----------------------------------------------------------------------------