Package com.ardor3d.scenegraph.extension
Class SwitchNode
java.lang.Object
com.ardor3d.scenegraph.Spatial
com.ardor3d.scenegraph.Node
com.ardor3d.scenegraph.extension.SwitchNode
-
Field Summary
Fields inherited from class com.ardor3d.scenegraph.Spatial
_controllers, _delegateMap, _dirtyMark, _frustumIntersects, _listener, _localTransform, _name, _parent, _queueDistance, _renderStateList, _sceneHints, _userData, _worldBound, _worldTransform, ON_DIRTY_ATTACHED, ON_DIRTY_BOUNDING, ON_DIRTY_RENDERSTATE, ON_DIRTY_TRANSFORM, ON_DIRTY_TRANSFORM_ONLY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
calls the onDraw method for each child maintained by this node.void
void
flipVisible
(int bitIndex) void
flipVisible
(int fromIndex, int toIndex) int
getNextNonVisible
(int fromIndex) int
getNextVisible
(int fromIndex) boolean
getVisible
(int bitIndex) void
void
void
setSingleVisible
(int bitIndex) void
setVisible
(int bitIndex, boolean value) void
setVisible
(int fromIndex, int toIndex, boolean value) void
setVisible
(BitSet set) void
void
protected void
updateChildren
(double time) Override to allow objects like Node to update their children.Methods inherited from class com.ardor3d.scenegraph.Node
acceptVisitor, attachChild, attachChildAt, detachAllChildren, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getClassTag, getNumberOfChildren, hasChild, makeCopy, makeInstanced, propagateDirtyDown, read, sortLights, swapChildren, updateWorldBound, updateWorldRenderStates, updateWorldTransform, write
Methods inherited from class com.ardor3d.scenegraph.Spatial
addController, addTranslation, addTranslation, applyWorldRenderStates, clearControllers, clearDirty, clearDirty, clearRenderState, getController, getControllerCount, getControllers, getCurrentRenderDelegate, getLastFrustumIntersection, getListener, getLocalLastFrustumIntersection, getLocalRenderState, getLocalRenderStates, getName, getParent, getParentHintable, getRenderDelegate, getRotation, getScale, getSceneHints, getTransform, getTranslation, getUserData, getWorldBound, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, isDirty, localToWorld, markDirty, markDirty, onDraw, propagateBoundToRoot, propagateDirtyUp, propagateStatesFromRoot, propageEventUp, removeController, removeController, removeFromParent, setLastFrustumIntersection, setListener, setName, setParent, setRenderDelegate, setRenderState, setRotation, setRotation, setScale, setScale, setScale, setTransform, setTranslation, setTranslation, setUserData, setWorldRotation, setWorldRotation, setWorldScale, setWorldScale, setWorldScale, setWorldTransform, setWorldTranslation, setWorldTranslation, toString, updateControllers, updateGeometricState, updateGeometricState, updateWorldRenderStates, worldToLocal
-
Field Details
-
_childMask
-
-
Constructor Details
-
SwitchNode
public SwitchNode() -
SwitchNode
-
-
Method Details
-
draw
Description copied from class:Node
draw
calls the onDraw method for each child maintained by this node. -
updateChildren
protected void updateChildren(double time) Description copied from class:Spatial
Override to allow objects like Node to update their children.- Overrides:
updateChildren
in classNode
- Parameters:
time
- The time in seconds between the last two consecutive frames (time per frame). SeeReadOnlyTimer.getTimePerFrame()
-
setAllNonVisible
public void setAllNonVisible() -
setAllVisible
public void setAllVisible() -
flipAllVisible
public void flipAllVisible() -
getVisible
public boolean getVisible(int bitIndex) -
getVisible
-
setVisible
-
setVisible
public void setVisible(int bitIndex, boolean value) -
setVisible
public void setVisible(int fromIndex, int toIndex, boolean value) -
setSingleVisible
public void setSingleVisible(int bitIndex) -
getNextNonVisible
public int getNextNonVisible(int fromIndex) -
getNextVisible
public int getNextVisible(int fromIndex) -
shiftVisibleRight
public void shiftVisibleRight() -
shiftVisibleLeft
public void shiftVisibleLeft() -
flipVisible
public void flipVisible(int fromIndex, int toIndex) -
flipVisible
public void flipVisible(int bitIndex)
-