MeVisLab Toolbox Reference
SoInteractionCoordinatorElement Class Reference

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

#include <SoInteractionCoordinatorElement.h>

Inheritance diagram for SoInteractionCoordinatorElement:

Public Member Functions

void init (SoState *state) override
 Initializes this element.
 
void push (SoState *state) override
 Copies coordinator from previous element in push, remembers number of mappers.
 
void pop (SoState *state, const SoElement *prevTopElement) override
 Restores initial number of mappers in the coordinator/.
 
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
 Creates and returns a copy of this element.
 

Static Public Member Functions

static void set (SoState *state, SoInteractionCoordinator *coordinator)
 Sets the coordinator.
 
static void addMapper (SoState *state, SoInteractionMapper *mapper)
 Adds a new interaction mapper to current coordinator.
 
static SoInteractionCoordinatorget (SoState *state)
 Returns the coordinator (might be NULL!).
 
static void initClass ()
 Initializes the SoViewerElement class.
 

Protected Member Functions

 ~SoInteractionCoordinatorElement () override=default
 

Protected Attributes

SoInteractionCoordinator_coordinator {}
 Pointer to the proxy for the active viewer.
 
size_t _mapperCount {}
 Remember initial number of mappers set on the coordinator (needed for pop operation).
 

Detailed Description

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

Definition at line 31 of file SoInteractionCoordinatorElement.h.

Constructor & Destructor Documentation

◆ ~SoInteractionCoordinatorElement()

SoInteractionCoordinatorElement::~SoInteractionCoordinatorElement ( )
overrideprotecteddefault

Member Function Documentation

◆ addMapper()

static void SoInteractionCoordinatorElement::addMapper ( SoState * state,
SoInteractionMapper * mapper )
static

Adds a new interaction mapper to current coordinator.

◆ copyMatchInfo()

SoElement * SoInteractionCoordinatorElement::copyMatchInfo ( ) const
override

Creates and returns a copy of this element.

◆ get()

static SoInteractionCoordinator * SoInteractionCoordinatorElement::get ( SoState * state)
static

Returns the coordinator (might be NULL!).

◆ init()

void SoInteractionCoordinatorElement::init ( SoState * state)
override

Initializes this element.

◆ initClass()

static void SoInteractionCoordinatorElement::initClass ( )
static

Initializes the SoViewerElement class.

◆ matches()

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

Always returns TRUE, since this element should never be a criterion for cache invalidation.

◆ pop()

void SoInteractionCoordinatorElement::pop ( SoState * state,
const SoElement * prevTopElement )
override

Restores initial number of mappers in the coordinator/.

◆ push()

void SoInteractionCoordinatorElement::push ( SoState * state)
override

Copies coordinator from previous element in push, remembers number of mappers.

◆ set()

static void SoInteractionCoordinatorElement::set ( SoState * state,
SoInteractionCoordinator * coordinator )
static

Sets the coordinator.

Member Data Documentation

◆ _coordinator

SoInteractionCoordinator* SoInteractionCoordinatorElement::_coordinator {}
protected

Pointer to the proxy for the active viewer.

Definition at line 66 of file SoInteractionCoordinatorElement.h.

◆ _mapperCount

size_t SoInteractionCoordinatorElement::_mapperCount {}
protected

Remember initial number of mappers set on the coordinator (needed for pop operation).

Definition at line 70 of file SoInteractionCoordinatorElement.h.


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