| 16 | #include <vtkLinearTransform.h> |
| 17 | |
| 18 | mitk::Cone::Cone() : BoundingObject() |
| 19 | { |
| 20 | // Set up Cone Surface. Radius 1.0, height 2.0, , centered around the origin |
| 21 | vtkConeSource *cone = vtkConeSource::New(); |
| 22 | cone->SetRadius(1.0); |
| 23 | cone->SetHeight(2.0); |
| 24 | cone->SetDirection(0.0, -1.0, 0.0); |
| 25 | cone->SetCenter(0.0, 0.0, 0.0); |
| 26 | cone->SetResolution(20); |
| 27 | cone->CappingOn(); |
| 28 | cone->Update(); |
| 29 | SetVtkPolyData(cone->GetOutput()); |
| 30 | cone->Delete(); |
| 31 | } |
| 32 | |
| 33 | mitk::Cone::~Cone() |
| 34 | { |
nothing calls this directly
no test coverage detected