Class GeometryGroupNode

All Implemented Interfaces:
HasLocalTransform, CloneableSmartAsset, Collidable, Savable, JmeCloneable, Cloneable
Direct Known Subclasses:
BatchNode, InstancedNode

public abstract class GeometryGroupNode extends Node
An abstract class for implementations that perform grouping of geometries via instancing or batching.
  • Constructor Details

    • GeometryGroupNode

      public GeometryGroupNode()
      Construct a GeometryGroupNode
    • GeometryGroupNode

      public GeometryGroupNode(String name)
      Construct a GeometryGroupNode
      Parameters:
      name - The name of the GeometryGroupNode.
  • Method Details

    • getGeometryStartIndex

      public static int getGeometryStartIndex(Geometry geom)
    • setGeometryStartIndex

      protected static void setGeometryStartIndex(Geometry geom, int startIndex)
    • onTransformChange

      public abstract void onTransformChange(Geometry geom)
      Called by geom to specify that its world transform has been changed.
      Parameters:
      geom - The Geometry whose transform changed.
    • onMaterialChange

      public abstract void onMaterialChange(Geometry geom)
      Called by geom to specify that its material has been changed.
      Parameters:
      geom - The Geometry whose material changed.
      Throws:
      UnsupportedOperationException - If this implementation does not support dynamic material changes.
    • onMeshChange

      public abstract void onMeshChange(Geometry geom)
      Called by geom to specify that its mesh has been changed. This is also called when the geometry's lod level changes.
      Parameters:
      geom - The Geometry whose mesh changed.
      Throws:
      UnsupportedOperationException - If this implementation does not support dynamic mesh changes.
    • onGeometryUnassociated

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