13 #ifndef mitkBoundingShapeUtil_h
14 #define mitkBoundingShapeUtil_h
27 std::vector<mitk::Point3D>
GetCornerPoints(mitk::BaseGeometry::Pointer geometry,
bool visualizationOffset);
122 std::vector<int> m_FaceIndices;
Helper Class for realizing the handles of bounding object encapsulated by a geometry data.
void SetActive(bool status)
Set the active (selected) state of the handle.
std::vector< int > GetFaceIndices()
Return the corner-point indices of the face associated with this handle.
Handle()
Default constructor. Creates an inactive handle at the origin.
bool IsActive()
Return true if the handle is currently active (selected).
void SetPosition(mitk::Point3D pos)
Set the 3D world position of the handle.
int GetIndex()
Return the index identifying this handle.
mitk::Point3D GetPosition()
Return the 3D world position of the handle.
void SetIndex(int index)
Set the index identifying this handle.
Handle(mitk::Point3D pos, int index, std::vector< int > faceIndices, bool active=false)
Construct a handle with a given position, index, and associated face indices.
bool IsNotActive()
Return true if the handle is not active.
Constants for most interaction classes, due to the generic StateMachines.
Find image slices visible on a given plane.
std::array< int, 4 > GetHandleFaceCornerIndices(int handleIndex)
Return the four corner-point indices of the box face that the given handle sits on,...
bool GetFacePlaneIntersectionCenter(const std::array< mitk::Point3D, 4 > &faceCorners, const mitk::Point3D &planeOrigin, const mitk::Vector3D &planeNormal, mitk::Point3D ¢er)
Intersect a planar, convex quad (given by its four perimeter-ordered corner points) with a plane and ...
mitk::Point3D CalcAvgPoint(mitk::Point3D a, mitk::Point3D b)
helper function for calculating the average of two points
std::vector< int > GetHandleIndices(int index)
Return the four corner-point indices that define the face associated with the given handle index.
std::vector< mitk::Point3D > GetCornerPoints(mitk::BaseGeometry::Pointer geometry, bool visualizationOffset)
helper function for calculating corner points of the bounding object from a given geometry