19 #include "vtkConeSource.h"
20 #include "vtkLinearTransform.h"
28 cone->SetDirection(0.0, -1.0, 0.0);
29 cone->SetCenter(0.0, 0.0, 0.0);
30 cone->SetResolution(20);
50 GetGeometry()->GetVtkTransform()->GetInverse()->TransformPoint(p, p);
54 return (sqrt(p[0] * p[0] + p[2] * p[2]) <= p[1] * 0.5) && (p[1] <= 2);
virtual mitk::ScalarType GetVolume() override
superclass of all bounding objects (cylinder, cuboid,...)
virtual void SetVtkPolyData(vtkPolyData *polydata, unsigned int t=0)
virtual bool IsInside(const Point3D &p) const override
ScalarType GetExtentInWorld(unsigned int direction) const
Returns the Extend of the bounding in the given direction.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.