Changeset 3b9aa1
- Timestamp:
- Feb 14, 2016, 12:33:41 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:
- cf9287
- Parents:
- 367489
- git-author:
- Frederik Heber <heber@…> (10/30/15 11:54:29)
- git-committer:
- Frederik Heber <heber@…> (02/14/16 12:33:41)
- Location:
- src/UIElements
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Qt4/InstanceBoard/QtObservedAtom.cpp
r367489 r3b9aa1 365 365 } 366 366 367 atomId_tQtObservedAtom::getAtomIndex() const367 const atomId_t& QtObservedAtom::getAtomIndex() const 368 368 { 369 369 return boost::any_cast<ObservedValue_wCallback<atomId_t> *>(ObservedValues[AtomIndex])->get(); 370 370 } 371 371 372 QtObservedAtom::ListOfBonds_tQtObservedAtom::getAtomBonds() const372 const QtObservedAtom::ListOfBonds_t& QtObservedAtom::getAtomBonds() const 373 373 { 374 374 return boost::any_cast<ObservedValue_wCallback<ListOfBonds_t, atomId_t> *>(ObservedValues[AtomBonds])->get(); 375 375 } 376 376 377 atomicNumber_tQtObservedAtom::getAtomElement() const377 const atomicNumber_t& QtObservedAtom::getAtomElement() const 378 378 { 379 379 return boost::any_cast<ObservedValue_wCallback<atomicNumber_t, atomId_t> *>(ObservedValues[AtomElement])->get(); 380 380 } 381 381 382 moleculeId_tQtObservedAtom::getAtomMoleculeIndex() const382 const moleculeId_t& QtObservedAtom::getAtomMoleculeIndex() const 383 383 { 384 384 return boost::any_cast<ObservedValue_wCallback<moleculeId_t, atomId_t> *>(ObservedValues[AtomMoleculeIndex])->get(); 385 385 } 386 386 387 std::stringQtObservedAtom::getAtomName() const387 const std::string& QtObservedAtom::getAtomName() const 388 388 { 389 389 return boost::any_cast<ObservedValue_wCallback<std::string, atomId_t> *>(ObservedValues[AtomName])->get(); 390 390 } 391 391 392 VectorQtObservedAtom::getAtomPosition() const392 const Vector& QtObservedAtom::getAtomPosition() const 393 393 { 394 394 return boost::any_cast<ObservedValue_wCallback<Vector, atomId_t> *>(ObservedValues[AtomPosition])->get(); -
src/UIElements/Qt4/InstanceBoard/QtObservedAtom.hpp
r367489 r3b9aa1 87 87 * \return atom's index 88 88 */ 89 atomId_tgetAtomIndex() const;89 const atomId_t& getAtomIndex() const; 90 90 91 91 //!> typedef for list of bonds, defined by pairs of atom ids … … 96 96 * \return atom's bonds 97 97 */ 98 ListOfBonds_tgetAtomBonds() const;98 const ListOfBonds_t& getAtomBonds() const; 99 99 100 100 /** Getter to atom element contained in \a ObservedValues. … … 102 102 * \return atom's element 103 103 */ 104 atomicNumber_tgetAtomElement() const;104 const atomicNumber_t& getAtomElement() const; 105 105 106 106 /** Getter to atom name contained in \a ObservedValues. … … 108 108 * \return atom's name 109 109 */ 110 std::stringgetAtomName() const;110 const std::string& getAtomName() const; 111 111 112 112 /** Getter to atom position contained in \a ObservedValues. … … 114 114 * \return atom's position 115 115 */ 116 VectorgetAtomPosition() const;116 const Vector& getAtomPosition() const; 117 117 118 118 /** Getter to atom's molecule index contained in \a ObservedValues. … … 120 120 * \return atom's molecule index 121 121 */ 122 moleculeId_tgetAtomMoleculeIndex() const;122 const moleculeId_t& getAtomMoleculeIndex() const; 123 123 124 124 signals: -
src/UIElements/Qt4/InstanceBoard/QtObservedMolecule.cpp
r367489 r3b9aa1 459 459 } 460 460 461 intQtObservedMolecule::getAtomCount() const461 const int& QtObservedMolecule::getAtomCount() const 462 462 { 463 463 return boost::any_cast<ObservedValue_wCallback<int, moleculeId_t> *>(ObservedValues[AtomCount])->get(); 464 464 } 465 465 466 intQtObservedMolecule::getBondCount() const466 const int& QtObservedMolecule::getBondCount() const 467 467 { 468 468 return boost::any_cast<ObservedValue_wCallback<int, moleculeId_t> *>(ObservedValues[BondCount])->get(); 469 469 } 470 470 471 std::stringQtObservedMolecule::getMolFormula() const471 const std::string& QtObservedMolecule::getMolFormula() const 472 472 { 473 473 return boost::any_cast<ObservedValue_wCallback<std::string, moleculeId_t> *>(ObservedValues[FormulaString])->get(); 474 474 } 475 475 476 VectorQtObservedMolecule::getMolCenter() const476 const Vector& QtObservedMolecule::getMolCenter() const 477 477 { 478 478 return boost::any_cast<ObservedValue_wCallback<Vector, moleculeId_t> *>(ObservedValues[MolCenter])->get(); 479 479 } 480 480 481 moleculeId_tQtObservedMolecule::getMolIndex() const481 const moleculeId_t& QtObservedMolecule::getMolIndex() const 482 482 { 483 483 return boost::any_cast<ObservedValue_wCallback<moleculeId_t> *>(ObservedValues[MolIndex])->get(); 484 484 } 485 485 486 std::stringQtObservedMolecule::getMolName() const486 const std::string& QtObservedMolecule::getMolName() const 487 487 { 488 488 return boost::any_cast<ObservedValue_wCallback<std::string, moleculeId_t> *>(ObservedValues[MolName])->get(); 489 489 } 490 490 491 intQtObservedMolecule::getNonHydrogenCount() const491 const int& QtObservedMolecule::getNonHydrogenCount() const 492 492 { 493 493 return boost::any_cast<ObservedValue_wCallback<int, moleculeId_t> *>(ObservedValues[NonHydrogenCount])->get(); 494 494 } 495 495 496 molecule::BoundingBoxInfoQtObservedMolecule::getBoundingBox() const496 const molecule::BoundingBoxInfo& QtObservedMolecule::getBoundingBox() const 497 497 { 498 498 return boost::any_cast<ObservedValue_wCallback<molecule::BoundingBoxInfo, moleculeId_t> *>(ObservedValues[BoundingBox])->get(); -
src/UIElements/Qt4/InstanceBoard/QtObservedMolecule.hpp
r367489 r3b9aa1 84 84 * \return molecule's atom count 85 85 */ 86 intgetAtomCount() const;86 const int& getAtomCount() const; 87 87 88 88 /** Getter to molecule bond count contained in \a ObservedValues. … … 90 90 * \return molecule's bond count 91 91 */ 92 intgetBondCount() const;92 const int& getBondCount() const; 93 93 94 94 /** Getter to molecule center contained in \a ObservedValues. … … 96 96 * \return molecule's center 97 97 */ 98 VectorgetMolCenter() const;98 const Vector& getMolCenter() const; 99 99 100 100 /** Getter to molecule index contained in \a ObservedValues. … … 102 102 * \return molecule's index 103 103 */ 104 moleculeId_tgetMolIndex() const;104 const moleculeId_t& getMolIndex() const; 105 105 106 106 /** Getter to molecule name contained in \a ObservedValues. … … 108 108 * \return molecule's name 109 109 */ 110 std::stringgetMolName() const;110 const std::string& getMolName() const; 111 111 112 112 /** Getter to molecule formula contained in \a ObservedValues. … … 114 114 * \return molecule's formula 115 115 */ 116 std::stringgetMolFormula() const;116 const std::string& getMolFormula() const; 117 117 118 118 /** Getter to molecule non-hydrogen atom count contained in \a ObservedValues. … … 120 120 * \return molecule's non-hydrogen atom count 121 121 */ 122 intgetNonHydrogenCount() const;122 const int& getNonHydrogenCount() const; 123 123 124 124 /** Getter to molecule's bounding box contained in \a ObservedValues. … … 126 126 * \return molecule's bounding box 127 127 */ 128 molecule::BoundingBoxInfogetBoundingBox() const;128 const molecule::BoundingBoxInfo& getBoundingBox() const; 129 129 130 130 static const molecule * const getMolecule(const moleculeId_t _id); -
src/UIElements/Views/Qt4/Qt3D/GLMoleculeObject_bond.cpp
r367489 r3b9aa1 526 526 } 527 527 528 atomId_tGLMoleculeObject_bond::getleftIndex() const528 const atomId_t& GLMoleculeObject_bond::getleftIndex() const 529 529 { 530 530 return boost::any_cast<ObservedValue_wCallback<atomId_t> *>(ObservedValues[leftIndex])->get(); 531 531 } 532 532 533 atomId_tGLMoleculeObject_bond::getrightIndex() const533 const atomId_t& GLMoleculeObject_bond::getrightIndex() const 534 534 { 535 535 return boost::any_cast<ObservedValue_wCallback<atomId_t> *>(ObservedValues[rightIndex])->get(); 536 536 } 537 537 538 VectorGLMoleculeObject_bond::getleftPosition() const538 const Vector& GLMoleculeObject_bond::getleftPosition() const 539 539 { 540 540 return boost::any_cast<ObservedValue_wCallback<Vector,atomId_t> *>(ObservedValues[leftPosition])->get(); 541 541 } 542 542 543 VectorGLMoleculeObject_bond::getrightPosition() const543 const Vector& GLMoleculeObject_bond::getrightPosition() const 544 544 { 545 545 return boost::any_cast<ObservedValue_wCallback<Vector, atomId_t> *>(ObservedValues[rightPosition])->get(); 546 546 } 547 547 548 atomicNumber_tGLMoleculeObject_bond::getleftElement() const548 const atomicNumber_t& GLMoleculeObject_bond::getleftElement() const 549 549 { 550 550 return boost::any_cast<ObservedValue_wCallback<atomicNumber_t, atomId_t> *>(ObservedValues[leftElement])->get(); 551 551 } 552 552 553 atomicNumber_tGLMoleculeObject_bond::getrightElement() const553 const atomicNumber_t& GLMoleculeObject_bond::getrightElement() const 554 554 { 555 555 return boost::any_cast<ObservedValue_wCallback<atomicNumber_t, atomId_t> *>(ObservedValues[rightElement])->get(); 556 556 } 557 557 558 intGLMoleculeObject_bond::getDegree() const558 const int& GLMoleculeObject_bond::getDegree() const 559 559 { 560 560 return boost::any_cast<ObservedValue_wCallback<int, bondIds_t> *>(ObservedValues[Degree])->get(); -
src/UIElements/Views/Qt4/Qt3D/GLMoleculeObject_bond.hpp
r367489 r3b9aa1 177 177 * \return left atom's id 178 178 */ 179 atomId_tgetleftIndex() const;179 const atomId_t& getleftIndex() const; 180 180 181 181 /** Getter to right atom's id contained in \a ObservedValues. … … 183 183 * \return right atom's id 184 184 */ 185 atomId_tgetrightIndex() const;185 const atomId_t& getrightIndex() const; 186 186 187 187 /** Getter to left atom's position contained in \a ObservedValues. … … 189 189 * \return left atom's position 190 190 */ 191 VectorgetleftPosition() const;191 const Vector& getleftPosition() const; 192 192 193 193 /** Getter to right atom's position contained in \a ObservedValues. … … 195 195 * \return right atom's position 196 196 */ 197 VectorgetrightPosition() const;197 const Vector& getrightPosition() const; 198 198 199 199 /** Getter to left atom's element contained in \a ObservedValues. … … 201 201 * \return left atom's element 202 202 */ 203 atomicNumber_tgetleftElement() const;203 const atomicNumber_t& getleftElement() const; 204 204 205 205 /** Getter to rightatom's element contained in \a ObservedValues. … … 207 207 * \return right atom's element 208 208 */ 209 atomicNumber_tgetrightElement() const;209 const atomicNumber_t& getrightElement() const; 210 210 211 211 /** Getter to bond's degree contained in \a ObservedValues. … … 213 213 * \return bond's degree 214 214 */ 215 intgetDegree() const;215 const int& getDegree() const; 216 216 217 217 /** Counts how many ObservedValues got subjectKilled.
Note:
See TracChangeset
for help on using the changeset viewer.