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

Method SetAtomAtomicNumber

Common/DataModel/vtkMolecule.cxx:173–181  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

171
172//------------------------------------------------------------------------------
173void vtkMolecule::SetAtomAtomicNumber(vtkIdType id, unsigned short atomicNum)
174{
175 assert(id >= 0 && id < this->GetNumberOfAtoms());
176
177 vtkUnsignedShortArray* atomicNums = this->GetAtomicNumberArray();
178
179 atomicNums->SetValue(id, atomicNum);
180 this->Modified();
181}
182
183//------------------------------------------------------------------------------
184void vtkMolecule::SetAtomPosition(vtkIdType id, const vtkVector3f& pos)

Callers 1

SetAtomicNumberMethod · 0.80

Calls 5

GetNumberOfAtomsMethod · 0.95
GetAtomicNumberArrayMethod · 0.95
assertFunction · 0.50
SetValueMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected