Class InstancedNode

All Implemented Interfaces:
HasLocalTransform, CloneableSmartAsset, Collidable, Savable, JmeCloneable, Cloneable

public class InstancedNode extends GeometryGroupNode
  • Field Details

  • Constructor Details

    • InstancedNode

      protected InstancedNode()
      Serialization only. Do not use.
    • InstancedNode

      public InstancedNode(String name)
  • Method Details

    • detachChildAt

      public Spatial detachChildAt(int index)
      Description copied from class: Node
      detachChildAt removes a child at a given index. That child is returned for saving purposes.
      Overrides:
      detachChildAt in class Node
      Parameters:
      index - the index of the child to be removed.
      Returns:
      the child at the supplied index.
    • instance

      public void instance()
    • clone

      public InstancedNode clone()
      Description copied from interface: CloneableSmartAsset
      Creates a clone of the asset. Please see Object.clone() for more info on how this method should be implemented.
      Specified by:
      clone in interface CloneableSmartAsset
      Overrides:
      clone in 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

      public InstancedNode clone(boolean cloneMaterials)
      Overrides:
      clone in 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:
    • cloneFields

      public void cloneFields(Cloner cloner, Object original)
      Called internally by com.jme3.util.clone.Cloner. Do not call directly.
      Specified by:
      cloneFields in interface JmeCloneable
      Overrides:
      cloneFields in 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.
    • onTransformChange

      public void onTransformChange(Geometry geom)
      Description copied from class: GeometryGroupNode
      Called by geom to specify that its world transform has been changed.
      Specified by:
      onTransformChange in class GeometryGroupNode
      Parameters:
      geom - The Geometry whose transform changed.
    • onMaterialChange

      public void onMaterialChange(Geometry geom)
      Description copied from class: GeometryGroupNode
      Called by geom to specify that its material has been changed.
      Specified by:
      onMaterialChange in class GeometryGroupNode
      Parameters:
      geom - The Geometry whose material changed.
    • onMeshChange

      public void onMeshChange(Geometry geom)
      Description copied from class: GeometryGroupNode
      Called by geom to specify that its mesh has been changed. This is also called when the geometry's lod level changes.
      Specified by:
      onMeshChange in class GeometryGroupNode
      Parameters:
      geom - The Geometry whose mesh changed.
    • onGeometryUnassociated

      public void onGeometryUnassociated(Geometry geom)
      Description copied from class: GeometryGroupNode
      Called by geom to specify that it has been unassociated from its GeometryGroupNode. Unassociation occurs when the Geometry is detached from its parent Node.
      Specified by:
      onGeometryUnassociated in class GeometryGroupNode
      Parameters:
      geom - The Geometry which is being unassociated.