public class SimpleBatchNode extends BatchNode
BatchNodeBatchNode.BatchSpatial.BatchHint, Spatial.CullHint, Spatial.DFSModebatches, batchesByGeombatchHint, 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, updateSubBatchgetGeometryStartIndex, setGeometryStartIndexattachChildAt, 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, writeaddControl, 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, worldToLocalpublic SimpleBatchNode()
public SimpleBatchNode(java.lang.String name)
public int attachChild(Spatial child)
NodeattachChild attaches a child to this node. This node
becomes the child's parent. The current number of children maintained is
returned.
attachChild in class Nodechild - the child to attach to this node.protected void setTransformRefresh()
SpatialsetTransformRefresh in class Nodeprotected Matrix4f getTransformMatrix(Geometry g)
getTransformMatrix in class BatchNode