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
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
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a clone of the asset.clone
(boolean cloneMaterials) void
cloneFields
(Cloner cloner, Object original) Called internally by com.jme3.util.clone.Cloner.detachChildAt
(int index) detachChildAt
removes a child at a given index.void
instance()
void
Called bygeom
to specify that it has been unassociated from itsGeometryGroupNode
.void
onMaterialChange
(Geometry geom) void
onMeshChange
(Geometry geom) void
onTransformChange
(Geometry geom) Called bygeom
to specify that its world transform has been changed.Methods inherited from class com.jme3.scene.GeometryGroupNode
getGeometryStartIndex, setGeometryStartIndex
Methods 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, write
Methods 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:Node
detachChildAt
removes a child at a given index. That child is returned for saving purposes.- Overrides:
detachChildAt
in 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:CloneableSmartAsset
Creates a clone of the asset. Please seeObject.clone()
for more info on how this method should be implemented.- Specified by:
clone
in interfaceCloneableSmartAsset
- Overrides:
clone
in 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:
clone
in 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:
cloneFields
in interfaceJmeCloneable
- Overrides:
cloneFields
in 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:GeometryGroupNode
Called bygeom
to specify that its world transform has been changed.- Specified by:
onTransformChange
in classGeometryGroupNode
- Parameters:
geom
- The Geometry whose transform changed.
-
onMaterialChange
Description copied from class:GeometryGroupNode
- Specified by:
onMaterialChange
in classGeometryGroupNode
- Parameters:
geom
- The Geometry whose material changed.
-
onMeshChange
Description copied from class:GeometryGroupNode
Called bygeom
to specify that itsmesh
has been changed. This is also called when the geometry'slod level
changes.- Specified by:
onMeshChange
in classGeometryGroupNode
- Parameters:
geom
- The Geometry whose mesh changed.
-
onGeometryUnassociated
Description copied from class:GeometryGroupNode
Called bygeom
to specify that it has been unassociated from itsGeometryGroupNode
. Unassociation occurs when theGeometry
isdetached
from its parentNode
.- Specified by:
onGeometryUnassociated
in classGeometryGroupNode
- Parameters:
geom
- The Geometry which is being unassociated.
-