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

Method GetAtomAtomicNumber

Common/DataModel/vtkMolecule.cxx:163–170  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

161
162//------------------------------------------------------------------------------
163unsigned short vtkMolecule::GetAtomAtomicNumber(vtkIdType id)
164{
165 assert(id >= 0 && id < this->GetNumberOfAtoms());
166
167 vtkUnsignedShortArray* atomicNums = this->GetAtomicNumberArray();
168
169 return atomicNums->GetValue(id);
170}
171
172//------------------------------------------------------------------------------
173void vtkMolecule::SetAtomAtomicNumber(vtkIdType id, unsigned short atomicNum)

Callers 2

GetAtomicNumberMethod · 0.80
ComputeBondsMethod · 0.80

Calls 4

GetNumberOfAtomsMethod · 0.95
GetAtomicNumberArrayMethod · 0.95
assertFunction · 0.50
GetValueMethod · 0.45

Tested by

no test coverage detected