MeVisLab Toolbox Reference
SoViewerElement Class Reference

Element that stores a proxy object to the currently active viewer. More...

#include <SoViewerElement.h>

Inheritance diagram for SoViewerElement:

Public Member Functions

void init (SoState *state) override
 Initializes this element.
SbBool matches (const SoElement *elt) const override
SoElement * copyMatchInfo () const override
 Creates and returns 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 SoViewerProxyget (SoState *state)
 Returns the proxy for the currently active viewer, which might be NULL.
static void setCursor (SoState *state, int shapeID)
static double getDevicePixelRatio (SoState *state)
static void setViewerProxyCB (void *userData, SoAction *action)
static void initClass ()
 Initializes the SoViewerElement class.

Protected Member Functions

 ~SoViewerElement () override

Protected Attributes

SoViewerProxy_proxy
 Pointer to the proxy for the active viewer.

Detailed Description

Element that stores a proxy object to the currently active viewer.

Definition at line 28 of file SoViewerElement.h.

Constructor & Destructor Documentation

◆ ~SoViewerElement()

SoViewerElement::~SoViewerElement ( )
overrideprotected

Member Function Documentation

◆ copyMatchInfo()

SoElement * SoViewerElement::copyMatchInfo ( ) const
override

Creates and returns a copy of this element.

◆ get()

SoViewerProxy * SoViewerElement::get ( SoState * state)
static

Returns the proxy for the currently active viewer, which might be NULL.

◆ init()

void SoViewerElement::init ( SoState * state)
override

Initializes this element.

◆ initClass()

void SoViewerElement::initClass ( )
static

Initializes the SoViewerElement class.

◆ matches()

SbBool SoViewerElement::matches ( const SoElement * elt) const
override

Always returns true, as this element should never be a criterion for cache invalidation.

◆ set()

void SoViewerElement::set ( SoState * state,
SoViewerProxy * proxy )
static

Sets the proxy for the currently active viewer.

◆ setCursor()

void SoViewerElement::setCursor ( SoState * state,
int shapeID )
static

Convenience method which calls the corresponding method of SoViewerProxy. It does nothing if the proxy is NULL.

◆ setViewerProxyCB()

void SoViewerElement::setViewerProxyCB ( void * userData,
SoAction * action )
static

This callback can be used with SoCallback nodes and simply sets the SoViewerProxy given as userData.

Member Data Documentation

◆ _proxy

SoViewerProxy* SoViewerElement::_proxy
protected

Pointer to the proxy for the active viewer.

Definition at line 67 of file SoViewerElement.h.


The documentation for this class was generated from the following file: