Class SkeletonPoints

java.lang.Object
com.jme3.scene.Mesh
com.jme3.scene.debug.SkeletonPoints
All Implemented Interfaces:
Savable, JmeCloneable, Cloneable

public class SkeletonPoints extends Mesh
The class that displays either heads of the bones if no length data is supplied or both heads and tails otherwise.
  • Constructor Details

    • SkeletonPoints

      public SkeletonPoints(Skeleton skeleton)
      Creates a points with no length data. The points will only show the bone's heads.
      Parameters:
      skeleton - the skeleton that will be shown
    • SkeletonPoints

      public SkeletonPoints(Skeleton skeleton, Map<Integer,Float> boneLengths)
      Creates a points with bone lengths data. If the data is supplied then the points will show both head and tail of each bone.
      Parameters:
      skeleton - the skeleton that will be shown
      boneLengths - a map between the bone's index and the bone's length
    • SkeletonPoints

      protected SkeletonPoints()
      For serialization only. Do not use.
  • Method Details

    • updateGeometry

      public void updateGeometry()
      The method updates the geometry according to the positions of the bones.
    • read

      public void read(JmeImporter importer) throws IOException
      De-serializes from the specified importer, for example when loading from a J3O file.
      Specified by:
      read in interface Savable
      Overrides:
      read in class Mesh
      Parameters:
      importer - the importer to use (not null)
      Throws:
      IOException - from the importer
    • write

      public void write(JmeExporter exporter) throws IOException
      Serializes to the specified exporter, for example when saving to a J3O file. The current instance is unaffected.
      Specified by:
      write in interface Savable
      Overrides:
      write in class Mesh
      Parameters:
      exporter - the exporter to use (not null)
      Throws:
      IOException - from the exporter