19 #include "vtkLinearTransform.h"
20 #include "vtkSphereSource.h"
25 sphere->SetRadius(1.0);
26 sphere->SetThetaResolution(20);
27 sphere->SetPhiResolution(20);
46 GetGeometry()->GetVtkTransform()->GetInverse()->TransformPoint(p, p);
48 return (pow(p[0], 2) + pow(p[1], 2) + pow(p[2], 2) <= 1);
53 return GetGeometry()->GetExtentInMM(0) * 0.5 * GetGeometry()->GetExtentInMM(1) * 0.5 *
54 GetGeometry()->GetExtentInMM(2) * 0.5 * vnl_math::pi * 4.0 / 3.0;
virtual bool IsInside(const Point3D &p) const override
superclass of all bounding objects (cylinder, cuboid,...)
virtual mitk::ScalarType GetVolume() override
virtual void SetVtkPolyData(vtkPolyData *polydata, unsigned int t=0)
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.