Ignore:
Timestamp:
Aug 5, 2015, 5:32:07 PM (10 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:
534374
Parents:
574d377
git-author:
Frederik Heber <heber@…> (06/21/15 12:16:57)
git-committer:
Frederik Heber <heber@…> (08/05/15 17:32:07)
Message:

Removed init() and signal WorldSelectionChanged() from GLWorldScene.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Views/Qt4/Qt3D/GLWorldScene.cpp

    r574d377 rb3a33d  
    9090
    9191  connect(this, SIGNAL(updated()), this, SLOT(update()));
    92 
    93   init();
    9492}
    9593
     
    9896  // remove all elements
    9997  GLMoleculeObject::cleanMaterialMap();
    100 }
    101 
    102 /** Initialise the WorldScene with molecules and atoms from World.
    103  *
    104  */
    105 void GLWorldScene::init()
    106 {
    107 //  const std::vector<const molecule *> &molecules =
    108 //      const_cast<const World &>(World::getInstance()).getAllMolecules();
    109 //
    110 //  for (std::vector<const molecule*>::const_iterator moliter = molecules.begin();
    111 //      moliter != molecules.end();
    112 //      moliter++) {
    113 //    // create molecule objects in scene
    114 //    moleculeInserted((*moliter)->getId());
    115 //  }
    11698}
    11799
     
    187169}
    188170
    189 /** ....
    190  *
    191  */
    192 void GLWorldScene::worldSelectionChanged()
    193 {
    194   LOG(3, "INFO: GLWorldScene: Received signal selectionChanged.");
    195 
    196   const std::vector<const molecule*> &molecules =
    197       const_cast<const World &>(World::getInstance()).getAllMolecules();
    198 
    199   if (molecules.size() > 0) {
    200     for (std::vector<const molecule*>::const_iterator Runner = molecules.begin();
    201         Runner != molecules.end();
    202         Runner++) {
    203 
    204       // molecule selected but not in scene?
    205       const bool isSelected =
    206           const_cast<const World &>(World::getInstance()).isSelected(*Runner);
    207       if (isSelected){
    208         MoleculeNodeMap::iterator iter = MoleculesinSceneMap.find((*Runner)->getId());
    209         ASSERT( iter != MoleculesinSceneMap.end(),
    210             "GLWorldScene::worldSelectionChanged() - selected molecule is unknown.");
    211         GLMoleculeObject_molecule *molObject = iter->second;
    212         // inform molecule object
    213         molObject->selected(isSelected);
    214       }
    215     }
    216   }
    217 }
    218 
    219171/** Inserts an atom into the scene before molecule is present.
    220172 *
     
    273225
    274226  // add new object
    275   GLMoleculeObject_molecule *molObject = new GLMoleculeObject_molecule(GLMoleculeObject::meshEmpty, this, _id);
     227  GLMoleculeObject_molecule *molObject =
     228      new GLMoleculeObject_molecule(GLMoleculeObject::meshEmpty, this, _id);
    276229  ASSERT( molObject != NULL,
    277230      "GLWorldScene::moleculeInserted - could not create molecule object for "+toString(_id));
    278231  MoleculesinSceneMap.insert( make_pair(_id, molObject) );
    279232
    280   // now handle all state changes that came up before the instantiation7
     233  // now handle all state changes that came up before the instantiation
    281234  while (MoleculeMissedStateMap.count(_id) != 0) {
    282235    ASSERT( !MoleculeMissedStateMap[_id].empty(),
Note: See TracChangeset for help on using the changeset viewer.