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

Method DataNodeChanged

Modules/Core/src/Interactions/mitkSinglePointDataInteractor.cpp:86–104  ·  view source on GitHub ↗

* Check whether the DataNode contains a pointset, if not create one and add it. */

Source from the content-addressed store, hash-verified

84 * Check whether the DataNode contains a pointset, if not create one and add it.
85 */
86void mitk::SinglePointDataInteractor::DataNodeChanged()
87{
88 if (GetDataNode() != nullptr)
89 {
90 auto *points = dynamic_cast<PointSet *>(GetDataNode()->GetData());
91 if (points == nullptr)
92 {
93 m_PointSet = PointSet::New();
94 GetDataNode()->SetData(m_PointSet);
95 }
96 else
97 {
98 points->Clear();
99 m_PointSet = points;
100 }
101 }
102
103 Superclass::DataNodeChanged();
104}
105
106void mitk::SinglePointDataInteractor::SetMaxPoints(unsigned int)
107{

Callers

nothing calls this directly

Calls 4

NewFunction · 0.50
GetDataMethod · 0.45
SetDataMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected