Changeset d2be22 for src/Actions
- Timestamp:
- Dec 19, 2025, 11:29:38 PM (7 weeks ago)
- Branches:
- Candidate_v1.7.1, stable
- Children:
- 25aa214
- Parents:
- 29ba9a
- git-author:
- Frederik Heber <frederik.heber@…> (11/16/25 11:12:52)
- git-committer:
- Frederik Heber <frederik.heber@…> (12/19/25 23:29:38)
- Location:
- src/Actions
- Files:
-
- 4 edited
-
AtomAction/BondifyAction.cpp (modified) (1 diff)
-
GraphAction/CreateAdjacencyAction.cpp (modified) (1 diff)
-
GraphAction/UpdateMoleculesAction.cpp (modified) (1 diff)
-
MoleculeAction/StretchBondAction.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/AtomAction/BondifyAction.cpp
r29ba9a rd2be22 214 214 // ensure we have one selected atom 215 215 World &world = World::getInstance(); 216 const BondGraph &BG = *world.getBondGraph(); 216 const BondGraph &BG = *world.getBondGraph(); 217 217 218 218 // check precondition 219 if (!BG.IsBondLengthTableLoaded()) { 220 STATUS("BondLength table has not been loaded."); 221 return Action::failure; 222 } 219 223 const std::vector<atom *> atoms = world.getSelectedAtoms(); 220 224 if (atoms.size() != 1) { -
src/Actions/GraphAction/CreateAdjacencyAction.cpp
r29ba9a rd2be22 66 66 BondGraph *BG = World::getInstance().getBondGraph(); 67 67 ASSERT(BG != NULL, "GraphCreateAdjacencyAction: BondGraph is NULL."); 68 69 if (!BG->IsBondLengthTableLoaded()) { 70 STATUS("BondLength table has not been loaded."); 71 return Action::failure; 72 } 68 73 69 74 // count all present bonds -
src/Actions/GraphAction/UpdateMoleculesAction.cpp
r29ba9a rd2be22 43 43 #include "CodePatterns/Log.hpp" 44 44 #include "CodePatterns/Verbose.hpp" 45 #include "Graph/BondGraph.hpp"46 45 #include "Graph/DepthFirstSearchAnalysis.hpp" 47 46 #include "molecule.hpp" -
src/Actions/MoleculeAction/StretchBondAction.cpp
r29ba9a rd2be22 47 47 #include "Bond/bond.hpp" 48 48 #include "Bond/StretchBond.hpp" 49 #include "Graph/BondGraph.hpp" 49 50 #include "Graph/BoostGraphHelpers.hpp" 50 51 #include "World.hpp" … … 60 61 ActionState::ptr MoleculeStretchBondAction::performCall() 61 62 { 63 BondGraph *BG = World::getInstance().getBondGraph(); 64 if (!BG->IsBondLengthTableLoaded()) { 65 STATUS("BondLength table has not been loaded."); 66 return Action::failure; 67 } 68 62 69 const std::vector< atom *> atoms = World::getInstance().getSelectedAtoms(); 63 70 StretchBondUtil stretcher(atoms);
Note:
See TracChangeset
for help on using the changeset viewer.
