SmallChange
1.0.0
A collection of extensions to Coin3D
|
The PickSwitch class is a pick-activated switch node. More...
#include <Inventor/nodes/PickSwitch.h>
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) |
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.
PickSwitch::PickSwitch | ( | void | ) |
Constructor.
|
protectedvirtual |
Destructor.
|
protectedvirtual |
Coin method. Sets node active/inactive based on user interaction.
SoSFInt32 PickSwitch::activeChild |
Specifies which child should be traversed when node is active.
SoSFInt32 PickSwitch::inactiveChild |
Specifies which child should be traversed when node is inactive.
SoSFBool PickSwitch::isActive |
This field is set to TRUE when the switch node is active (selected). When this happens depends on the toggle field.
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.