Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkCuboid.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkCuboid_h
14 #define mitkCuboid_h
15 
17 #include <mitkBoundingObject.h>
18 
19 namespace mitk
20 {
32  {
33  public:
35  itkFactorylessNewMacro(Self);
36  itkCloneMacro(Self);
37 
43 
53  bool IsInside(const Point3D &p) const override;
54 
55  protected:
56  Cuboid();
57  ~Cuboid() override;
58  };
59 }
60 #endif
#define MITKDATATYPESEXT_EXPORT
Abstract superclass of all bounding objects (cylinder, cuboid, cone, ellipsoid, etc....
Bounding object shaped as a cuboid (axis-aligned box).
Definition: mitkCuboid.h:32
~Cuboid() override
bool IsInside(const Point3D &p) const override
Test whether a world-coordinate point lies inside the cuboid.
mitkClassMacro(Cuboid, BoundingObject)
mitk::ScalarType GetVolume() override
Calculate the cuboid volume from the geometry extents.
Find image slices visible on a given plane.
double ScalarType
Scalar type used throughout MITK for geometric computations.