Changeset fe493f for src/UIElements/Qt4/InstanceBoard/QtObservedAtom.hpp
- Timestamp:
- Feb 12, 2016, 11:15:40 PM (9 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
- Children:
- 5a9e34
- Parents:
- deb5ee
- git-author:
- Frederik Heber <heber@…> (01/20/16 20:04:06)
- git-committer:
- Frederik Heber <heber@…> (02/12/16 23:15:40)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Qt4/InstanceBoard/QtObservedAtom.hpp
rdeb5ee rfe493f 89 89 atomId_t getAtomIndex() const; 90 90 91 /** Getter to atom position contained in \a ObservedValues.92 *93 * \return atom's position94 */95 Vector getAtomPosition() const;96 97 /** Getter to atom element contained in \a ObservedValues.98 *99 * \return atom's elemnt100 */101 atomicNumber_t getAtomElement() const;102 103 91 //!> typedef for list of bonds, defined by pairs of atom ids 104 92 typedef std::vector< std::pair<atomId_t, atomId_t> > ListOfBonds_t; … … 110 98 ListOfBonds_t getAtomBonds() const; 111 99 100 /** Getter to atom element contained in \a ObservedValues. 101 * 102 * \return atom's element 103 */ 104 atomicNumber_t getAtomElement() const; 105 106 /** Getter to atom name contained in \a ObservedValues. 107 * 108 * \return atom's name 109 */ 110 std::string getAtomName() const; 111 112 /** Getter to atom position contained in \a ObservedValues. 113 * 114 * \return atom's position 115 */ 116 Vector getAtomPosition() const; 117 118 /** Getter to atom's molecule index contained in \a ObservedValues. 119 * 120 * \return atom's molecule index 121 */ 122 moleculeId_t getAtomMoleculeIndex() const; 123 112 124 signals: 113 125 void indexChanged(); 126 void bondsChanged(); 127 void elementChanged(); 128 void moleculeindexChanged(); 129 void nameChanged(); 114 130 void positionChanged(); 115 void elementChanged(); 116 void bondsChanged(); 131 void atomRemoved(); 117 132 118 133 //private slots: … … 127 142 private: 128 143 static atomId_t updateIndex(); 144 static ListOfBonds_t updateBonds( 145 const boost::function<const atomId_t ()> &_getAtomIndex); 146 static atomicNumber_t updateElement( 147 const boost::function<const atomId_t ()> &_getAtomIndex); 148 static moleculeId_t updateMoleculeIndex( 149 const boost::function<const atomId_t ()> &_getAtomIndex); 150 static std::string updateName( 151 const boost::function<const atomId_t ()> &_getAtomIndex); 129 152 static Vector updatePosition( 130 const boost::function<const atomId_t ()> &_getAtomIndex);131 static atomicNumber_t updateElement(132 const boost::function<const atomId_t ()> &_getAtomIndex);133 static ListOfBonds_t updateBonds(134 153 const boost::function<const atomId_t ()> &_getAtomIndex); 135 154 … … 138 157 //!> contains the current atom index 139 158 AtomIndex, 159 //!> contains the current set of bonds atoms for the atom 160 AtomBonds, 161 //!> contains the current atom element 162 AtomElement, 163 //!> contains the current atom's molecule index 164 AtomMoleculeIndex, 165 //!> contains the current atom position 166 AtomName, 140 167 //!> contains the current atom position 141 168 AtomPosition, 142 //!> contains the current atom element143 AtomElement,144 //!> contains the current set of bonds atoms fort the atom145 AtomBonds,146 169 //!> gives the size of the enumeration 147 170 MAX_ObservedTypes … … 175 198 //!> list of channels when index needs to update 176 199 static const Observable::channels_t AtomIndexChannels; 200 //!> list of channels when bonds needs to update 201 static const Observable::channels_t AtomBondsChannels; 202 //!> list of channels when element needs to update 203 static const Observable::channels_t AtomElementChannels; 204 //!> list of channels when molecule index needs to update 205 static const Observable::channels_t AtomMoleculeIndexChannels; 206 //!> list of channels when name needs to update 207 static const Observable::channels_t AtomNameChannels; 177 208 //!> list of channels when position needs to update 178 209 static const Observable::channels_t AtomPositionChannels; 179 //!> list of channels when element needs to update180 static const Observable::channels_t AtomElementChannels;181 //!> list of channels when bonds needs to update182 static const Observable::channels_t AtomBondsChannels;183 210 184 211 //!> we get multiple subjectKilled(), count and call callback() only on last
Note:
See TracChangeset
for help on using the changeset viewer.