MCPcopy Create free account
hub / github.com/Kitware/VTK / GetChildMetaData

Method GetChildMetaData

Common/DataModel/vtkDataObjectTree.cxx:96–109  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

94
95//------------------------------------------------------------------------------
96vtkInformation* vtkDataObjectTree::GetChildMetaData(unsigned int index)
97{
98 if (index < this->Internals->Children.size())
99 {
100 vtkDataObjectTreeItem& item = this->Internals->Children[index];
101 if (!item.MetaData)
102 {
103 // New vtkInformation is allocated is none is already present.
104 item.MetaData.TakeReference(vtkInformation::New());
105 }
106 return item.MetaData;
107 }
108 return nullptr;
109}
110
111//------------------------------------------------------------------------------
112void vtkDataObjectTree::SetChildMetaData(unsigned int index, vtkInformation* info)

Callers 6

CompositeShallowCopyMethod · 0.95
DeepCopyMethod · 0.95
ShallowCopyMethod · 0.95
PrintSelfMethod · 0.95
GetMetaDataMethod · 0.80
RemoveNullPartitionsMethod · 0.80

Calls 3

NewFunction · 0.50
sizeMethod · 0.45
TakeReferenceMethod · 0.45

Tested by

no test coverage detected