13 #ifndef mitkSlicedData_h
14 #define mitkSlicedData_h
16 #include <itkImageRegion.h>
18 #include <itkOffset.h>
26 class SlicedGeometry3D;
167 virtual bool IsSliceSet(
int s = 0,
int t = 0,
int n = 0)
const = 0;
Base class of all data objects.
Abstract base class describing the geometry of a data object.
Super class of data objects consisting of slices.
virtual void SetSpacing(const ScalarType aSpacing[])
Convenience method for setting the spacing of the SlicedGeometry3D instances of all time steps.
RegionType m_LargestPossibleRegion
void SetGeometry(BaseGeometry *aGeometry3D) override
Set the BaseGeometry of the data, which will be referenced (not copied!).
unsigned int GetNumberOfChannels() const
Get the number of channels.
SlicedGeometry3D * GetSlicedGeometry(unsigned int t=0) const
Convenience access method for the geometry, which is of type SlicedGeometry3D (or a sub-class of it).
RegionType m_BufferedRegion
itkStaticConstMacro(RegionDimension, unsigned int, 5)
OffsetType::OffsetValueType OffsetValueType
virtual void SetSpacing(mitk::Vector3D aSpacing)
Convenience method for setting the spacing of the SlicedGeometry3D instances of all time steps.
virtual void SetRequestedRegion(SlicedData::RegionType *region)
Set the requested region from a RegionType pointer.
const RegionType & GetLargestPossibleRegion() const
Get the largest possible region.
bool VerifyRequestedRegion() override
Verify that the RequestedRegion is within the LargestPossibleRegion.
itk::Size< RegionDimension > SizeType
itk::Offset< RegionDimension > OffsetType
itk::Index< RegionDimension > IndexType
RegionType m_RequestedRegion
const SlicedGeometry3D * GetUpdatedSlicedGeometry(unsigned int t=0)
Convenience access method that returns an up-to-date SlicedGeometry3D.
bool m_RequestedRegionInitialized
void SetOrigin(const Point3D &origin) override
Convenience method for setting the origin of the SlicedGeometry3D instances of all time steps.
virtual bool IsVolumeSet(int t=0, int n=0) const =0
Check whether volume at time t in channel n is set.
SlicedData(const SlicedData &other)
IndexType::IndexValueType IndexValueType
void PrepareForNewData() override
Prepare the data object to receive new data.
itk::ImageRegion< RegionDimension > RegionType
virtual bool IsSliceSet(int s=0, int t=0, int n=0) const =0
Check whether slice s at time t in channel n is set.
void SetLargestPossibleRegion(SlicedData::RegionType *region)
Set the largest possible region.
mitkClassMacro(SlicedData, BaseData)
bool RequestedRegionIsOutsideOfTheBufferedRegion() override
Determine whether the RequestedRegion is outside of the BufferedRegion.
void SetRequestedRegion(const itk::DataObject *data) override
Set the requested region from another data object.
virtual bool IsChannelSet(int n=0) const =0
Check whether channel n is set.
void SetRequestedRegionToLargestPossibleRegion() override
Set the RequestedRegion to the LargestPossibleRegion.
SizeType::SizeValueType SizeValueType
void CopyInformation(const itk::DataObject *data) override
Copy information from the specified data set.
void UpdateOutputInformation() override
Update the information for this DataObject so it can be used as an output of a ProcessObject.
bool m_UseLargestPossibleRegion
virtual const RegionType & GetRequestedRegion() const
Get the region object that defines the size and starting index for the requested region (i....
Describes the geometry of a data object consisting of slices.
Find image slices visible on a given plane.
double ScalarType
Scalar type used throughout MITK for geometric computations.