19 #include "vtkCylinderSource.h"
20 #include "vtkLinearTransform.h"
25 cylinder->SetRadius(1.0);
26 cylinder->SetHeight(2.0);
27 cylinder->SetCenter(0.0, 0.0, 0.0);
28 cylinder->SetResolution(100);
29 cylinder->CappingOn();
48 GetGeometry()->GetVtkTransform()->GetInverse()->TransformPoint(p, p);
51 bool retval = (v <= 1) && (p[1] >= -1) && (p[1] <= 1);
virtual bool IsInside(const Point3D &p) const override
superclass of all bounding objects (cylinder, cuboid,...)
virtual void SetVtkPolyData(vtkPolyData *polydata, unsigned int t=0)
virtual mitk::ScalarType GetVolume() 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.