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. More...
 
void push (SoState *state) override
 Copies coordinator from previous element in push, remembers number of mappers. More...
 
void pop (SoState *state, const SoElement *prevTopElement) override
 Restores initial number of mappers in the coordinator/. More...
 
SbBool matches (const SoElement *elt) const override
 Always returns TRUE, since this element should never be a criterion for cache invalidation. More...
 
SoElement * copyMatchInfo () const override
 Creates and returns a copy of this element. More...
 

Static Public Member Functions

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

Protected Member Functions

 ~SoInteractionCoordinatorElement () override=default
 

Protected Attributes

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

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: