#include <displayProperties.h>
Inheritance diagram for VIEW::DisplayProperties:
Public Slots | |
Public slots | |
void | show () |
Starts the dialog. | |
void | selectModel (int index) |
Changes the model. | |
void | selectMode (int index) |
Changes the drawing mode. | |
void | selectColoringMethod (int index) |
Changes the coloring method. | |
void | setSurfaceDrawingPrecision (float value) |
void | setDrawingPrecision (int value) |
void | setTransparency (int value) |
void | setCustomColor (const ColorRGBA &color) |
virtual void | apply () |
Indicates the apply button was pressed. | |
void | editColor () |
Opens the dialog for editing the custom color. | |
void | editSelectionColor () |
Opens the color dialog for the color of selected items. | |
void | coloringOptionsPressed () |
void | modelOptionsPressed () |
void | precisionBoxChanged (int index) |
void | transparencySliderChanged () |
void | precisionSliderChanged () |
void | coloringUpdatesChanged () |
void | modelUpdatesChanged () |
Public Member Functions | |
Constructors and Destructors | |
DisplayProperties (QWidget *parent=NULL, const char *name="DisplayProperties") throw () | |
Default Constructor. | |
DisplayProperties (const DisplayProperties &dp) throw () | |
Copy constructor just implemented for Python Interface, dont use it! | |
virtual | ~DisplayProperties () throw () |
Destructor. | |
Accessors: inspectors and mutators | |
virtual void | onNotify (Message *message) throw () |
Message handling method. | |
virtual void | initializeWidget (MainControl &main_control) throw () |
Initialize the popup menu Display with the entry Display Properties, which opens the dialog. | |
virtual void | initializePreferencesTab (Preferences &preferences) throw () |
Insert the ModelSettingsDialog and the ColoringSettingsDialog into the Preferences. | |
virtual void | finalizePreferencesTab (Preferences &preferences) throw () |
Remove the ModelSettingsDialog and the ColoringSettingsDialog from the Preferences. | |
void | applyPreferences () throw () |
Apply the preferences of the specific tab. | |
virtual void | checkMenu (MainControl &main_control) throw () |
Menu checking method. | |
void | createRepresentationMode () |
Switch to the mode, that a new Representation will be created. | |
void | modifyRepresentationMode (Representation *rep) |
Switch to the mode, that an existing Representation will be modified. | |
bool | getSettingsFromString (const String &data) throw () |
Settings from String. | |
void | createRepresentation (String data_string, const vector< const Composite * > &new_systems) |
void | enableCreationForNewMolecules (bool state) throw () |
Set if Representations are automaticaly created for new Molecules. | |
Representation * | getRepresentation () throw () |
Get the Representation on which DisplayProperties is working on. | |
virtual Representation * | createRepresentation (const List< Composite * > &composites, bool hidden=false) |
void | setModelSettingsDialog (ModelSettingsDialog *dialog) |
void | setColoringSettingsDialog (ColoringSettingsDialog *dialog) |
Protected Member Functions | |
void | checkDrawingPrecision_ () throw () |
virtual void | getAdvancedModelOptions_ () throw () |
virtual void | getAdvancedColoringOptions_ () throw () |
virtual void | applyModelSettings_ (Representation &rep) |
virtual void | applyColoringSettings_ (Representation &rep) |
void | applyTo_ (Representation *rep) |
Protected Attributes | |
ModelSettingsDialog * | model_settings_ |
ColoringSettingsDialog * | coloring_settings_ |
Preferences * | preferences_ |
QAction * | id_ |
Representation * | rep_ |
ColorRGBA | custom_color_ |
bool | advanced_options_modified_ |
bool | create_representations_for_new_molecules_ |
bool | changed_selection_color_ |
const ModelInformation * | model_information_ |
It can create a new Representation for a selection of Composite 's from the MolecularControl. If a Representation is selected in the GeometricControl, it can be modified with this dialog. With the help of various combo boxes it is possible to customize the look of the graphical visualization (the model, the drawing precision, the drawing mode, the coloring method and the custom color). For information about the drawing precision see Representation.
If this dialog is used, it should be created with MainControl as parent.
If you want to add a new coloring method or type of Representation, have a look at VIEW/KERNEL/common.h.
|
Default Constructor. |
|
Indicates the apply button was pressed. Applies the selected model with its selected properties to the selected Composite objects or modifies an existing Representation. A SceneMessage will be sent to inform the Scene. A RepresentationMessage notifies the GeometricControl. |
|
Apply the preferences of the specific tab. In this method the widget can extract any changed values from its preferences tab (if required). This method is called automatically by the applyPreferencesTab from the MainControl object if the apply button in the Preferences dialog is pressed.
Reimplemented from VIEW::ModularWidget. |
|
Menu checking method. This method is called by MainControl::checkMenus before a popup menu is shown. The menu entry Display Properties will be checked if this dialog is visible.
Reimplemented from VIEW::ModularWidget. |
|
Opens the dialog for editing the custom color. Opens a QColorDialog from the QT-library. |
|
Opens the color dialog for the color of selected items.
|
|
Initialize the popup menu Display with the entry Display Properties, which opens the dialog. This method is called automatically immediately before the main application is started by MainControl::show()
Reimplemented from VIEW::ModularWidget. |
|
Message handling method. Handles messages sent by other registered ConnectionObject objects. If a CompositeMessage with type NEW_MOLECULE is catched, the chosen graphical visualization will be applied to the Composite object and the follwing Message objects will be sent through the ConnectionObject tree:
Reimplemented from VIEW::ConnectionObject. |
|
Changes the coloring method. This slot is connected to the coloring method combo box and will be automatically called if the content of this combo box is changed.
|
|
Changes the drawing mode. This slot is connected to the mode combo box and will be automatically called if the content of this combo box is changed.
|
|
Changes the model. This slot is connected to the model combo box and will be automatically called if the content of this combo box is changed.
|
|
Starts the dialog. Calls QDialog::raise(). |