source: src/UIElements/Views/Qt4/Qt3D/GLMoleculeObject_molecule.hpp@ 72b467

Action_Thermostats Add_AtomRandomPerturbation Add_FitFragmentPartialChargesAction Add_RotateAroundBondAction Add_SelectAtomByNameAction Adding_Graph_to_ChangeBondActions Adding_MD_integration_tests Adding_StructOpt_integration_tests Automaking_mpqc_open AutomationFragmentation_failures Candidate_v1.5.4 Candidate_v1.6.0 Candidate_v1.6.1 ChangeBugEmailaddress ChangingTestPorts ChemicalSpaceEvaluator 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_ChargeSampling_PBC Fix_ChronosMutex Fix_FitPartialCharges Fix_FitPotential_needs_atomicnumbers Fix_ForceAnnealing Fix_IndependentFragmentGrids Fix_ParseParticles Fix_ParseParticles_split_forward_backward_Actions Fix_StatusMsg Fix_StepWorldTime_single_argument Fix_Verbose_Codepatterns ForceAnnealing_goodresults ForceAnnealing_oldresults ForceAnnealing_tocheck ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_continued ForceAnnealing_with_BondGraph_continued_betteresults ForceAnnealing_with_BondGraph_contraction-expansion GeometryObjects Gui_displays_atomic_force_velocity IndependentFragmentGrids_IntegrationTest JobMarket_RobustOnKillsSegFaults JobMarket_StableWorkerPool JobMarket_unresolvable_hostname_fix ODR_violation_mpqc_open PartialCharges_OrthogonalSummation PythonUI_with_named_parameters QtGui_reactivate_TimeChanged_changes Recreated_GuiChecks RotateToPrincipalAxisSystem_UndoRedo StoppableMakroAction Subpackage_CodePatterns Subpackage_JobMarket Subpackage_LinearAlgebra Subpackage_levmar Subpackage_mpqc_open Subpackage_vmg ThirdParty_MPQC_rebuilt_buildsystem TrajectoryDependenant_MaxOrder TremoloParser_IncreasedPrecision TremoloParser_MultipleTimesteps Ubuntu_1604_changes stable
Last change on this file since 72b467 was 522c45, checked in by Frederik Heber <heber@…>, 9 years ago

QtObserved... signals indexChanged does not transmit ids anymore.

  • since the change to ObservedValue_Index_t, the id is not used anymore. Only in the GUI for the objectid.
  • Property mode set to 100644
File size: 2.0 KB
Line 
1/*
2 * GLMoleculeObject_molecule.hpp
3 *
4 * Created on: Mar 30, 2012
5 * Author: ankele
6 */
7
8#ifndef GLMOLECULEOBJECT_MOLECULE_HPP_
9#define GLMOLECULEOBJECT_MOLECULE_HPP_
10
11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
16#include "GLMoleculeObject.hpp"
17
18#include <Qt3D/qgeometrydata.h>
19
20#include "UIElements/Qt4/InstanceBoard/QtObservedMolecule.hpp"
21
22#include <map>
23
24#include <boost/function.hpp>
25
26#include "GLMoleculeObject_bond.hpp"
27
28#include "types.hpp"
29
30class atom;
31class bond;
32class molecule;
33class GLMoleculeObject_atom;
34class GLWorldScene;
35class QtObservedInstanceBoard;
36
37class GLMoleculeObject_molecule : public GLMoleculeObject
38{
39 Q_OBJECT
40public:
41 GLMoleculeObject_molecule(
42 QObject *parent,
43 QtObservedMolecule::ptr &_ObservedMolecule);
44 GLMoleculeObject_molecule(
45 QGLSceneNode *mesh[],
46 QObject *parent,
47 QtObservedMolecule::ptr &_ObservedMolecule);
48 virtual ~GLMoleculeObject_molecule();
49
50 void initialize(QGLView *view, QGLPainter *painter);
51 void draw(QGLPainter *painter, const QVector4D &cameraPlane);
52
53 typedef std::pair< atomId_t, atomId_t> BondIds;
54 friend std::ostream &operator<<(std::ostream &ost, const BondIds &t);
55
56signals:
57 void changed();
58 void changeOccured();
59
60private slots:
61 //!> grant GLWorldScene access to private slots
62 friend class GLWorldScene;
63
64 void setVisible(bool value);
65
66 void setTesselationOutOfDate();
67 void resetBoundingBox();
68 void resetIndex();
69 void resetSelected();
70
71private:
72
73 void init();
74
75 void resetTesselationHull();
76
77private:
78
79 QGeometryData updateTesselationHull() const;
80
81 //!> contains current version of the tesselation hull on request
82 QGeometryData TesselationHull;
83
84 //!> simple flag that tells whether we need to recalc the hull or not
85 bool TesselationUptodate;
86
87 atomId_t hoverAtomId;
88
89 QtObservedMolecule::ptr ObservedMolecule;
90};
91
92std::ostream &operator<<(std::ostream &ost, const GLMoleculeObject_molecule::BondIds &t);
93
94
95#endif /* GLMOLECULEOBJECT_MOLECULE_HPP_ */
Note: See TracBrowser for help on using the repository browser.