Class dnx.lr.node.DNXBooleanIntConversionNode
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dnx.lr.node.DNXBooleanIntConversionNode

java.lang.Object
   |
   +----dnx.util.DNXObject
           |
           +----dnx.lr.Node
                   |
                   +----dnx.lr.LeafNode
                           |
                           +----dnx.lr.node.DNXBooleanIntConversionNode

public class DNXBooleanIntConversionNode
extends LeafNode
 DNXBooleanIntConversion {
    exposedField SFInt32      trueValue       0
    exposedField SFInt32      falseValue      -1
    eventIn      SFBool       set_SFBool      
    eventOut     SFInt32      SFInt32_changed 
    eventIn      SFInt32      set_SFInt32     
    eventOut     SFBool       SFBool_changed  
 }

This is a custom node specific to the Dimension X browser. In order to use it, you must specify an EXTERNPROTO, like this:

 EXTERNPROTO DNXBooleanIntConversion [
                         exposedField SFInt32     trueValue
                         exposedField SFInt32     falseValue
                         eventIn      SFBool      set_SFBool
                         eventOut     SFInt32     SFInt32_changed
                         eventIn      SFInt32     set_SFInt32
                         eventOut     SFBool      SFBool_changed
                       ]
 "urn:inet:dnx.com:lrnode:dnx.lr.node.DNXBooleanIntConversionNode"
 

The DNXBooleanIntConversion node converts between integral and boolean values. When an event is received into set_SFBool, the value specified in trueValue or falseValue (depending on the value received) will be sent out of SFInt32_changed. When an event is received into set_SFInt32, either true (if the value is not 0) or false (if the value is 0) will be sent out of SFBool_changed.

The default conversion values are useful for enabling or disabling a Switch node.


Variable Index

 o falseValue
 o SFBool_changed
 o SFInt32_changed
 o trueValue

Constructor Index

 o DNXBooleanIntConversionNode()

Method Index

 o createNodeDefinition(NodeDefinition)
Create the node definition.
 o handleEvent(SceneEvent)
Handle an event.
 o initFields()
Initialize field values.

Variables

 o trueValue
  public SFInt32 trueValue
 o falseValue
  public SFInt32 falseValue
 o SFInt32_changed
  public SFInt32 SFInt32_changed
 o SFBool_changed
  public SFBool SFBool_changed

Constructors

 o DNXBooleanIntConversionNode
  public DNXBooleanIntConversionNode()

Methods

 o createNodeDefinition
  protected void createNodeDefinition(NodeDefinition def)
Create the node definition.
Overrides:
createNodeDefinition in class Node
 o initFields
  protected void initFields()
Initialize field values.
Overrides:
initFields in class Node
 o handleEvent
  protected void handleEvent(SceneEvent ev)
Handle an event.
Overrides:
handleEvent in class Node

All Packages  Class Hierarchy  This Package  Previous  Next  Index