com.jme.scene
Interface SwitchModel

All Superinterfaces:
Savable
All Known Implementing Classes:
DistanceSwitchModel

public interface SwitchModel
extends Savable

SwitchModel defines an interface for selection of switch nodes. Implementing classes provide the way to set the selection criteria, as well as define what this criteria is. The interface simply defines a set method that accepts an Object. What is done with the provided object is defined by the implementor. The child that the switch node is to make active should be difined from the getSwitchChild method.

Version:
$Id: SwitchModel.java 4131 2009-03-19 20:15:28Z blaine.dev $
Author:
Mark Powell
See Also:
SwitchNode

Method Summary
 int getSwitchChild()
          getSwitchChild returns the index of the node that should be set active in the SwitchNode.
 void set(java.lang.Object value)
          set provides a generic set method for implementing classes.
 
Methods inherited from interface com.jme.util.export.Savable
getClassTag, read, write
 

Method Detail

getSwitchChild

int getSwitchChild()
getSwitchChild returns the index of the node that should be set active in the SwitchNode.

Returns:
the index of the active child.

set

void set(java.lang.Object value)
set provides a generic set method for implementing classes. The value set can be anything, and it is the responsibility of the implementing to define what this method will do for the particular implementation.

Parameters:
value - the value to set.