BALL::VIEW::MolecularStructure Class Reference
[Modular Widgets]

MolecularStructure provides means to modify molecular structures and do several calculations. More...

#include <molecularStructure.h>

Inheritance diagram for BALL::VIEW::MolecularStructure:
Inheritance graph
[legend]

List of all members.


Public Types

enum { AMBER_FF = 0, CHARMM_FF, MMFF94_FF }

Public Member Functions

Constructors
MolecularStructure (QWidget *parent=0, const char *name=0)
Default Constructor.
MolecularStructure (const MolecularStructure &m)
only needed for Python Interface, dont call it!
Destructors
virtual ~MolecularStructure ()
Destructor.

Accessors: inspectors and mutators

virtual void onNotify (Message *message)
Handles messages sent by other registered ConnectionObject objects.
virtual void checkMenu (MainControl &main_control)
Check the menu entries.
virtual void initializeWidget (MainControl &main_control)
Initialize the popup menus for this Widget.
ForceField & getForceField ()
Get the currently selected force field instance.
AmberFF & getAmberFF ()
Get the instance of the AMBER forcefield.
CharmmFF & getCharmmFF ()
Get the instance of the CHARMM forcefield.
MMFF94 & getMMFF94 ()
AmberConfigurationDialog & getAmberConfigurationDialog ()
Get an instance of an dialog to setup the AMBER forcefield.
CharmmConfigurationDialog & getCharmmConfigurationDialog ()
Get an instance of an dialog to setup the CHARMM forcefield.
MMFF94ConfigurationDialog & getMMFF94ConfigurationDialog ()
virtual void fetchPreferences (INIFile &inifile)
Fetch the widgets preferences from the INIfile.
virtual void writePreferences (INIFile &inifile)
Writes the widgets preferences to the INIFile.
MolecularDynamicsDialog & getMDSimulationDialog ()
MinimizationDialog & getMinimizationDialog ()
FDPBDialog * getFDPBDialog ()
AssignBondOrderConfigurationDialog & getBondOrderDialog ()
const
AssignBondOrderConfigurationDialog &
getBondOrderDialog () const
AssignBondOrderResultsDialog & getBondOrderResultsDialog ()
const
AssignBondOrderResultsDialog &
getBondOrderResultsDialog () const
void centerCamera (Composite *composite=0)
Centers the camera of Scene to the geometric center of the molecular objects in the selection list.
void buildBonds ()
Creates bonds.
void runBondOrderAssignment (bool show_dialog=true)
Assigns bond orders.
void showBondOrderAssignmentResults (AssignBondOrderProcessor &bop)
Shows the results of the given BondOrderAssigner.
void addHydrogens ()
Adds hydrogens.
virtual bool checkResidue ()
Check the residues.
virtual void createGridFromDistance ()
Create a RegularData3D instance with the distance from the geometric center.
virtual void createGridFromCameraDistance ()
virtual void calculateSecondaryStructure ()
Calculate the secondary structure for a protein.
virtual void mapProteins ()
Map two Proteins and apply the resulting transformation matrix.
virtual void calculateRMSD ()
Calculate the RMSD between two Molecules.
void buildPeptide ()
Build a Peptide from a amino acid sequence.
void calculateHBonds ()
Calculate the H-Bonds for a Protein.
void calculateRamachandranPlot ()
Calculate a Ramachandran Plot.
void calculateForceFieldEnergy ()
Calculate the energy for the currently selected force field.
void runMinimization (bool show_dialog_=true)
Run a energy minization with the currently selected force field.
void MDSimulation (bool show_dialog_=true)
Perfomr a molecular dynamics simulation with the currently selected force field.
void showAmberForceFieldOptions ()
Show the dialog to setup the AMBER force field.
void showCharmmForceFieldOptions ()
Show the dialog to setup the CHARMM force field.
void showMMFF94ForceFieldOptions ()
void chooseAmberFF ()
Slot for a menu entry to select the AMBER force field.
void chooseCharmmFF ()
Slot for a menu entry to select the CHARMM force field.
void chooseMMFF94 ()
Slot for a menu entry to select the MMFF94 force field.
void chooseForceField (Position nr)
void setupForceField ()
Show a dialog to setup the currently selected force field.
bool calculateFDPB (bool show=true)

Detailed Description

MolecularStructure provides means to modify molecular structures and do several calculations.

To do so, it contains the MMFF94, AMBER and CHARMM forcefields and dialogs to do the setup. The widget itself is invisible, but it has several menu entries, e.g.:


