19 #include "vtkCubeSource.h"
20 #include "vtkLinearTransform.h"
22 #include <vtkSTLReader.h>
27 cube->SetXLength(2.0);
28 cube->SetYLength(2.0);
29 cube->SetZLength(2.0);
48 GetGeometry()->GetVtkTransform()->GetInverse()->TransformPoint(p, p);
50 return (p[0] >= -1) && (p[0] <= 1) && (p[1] >= -1) && (p[1] <= 1) && (p[2] >= -1) && (p[2] <= 1);
virtual mitk::ScalarType GetVolume() override
superclass of all bounding objects (cylinder, cuboid,...)
virtual void SetVtkPolyData(vtkPolyData *polydata, unsigned int t=0)
ScalarType GetExtentInWorld(unsigned int direction) const
Returns the Extend of the bounding in the given direction.
virtual bool IsInside(const Point3D &p) const override
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.