boxSurfaceObserver.cxx

Go to the documentation of this file.
00001 
00002 #include "boxSurfaceObserver.h"
00003 #include "vtkBoxWidget.h"
00004 
00005 void boxSurfaceObserver::Execute(vtkObject *wdg, unsigned long eventId, void* calldata) {  // virtual
00006         vtkBoxWidget *boxwidget = reinterpret_cast<vtkBoxWidget*>(wdg);
00007         boxwidget->GetPlanes(_planes);
00008 
00009         if ( _vtkVolumeRayCastMapper != NULL )
00010         {
00011                 _vtkVolumeRayCastMapper->RemoveAllClippingPlanes();
00012 //              vtkPlanes *planes = vtkPlanes::New();
00013 //              boxwidget->GetPlanes(planes);
00014 //              _vtkVolumeRayCastMapper->SetClippingPlanes(planes);
00015                 _vtkVolumeRayCastMapper->SetClippingPlanes(_planes);
00016         }
00017 
00018 //      _actor->VisibilityOn();
00019 
00020 }
00021 //-------------------------------------------------------------------
00022 void boxSurfaceObserver::SetPlanes(vtkPlanes *planes){
00023         _planes = planes;
00024 }
00025 //-------------------------------------------------------------------
00026 void boxSurfaceObserver::SetActor(vtkProp *actor){
00027         _actor = actor;
00028 }
00029 
00030 //-------------------------------------------------------------------
00031 void boxSurfaceObserver::SetvtkVolumeRayCastMapper(vtkVolumeRayCastMapper *vtkvolumeraycastmapper)
00032 {
00033         _vtkVolumeRayCastMapper = vtkvolumeraycastmapper;
00034 }

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1