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

Method Graft

Modules/Core/src/DataManagement/mitkSurface.cpp:320–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320void mitk::Surface::Graft(const DataObject *data)
321{
322 const auto *surface = dynamic_cast<const Surface *>(data);
323
324 if (surface == nullptr)
325 mitkThrow() << "Data object used to graft surface is not a mitk::Surface.";
326
327 this->CopyInformation(data);
328 m_PolyDatas.clear();
329
330 for (unsigned int i = 0; i < surface->GetSizeOfPolyDataSeries(); ++i)
331 {
332 m_PolyDatas.push_back(vtkSmartPointer<vtkPolyData>::New());
333 m_PolyDatas.back()->DeepCopy(surface->GetVtkPolyData(i));
334 }
335}
336
337void mitk::Surface::PrintSelf(std::ostream &os, itk::Indent indent) const
338{

Callers 7

GetImageBaseMethod · 0.80
GetImageBaseMethod · 0.80
GraftOutputMethod · 0.80
CreateOutputForInputMethod · 0.80

Calls 7

CopyInformationMethod · 0.95
DeepCopyMethod · 0.80
backMethod · 0.80
NewFunction · 0.50
clearMethod · 0.45
GetVtkPolyDataMethod · 0.45

Tested by 3

GetImageBaseMethod · 0.64