15 #include "vtkLinearTransform.h" 16 #include <vtkSphereSource.h> 20 auto sphere = vtkSmartPointer<vtkSphereSource>::New();
21 sphere->SetRadius(1.0);
22 sphere->SetThetaResolution(20);
23 sphere->SetPhiResolution(20);
43 return (pow(p[0], 2) + pow(p[1], 2) + pow(p[2], 2) <= 1);
vtkLinearTransform * GetVtkTransform() const
Get the m_IndexToWorldTransform as a vtkLinearTransform.
bool IsInside(const Point3D &p) const override
ScalarType GetExtentInMM(int direction) const
Get the extent of the bounding-box in the specified direction in mm.
superclass of all bounding objects (cylinder, cuboid,...)
mitk::ScalarType GetVolume() override
virtual void SetVtkPolyData(vtkPolyData *polydata, unsigned int t=0)
mitk::BaseGeometry * GetGeometry(int t=0) const
Return the geometry, which is a TimeGeometry, of the data as non-const pointer.