26 #include <vtkSmartPointer.h>
52 reslice->SetInputSlice(const_cast<vtkImageData *>(slice->GetVtkImageData()));
55 reslice->SetOverwriteMode(
true);
60 extractor->SetInput(imageOperation->
GetImage());
61 extractor->SetTimeStep(imageOperation->
GetTimeStep());
62 extractor->SetWorldGeometry(dynamic_cast<PlaneGeometry *>(imageOperation->
GetWorldGeometry()));
63 extractor->SetVtkOutputRequest(
true);
66 extractor->Modified();
71 imageOperation->
GetImage()->Modified();
74 extractor2->SetInput(imageOperation->
GetImage());
75 extractor2->SetTimeStep(imageOperation->
GetTimeStep());
76 extractor2->SetWorldGeometry(dynamic_cast<PlaneGeometry *>(imageOperation->
GetWorldGeometry()));
78 extractor2->Modified();
84 slice2->DisconnectPipeline();
BaseGeometry * GetWorldGeometry()
Get the axis where the slice has to be applied in the volume.
Executes a DiffSliceOperation.
bool IsValid()
Check if it is a valid operation.
Base class of all Operation-classes.
DiffSliceOperationApplier()
An Operation for applying an edited slice to the volume.
virtual void ExecuteOperation(Operation *op) override
Executes a DiffSliceOperation.
virtual ~DiffSliceOperationApplier()
static RenderingManager * GetInstance()
Image::Pointer GetSlice()
Get the slice that is applied in the operation.
Describes a two-dimensional, rectangular plane.
unsigned int GetTimeStep()
Set timeStep.
mitk::BaseGeometry * GetGeometry(int t=0) const
Return the geometry, which is a TimeGeometry, of the data as non-const pointer.
void RequestUpdateAll(RequestType type=REQUEST_UPDATE_ALL)
mitk::Image * GetImage()
Get th image volume.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.