Ignore:
Timestamp:
Apr 6, 2012, 11:57:22 AM (13 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:
42c6a47
Parents:
d53902
git-author:
Michael Ankele <ankele@…> (03/30/12 10:51:02)
git-committer:
Frederik Heber <heber@…> (04/06/12 11:57:22)
Message:

GL: sending more signals to redraw

  • atoms send changed() to scene when element or position changed
  • atoms send selectionChanged() to scene when (un)selected
  • bonds send changed() to scene when an atom changes its position
Location:
src/UIElements/Views/Qt4/Qt3D
Files:
4 edited

Legend:

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

    rd53902 r5a2a06  
    8484   void doubleClicked();
    8585   void hoverChanged();
     86   void selectionChanged();
     87   void changed();
    8688
    8789protected:
  • src/UIElements/Views/Qt4/Qt3D/GLMoleculeObject_atom.cpp

    rd53902 r5a2a06  
    162162      case AtomObservable::ElementChanged:
    163163        resetElement();
     164        emit changed();
    164165        break;
    165166      case AtomObservable::IndexChanged:
     
    168169      case AtomObservable::PositionChanged:
    169170        resetPosition();
     171        emit changed();
    170172        break;
    171173      case AtomObservable::BondsAdded:
     
    193195      case World::SelectionChanged:
    194196        setSelected(World::getInstance().isSelected(_atom));
     197        emit selectionChanged();
    195198        break;
    196199      default:
  • src/UIElements/Views/Qt4/Qt3D/GLMoleculeObject_bond.cpp

    rd53902 r5a2a06  
    162162        LOG(2, "INFO: Received notification of PositionChanged.");
    163163        resetPosition();
     164        emit changed();
    164165    }
    165166  }
  • src/UIElements/Views/Qt4/Qt3D/GLWorldScene.cpp

    rd53902 r5a2a06  
    109109  AtomsinSceneMap.insert( make_pair(_atom->getId(), atomObject) );
    110110  connect (atomObject, SIGNAL(clicked(atomId_t)), this, SLOT(atomClicked(atomId_t)));
     111  connect (atomObject, SIGNAL(changed()), this, SIGNAL(changed()));
    111112  connect (atomObject, SIGNAL(hoverChanged()), this, SIGNAL(changed()));
     113  connect (atomObject, SIGNAL(selectionChanged()), this, SIGNAL(changed()));
    112114  connect (atomObject, SIGNAL(BondsInserted(const bond *, const GLMoleculeObject_bond::SideOfBond)), this, SLOT(bondInserted(const bond *, const GLMoleculeObject_bond::SideOfBond)));
    113115  //bondsChanged(_atom);
     
    163165      bondObject, SIGNAL(BondRemoved(const atomId_t, const atomId_t)),
    164166      this, SLOT(bondRemoved(const atomId_t, const atomId_t)));
     167  connect (bondObject, SIGNAL(changed()), this, SIGNAL(changed()));
    165168  BondsinSceneMap.insert( make_pair(ids, bondObject) );
    166169//    BondIdsinSceneMap.insert( Leftids );
Note: See TracChangeset for help on using the changeset viewer.