00001 #ifndef BOXSURFACEOBSERVER_H_ 00002 #define BOXSURFACEOBSERVER_H_ 00003 00004 #include "vtkPlanes.h" 00005 #include "vtkProp.h" 00006 #include "vtkVolumeRayCastMapper.h" 00007 #include "vtkObject.h" 00008 #include "vtkCommand.h" 00009 00010 00011 // Callback for the interaction 00012 class boxSurfaceObserver : public vtkCommand 00013 { 00014 public: 00015 vtkPlanes *_planes; 00016 vtkProp *_actor; 00017 vtkVolumeRayCastMapper *_vtkVolumeRayCastMapper; 00018 00019 boxSurfaceObserver() 00020 { 00021 _vtkVolumeRayCastMapper = NULL; 00022 } 00023 00024 virtual char const *GetClassName() const { return "boxSurfaceObserver";} 00025 00026 static boxSurfaceObserver *New(){ 00027 boxSurfaceObserver * result; 00028 result = new boxSurfaceObserver(); 00029 return result; 00030 } 00031 00032 virtual void Execute(vtkObject *wdg, unsigned long eventId, void* calldata) ; 00033 void SetPlanes(vtkPlanes *planes); 00034 void SetActor(vtkProp *actor); 00035 void SetvtkVolumeRayCastMapper(vtkVolumeRayCastMapper *vtkvolumeraycastmapper); 00036 }; 00037 00038 00039 00040 #endif /*BOXSURFACEOBSERVER_H_*/