#include "vtkPlanes.h"
#include "vtkProp.h"
-#include "vtkVolumeRayCastMapper.h"
+
+#if (VTK_MAJOR_VERSION <= 7)
+ #include "vtkVolumeRayCastMapper.h"
+#else
+ #include <vtkFixedPointVolumeRayCastMapper.h>
+#endif
+
#include "vtkObject.h"
#include "vtkCommand.h"
class boxSurfaceObserver : public vtkCommand
{
public:
- vtkPlanes *_planes;
- vtkProp *_actor;
- vtkVolumeRayCastMapper *_vtkVolumeRayCastMapper;
+ vtkPlanes *_planes;
+ vtkProp *_actor;
+
+ vtkAlgorithm *_mCubes;
+ vtkAlgorithm *_tissueStripper;
+ vtkAlgorithm *_tissueClipper;
+#if (VTK_MAJOR_VERSION <= 7)
+ vtkVolumeRayCastMapper *_vtkVolumeRayCastMapper;
+#else
+ vtkFixedPointVolumeRayCastMapper *_vtkVolumeRayCastMapper;
+#endif
boxSurfaceObserver()
{
- _vtkVolumeRayCastMapper = NULL;
+ _mCubes = NULL;
+ _tissueStripper = NULL;
+ _tissueClipper = NULL;
+ _vtkVolumeRayCastMapper = NULL;
+
}
virtual char const *GetClassName() const { return "boxSurfaceObserver";}
static boxSurfaceObserver *New(){
- boxSurfaceObserver * result;
- result = new boxSurfaceObserver();
+ boxSurfaceObserver *result;
+ result = new boxSurfaceObserver();
return result;
}
virtual void Execute(vtkObject *wdg, unsigned long eventId, void* calldata) ;
void SetPlanes(vtkPlanes *planes);
void SetActor(vtkProp *actor);
+#if (VTK_MAJOR_VERSION <= 7)
void SetvtkVolumeRayCastMapper(vtkVolumeRayCastMapper *vtkvolumeraycastmapper);
+#else
+ void SetvtkFixedPointVolumeRayCastMapper(vtkFixedPointVolumeRayCastMapper *vtkvolumeraycastmapper);
+#endif
+ void SetFilters(vtkAlgorithm *_mCubes , vtkAlgorithm *_tissueStripper , vtkAlgorithm *_tissueClipper);
};
-
#endif /*BOXSURFACEOBSERVER_H_*/