50 GetGeometry()->SetIdentity();
52 GetGeometry()->SetOrigin(aGeometry3D->
GetCenter());
55 for (
unsigned int i = 0; i < 3; ++i)
57 GetGeometry()->SetSpacing(size);
58 GetTimeGeometry()->Update();
Class for storing surfaces (vtkPolyData).
virtual mitk::ScalarType GetVolume()
const mitk::TimeGeometry * GetTimeGeometry() const
Return the TimeGeometry of the data as const pointer.
virtual ~BoundingObject()
Point3D GetCenter() const
Get the center of the bounding-box in mm.
virtual void FitGeometry(BaseGeometry *aGeometry3D)
Sets the Geometry3D of the bounding object to fit the given geometry.
void SetBounds(const BoundsArrayType &bounds)
Set the bounding box (in index/unit coordinates)
mitk::BaseGeometry * GetGeometry(int t=0) const
Return the geometry, which is a TimeGeometry, of the data as non-const pointer.
void Update()
Updates the geometry.
ScalarType GetExtentInMM(int direction) const
Get the extent of the bounding-box in the specified direction in mm.
BaseGeometry Describes the geometry of a data object.
mitk::AffineTransform3D * GetIndexToWorldTransform()
Get the transformation used to convert from index to world coordinates.