SmallChange  1.0.0
A collection of extensions to Coin3D
Loading...
Searching...
No Matches
PickSwitch Class Reference

The PickSwitch class is a pick-activated switch node. More...

#include <Inventor/nodes/PickSwitch.h>

Inheritance diagram for PickSwitch:
SoSwitch

Public Member Functions

 PickSwitch (void)
 

Static Public Member Functions

static void initClass (void)
 

Public Attributes

SoSFInt32 activeChild
 
SoSFInt32 inactiveChild
 
SoSFBool isActive
 
SoSFBool toggle
 

Protected Member Functions

virtual ~PickSwitch ()
 
virtual void handleEvent (SoHandleEventAction *action)
 

Detailed Description

The PickSwitch class is a pick-activated switch node.

This node can add simple interactivity to your scene. When the current child is picked, the whichChild field is changed to the active or inactive child. It can operate in two modes. If the toggle field is set to TRUE, the active/inactive state is changed each time the child is picked. If toggle is FALSE, the active child is the current child only when the some child is selected and the mouse button is down. As soon as the mouse button is released, the switch node becomes inactive again.

Constructor & Destructor Documentation

◆ PickSwitch()

PickSwitch::PickSwitch ( void )

Constructor.

◆ ~PickSwitch()

PickSwitch::~PickSwitch ( )
protectedvirtual

Destructor.

Member Function Documentation

◆ handleEvent()

void PickSwitch::handleEvent ( SoHandleEventAction * action)
protectedvirtual

Coin method. Sets node active/inactive based on user interaction.

◆ initClass()

void PickSwitch::initClass ( void )
static

Required Coin method.

Member Data Documentation

◆ activeChild

SoSFInt32 PickSwitch::activeChild

Specifies which child should be traversed when node is active.

◆ inactiveChild

SoSFInt32 PickSwitch::inactiveChild

Specifies which child should be traversed when node is inactive.

◆ isActive

SoSFBool PickSwitch::isActive

This field is set to TRUE when the switch node is active (selected). When this happens depends on the toggle field.

◆ toggle

SoSFBool PickSwitch::toggle

Set to TRUE to toggle active/inactive for each pick. When this field is FALSE, the node is active only while some child is selected and the mouse button is down.


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