MeVisLab Toolbox Reference
|
Element that stores a proxy object to the currently active viewer. More...
#include <SoViewerElement.h>
Public Member Functions | |
void | init (SoState *state) override |
Initializes element. | |
SbBool | matches (const SoElement *elt) const override |
Always returns TRUE, since this element should never be a criterion for cache invalidation. | |
SoElement * | copyMatchInfo () const override |
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 SoViewerProxy (or does nothing if the proxy is NULL) | |
static double | getDevicePixelRatio (SoState *state) |
Convenience method which calls the corresponding method of SoViewerProxy. | |
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 | |
~SoViewerElement () override | |
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.
|
overrideprotected |
|
override |
Create and return a copy of this element.
|
static |
Returns the proxy for the currently active viewer (might be NULL!)
Initializes the SoViewerElement class.
Always returns TRUE, since this element should never be a criterion for cache invalidation.
|
static |
Sets the proxy for the currently active viewer.
Convenience method which calls the corresponding method of SoViewerProxy (or does nothing if the proxy is NULL)
this callback can be used with SoCallback nodes and simply sets the SoViewerProxy given as userData
|
protected |
Pointer to the proxy for the active viewer.
Definition at line 67 of file SoViewerElement.h.