BALL::VIEW::EditableScene Class Reference
[Modular Widgets]
#include <BALL/VIEW/WIDGETS/editableScene.h>
List of all members.
Detailed Description
Extended 3D view for editing molecules. The editing functionality is implemented as an own mode.
Member Enumeration Documentation
Constructor & Destructor Documentation
BALL::VIEW::EditableScene::EditableScene |
( |
|
) |
|
BALL::VIEW::EditableScene::EditableScene |
( |
QWidget * |
parent_widget, |
|
|
const char * |
name = NULL , |
|
|
Qt::WFlags |
w_flags = 0 | |
|
) |
| | |
BALL::VIEW::EditableScene::EditableScene |
( |
const EditableScene & |
eScene, |
|
|
QWidget * |
parent_widget = NULL , |
|
|
const char * |
name = NULL , |
|
|
Qt::WFlags |
wflags = 0 | |
|
) |
| | |
virtual BALL::VIEW::EditableScene::~EditableScene |
( |
|
) |
[virtual] |
Member Function Documentation
void BALL::VIEW::EditableScene::activatedOrderItem_ |
( |
QAction * |
action |
) |
[protected, slot] |
void BALL::VIEW::EditableScene::addStructure |
( |
String |
name |
) |
|
void BALL::VIEW::EditableScene::addStructure_ |
( |
|
) |
[protected, slot] |
virtual void BALL::VIEW::EditableScene::addToolBarEntries |
( |
QToolBar * |
main_tb |
) |
[protected, virtual] |
Add the widgets actions to the (main) toolbar. This method is needed to enable ordering the entries. It is called in Mainframe.
Reimplemented from BALL::VIEW::Scene.
virtual void BALL::VIEW::EditableScene::applyPreferences |
( |
|
) |
[virtual] |
void BALL::VIEW::EditableScene::atomProperties_ |
( |
|
) |
[protected, slot] |
void BALL::VIEW::EditableScene::changeBondOrder_ |
( |
Index |
delta |
) |
[protected] |
void BALL::VIEW::EditableScene::changeBondOrder_ |
( |
|
) |
[protected, slot] |
void BALL::VIEW::EditableScene::changeElement_ |
( |
|
) |
[protected, slot] |
void BALL::VIEW::EditableScene::checkMenu |
( |
MainControl & |
main_control |
) |
[virtual] |
void BALL::VIEW::EditableScene::computeBondOrders |
( |
|
) |
[slot] |
void BALL::VIEW::EditableScene::createMolecule_ |
( |
|
) |
[protected, slot] |
void BALL::VIEW::EditableScene::createNewMolecule |
( |
|
) |
[slot] |
void BALL::VIEW::EditableScene::deleteAtom_ |
( |
|
) |
[protected, slot] |
void BALL::VIEW::EditableScene::deleteBond_ |
( |
|
) |
[protected, slot] |
void BALL::VIEW::EditableScene::deselect_ |
( |
bool |
update = true |
) |
[protected] |
virtual void BALL::VIEW::EditableScene::editMode_ |
( |
|
) |
[protected, virtual, slot] |
void BALL::VIEW::EditableScene::finalizePreferencesTab |
( |
Preferences & |
preferences |
) |
[virtual] |
String BALL::VIEW::EditableScene::getBondOrderString_ |
( |
Index |
order |
) |
[protected] |
void BALL::VIEW::EditableScene::getClickedItems_ |
( |
int |
x, |
|
|
int |
y | |
|
) |
| | [protected] |
int BALL::VIEW::EditableScene::getEditElementType |
( |
|
) |
[slot] |
Given a 3-dim. Coordinates (in Viewing Volume) getScreenPosition computes the 2-dim Coordinates on Screen.
void BALL::VIEW::EditableScene::init_ |
( |
|
) |
[protected] |
void BALL::VIEW::EditableScene::initializePreferencesTab |
( |
Preferences & |
preferences |
) |
[virtual] |
Initialize a preferences tab for the widget (if needed). This method can be used to create preferences widgets that can be inserted into the Preferences dialog with the method insertTab. This method is called automatically by MainControl::show at the start of the application.
- Parameters:
-
Reimplemented from BALL::VIEW::Scene.
void BALL::VIEW::EditableScene::initializeWidget |
( |
MainControl & |
main_control |
) |
[virtual] |
ModularWidget methods. Initialize the popup menu Display and the menus of this scene:
- the rotate mode (all mouse actions are attached to rotating, translating and zooming the scene)
- the picking mode (all mouse actions are attached to picking objects from the scene)
- This method is called automatically immediately before the main application is started by MainControl::show().
- Parameters:
-
| main_control | the MainControl object to be initialized with this scene |
Reimplemented from BALL::VIEW::Scene.
void BALL::VIEW::EditableScene::insert_ |
( |
int |
x_, |
|
|
int |
y_, |
|
|
PDBAtom & |
atom_ | |
|
) |
| | [protected] |
Insert a given Atom in the Scene. Its position is specified by the 2-dim Mouseclick coordinates of the Screen, which will be translated into the 3-dim space of Viewing Volume.
virtual void BALL::VIEW::EditableScene::keyPressEvent |
( |
QKeyEvent * |
e |
) |
[protected, virtual] |
virtual void BALL::VIEW::EditableScene::mouseDoubleClickEvent |
( |
QMouseEvent * |
e |
) |
[protected, virtual] |
virtual void BALL::VIEW::EditableScene::mouseMoveEvent |
( |
QMouseEvent * |
qmouse_event |
) |
[virtual, slot] |
Catch mouse move events, store the actual mouse position in this scene widget and sent events accordingly.
- Parameters:
-
| e | the QT-mouse event (See QT-library for mouse events) |
Reimplemented from BALL::VIEW::Scene.
virtual void BALL::VIEW::EditableScene::mousePressEvent |
( |
QMouseEvent * |
qmouse_event |
) |
[virtual, slot] |
Catch mouse press events, store the actual mouse position in this scene widget and sent events accordingly.
- Parameters:
-
| e | the QT-mouse event (See QT-library for mouse events) |
Reimplemented from BALL::VIEW::Scene.
virtual void BALL::VIEW::EditableScene::mouseReleaseEvent |
( |
QMouseEvent * |
qmouse_event |
) |
[virtual, slot] |
Catch mouse release events, store the actual mouse position in this scene widget and sent events accordingly.
- Parameters:
-
| e | the QT-mouse event (See QT-library for mouse events) |
Reimplemented from BALL::VIEW::Scene.
void BALL::VIEW::EditableScene::moveAtom_ |
( |
|
) |
[protected, slot] |
virtual void BALL::VIEW::EditableScene::onNotify |
( |
Message * |
message |
) |
[protected, virtual] |
void BALL::VIEW::EditableScene::optimizeStructure |
( |
|
) |
[slot] |
virtual bool BALL::VIEW::EditableScene::reactToKeyEvent_ |
( |
QKeyEvent * |
e |
) |
[protected, virtual] |
void BALL::VIEW::EditableScene::renderGrid_ |
( |
|
) |
[protected] |
void BALL::VIEW::EditableScene::saturateWithHydrogens |
( |
|
) |
[slot] |
void BALL::VIEW::EditableScene::setCursor |
( |
String |
c |
) |
|
void BALL::VIEW::EditableScene::setEditElementType |
( |
int |
element_number |
) |
[slot] |
void BALL::VIEW::EditableScene::setElementCursor |
( |
|
) |
|
void BALL::VIEW::EditableScene::setFormalCharge_ |
( |
|
) |
[protected, slot] |
virtual void BALL::VIEW::EditableScene::setMode |
( |
ModeType |
mode |
) |
[virtual] |
void BALL::VIEW::EditableScene::showContextMenu |
( |
QPoint |
pos |
) |
|
virtual void BALL::VIEW::EditableScene::wheelEvent |
( |
QWheelEvent * |
qmouse_event |
) |
[virtual, slot] |
Catch mouse wheel events and zoom the scene accordingly.
- Parameters:
-
| e | the QT-mouse event (See QT-library for mouse events) |
Reimplemented from BALL::VIEW::Scene.
Member Data Documentation