23 timeGeometry->Initialize(1);
33 m_ContourVector.insert(std::make_pair(index, contour));
38 m_ContourVector.erase(index);
44 auto contoursIterator = contourVec.begin();
45 auto contoursIteratorEnd = contourVec.end();
50 mitk::BoundingBox::PointIdentifier pointid = 0;
55 transform->GetInverse(inverse);
59 while (contoursIterator != contoursIteratorEnd)
61 const TimeGeometry *geometry = (*contoursIterator).second->GetUpdatedTimeGeometry();
63 for (i = 0; i < 8; ++i)
66 if (point[0] * point[0] + point[1] * point[1] + point[2] * point[2] <
mitk::large)
67 pointscontainer->InsertElement(pointid++, point);
70 itkGenericOutputMacro(<<
"Unrealistically distant corner point encountered. Ignored. BoundingObject: "
71 << (*contoursIterator).second);
78 boundingBox->SetPoints(pointscontainer);
79 boundingBox->ComputeBoundingBox();
83 geometry3d->
SetBounds(boundingBox->GetBounds());
86 timeGeometry->Initialize(geometry3d, GetTimeGeometry()->CountTimeSteps());
87 SetTimeGeometry(timeGeometry);
112 timeGeometry->Initialize(1);
113 SetTimeGeometry(timeGeometry);
118 return m_ContourVector.size();
123 return m_ContourVector;
itk::SmartPointer< Self > Pointer
void SetIndexToWorldTransform(mitk::AffineTransform3D *transform)
virtual bool VerifyRequestedRegion() override
virtual void SetTimeGeometry(TimeGeometry *geometry)
Set the TimeGeometry of the data, which will be referenced (not copied!).
Point3D GetCornerPointInWorld(int id) const
Get the position of the corner number id (in world coordinates)
virtual void UpdateOutputInformation() override
virtual void SetRequestedRegionToLargestPossibleRegion() override
virtual bool RequestedRegionIsOutsideOfTheBufferedRegion() override
void Initialize() override
itk::AffineGeometryFrame< ScalarType, 3 >::TransformType AffineTransform3D
std::map< unsigned long, Contour::Pointer > ContourVectorType
MITKCORE_EXPORT const double large
ContourVectorType GetContours()
void SetBounds(const BoundsArrayType &bounds)
Set the bounding box (in index/unit coordinates)
virtual void SetRequestedRegion(const itk::DataObject *data) override
void AddContour(unsigned int index, mitk::Contour::Pointer contour)
BaseGeometry Describes the geometry of a data object.
void RemoveContour(unsigned long index)
unsigned int GetNumberOfContours()
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.