12 #ifndef mitkContourModelSet_h
13 #define mitkContourModelSet_h
40 itkFactorylessNewMacro(Self);
64 virtual int GetSize()
const {
return this->m_Contours.size(); }
#define MITKCONTOURMODEL_EXPORT
Base class of all data objects.
A collection of ContourModel instances managed as a single BaseData object.
void SetRequestedRegionToLargestPossibleRegion() override
Set the RequestedRegion to the LargestPossibleRegion.
mitkClassMacro(ContourModelSet, mitk::BaseData)
virtual ContourModelSetIterator Begin()
Return an iterator to the first contour model in the set.
ContourModelListType m_Contours
virtual void AddContourModel(mitk::ContourModel &contourModel)
Add a contour model to the set by reference.
~ContourModelSet() override
bool IsEmpty() const override
Check whether the set contains no contour models.
virtual void AddContourModel(mitk::ContourModel::Pointer contourModel)
Add a contour model to the set by smart pointer.
ContourModelListType::iterator ContourModelSetIterator
Iterator type for traversing the contour model collection.
void SetRequestedRegion(const itk::DataObject *) override
Set the requested region from this data object to match the requested region of the data object passe...
ContourModelSet(const mitk::ContourModelSet &other)
virtual int GetSize() const
Return the number of contour models in the set.
bool VerifyRequestedRegion() override
Verify that the RequestedRegion is within the LargestPossibleRegion.
void Clear() override
Remove all contour models from the set.
virtual ContourModelSetIterator End()
Return an iterator past the last contour model in the set.
void UpdateOutputInformation() override
Update the OutputInformation of a ContourModel object.
virtual bool RemoveContourModelAt(int index)
Remove the contour model at the given index.
ContourModelListType * GetContourModelList()
Return a pointer to the internal contour model container.
void InitializeEmpty() override
Pure virtual; Must be used in subclasses to get a data object to a valid state. Should at least creat...
virtual mitk::ContourModel * GetContourModelAt(int index) const
Return the contour model at the given index.
bool RequestedRegionIsOutsideOfTheBufferedRegion() override
Determine whether the RequestedRegion is outside of the BufferedRegion.
std::deque< mitk::ContourModel::Pointer > ContourModelListType
Container type for storing ContourModel smart pointers.
virtual bool RemoveContourModel(mitk::ContourModel *contourModel)
Remove a specific contour model from the set.
A time-resolved contour representation consisting of linked vertices in 3D space.
Find image slices visible on a given plane.