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