|
BALL
1.4.2
|
#include <BALL/VIEW/KERNEL/message.h>
Public Types | |
| enum | CompositeMessageType { UNDEFINED = -1, NEW_COMPOSITE, REMOVED_COMPOSITE, CHANGED_COMPOSITE, CHANGED_COMPOSITE_HIERARCHY, SELECTED_COMPOSITE, DESELECTED_COMPOSITE, CENTER_CAMERA, NEW_MOLECULE } |
Public Member Functions | |
Constructors and Destructors | |
| CompositeMessage () | |
| CompositeMessage (const Composite &composite, CompositeMessageType type, bool update_representations=true) | |
| CompositeMessage (const CompositeMessage &message) | |
| Copy constructor. More... | |
| virtual | ~CompositeMessage () |
| Destructor. More... | |
Accessors: inspectors and mutators | |
| void | setComposite (const Composite &composite) |
| Composite * | getComposite () const |
| void | setCompositeName (const String &name) |
| const String & | getCompositeName () const |
| void | setType (CompositeMessageType type) |
| CompositeMessageType | getType () const |
| void | setUpdateRepresentations (bool state) |
| bool | updateRepresentations () const |
| void | setShowSelectionInfos (bool state) |
| bool | showSelectionInfos () |
Public Member Functions inherited from BALL::VIEW::Message | |
| Message () | |
| Message (const Message &message) | |
| virtual | ~Message () |
| void | setSender (const ConnectionObject *sender) |
| const ConnectionObject * | getSender () const |
| void | setDeletable (bool flag=true) |
| bool | isDeletable () const |
| boost::any & | data () |
Protected Attributes | |
| CompositeMessageType | type_ |
| Composite * | composite_ |
| String | composite_name_ |
| bool | update_representations_ |
| bool | show_selection_infos_ |
CompositeMessage is the base class of all messages concerning the change of one Composite. With it ConnectionObject can notify and react to Composite changes.
| Enumerator | |
|---|---|
| UNDEFINED |
Undefinded (default) type. |
| NEW_COMPOSITE |
A new composite to be added MolecularStructure will add bonds, normalize names and send a msg with type NEW_MOLECULE afterwards. |
| REMOVED_COMPOSITE |
A Composite to be removed. |
| CHANGED_COMPOSITE |
Update all datas for a Composite (but not in the MolecularControl) |
| CHANGED_COMPOSITE_HIERARCHY |
Update all datas for a composite (also in MolecularControl) |
| SELECTED_COMPOSITE |
selected a composite (e.g. per checkboxes in MolecularControl) |
| DESELECTED_COMPOSITE |
deselected a composite (e.g. per checkboxes in MolecularControl) |
| CENTER_CAMERA |
center the camera on a composite |
| NEW_MOLECULE |
MolecularControl will add the Composite. DisplayProperties will create a Representation |
| BALL::VIEW::CompositeMessage::CompositeMessage | ( | ) |
Default Constructor. The state is set to:
| BALL::VIEW::CompositeMessage::CompositeMessage | ( | const Composite & | composite, |
| CompositeMessageType | type, | ||
| bool | update_representations = true |
||
| ) |
| BALL::VIEW::CompositeMessage::CompositeMessage | ( | const CompositeMessage & | message | ) |
Copy constructor.
|
virtual |
Destructor.
| Composite* BALL::VIEW::CompositeMessage::getComposite | ( | ) | const |
Inspection of the composite.
| const String& BALL::VIEW::CompositeMessage::getCompositeName | ( | ) | const |
Inspection of the name of the composite.
|
inline |
| void BALL::VIEW::CompositeMessage::setComposite | ( | const Composite & | composite | ) |
Change the composite.
| void BALL::VIEW::CompositeMessage::setCompositeName | ( | const String & | name | ) |
Change the name of the composite.
| name | the new name of the composite of this compositeMessage |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.3.1