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

Method Cylinder

Modules/DataTypesExt/src/mitkCylinder.cpp:18–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16#include <vtkLinearTransform.h>
17
18mitk::Cylinder::Cylinder() : BoundingObject()
19{
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();
26 cylinder->Update();
27 SetVtkPolyData(cylinder->GetOutput());
28 cylinder->Delete();
29}
30
31mitk::Cylinder::~Cylinder()
32{

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected