Package com.jme3.scene.instancing
Class InstancedNode
java.lang.Object
com.jme3.scene.Spatial
com.jme3.scene.Node
com.jme3.scene.GeometryGroupNode
com.jme3.scene.instancing.InstancedNode
- All Implemented Interfaces:
- HasLocalTransform,- CloneableSmartAsset,- Collidable,- Savable,- JmeCloneable,- Cloneable
- 
Nested Class SummaryNested classes/interfaces inherited from class com.jme3.scene.SpatialSpatial.BatchHint, Spatial.CullHint, Spatial.DFSMode
- 
Field SummaryFieldsFields inherited from class com.jme3.scene.SpatialbatchHint, 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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()Creates a clone of the asset.clone(boolean cloneMaterials) voidcloneFields(Cloner cloner, Object original) Called internally by com.jme3.util.clone.Cloner.detachChildAt(int index) detachChildAtremoves a child at a given index.voidinstance()voidCalled bygeomto specify that it has been unassociated from itsGeometryGroupNode.voidonMaterialChange(Geometry geom) voidonMeshChange(Geometry geom) voidonTransformChange(Geometry geom) Called bygeomto specify that its world transform has been changed.Methods inherited from class com.jme3.scene.GeometryGroupNodegetGeometryStartIndex, setGeometryStartIndexMethods inherited from class com.jme3.scene.NodeattachChild, attachChildAt, breadthFirstTraversal, collideWith, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, 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.SpatialaddControl, addControlAt, addLight, addMatParamOverride, breadthFirstTraversal, center, checkCulling, clearMatParamOverrides, 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
- 
Field Details- 
igByGeom
 
- 
- 
Constructor Details- 
InstancedNodeprotected InstancedNode()Serialization only. Do not use.
- 
InstancedNode
 
- 
- 
Method Details- 
detachChildAtDescription copied from class:NodedetachChildAtremoves a child at a given index. That child is returned for saving purposes.- Overrides:
- detachChildAtin class- Node
- Parameters:
- index- the index of the child to be removed.
- Returns:
- the child at the supplied index.
 
- 
instancepublic void instance()
- 
cloneDescription copied from interface:CloneableSmartAssetCreates a clone of the asset. Please seeObject.clone()for more info on how this method should be implemented.- Specified by:
- clonein interface- CloneableSmartAsset
- Overrides:
- clonein class- Spatial
- Returns:
- A clone of this Spatial, the scene graph in its entirety is cloned and can be altered independently of the original scene graph. Note that meshes of geometries are not cloned explicitly, they are shared if static, or specially cloned if animated.
- See Also:
 
- 
clone- Overrides:
- clonein class- Node
- Parameters:
- cloneMaterials- true to clone materials, false to share them
- Returns:
- A clone of this Spatial, the scene graph in its entirety is cloned and can be altered independently of the original scene graph. Note that meshes of geometries are not cloned explicitly, they are shared if static, or specially cloned if animated.
- See Also:
 
- 
cloneFieldsCalled internally by com.jme3.util.clone.Cloner. Do not call directly.- Specified by:
- cloneFieldsin interface- JmeCloneable
- Overrides:
- cloneFieldsin class- Node
- Parameters:
- cloner- The cloner that is performing the cloning operation. The cloneFields method can call back into the cloner to make clones of its subordinate fields.
- original- The original object from which this object was cloned. This is provided for the very rare case that this object needs to refer to its original for some reason. In general, all of the relevant values should have been transferred during the shallow clone, and this object need only clone what it wants.
 
- 
onTransformChangeDescription copied from class:GeometryGroupNodeCalled bygeomto specify that its world transform has been changed.- Specified by:
- onTransformChangein class- GeometryGroupNode
- Parameters:
- geom- The Geometry whose transform changed.
 
- 
onMaterialChangeDescription copied from class:GeometryGroupNode- Specified by:
- onMaterialChangein class- GeometryGroupNode
- Parameters:
- geom- The Geometry whose material changed.
 
- 
onMeshChangeDescription copied from class:GeometryGroupNodeCalled bygeomto specify that itsmeshhas been changed. This is also called when the geometry'slod levelchanges.- Specified by:
- onMeshChangein class- GeometryGroupNode
- Parameters:
- geom- The Geometry whose mesh changed.
 
- 
onGeometryUnassociatedDescription copied from class:GeometryGroupNodeCalled bygeomto specify that it has been unassociated from itsGeometryGroupNode. Unassociation occurs when theGeometryisdetachedfrom its parentNode.- Specified by:
- onGeometryUnassociatedin class- GeometryGroupNode
- Parameters:
- geom- The Geometry which is being unassociated.
 
 
-