#include <geometricControl.h>
Inheritance diagram for VIEW::GeometricControl:
Public Slots | |
Public slots | |
virtual void | renameRepresentation () |
virtual void | selectAtoms () |
virtual void | selectedRepresentation (Representation &representation, bool state) |
virtual void | updateSelection () |
virtual void | focus () |
virtual void | enterMoveMode () |
virtual void | flipClippingCapping () |
virtual void | flipClippingPlane () |
virtual void | setClippingPosition () |
virtual void | setClippingPlaneX () |
virtual void | setClippingPlaneY () |
virtual void | setClippingPlaneZ () |
void | hideShowClippingPlane () |
virtual void | selectClipRepresentations () |
void | createNewClippingPlane () |
void | duplicate () |
void | saveSurface () |
void | loadSurface () |
ModifyRepresentationDialog * | getModifySurfaceDialog () |
Public Member Functions | |
Constructors and Destructors | |
GeometricControl (QWidget *parent=0, const char *name=0) throw () | |
Default Constructor. | |
virtual | ~GeometricControl () throw () |
Destructor. | |
virtual void | clear () throw () |
Explicit default initialization. | |
virtual void | initializeWidget (MainControl &main_control) throw () |
Initialize the menu entries: - delete. | |
virtual void | addRepresentation (Representation &rep) throw () |
Insert a Representation. | |
virtual void | removeRepresentation (Representation &rep) throw () |
Remove a Representation. | |
virtual void | updateRepresentation (Representation &rep) throw () |
Update a Representation. | |
List< Representation * > | getHighlightedRepresentations () const throw () |
Non-mutable inspection of the selection. | |
virtual void | onNotify (Message *message) throw () |
Message handling. | |
virtual void | buildContextMenu () throw () |
Build a context menu for the Representation object the QListViewItem object. | |
virtual void | checkMenu (MainControl &main_control) throw () |
Overloaded from ModularWidget. | |
void | moveItems (const TransformationMessage &msg) throw () |
void | updateClippingPlanes () |
Protected Types | |
enum | ColumnID { COLUMN_ID__TYPE = 0, COLUMN_ID__Properties } |
Protected Slots | |
virtual void | onItemClicked (QTreeWidgetItem *item, int col) |
void | showGuestContextMenu (const QPoint &pos) |
Protected members | |
virtual void | modifyRepresentation_ () throw () |
virtual void | generateListViewItem_ (Representation &rep) throw () |
Generate the item for a representation. | |
virtual void | deleteCurrentItems () throw () |
Overloaded from GenericControl. | |
Protected Member Functions | |
void | addItem_ (const String &text, const char *member, QWidget *widget=0) |
GeometricControl (const GeometricControl &control) throw () | |
void | setClippingPlane_ (const Vector3 &n) |
Protected Attributes | |
QMenu | context_menu_ |
QMenu | clipping_plane_context_menu_ |
Representation * | context_representation_ |
ClippingPlane * | context_plane_ |
HashMap< Representation *, QTreeWidgetItem * > | representation_to_item_ |
HashMap< ClippingPlane *, QTreeWidgetItem * > | plane_to_item_ |
HashMap< QTreeWidgetItem *, Representation * > | item_to_representation_ |
HashMap< QTreeWidgetItem *, ClippingPlane * > | item_to_plane_ |
ModifyRepresentationDialog * | modify_rep_dialog_ |
bool | creating_representations_ |
bool | ignore_change_ |
QAction * | menu_clipping_plane_ |
QAction * | menu_load_surface_ |
QAction * | modify_surface_ |
vector< QAction * > | context_menu_actions_ |
There are methods available to modify the representations. The method buildContextMenu is a means to create a customizable context menu entries. To use this widget in the application just create it with MainControl as parent and all in the RepresentationManager created Representation objects will show up in the GeometricControl.
|
Default Constructor. There are two columns for this control. The Type column and the Properties column. The Type column shows the model type (e.g. LineModel), while the Properties column contains the number of Composites and GeometricObjects. There is a connection from the signal rightButtonClicked from the QT-library to the method onContextMenu. See documentation of QT-library for information concerning signal/slot mechanism. Calls registerWidget.
|
|
Insert a Representation.
|
|
Build a context menu for the Representation object the QListViewItem object.
|
|
Explicit default initialization. Empty for further purpose. Reimplemented from VIEW::ModularWidget. |
|
Generate the item for a representation.
|
|
Non-mutable inspection of the selection.
|
|
Initialize the menu entries: - delete.
Reimplemented from VIEW::GenericControl. |
|
Message handling.
Reimplemented from VIEW::GenericControl. |
|
Remove a Representation.
|
|
Update a Representation.
|