MeVisLabToolboxReference
|
Element that stores a proxy object to the currently active viewer. More...
#include <SoViewerElement.h>
Public Member Functions | |
virtual void | init (SoState *state) |
Initializes element. | |
virtual SbBool | matches (const SoElement *elt) const |
Always returns TRUE, since this element should never be a criterion for cache invalidation. | |
virtual SoElement * | copyMatchInfo () const |
Create and return a copy of this element. | |
Static Public Member Functions | |
static void | set (SoState *state, SoViewerProxy *proxy) |
Sets the proxy for the currently active viewer. | |
static SoViewerProxy * | get (SoState *state) |
Returns the proxy for the currently active viewer (might be NULL!) | |
static void | setCursor (SoState *state, int shapeID) |
Convenience method which calls the corresponding method of the SoViewerProxy (or does nothing if the proxy is NULL) | |
static void | setViewerProxyCB (void *userData, SoAction *action) |
this callback can be used with SoCallback nodes and simply sets the SoViewerProxy given as userData | |
static void | initClass () |
Initializes the SoViewerElement class. | |
Protected Member Functions | |
virtual | ~SoViewerElement () |
Protected Attributes | |
SoViewerProxy * | _proxy |
Pointer to the proxy for the active viewer. |
Element that stores a proxy object to the currently active viewer.
Definition at line 28 of file SoViewerElement.h.
virtual SoViewerElement::~SoViewerElement | ( | ) | [protected, virtual] |
virtual SoElement* SoViewerElement::copyMatchInfo | ( | ) | const [virtual] |
Create and return a copy of this element.
static SoViewerProxy* SoViewerElement::get | ( | SoState * | state | ) | [static] |
Returns the proxy for the currently active viewer (might be NULL!)
virtual void SoViewerElement::init | ( | SoState * | state | ) | [virtual] |
Initializes element.
static void SoViewerElement::initClass | ( | ) | [static] |
Initializes the SoViewerElement class.
virtual SbBool SoViewerElement::matches | ( | const SoElement * | elt | ) | const [virtual] |
Always returns TRUE, since this element should never be a criterion for cache invalidation.
static void SoViewerElement::set | ( | SoState * | state, |
SoViewerProxy * | proxy | ||
) | [static] |
Sets the proxy for the currently active viewer.
static void SoViewerElement::setCursor | ( | SoState * | state, |
int | shapeID | ||
) | [static] |
Convenience method which calls the corresponding method of the SoViewerProxy (or does nothing if the proxy is NULL)
static void SoViewerElement::setViewerProxyCB | ( | void * | userData, |
SoAction * | action | ||
) | [static] |
this callback can be used with SoCallback nodes and simply sets the SoViewerProxy given as userData
SoViewerProxy* SoViewerElement::_proxy [protected] |
Pointer to the proxy for the active viewer.
Definition at line 63 of file SoViewerElement.h.