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

Method SetClosed

Modules/PlanarFigure/src/DataManagement/mitkPlanarPolygon.cpp:39–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void mitk::PlanarPolygon::SetClosed(bool closed)
40{
41 this->SetProperty("closed", mitk::BoolProperty::New(closed));
42
43 if (!closed)
44 {
45 // For non-closed polygons: use "Length" as feature name; disable area
46 this->SetFeatureName(FEATURE_ID_CIRCUMFERENCE, "Length");
47 this->DeactivateFeature(FEATURE_ID_AREA);
48 }
49 else
50 {
51 // For closed polygons: use "Circumference" as feature name; enable area
52 this->SetFeatureName(FEATURE_ID_CIRCUMFERENCE, "Circumference");
53 this->ActivateFeature(FEATURE_ID_AREA);
54 }
55
56 this->Modified();
57}
58
59void mitk::PlanarPolygon::GeneratePolyLine()
60{

Callers 5

DoReadMethod · 0.45
CreatePlanarFiguresMethod · 0.45
PaintBrushAtMethod · 0.45
OnMousePressedMethod · 0.45

Calls 6

SetFeatureNameMethod · 0.80
DeactivateFeatureMethod · 0.80
ActivateFeatureMethod · 0.80
NewFunction · 0.50
SetPropertyMethod · 0.45
ModifiedMethod · 0.45

Tested by 2

CreatePlanarFiguresMethod · 0.36