BALL::VIEW::GeometricControl Class Reference
[Modular Widgets]
#include <BALL/VIEW/WIDGETS/geometricControl.h>
List of all members.
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 |
|
|
| GeometricControl (QWidget *parent=0, const char *name=0) |
virtual | ~GeometricControl () |
| Destructor.
|
virtual void | clear () |
virtual void | initializeWidget (MainControl &main_control) |
|
|
virtual void | addRepresentation (Representation &rep) |
virtual void | removeRepresentation (Representation &rep) |
virtual void | updateRepresentation (Representation &rep) |
std::list< Representation * > | getHighlightedRepresentations () const |
virtual void | onNotify (Message *message) |
virtual void | buildContextMenu () |
virtual void | checkMenu (MainControl &main_control) |
| Overloaded from ModularWidget.
|
void | moveItems (const TransformationMessage &msg) |
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) |
|
|
virtual void | modifyRepresentation_ () |
virtual void | generateListViewItem_ (Representation &rep) |
virtual void | deleteCurrentItems () |
| Overloaded from GenericControl.
|
Protected Member Functions |
void | addItem_ (const String &text, const char *member, QWidget *widget=0) |
| GeometricControl (const GeometricControl &control) |
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_ |
Detailed Description
GeometricControl is a widget to display the list of representations. 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.
Definition at line 43 of file geometricControl.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
BALL::VIEW::GeometricControl::GeometricControl |
( |
QWidget * |
parent = 0 , |
|
|
const char * |
name = 0 | |
|
) |
| | |
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.
- Parameters:
-
| parent | the parent widget of this control (See documentation of QT-library for information concerning widgets) |
| name | the name of this control |
- See also:
- QListView
-
ModularWidget
-
onContextMenu
virtual BALL::VIEW::GeometricControl::~GeometricControl |
( |
|
) |
[virtual] |
BALL::VIEW::GeometricControl::GeometricControl |
( |
const GeometricControl & |
control |
) |
[protected] |
Member Function Documentation
void BALL::VIEW::GeometricControl::addItem_ |
( |
const String & |
text, |
|
|
const char * |
member, |
|
|
QWidget * |
widget = 0 | |
|
) |
| | [protected] |
virtual void BALL::VIEW::GeometricControl::addRepresentation |
( |
Representation & |
rep |
) |
[virtual] |
virtual void BALL::VIEW::GeometricControl::buildContextMenu |
( |
|
) |
[virtual] |
Build a context menu for the Representation object the QListViewItem object.
- Parameters:
-
| representation | the Representation object for that a context menu should be created |
- See also:
- insertContextMenuEntry
-
onContextMenu
virtual void BALL::VIEW::GeometricControl::checkMenu |
( |
MainControl & |
main_control |
) |
[virtual] |
virtual void BALL::VIEW::GeometricControl::clear |
( |
|
) |
[inline, virtual] |
void BALL::VIEW::GeometricControl::createNewClippingPlane |
( |
|
) |
[slot] |
virtual void BALL::VIEW::GeometricControl::deleteCurrentItems |
( |
|
) |
[protected, virtual, slot] |
void BALL::VIEW::GeometricControl::duplicate |
( |
|
) |
[slot] |
virtual void BALL::VIEW::GeometricControl::enterMoveMode |
( |
|
) |
[virtual, slot] |
virtual void BALL::VIEW::GeometricControl::flipClippingCapping |
( |
|
) |
[virtual, slot] |
virtual void BALL::VIEW::GeometricControl::flipClippingPlane |
( |
|
) |
[virtual, slot] |
virtual void BALL::VIEW::GeometricControl::focus |
( |
|
) |
[virtual, slot] |
virtual void BALL::VIEW::GeometricControl::generateListViewItem_ |
( |
Representation & |
rep |
) |
[protected, virtual, slot] |
Generate the item for a representation.
std::list<Representation*> BALL::VIEW::GeometricControl::getHighlightedRepresentations |
( |
|
) |
const |
Mutable inspection of the selection. Non-mutable inspection of the selection.
void BALL::VIEW::GeometricControl::hideShowClippingPlane |
( |
|
) |
[slot] |
virtual void BALL::VIEW::GeometricControl::initializeWidget |
( |
MainControl & |
main_control |
) |
[virtual] |
void BALL::VIEW::GeometricControl::loadSurface |
( |
|
) |
[slot] |
virtual void BALL::VIEW::GeometricControl::modifyRepresentation_ |
( |
|
) |
[protected, virtual, slot] |
virtual void BALL::VIEW::GeometricControl::onItemClicked |
( |
QTreeWidgetItem * |
item, |
|
|
int |
col | |
|
) |
| | [protected, virtual, slot] |
virtual void BALL::VIEW::GeometricControl::onNotify |
( |
Message * |
message |
) |
[virtual] |
virtual void BALL::VIEW::GeometricControl::removeRepresentation |
( |
Representation & |
rep |
) |
[virtual] |
virtual void BALL::VIEW::GeometricControl::renameRepresentation |
( |
|
) |
[virtual, slot] |
void BALL::VIEW::GeometricControl::saveSurface |
( |
|
) |
[slot] |
virtual void BALL::VIEW::GeometricControl::selectAtoms |
( |
|
) |
[virtual, slot] |
virtual void BALL::VIEW::GeometricControl::selectClipRepresentations |
( |
|
) |
[virtual, slot] |
virtual void BALL::VIEW::GeometricControl::selectedRepresentation |
( |
Representation & |
representation, |
|
|
bool |
state | |
|
) |
| | [virtual, slot] |
void BALL::VIEW::GeometricControl::setClippingPlane_ |
( |
const Vector3 & |
n |
) |
[protected] |
virtual void BALL::VIEW::GeometricControl::setClippingPlaneX |
( |
|
) |
[virtual, slot] |
virtual void BALL::VIEW::GeometricControl::setClippingPlaneY |
( |
|
) |
[virtual, slot] |
virtual void BALL::VIEW::GeometricControl::setClippingPlaneZ |
( |
|
) |
[virtual, slot] |
virtual void BALL::VIEW::GeometricControl::setClippingPosition |
( |
|
) |
[virtual, slot] |
void BALL::VIEW::GeometricControl::showGuestContextMenu |
( |
const QPoint & |
pos |
) |
[protected, virtual, slot] |
void BALL::VIEW::GeometricControl::updateClippingPlanes |
( |
|
) |
|
virtual void BALL::VIEW::GeometricControl::updateRepresentation |
( |
Representation & |
rep |
) |
[virtual] |
virtual void BALL::VIEW::GeometricControl::updateSelection |
( |
|
) |
[virtual, slot] |
Member Data Documentation