com.jmex.effects.transients
Class Transient

java.lang.Object
  extended by com.jme.scene.Spatial
      extended by com.jme.scene.Node
          extended by com.jmex.effects.transients.Transient
All Implemented Interfaces:
Savable, java.io.Serializable
Direct Known Subclasses:
FadeInOut

public abstract class Transient
extends Node

A Transient is a node that has "stages" in its life. The stages are set by the extended classes, as well as what going from one stage to another means.

Author:
Ahmed, Jack Lindamood (javadoc only)
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jme.scene.Spatial
Spatial.CullHint, Spatial.LightCombineMode, Spatial.NormalsMode, Spatial.TextureCombineMode
 
Field Summary
 
Fields inherited from class com.jme.scene.Node
children
 
Fields inherited from class com.jme.scene.Spatial
cullHint, frustrumIntersects, geometricalControllers, isCollidable, lightCombineMode, localRotation, localScale, localTranslation, LOCKED_BOUNDS, LOCKED_BRANCH, LOCKED_MESH_DATA, LOCKED_NONE, LOCKED_SHADOWS, LOCKED_TRANSFORMS, lockedMode, name, normalsMode, parent, queueDistance, renderQueueMode, renderStateList, textureCombineMode, worldBound, worldRotation, worldScale, worldTranslation, zOrder
 
Constructor Summary
Transient(java.lang.String name)
          Creates a Transient Node.
 
Method Summary
 int getCurrentStage()
          Returns the current stage of this node.
 int getMaxNumOfStages()
          Returns the maximum number of stages for this node.
 void setCurrentStage(int s)
          Sets the current stage to the integer given.
 void setMaxNumOfStages(int s)
          Sets the maximum number of stages for this node.
 
Methods inherited from class com.jme.scene.Node
applyRenderState, attachChild, attachChildAt, childChange, detachAllChildren, detachChild, detachChildAt, detachChildNamed, draw, findCollisions, findPick, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, hasCollision, lockBounds, lockMeshes, lockShadows, lockTransforms, read, setModelBound, sortLights, swapChildren, unlockBounds, unlockMeshes, unlockShadows, unlockTransforms, updateModelBound, updateWorldBound, updateWorldData, updateWorldVectors, write
 
Methods inherited from class com.jme.scene.Spatial
addController, calculateCollisions, calculatePick, clearControllers, clearRenderState, clearRenderState, getClassTag, getController, getControllerCount, getControllers, getCullHint, getLastFrustumIntersection, getLightCombineMode, getLocalCullHint, getLocalLightCombineMode, getLocalNormalsMode, getLocalRenderQueueMode, getLocalRotation, getLocalScale, getLocalTextureCombineMode, getLocalToWorldMatrix, getLocalTranslation, getLocks, getName, getNormalsMode, getParent, getRenderQueueMode, getRenderState, getRenderState, getTextureCombineMode, getUserData, getWorldBound, getWorldRotation, getWorldScale, getWorldTranslation, getZOrder, hasAncestor, isCollidable, localToWorld, lock, lock, lockBranch, lockMeshes, lookAt, onDraw, propagateBoundToRoot, propagateStatesFromRoot, removeController, removeController, removeFromParent, removeUserData, rotateUpTo, setCullHint, setIsCollidable, setLastFrustumIntersection, setLightCombineMode, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalTranslation, setLocalTranslation, setLocks, setLocks, setName, setNormalsMode, setParent, setRenderQueueMode, setRenderState, setTextureCombineMode, setUserData, setZOrder, setZOrder, toString, unlock, unlock, unlockBranch, unlockMeshes, updateGeometricState, updateRenderState, updateRenderState, updateWorldRotation, updateWorldScale, updateWorldTranslation, updateWorldVectors, worldToLocal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.jme.util.export.Savable
getClassTag
 

Constructor Detail

Transient

public Transient(java.lang.String name)
Creates a Transient Node. Nothing is intialized by default.

Parameters:
name - The name of the node.
Method Detail

getMaxNumOfStages

public int getMaxNumOfStages()
Returns the maximum number of stages for this node.

Returns:
The maximum number of stages for this node.

setMaxNumOfStages

public void setMaxNumOfStages(int s)
Sets the maximum number of stages for this node.

Parameters:
s - The new maximum number of stages.

getCurrentStage

public int getCurrentStage()
Returns the current stage of this node. Should be between 0 maximum number of stages.

Returns:
The current stage.

setCurrentStage

public void setCurrentStage(int s)
Sets the current stage to the integer given. If the current stage value is greater than the maximum number of stages allowed, then it is trimmed to simply be the maximum number of stages.

Parameters:
s - The new current stage.