- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Views/Qt4/Qt3D/GLMoleculeObject_molecule.cpp
r6fe4f7 re39e7a 85 85 const Observable::channels_t GLMoleculeObject_molecule::AtomsChannels(getAtomsChannels()); 86 86 const Observable::channels_t GLMoleculeObject_molecule::HullChannels(getAllAtomicChangesChannels()); 87 const Observable::channels_t GLMoleculeObject_molecule::BoundingBoxChannels( getAllAtomicChangesChannels());87 const Observable::channels_t GLMoleculeObject_molecule::BoundingBoxChannels(1, molecule::BoundingBoxChanged); 88 88 const Observable::channels_t GLMoleculeObject_molecule::IndexChannels(1, molecule::IndexChanged); 89 89 const Observable::channels_t GLMoleculeObject_molecule::NameChannels(1, molecule::MoleculeNameChanged); … … 403 403 } 404 404 405 GLMoleculeObject_molecule::BoundingBoxInfo GLMoleculeObject_molecule::initBoundingBox() const406 { 407 BoundingBoxInfo info;405 molecule::BoundingBoxInfo GLMoleculeObject_molecule::initBoundingBox() const 406 { 407 molecule::BoundingBoxInfo info; 408 408 info.position = zeroVec; 409 409 info.radius = 0.; … … 411 411 } 412 412 413 GLMoleculeObject_molecule::BoundingBoxInfo GLMoleculeObject_molecule::updateBoundingBox() const414 { 415 BoundingBoxInfo info = BoundingBox.get();413 molecule::BoundingBoxInfo GLMoleculeObject_molecule::updateBoundingBox() const 414 { 415 molecule::BoundingBoxInfo info = BoundingBox.get(); 416 416 const molecule * const _molecule = getMolecule(MolIndex.get()); 417 417 if (_molecule != NULL) { … … 472 472 void GLMoleculeObject_molecule::resetBoundingBox() 473 473 { 474 BoundingBoxInfo info = BoundingBox.get();474 molecule::BoundingBoxInfo info = BoundingBox.get(); 475 475 setPosition(QVector3D(info.position[0], info.position[1], info.position[2])); 476 476 setScale(info.radius + 0.3); // getBoundingSphere() only sees atoms as points, so make the box a bit bigger
Note:
See TracChangeset
for help on using the changeset viewer.