public class MaskedSwitch extends Group
If the mask has less entries then the children list the unspecified children will not be displayed.
childList, cullList, dirtyBoundsCount, lastChild, pickableList, pickFlags, wkVec1, wkVec2bounds, implicitBounds, INVALID_BOUNDS, parentalive, LISTENER_SET_TIMING_ERR_PROP, updateHandlerCOLLIDABLE_OBJECT, GENERAL_OBJECT, PROXIMITY_OBJECT, VISIBLE_OBJECTCUSTOM_PICK_TYPE, GROUP_PICK_TYPE, LEAF_PICK_TYPE, SINGLE_PICK_TYPE| Constructor and Description |
|---|
MaskedSwitch()
The default constructor.
|
MaskedSwitch(boolean[] mask)
Constructor with mask specified.
|
| Modifier and Type | Method and Description |
|---|---|
Cullable[] |
getCullableChildren()
Get the list of children that are valid to be rendered according to
the rules of the grouping node.
|
void |
getMask(boolean[] mask)
Get the current mask.
|
int |
getMaskLength()
Request the current length of the mask set.
|
int |
numCullableChildren()
Returns the number of valid renderable children to process.
|
protected void |
recomputeBounds()
Internal method to recalculate the implicit bounds of this Node.
|
void |
removeAllChildren()
Removes all children from the group.
|
void |
removeChild(int idx)
Remove the child at the specified index from the group.
|
void |
setChild(Node newChild,
int idx)
Replaces the child node at the specified index in this group
node's list of children with the specified child.
|
void |
setMask(boolean[] mask)
Set the mask to change which objects are to be visible of all the
children.
|
addChild, checkForCyclicChild, checkPickMask, getAllChildren, getChild, getCullableParent, getPickableBounds, getPickableChild, getPickableChildren, getPickMask, getPickTargetType, hasMultipleParents, indexOfChild, markBoundsDirty, numChildren, numPickableChildren, pickBatch, pickSingle, removeChild, requestBoundsUpdate, setBounds, setLive, setPickMask, setUpdateHandler, updateBoundsboundsChanged, checkForCyclicParent, getBounds, getParent, removeParent, setParent, updateParentBoundsdataChanged, getAppUpdateWriteTimingMessage, getBoundsWriteTimingMessage, getDataWriteTimingMessage, getUserData, isLive, setUserDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBoundspublic MaskedSwitch()
public MaskedSwitch(boolean[] mask)
public Cullable[] getCullableChildren()
getCullableChildren in interface GroupCullablegetCullableChildren in class Grouppublic int numCullableChildren()
numCullableChildren in interface GroupCullablenumCullableChildren in class Grouppublic void setChild(Node newChild, int idx) throws InvalidWriteTimingException
setChild in class GroupnewChild - The child node to useidx - The index to replace. Must be greater than 0 and less then numChildrenIndexOutOfBoundsException - When the idx is invalidInvalidWriteTimingExceptionpublic void removeChild(int idx)
throws InvalidWriteTimingException
removeChild in class Groupidx - The index of the child to removeIndexOutOfBoundsException - When the idx is invalidInvalidWriteTimingException - An attempt was made to write outside
of the NodeUpdateListener callback methodpublic void removeAllChildren()
throws InvalidWriteTimingException
removeAllChildren in class GroupInvalidWriteTimingException - An attempt was made to write outside
of the NodeUpdateListener callback methodprotected void recomputeBounds()
recomputeBounds in class Grouppublic void setMask(boolean[] mask)
throws InvalidWriteTimingException
mask - The new maskInvalidWriteTimingException - An attempt was made to write outside
of the NodeUpdateListener callback methodpublic void getMask(boolean[] mask)
getMaskLength() long.mask - The array to copy the values intopublic int getMaskLength()
Copyright © 2001 - 2015 j3d.org