#include <boxSurfaceObserver.h>
Public Member Functions | |
boxSurfaceObserver () | |
virtual char const * | GetClassName () const |
virtual void | Execute (vtkObject *wdg, unsigned long eventId, void *calldata) |
void | SetPlanes (vtkPlanes *planes) |
void | SetActor (vtkProp *actor) |
void | SetvtkVolumeRayCastMapper (vtkVolumeRayCastMapper *vtkvolumeraycastmapper) |
Static Public Member Functions | |
static boxSurfaceObserver * | New () |
Public Attributes | |
vtkPlanes * | _planes |
vtkProp * | _actor |
vtkVolumeRayCastMapper * | _vtkVolumeRayCastMapper |
Definition at line 12 of file boxSurfaceObserver.h.
boxSurfaceObserver::boxSurfaceObserver | ( | ) | [inline] |
Definition at line 19 of file boxSurfaceObserver.h.
References _vtkVolumeRayCastMapper.
Referenced by New().
00020 { 00021 _vtkVolumeRayCastMapper = NULL; 00022 }
void boxSurfaceObserver::Execute | ( | vtkObject * | wdg, | |
unsigned long | eventId, | |||
void * | calldata | |||
) | [virtual] |
Definition at line 5 of file boxSurfaceObserver.cxx.
References _planes, and _vtkVolumeRayCastMapper.
00005 { // 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 }
virtual char const* boxSurfaceObserver::GetClassName | ( | ) | const [inline, virtual] |
Definition at line 24 of file boxSurfaceObserver.h.
static boxSurfaceObserver* boxSurfaceObserver::New | ( | ) | [inline, static] |
Definition at line 26 of file boxSurfaceObserver.h.
References boxSurfaceObserver().
Referenced by vtkClipping3DDataViewer::Configure_Tissue(), vtkClipping3DDataViewer::Configure_Volume(), and wxMaracasSurfaceRenderingManagerDataMhd::wxMaracasSurfaceRenderingManagerDataMhd().
00026 { 00027 boxSurfaceObserver * result; 00028 result = new boxSurfaceObserver(); 00029 return result; 00030 }
void boxSurfaceObserver::SetActor | ( | vtkProp * | actor | ) |
Definition at line 26 of file boxSurfaceObserver.cxx.
References _actor.
Referenced by vtkClipping3DDataViewer::Configure_Tissue(), vtkClipping3DDataViewer::Configure_Volume(), and wxMaracasSurfaceRenderingManagerDataMhd::wxMaracasSurfaceRenderingManagerDataMhd().
00026 { 00027 _actor = actor; 00028 }
void boxSurfaceObserver::SetPlanes | ( | vtkPlanes * | planes | ) |
Definition at line 22 of file boxSurfaceObserver.cxx.
References _planes.
Referenced by vtkClipping3DDataViewer::Configure_Tissue(), vtkClipping3DDataViewer::Configure_Volume(), and wxMaracasSurfaceRenderingManagerDataMhd::wxMaracasSurfaceRenderingManagerDataMhd().
00022 { 00023 _planes = planes; 00024 }
void boxSurfaceObserver::SetvtkVolumeRayCastMapper | ( | vtkVolumeRayCastMapper * | vtkvolumeraycastmapper | ) |
Definition at line 31 of file boxSurfaceObserver.cxx.
References _vtkVolumeRayCastMapper.
Referenced by vtkClipping3DDataViewer::Configure_Volume().
00032 { 00033 _vtkVolumeRayCastMapper = vtkvolumeraycastmapper; 00034 }
vtkProp* boxSurfaceObserver::_actor |
Definition at line 16 of file boxSurfaceObserver.h.
Referenced by SetActor().
vtkPlanes* boxSurfaceObserver::_planes |
Definition at line 15 of file boxSurfaceObserver.h.
Referenced by Execute(), and SetPlanes().
vtkVolumeRayCastMapper* boxSurfaceObserver::_vtkVolumeRayCastMapper |
Definition at line 17 of file boxSurfaceObserver.h.
Referenced by boxSurfaceObserver(), Execute(), and SetvtkVolumeRayCastMapper().