#include <Iguana/Framework/interface/IgSelectionMessage.h>
Public Member Functions | |
IgRepContext * | context (void) const |
Get the context of the IgRep that originates this message. | |
IgSelectionMessage (IgRepContext *selection) | |
Get the context of the IgRep that originates this message. | |
Private Attributes | |
IgRepContext * | m_context |
The IgRep of the selected object. |
The IgRepContext carried by the message points to the IgRep that originated the event or null if the current selection was cleared. The observers can use it to figure out which object was selected and find (or create) their own representations for that object. Start traversal from this IgRep to look for other representations, or create a new one if no suitable one exists. (Usually it is simplest to just pass the context to the appropriate IgRepSet::lookup() method.)
Definition at line 28 of file IgSelectionMessage.h.
IgSelectionMessage::IgSelectionMessage | ( | IgRepContext * | context | ) | [inline] |
Get the context of the IgRep that originates this message.
Definition at line 50 of file IgSelectionMessage.h.
00051 : m_context (context) 00052 {}
IgRepContext * IgSelectionMessage::context | ( | void | ) | const [inline] |
Get the context of the IgRep that originates this message.
Definition at line 56 of file IgSelectionMessage.h.
References m_context.
Referenced by Ig3DBaseBrowser::selectMessage(), IgQtTextBrowser::selectMessage(), IgQtTwigBrowser::selectMessage(), VisRootBrowser::selectMessage(), and IgQtTreeBrowser::selectMessage().
00057 { return m_context; }
IgRepContext* IgSelectionMessage::m_context [private] |
The IgRep of the selected object.
Definition at line 42 of file IgSelectionMessage.h.
Referenced by context().