BALL
1.4.2
|
#include <BALL/VIEW/KERNEL/message.h>
Public Types | |
enum | Type { UNDEFINED = -1, ADD = 0, REMOVE, UPDATE, SELECTED, VISUALIZE, VISUALIZE_END = 100 } |
Message type enumeration. More... | |
Public Member Functions | |
DatasetMessage (Dataset *set=0, Type type=UNDEFINED) | |
DatasetMessage (const DatasetMessage &msg) | |
Type | getType () const |
void | setType (Type type) |
Dataset * | getDataset () const |
void | setDataset (Dataset *set) |
bool | isValid () const |
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 | |
Dataset * | dataset_ |
Type | type_ |
String | dataset_type_ |
Message to notify about changes in a Dataset. This message can be e.g. used to notify all ModularWidget about a new DockResult, Trajectory or any other kind of dataset. The Dataset contains the information on the kind of data it contains. The receiving widget thus has to query the type of the message and the the type of the Dataset.
BALL::VIEW::DatasetMessage::DatasetMessage | ( | const DatasetMessage & | msg | ) |
|
inline |
bool BALL::VIEW::DatasetMessage::isValid | ( | ) | const |
|
inline |
|
inline |
|
protected |