- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Views/Qt4/Qt3D/GLWorldScene.hpp
rce4126 r9a7ef9 75 75 void clicked(atomId_t); 76 76 void doubleClicked(); 77 void hoverChanged(const atom*); 77 void hoverChanged(const atom &); 78 void hoverChanged(const molecule &, int); 78 79 79 80 private slots: 80 81 void atomClicked(atomId_t no); 81 void atomInserted(const atomicNumber_t _id); 82 void atomRemoved(const atomicNumber_t _id); 83 void moleculeRemoved(const molecule *_molecule); 82 void atomInserted(const atomId_t _id); 83 void atomRemoved(const atomId_t _id); 84 void moleculeClicked(moleculeId_t no); 85 void moleculeRemoved(const moleculeId_t _id); 86 void moleculeInserted(const molecule * _mol); 84 87 void worldSelectionChanged(); 85 88 void bondInserted(const bond::ptr _bond, const GLMoleculeObject_bond::SideOfBond side); … … 87 90 void setSelectionModeAtom(); 88 91 void setSelectionModeMolecule(); 89 void hoverChangedSignalled(GLMoleculeObject *ob);90 92 void changeAtomId(GLMoleculeObject_atom *ob, int oldId, int newOd); 91 93 void addShape(); 92 94 void removeShape(); 93 95 void update(); 96 void moleculesVisibilityChanged(const moleculeId_t _id, bool _visible); 94 97 95 98 public: … … 100 103 101 104 private: 102 typedef std::pair< atomId_t, atomId_t> BondIds;103 friend std::ostream &operator<<(std::ostream &ost, const BondIds &t);104 105 105 BondIds getBondIds( 106 const bond::ptr _bond, 107 const enum GLMoleculeObject_bond::SideOfBond side) const; 108 109 typedef std::map< atomId_t, GLMoleculeObject_atom* > AtomNodeMap; 110 typedef std::map< BondIds , GLMoleculeObject_bond* > BondNodeMap; 106 typedef std::map< atomId_t, GLMoleculeObject_molecule* > AtomMoleculeMap; 107 typedef std::map< GLMoleculeObject_molecule::BondIds , GLMoleculeObject_molecule* > BondMoleculeMap; 111 108 typedef std::map< moleculeId_t , GLMoleculeObject_molecule* > MoleculeNodeMap; 112 109 typedef std::map< std::string , GLMoleculeObject_shape* > ShapeNodeMap; 113 Atom NodeMap AtomsinSceneMap;114 Bond NodeMap BondsinSceneMap;110 AtomMoleculeMap AtomsinSceneMap; 111 BondMoleculeMap BondsinSceneMap; 115 112 MoleculeNodeMap MoleculesinSceneMap; 116 113 ShapeNodeMap ShapesinSceneMap; 117 114 118 QGLSceneNode *meshEmpty[GLMoleculeObject::DETAILTYPES_MAX];119 QGLSceneNode *meshSphere[GLMoleculeObject::DETAILTYPES_MAX];120 QGLSceneNode *meshCylinder[GLMoleculeObject::DETAILTYPES_MAX];121 122 115 SelectionModeType selectionMode; 123 const atom *hoverAtom;124 116 }; 125 117 126 std::ostream &operator<<(std::ostream &ost, const GLWorldScene::BondIds &t);127 128 118 #endif /* GLWORLDSCENE_HPP_ */
Note:
See TracChangeset
for help on using the changeset viewer.