5#ifndef BALL_VIEW_KERNEL_MESSAGE_H
6#define BALL_VIEW_KERNEL_MESSAGE_H
8#ifndef BALL_VIEW_KERNEL_STAGE_H
12#ifndef BALL_VIEW_KERNEL_COMMON_H
16#include <boost/any.hpp>
23 class ConformationSet;
28 class ConnectionObject;
29 class GeometricObject;
115 boost::any&
data() {
return data_; }
292 { update_representations_ = state;}
296 {
return update_representations_;}
300 { show_selection_infos_ = state;}
304 {
return show_selection_infos_;}
423 SceneMessageType type_;
477 std::list<Composite*> selection_;
541 { selection_ = selection;}
546 {
return selection_;}
560 std::list<GeometricObject*> selection_;
615 {representation_ = &rep;}
619 {
return representation_;}
631 RepresentationMessageType type_;
704 {
return composites_;}
708 {
return model_type_;}
712 {
return coloring_method_;}
715 std::list<Composite*> composites_;
862 conformation_set_ = conformation_set;
880# ifndef BALL_NO_INLINE_FUNCTIONS
881# include <BALL/VIEW/KERNEL/message.iC>
void setDeletable(bool flag=true)
void setSender(const ConnectionObject *sender)
const ConnectionObject * getSender() const
Message(const Message &message)
DatasetMessage(Dataset *set=0, Type type=UNDEFINED)
void setDataset(Dataset *set)
Type
Message type enumeration.
@ SELECTED
Was selected in Control.
@ VISUALIZE_END
Allow >90 different kinds of visualization.
@ UNDEFINED
Default Value.
DatasetMessage(const DatasetMessage &msg)
Dataset * getDataset() const
void setType(CompositeMessageType type)
bool show_selection_infos_
CompositeMessage(const CompositeMessage &message)
Copy constructor.
void setUpdateRepresentations(bool state)
virtual ~CompositeMessage()
Destructor.
CompositeMessageType getType() const
const String & getCompositeName() const
bool updateRepresentations() const
Composite * getComposite() const
void setShowSelectionInfos(bool state)
bool showSelectionInfos()
bool update_representations_
CompositeMessageType type_
void setComposite(const Composite &composite)
CompositeMessage(const Composite &composite, CompositeMessageType type, bool update_representations=true)
void setCompositeName(const String &name)
@ CHANGED_COMPOSITE
Update all datas for a Composite (but not in the MolecularControl)
@ CENTER_CAMERA
center the camera on a composite
@ SELECTED_COMPOSITE
selected a composite (e.g. per checkboxes in MolecularControl)
@ DESELECTED_COMPOSITE
deselected a composite (e.g. per checkboxes in MolecularControl)
@ REMOVED_COMPOSITE
A Composite to be removed.
@ CHANGED_COMPOSITE_HIERARCHY
Update all datas for a composite (also in MolecularControl)
void setStage(Stage stage)
SceneMessageType
Types for SceneMessages.
@ UPDATE_CAMERA
Move the Camera in the Scene to the value in this message.
@ EXPORT_PNG
Export a PNG.
@ EXPORT_POVRAY
Export a POVRay.
@ REBUILD_DISPLAY_LISTS
Rebuild the GLDisplayList objects in the GLRenderer.
@ REMOVE_COORDINATE_SYSTEM
Remove the coordinate system in the Scene.
@ REDRAW
Redraw from the GLDisplayList objects.
@ ENTER_MOVE_MODE
Move Composites or a Clipping Plane.
void setType(SceneMessageType type)
Set the type of the Message.
SceneMessageType getType() const
Get the type of the message.
const Stage & getStage() const
Get the Stage in this message.
SceneMessage(SceneMessageType type=UNDEFINED)
SceneMessage(const SceneMessage &message)
Stage & getStage()
Get the Stage in this message.
virtual ~GenericSelectionMessage()
std::list< Composite * > & getSelection()
GenericSelectionMessage()
const std::list< Composite * > & getSelection() const
GenericSelectionMessage(const GenericSelectionMessage &message)
void setSelection(const std::list< Composite * > &selection)
ControlSelectionMessage()
bool openItems()
Open all SelectableListViewItems, if they have a selected child.
void setOpenItems(bool state)
GeometricObjectSelectionMessage()
void setSelection(const std::list< GeometricObject * > &selection)
bool isSelected() const
Query if the GeometricObject are selected or deselected.
void setSelected(bool state)
Set the GeometricObject's to be selected or deselected.
virtual ~GeometricObjectSelectionMessage()
const std::list< GeometricObject * > & getSelection() const
Base class for all messages concerning a Representation.
RepresentationMessageType
Types of RepresentationMessage.
@ ADD_TO_GEOMETRIC_CONTROL
Add a Representation to GeometricControl, but don't update in Scene.
@ UPDATE
Update the Representation.
@ FINISHED_UPDATE
Finished the update of a Representation.
@ REMOVE
Remove a Representation.
@ SELECTED
Representation was selected in GeometriControl.
@ STARTED_UPDATE
Started the update of a Representation, no changes allowed in GeometricControl.
Representation * getRepresentation()
RepresentationMessageType getType() const
void setType(RepresentationMessageType type)
RepresentationMessage(Representation &rep, RepresentationMessageType type)
void setRepresentation(Representation &rep)
virtual ~RepresentationMessage()
MolecularTaskMessageType
Enum for the different molecular tasks.
MolecularTaskMessageType getType() const
MolecularTaskMessageType type_
MolecularTaskMessage(MolecularTaskMessageType type=UNDEFINED)
void setType(MolecularTaskMessageType type)
ShowDisplayPropertiesMessage()
ColoringMethod getColoringMethod() const
ModelType getModelType() const
CreateRepresentationMessage(const std::list< Composite * > &composites, ModelType model_type, ColoringMethod coloring_method)
CreateRepresentationMessage()
const std::list< Composite * > & getComposites() const
DeselectControlsMessage()
void setMatrix(const Matrix4x4 &m)
TransformationMessage(const Matrix4x4 &m)
const Matrix4x4 & getMatrix() const
FinishedSimulationMessage()
SyncClippingPlanesMessage()
ShowHelpMessage(String url="", String project="BALLView", String entry="")
String getProject() const
void setRegisterMode(bool state)
void setURL(const String &url)
RegisterHelpSystemMessage()
const String & getURL() const
void setObject(const QObject *object)
const QObject * getObject() const
Message to notify docking has finished.
DockingFinishedMessage(bool abort)
void setConformationSet(const ConformationSet *conformation_set)
const ConformationSet * getConformationSet() const
virtual ~DockingFinishedMessage()
const ConformationSet * conformation_set_
this conformation set is deleted in DockResult