Package com.jme3.scene
Class GeometryGroupNode
java.lang.Object
com.jme3.scene.Spatial
com.jme3.scene.Node
com.jme3.scene.GeometryGroupNode
- All Implemented Interfaces:
HasLocalTransform,CloneableSmartAsset,Collidable,Savable,JmeCloneable,Cloneable
- Direct Known Subclasses:
BatchNode,InstancedNode
An abstract class for implementations that perform grouping of geometries
via instancing or batching.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.jme3.scene.Spatial
Spatial.BatchHint, Spatial.CullHint, Spatial.DFSMode -
Field Summary
Fields inherited from class com.jme3.scene.Spatial
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 Summary
ConstructorsConstructorDescriptionConstruct aGeometryGroupNodeGeometryGroupNode(String name) Construct aGeometryGroupNode -
Method Summary
Modifier and TypeMethodDescriptionstatic intabstract voidCalled bygeomto specify that it has been unassociated from itsGeometryGroupNode.abstract voidonMaterialChange(Geometry geom) abstract voidonMeshChange(Geometry geom) abstract voidonTransformChange(Geometry geom) Called bygeomto specify that its world transform has been changed.protected static voidsetGeometryStartIndex(Geometry geom, int startIndex) Methods inherited from class com.jme3.scene.Node
attachChild, attachChildAt, breadthFirstTraversal, clone, cloneFields, collideWith, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, oldDeepClone, read, setLightListRefresh, setLodLevel, setMaterial, setMatParamOverrideRefresh, setModelBound, setParent, setTransformRefresh, swapChildren, updateGeometricState, updateLogicalState, updateModelBound, updateWorldBound, writeMethods inherited from class com.jme3.scene.Spatial
addControl, addControlAt, 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
-
Constructor Details
-
GeometryGroupNode
public GeometryGroupNode()Construct aGeometryGroupNode -
GeometryGroupNode
Construct aGeometryGroupNode- Parameters:
name- The name of the GeometryGroupNode.
-
-
Method Details
-
getGeometryStartIndex
-
setGeometryStartIndex
-
onTransformChange
Called bygeomto specify that its world transform has been changed.- Parameters:
geom- The Geometry whose transform changed.
-
onMaterialChange
- Parameters:
geom- The Geometry whose material changed.- Throws:
UnsupportedOperationException- If this implementation does not support dynamic material changes.
-
onMeshChange
Called bygeomto specify that itsmeshhas been changed. This is also called when the geometry'slod levelchanges.- Parameters:
geom- The Geometry whose mesh changed.- Throws:
UnsupportedOperationException- If this implementation does not support dynamic mesh changes.
-
onGeometryUnassociated
Called bygeomto specify that it has been unassociated from itsGeometryGroupNode. Unassociation occurs when theGeometryisdetachedfrom its parentNode.- Parameters:
geom- The Geometry which is being unassociated.
-