CMS 3D CMS Logo

IgSelectionMessage Class Reference

A message notifying that an object has been selected in a browser. More...

#include <Iguana/Framework/interface/IgSelectionMessage.h>

List of all members.

Public Member Functions

IgRepContextcontext (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

IgRepContextm_context
 The IgRep of the selected object.


Detailed Description

A message notifying that an object has been selected in a browser.

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.


Constructor & Destructor Documentation

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 {}


Member Function Documentation

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; }


Member Data Documentation

IgRepContext* IgSelectionMessage::m_context [private]

The IgRep of the selected object.

Definition at line 42 of file IgSelectionMessage.h.

Referenced by context().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:25:38 2009 for CMSSW by  doxygen 1.5.4