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 Summary
Nested classes/interfaces inherited from class com.jme3.scene.Spatial
Spatial.BatchHint, Spatial.CullHint, Spatial.DFSMode -
Field Summary
FieldsFields 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
Constructors -
Method Summary
Modifier 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.GeometryGroupNode
getGeometryStartIndex, setGeometryStartIndexMethods inherited from class com.jme3.scene.Node
attachChild, 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.Spatial
addControl, 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
-
InstancedNode
protected InstancedNode()Serialization only. Do not use. -
InstancedNode
-
-
Method Details
-
detachChildAt
Description copied from class:NodedetachChildAtremoves a child at a given index. That child is returned for saving purposes.- Overrides:
detachChildAtin classNode- Parameters:
index- the index of the child to be removed.- Returns:
- the child at the supplied index.
-
instance
public void instance() -
clone
Description 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 interfaceCloneableSmartAsset- Overrides:
clonein classSpatial- 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 classNode- 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:
-
cloneFields
Called internally by com.jme3.util.clone.Cloner. Do not call directly.- Specified by:
cloneFieldsin interfaceJmeCloneable- Overrides:
cloneFieldsin classNode- 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.
-
onTransformChange
Description copied from class:GeometryGroupNodeCalled bygeomto specify that its world transform has been changed.- Specified by:
onTransformChangein classGeometryGroupNode- Parameters:
geom- The Geometry whose transform changed.
-
onMaterialChange
Description copied from class:GeometryGroupNode- Specified by:
onMaterialChangein classGeometryGroupNode- Parameters:
geom- The Geometry whose material changed.
-
onMeshChange
Description copied from class:GeometryGroupNodeCalled bygeomto specify that itsmeshhas been changed. This is also called when the geometry'slod levelchanges.- Specified by:
onMeshChangein classGeometryGroupNode- Parameters:
geom- The Geometry whose mesh changed.
-
onGeometryUnassociated
Description copied from class:GeometryGroupNodeCalled bygeomto specify that it has been unassociated from itsGeometryGroupNode. Unassociation occurs when theGeometryisdetachedfrom its parentNode.- Specified by:
onGeometryUnassociatedin classGeometryGroupNode- Parameters:
geom- The Geometry which is being unassociated.
-