20 #include "vtkDoubleArray.h"
22 #include <vtkSmartPointer.h>
32 : m_IsActive(active), m_Position(pos), m_FaceIndices(faceIndices), m_Index(index)
76 c[0] = (a[0] + b[0]) / 2.0;
77 c[1] = (a[1] + b[1]) / 2.0;
78 c[2] = (a[2] + b[2]) / 2.0;
84 if (geometry ==
nullptr)
92 if (visualizationOffset)
130 std::vector<mitk::Point3D> cornerPoints;
132 cornerPoints.push_back(geometry->GetIndexToWorldTransform()->TransformPoint(p0));
133 cornerPoints.push_back(geometry->GetIndexToWorldTransform()->TransformPoint(p1));
134 cornerPoints.push_back(geometry->GetIndexToWorldTransform()->TransformPoint(p2));
135 cornerPoints.push_back(geometry->GetIndexToWorldTransform()->TransformPoint(p3));
136 cornerPoints.push_back(geometry->GetIndexToWorldTransform()->TransformPoint(p4));
137 cornerPoints.push_back(geometry->GetIndexToWorldTransform()->TransformPoint(p5));
138 cornerPoints.push_back(geometry->GetIndexToWorldTransform()->TransformPoint(p6));
139 cornerPoints.push_back(geometry->GetIndexToWorldTransform()->TransformPoint(p7));
146 std::vector<int> faceIndices;
147 faceIndices.resize(4);
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 ...
std::vector< int > GetHandleIndices(int index)
itk::SmartPointer< const Self > ConstPointer
mitk::Point3D GetPosition()
void SetPosition(mitk::Point3D pos)
std::vector< int > GetFaceIndices()
void SetActive(bool status)
mitk::Point3D CalcAvgPoint(mitk::Point3D a, mitk::Point3D b)
helper function for calculating the average of two points