Constructor & Destructor Documentation

BALL::VIEW::MolecularStructure::MolecularStructure ( QWidget * parent = 0,
const char * name = 0
)

Default Constructor.

Calls registerWidget.

See also:
ModularWidget

Member Function Documentation

void BALL::VIEW::MolecularStructure::addHydrogens ( ) [slot]

Adds hydrogens.

If selected molecular objects are available hydrogens will be created for each object in the selection list using the add_hydrogens processor of the FragmentDB. A CompositeMessage will be sent for each object in the selection list. The number of hydrogens created will be written into the Log object.

void BALL::VIEW::MolecularStructure::buildBonds ( ) [slot]

Creates bonds.

If selected molecular objects are available Bond objects will be created for each object in the selection list using the build_bonds processor of the FragmentDB. A CompositeMessage will be sent for each object in the selection list. The number of bonds created will be written into the Log object.

void BALL::VIEW::MolecularStructure::centerCamera ( Composite * composite = 0 ) [slot]

Centers the camera of Scene to the geometric center of the molecular objects in the selection list.

A SceneMessage will be sent to inform the Scene.

virtual void BALL::VIEW::MolecularStructure::checkMenu ( MainControl & main_control ) [virtual]

Check the menu entries.

The menus Select, Deselect, Add Hydrogens and Build Bonds will be enabled if the selection of molecular objects is not empty. The menu Focus camera will be enabled only if only one molecular object is in the selection list.

Reimplemented from BALL::VIEW::ModularWidget.

virtual void BALL::VIEW::MolecularStructure::fetchPreferences ( INIFile & inifile ) [virtual]

Fetch the widgets preferences from the INIfile.

Parameters:
inifile the INIFile that contains the required values

Reimplemented from BALL::VIEW::ModularWidget.

AmberFF& BALL::VIEW::MolecularStructure::getAmberFF ( )

Get the instance of the AMBER forcefield.

The forcefield will be created, when this function is called the first time.

CharmmFF& BALL::VIEW::MolecularStructure::getCharmmFF ( )

Get the instance of the CHARMM forcefield.

The forcefield will be created, when this function is called the first time.

ForceField& BALL::VIEW::MolecularStructure::getForceField ( )

Get the currently selected force field instance.

This returns either a reference to the amber_ff_ member or to the charmm_ff_ member, depending on the value of use_amber_.

virtual void BALL::VIEW::MolecularStructure::initializeWidget ( MainControl & main_control ) [virtual]

Initialize the popup menus for this Widget.

This method is called automatically immediately before the main application is started by MainControl::show().

Parameters:
main_control the MainControl object to be initialized
See also:
finalizeWidget

Reimplemented from BALL::VIEW::ModularWidget.

virtual void BALL::VIEW::MolecularStructure::onNotify ( Message * message ) [virtual]

Handles messages sent by other registered ConnectionObject objects.

Converts CompositeMessage if the retrieved Composite object is kind of AtomContainer and applies molecular properties to it (like normalize_names and build_bonds).

Parameters:
message the pointer to the message that should be processed
See also:
CompositeMessage

GeometricObjectSelectionMessage

MolecularTaskMessage

Reimplemented from BALL::VIEW::ConnectionObject.

void BALL::VIEW::MolecularStructure::runBondOrderAssignment ( bool show_dialog = true ) [slot]

Assigns bond orders.

If a single selected molecular object is available Bond Orders will be set for each bond object of the selected AtomContainer using the assign_bond_order processor. A CompositeMessage will be sent for the object in the selection list. The number of bond orders changed will be written into the Log object.

void BALL::VIEW::MolecularStructure::showBondOrderAssignmentResults ( AssignBondOrderProcessor & bop ) [slot]

Shows the results of the given BondOrderAssigner.

All bond order assignment sets found by the given BondOrderAssigner will be presented as structural sketch, additional scoring information is provided by click on the entry. A single assignment can either be applied to the selected AtomContainer, or a copy of the original system with the bond order assignment of the current result is added to the Structure list.

virtual void BALL::VIEW::MolecularStructure::writePreferences ( INIFile & inifile ) [virtual]

Writes the widgets preferences to the INIFile.

Parameters:
inifile the INIFile that contains the needed values

Reimplemented from BALL::VIEW::ModularWidget.


Generated on Thu Aug 6 18:31:01 2009 for BALL by doxygen 1.5.8