15 #include "vtkCubeSource.h" 16 #include "vtkLinearTransform.h" 18 #include <vtkSTLReader.h> 22 vtkCubeSource *cube = vtkCubeSource::New();
23 cube->SetXLength(2.0);
24 cube->SetYLength(2.0);
25 cube->SetZLength(2.0);
46 return (p[0] >= -1) && (p[0] <= 1) && (p[1] >= -1) && (p[1] <= 1) && (p[2] >= -1) && (p[2] <= 1);
mitk::ScalarType GetVolume() override
vtkLinearTransform * GetVtkTransform() const
Get the m_IndexToWorldTransform as a vtkLinearTransform.
superclass of all bounding objects (cylinder, cuboid,...)
const mitk::TimeGeometry * GetTimeGeometry() const
Return the TimeGeometry of the data as const pointer.
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.
bool IsInside(const Point3D &p) const override
mitk::BaseGeometry * GetGeometry(int t=0) const
Return the geometry, which is a TimeGeometry, of the data as non-const pointer.