15 #include "vtkCylinderSource.h" 16 #include "vtkLinearTransform.h" 20 vtkCylinderSource *cylinder = vtkCylinderSource::New();
21 cylinder->SetRadius(1.0);
22 cylinder->SetHeight(2.0);
23 cylinder->SetCenter(0.0, 0.0, 0.0);
24 cylinder->SetResolution(100);
25 cylinder->CappingOn();
47 bool retval = (v <= 1) && (p[1] >= -1) && (p[1] <= 1);
bool IsInside(const Point3D &p) const 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)
mitk::ScalarType GetVolume() override
ScalarType GetExtentInWorld(unsigned int direction) const
Returns the Extend of the bounding in the given direction.
mitk::BaseGeometry * GetGeometry(int t=0) const
Return the geometry, which is a TimeGeometry, of the data as non-const pointer.