Ignore:
Timestamp:
Feb 12, 2016, 11:15:05 PM (9 years ago)
Author:
Frederik Heber <heber@…>
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:
026bef
Parents:
16bd37
git-author:
Frederik Heber <heber@…> (10/17/15 13:28:19)
git-committer:
Frederik Heber <heber@…> (02/12/16 23:15:05)
Message:

GLMoleculeObject_bond's ObservedValues is now all static.

  • again, the same change as with .._molecule and .._atom.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Views/Qt4/Qt3D/GLMoleculeObject_bond.hpp

    r16bd37 r099f67  
    7575  void removeChannels();
    7676
    77   Vector updateLeftPosition() const;
    78   Vector updateRightPosition() const;
    79   atomicNumber_t updateLeftElement() const;
    80   atomicNumber_t updateRightElement() const;
    81   int updateDegree() const;
     77  static atomId_t updateIndex();
     78  static Vector updateLeftPosition(
     79      const boost::function<const atomId_t ()> &_getLeftAtomIndex);
     80  static Vector updateRightPosition(
     81      const boost::function<const atomId_t ()> &_getRightAtomIndex);
     82  static atomicNumber_t updateLeftElement(
     83      const boost::function<const atomId_t ()> &_getLeftAtomIndex);
     84  static atomicNumber_t updateRightElement(
     85      const boost::function<const atomId_t ()> &_getRightAtomIndex);
     86  static int updateDegree(
     87      const boost::function<const atomId_t ()> &_getLeftAtomIndex,
     88      const boost::function<const atomId_t ()> &_getRightAtomIndex);
    8289
    8390  static const atom * const getAtomConst(const atomId_t _id);
     
    8592
    8693private:
    87   //!> id of left bond partner for safely emitting BondRemoved signal
    88   const atomId_t leftatomId;
    89   //!> id of right bond partner for safely emitting BondRemoved signal
    90   const atomId_t rightatomId;
    91 
    9294  //!> contains ref to Observable of left atom
    9395  const Observable * const leftowner;
     
    105107  //!> enumeration of observed values to match with entries in ObservedValues
    106108  enum ObservedTypes {
     109    //!> contains the id of the left atom
     110    leftIndex,
     111    //!> contains the id of the right atom
     112    rightIndex,
    107113    //!> contains the position of the left atom
    108114    leftPosition,
     
    124130  /** Initializes all \a ObservedValues entries.
    125131   *
    126    */
    127   void initObservedValues();
     132   * \param _ObservedValues vector of ObservedValue to be filled
     133   * \param _leftatomId left atom id
     134   * \param _rightatomId right atom id
     135   * \param _leftowner reference to left atom
     136   * \param _rightowner reference to right atom
     137   * \param _bondowner reference to bond
     138   * \param _subjectKilled ref to function to call on subjectKilled()
     139   */
     140  static void initObservedValues(
     141      std::vector<boost::any> &_ObservedValues,
     142      const atomId_t _leftatomId,
     143      const atomId_t _rightatomId,
     144      const Observable * const _leftowner,
     145      const Observable * const _rightowner,
     146      const Observable * const _bondowner,
     147      const boost::function<void()> &_subjectKilled);
    128148
    129149  /** Destroys all \a ObservedValues entries.
    130150   *
    131    */
    132   void destroyObservedValues();
     151   * \param _ObservedValues vector of ObservedValue to be destroyed
     152   */
     153  static void destroyObservedValues(
     154      std::vector<boost::any> &_ObservedValues);
     155
     156  /** Getter to left atom's id contained in \a ObservedValues.
     157   *
     158   * \return left atom's id
     159   */
     160  atomId_t getleftIndex() const;
     161
     162  /** Getter to right atom's id contained in \a ObservedValues.
     163   *
     164   * \return right atom's id
     165   */
     166  atomId_t getrightIndex() const;
    133167
    134168  /** Getter to left atom's position contained in \a ObservedValues.
     
    183217  bool bond_enabled;
    184218
     219  //!> list of channels when id needs to update
     220  static const Observable::channels_t IndexChannels;
    185221  //!> list of channels when position needs to update
    186222  static const Observable::channels_t BondPositionChannels;
Note: See TracChangeset for help on using the changeset viewer.