Go to the documentation of this file.
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>
886 #endif // BALL_VIEW_KERNEL_MESSAGE_H
Composite * getComposite() const
void setUpdateRepresentations(bool state)
void setOpenItems(bool state)
bool openItems()
Open all SelectableListViewItems, if they have a selected child.
@ ENTER_MOVE_MODE
Move Composites or a Clipping Plane.
void setType(SceneMessageType type)
Set the type of the Message.
SceneMessage(const SceneMessage &message)
const String & getURL() const
@ DESELECTED_COMPOSITE
deselected a composite (e.g. per checkboxes in MolecularControl)
bool updateRepresentations() const
DockingFinishedMessage(bool abort)
@ SELECTED
Was selected in Control.
ModelType getModelType() const
ColoringMethod getColoringMethod() const
CompositeMessageType getType() const
void setConformationSet(const ConformationSet *conformation_set)
@ EXPORT_PNG
Export a PNG.
@ REMOVED_COMPOSITE
A Composite to be removed.
@ UPDATE_CAMERA
Move the Camera in the Scene to the value in this message.
void setSelection(const std::list< Composite * > &selection)
@ SELECTED_COMPOSITE
selected a composite (e.g. per checkboxes in MolecularControl)
void setCompositeName(const String &name)
CreateRepresentationMessage()
MolecularTaskMessageType getType() const
SceneMessageType
Types for SceneMessages.
const std::list< GeometricObject * > & getSelection() const
@ UNDEFINED
Default Value.
void setStage(Stage stage)
const QObject * getObject() const
virtual ~GenericSelectionMessage()
const String & getCompositeName() const
virtual ~CompositeMessage()
Destructor.
CreateRepresentationMessage(const std::list< Composite * > &composites, ModelType model_type, ColoringMethod coloring_method)
@ CENTER_CAMERA
center the camera on a composite
void setSelected(bool state)
Set the GeometricObject's to be selected or deselected.
SceneMessageType getType() const
Get the type of the message.
const std::list< Composite * > & getSelection() const
Message to notify docking has finished.
RepresentationMessageType
Types of RepresentationMessage.
SyncClippingPlanesMessage()
RepresentationMessageType getType() const
@ FINISHED_UPDATE
Finished the update of a Representation.
CompositeMessage(const CompositeMessage &message)
Copy constructor.
@ STARTED_UPDATE
Started the update of a Representation, no changes allowed in GeometricControl.
void setShowSelectionInfos(bool state)
RepresentationMessage(Representation &rep, RepresentationMessageType type)
SceneMessage(SceneMessageType type=UNDEFINED)
bool showSelectionInfos()
MolecularTaskMessageType type_
void setType(RepresentationMessageType type)
bool show_selection_infos_
@ EXPORT_POVRAY
Export a POVRay.
@ REDRAW
Redraw from the GLDisplayList objects.
RegisterHelpSystemMessage()
Representation * getRepresentation()
void setType(CompositeMessageType type)
bool update_representations_
DeselectControlsMessage()
FinishedSimulationMessage()
@ REMOVE_COORDINATE_SYSTEM
Remove the coordinate system in the Scene.
Base class for all messages concerning a Representation.
virtual ~RepresentationMessage()
@ CHANGED_COMPOSITE_HIERARCHY
Update all datas for a composite (also in MolecularControl)
TransformationMessage(const Matrix4x4 &m)
void setObject(const QObject *object)
const Stage & getStage() const
Get the Stage in this message.
void setURL(const String &url)
void setSelection(const std::list< GeometricObject * > &selection)
void setDataset(Dataset *set)
CompositeMessage(const Composite &composite, CompositeMessageType type, bool update_representations=true)
void setSender(const ConnectionObject *sender)
DatasetMessage(const DatasetMessage &msg)
Message(const Message &message)
@ REMOVE
Remove a Representation.
bool isSelected() const
Query if the GeometricObject are selected or deselected.
const ConformationSet * getConformationSet() const
MolecularTaskMessage(MolecularTaskMessageType type=UNDEFINED)
Dataset * getDataset() const
GenericSelectionMessage()
@ ADD_TO_GEOMETRIC_CONTROL
Add a Representation to GeometricControl, but don't update in Scene.
ShowDisplayPropertiesMessage()
GenericSelectionMessage(const GenericSelectionMessage &message)
DatasetMessage(Dataset *set=0, Type type=UNDEFINED)
Stage & getStage()
Get the Stage in this message.
void setRegisterMode(bool state)
void setMatrix(const Matrix4x4 &m)
virtual ~GeometricObjectSelectionMessage()
ShowHelpMessage(String url="", String project="BALLView", String entry="")
CompositeMessageType type_
void setType(MolecularTaskMessageType type)
const std::list< Composite * > & getComposites() const
const ConformationSet * conformation_set_
this conformation set is deleted in DockResult
Type
Message type enumeration.
void setDeletable(bool flag=true)
@ REBUILD_DISPLAY_LISTS
Rebuild the GLDisplayList objects in the GLRenderer.
std::list< Composite * > & getSelection()
void setRepresentation(Representation &rep)
@ SELECTED
Representation was selected in GeometriControl.
const Matrix4x4 & getMatrix() const
void setComposite(const Composite &composite)
@ CHANGED_COMPOSITE
Update all datas for a Composite (but not in the MolecularControl)
String getProject() const
@ UPDATE
Update the Representation.
const ConnectionObject * getSender() const
ControlSelectionMessage()
MolecularTaskMessageType
Enum for the different molecular tasks.
GeometricObjectSelectionMessage()
virtual ~DockingFinishedMessage()
@ VISUALIZE_END
Allow >90 different kinds of visualization.