com.jme.scene
Interface SwitchModel

All Known Implementing Classes:
DistanceSwitchModel

public interface SwitchModel

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,v 1.4 2004/09/14 21:52:12 mojomonkey Exp $
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.
 

Method Detail

getSwitchChild

public 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

public 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.