MCPcopy Create free account
hub / github.com/MITK/MITK / Cone

Method Cone

Modules/DataTypesExt/src/mitkCone.cpp:18–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16#include <vtkLinearTransform.h>
17
18mitk::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
33mitk::Cone::~Cone()
34{

Callers

nothing calls this directly

Calls 6

SetDirectionMethod · 0.80
SetResolutionMethod · 0.80
NewFunction · 0.50
UpdateMethod · 0.45
GetOutputMethod · 0.45
DeleteMethod · 0.45

Tested by

no test coverage detected