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

Method SetAtomPosition

Common/DataModel/vtkMolecule.cxx:184–189  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

182
183//------------------------------------------------------------------------------
184void vtkMolecule::SetAtomPosition(vtkIdType id, const vtkVector3f& pos)
185{
186 assert(id >= 0 && id < this->GetNumberOfAtoms());
187 this->Points->SetPoint(id, pos.GetData());
188 this->Modified();
189}
190
191//------------------------------------------------------------------------------
192void vtkMolecule::SetAtomPosition(vtkIdType id, double x, double y, double z)

Callers 2

SetAtomPositionFunction · 0.80
SetPositionMethod · 0.80

Calls 5

GetNumberOfAtomsMethod · 0.95
assertFunction · 0.50
SetPointMethod · 0.45
GetDataMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected