- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Views/Qt4/Qt3D/GLMoleculeObject_molecule.hpp
re39e7a r6fe4f7 24 24 #include "GLMoleculeObject_bond.hpp" 25 25 26 #include "molecule.hpp"27 28 26 class atom; 29 27 class bond; 30 28 class GLMoleculeObject_atom; 31 29 class GLWorldScene; 30 class molecule; 32 31 33 32 class GLMoleculeObject_molecule : public GLMoleculeObject, public Observer … … 110 109 typedef std::set<atomId_t> atoms_t; 111 110 112 molecule::BoundingBoxInfo initBoundingBox() const; 111 /** Structure for the required information on the bounding box. 112 * 113 */ 114 struct BoundingBoxInfo { 115 //!> position of center 116 Vector position; 117 //!> radius of sphere 118 double radius; 119 }; 120 121 /** Structure for the required information on the tesselation hull. 122 * 123 */ 124 struct TesselationHullInfo { 125 }; 126 127 BoundingBoxInfo initBoundingBox() const; 113 128 114 129 QGeometryData updateTesselationHull() const; 115 molecule::BoundingBoxInfo updateBoundingBox() const;130 BoundingBoxInfo updateBoundingBox() const; 116 131 atoms_t updateAtoms(); 117 132 moleculeId_t updateIndex() const; … … 138 153 boost::function<std::string ()> MolNameUpdater; 139 154 boost::function<QGeometryData ()> TesselationHullUpdater; 140 boost::function< molecule::BoundingBoxInfo ()> BoundingBoxUpdater;155 boost::function<BoundingBoxInfo ()> BoundingBoxUpdater; 141 156 boost::function<atoms_t ()> PresentAtomsUpdater; 142 157 … … 148 163 Cacheable<QGeometryData> TesselationHull; 149 164 //!> contains newest version of the bounding box on request 150 ObservedValue< molecule::BoundingBoxInfo> BoundingBox;165 ObservedValue<BoundingBoxInfo> BoundingBox; 151 166 //!> contains the current live set of atoms for the molecule 152 167 ObservedValue<atoms_t> PresentAtoms;
Note:
See TracChangeset
for help on using the changeset viewer.