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
RevLine 
[c67518]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
[6c16a0]18#include <Qt3D/qgeometrydata.h>
19
[494478]20#include "UIElements/Qt4/InstanceBoard/QtObservedMolecule.hpp"
21
22#include <map>
23
[8688ef]24#include <boost/function.hpp>
[7c7c4a]25
[c67518]26#include "GLMoleculeObject_bond.hpp"
27
[494478]28#include "types.hpp"
[e39e7a]29
[c67518]30class atom;
31class bond;
[494478]32class molecule;
[8c001a]33class GLMoleculeObject_atom;
34class GLWorldScene;
[2f7988]35class QtObservedInstanceBoard;
[c67518]36
[494478]37class GLMoleculeObject_molecule : public GLMoleculeObject
[c67518]38{
39 Q_OBJECT
40public:
[026bef]41 GLMoleculeObject_molecule(
42 QObject *parent,
[1b07b1]43 QtObservedMolecule::ptr &_ObservedMolecule);
[026bef]44 GLMoleculeObject_molecule(
45 QGLSceneNode *mesh[],
46 QObject *parent,
[1b07b1]47 QtObservedMolecule::ptr &_ObservedMolecule);
[c67518]48 virtual ~GLMoleculeObject_molecule();
49
[8c001a]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
[34e7fdb]64 void setVisible(bool value);
65
[691533]66 void setTesselationOutOfDate();
[6c16a0]67 void resetBoundingBox();
[522c45]68 void resetIndex();
[5cd3a33]69 void resetSelected();
[015f8c]70
[c67518]71private:
[8c001a]72
[96f14a]73 void init();
[494478]74
[691533]75 void resetTesselationHull();
76
[494478]77private:
78
79 QGeometryData updateTesselationHull() const;
[6c16a0]80
81 //!> contains current version of the tesselation hull on request
[3fe318]82 QGeometryData TesselationHull;
[6c16a0]83
[691533]84 //!> simple flag that tells whether we need to recalc the hull or not
85 bool TesselationUptodate;
[8c001a]86
[704d59]87 atomId_t hoverAtomId;
[8d5fbf1]88
[494478]89 QtObservedMolecule::ptr ObservedMolecule;
[c67518]90};
91
[8c001a]92std::ostream &operator<<(std::ostream &ost, const GLMoleculeObject_molecule::BondIds &t);
[c67518]93
94
95#endif /* GLMOLECULEOBJECT_MOLECULE_HPP_ */
Note: See TracBrowser for help on using the repository browser.