Changeset 53059e for src/UIElements/Views/Qt4/Qt3D/GLMoleculeObject.hpp
- Timestamp:
- Apr 11, 2012, 4:52:37 PM (14 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, Candidate_v1.7.0, 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:
- 3e93332
- Parents:
- c0ed1e (diff), 3927ef (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Frederik Heber <heber@…> (04/06/12 11:59:28)
- git-committer:
- Frederik Heber <heber@…> (04/11/12 16:52:37)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Views/Qt4/Qt3D/GLMoleculeObject.hpp
rc0ed1e r53059e 47 47 void setScale(qreal value) { m_scale = value; } 48 48 49 qreal scaleZ() const { return m_scaleZ; } 50 void setScaleZ(qreal value) { m_scaleZ = value; } 51 49 52 qreal rotationAngle() const { return m_rotationAngle; } 50 53 void setRotationAngle(qreal value) { m_rotationAngle = value; } … … 54 57 55 58 QGLMaterial *material() const { return m_material; } 56 void setMaterial(QGLMaterial *value) 57 { m_material = value; m_hoverMaterial = value; } 58 59 QGLMaterial *hoverMaterial() const { return m_hoverMaterial; } 60 void setHoverMaterial(QGLMaterial *value) { m_hoverMaterial = value; } 59 void setMaterial(QGLMaterial *value) { m_material = value; } 61 60 62 61 QGLAbstractEffect *effect() const { return m_effect; } … … 66 65 void setObjectId(int id) { m_objectId = id; } 67 66 67 bool selected() const { return m_selected; } 68 void setSelected(bool value); 69 70 void initStaticMaterials(); 68 71 void initialize(QGLView *view, QGLPainter *painter); 69 72 void draw(QGLPainter *painter); 73 void drawSelectionBox(QGLPainter *painter); 70 74 71 75 signals: … … 75 79 void doubleClicked(); 76 80 void hoverChanged(); 81 void selectionChanged(); 82 void changed(); 77 83 78 84 protected: … … 88 94 89 95 QGLSceneNode *m_mesh; 90 QGLSceneNode *m_GLMoleculeObject;91 96 QGLAbstractScene *m_scene; 92 97 QVector3D m_position; 93 98 qreal m_scale; 99 qreal m_scaleZ; 94 100 qreal m_rotationAngle; 95 101 QVector3D m_rotationVector; 96 102 QGLMaterial *m_material; 97 QGLMaterial *m_hoverMaterial; 103 static QGLMaterial *m_hoverMaterial; 104 static QGLMaterial *m_selectionMaterial; 105 static QGLMaterial *m_selectionBoxMaterial; 98 106 QGLAbstractEffect *m_effect; 99 107 int m_objectId; 100 108 bool m_hovering; 109 bool m_selected; 101 110 }; 102 111
Note:
See TracChangeset
for help on using the changeset viewer.