public class SimpleBatchNode extends BatchNode
BatchNode
BatchNode.Batch
Spatial.BatchHint, Spatial.CullHint, Spatial.DFSMode
batches, batchesByGeom
batchHint, controls, cullHint, frustrumIntersects, key, localLights, localOverrides, localTransform, name, parent, queueBucket, queueDistance, refreshFlags, RF_BOUND, RF_CHILD_LIGHTLIST, RF_LIGHTLIST, RF_MATPARAM_OVERRIDE, RF_TRANSFORM, shadowMode, userData, worldBound, worldLights, worldOverrides, worldTransform
Constructor and Description |
---|
SimpleBatchNode() |
SimpleBatchNode(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
int |
attachChild(Spatial child)
attachChild attaches a child to this node. |
void |
batch()
Batch this batchNode
every geometry of the sub scene graph of this node will be batched into a single mesh that will be rendered in one call
|
protected Matrix4f |
getTransformMatrix(Geometry g) |
protected void |
setTransformRefresh()
Indicate that the transform of this spatial has changed and that
a refresh is required.
|
clone, cloneFields, collideWith, detachChildAt, doBatch, getMaterial, isBatch, onGeometryUnassociated, onMaterialChange, onMeshChange, onTransformChange, setMaterial, setNeedsFullRebatch, updateSubBatch
getGeometryStartIndex, setGeometryStartIndex
attachChildAt, breadthFirstTraversal, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, oldDeepClone, read, setLightListRefresh, setLodLevel, setMatParamOverrideRefresh, setModelBound, setParent, swapChildren, updateGeometricState, updateLogicalState, updateModelBound, updateWorldBound, write
addControl, addLight, addMatParamOverride, breadthFirstTraversal, center, checkCulling, clearMatParamOverrides, clone, depthFirstTraversal, forceRefresh, getBatchHint, getControl, getControl, getCullHint, getKey, getLastFrustumIntersection, getLocalBatchHint, getLocalCullHint, getLocalLightList, getLocalMatParamOverrides, getLocalQueueBucket, getLocalRotation, getLocalScale, getLocalShadowMode, getLocalToWorldMatrix, getLocalTransform, getLocalTranslation, getName, getNumControls, getParent, getQueueBucket, getShadowMode, getUserData, getUserDataKeys, getWorldBound, getWorldLightList, getWorldMatParamOverrides, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, jmeClone, localToWorld, lookAt, matches, move, move, oldClone, removeControl, removeControl, removeFromParent, removeLight, removeMatParamOverride, rotate, rotate, rotateUpTo, runControlRender, scale, scale, setBatchHint, setBoundRefresh, setCullHint, setKey, setLastFrustumIntersection, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalScale, setLocalTransform, setLocalTranslation, setLocalTranslation, setName, setQueueBucket, setRequiresUpdates, setShadowMode, setUserData, toString, updateMatParamOverrides, updateWorldLightList, updateWorldTransforms, worldToLocal
public SimpleBatchNode()
public SimpleBatchNode(java.lang.String name)
public int attachChild(Spatial child)
Node
attachChild
attaches a child to this node. This node
becomes the child's parent. The current number of children maintained is
returned.
attachChild
in class Node
child
- the child to attach to this node.protected void setTransformRefresh()
Spatial
setTransformRefresh
in class Node
protected Matrix4f getTransformMatrix(Geometry g)
getTransformMatrix
in class BatchNode