Record Class HumanFaceState

java.lang.Object
java.lang.Record
cz.fidentis.analyst.data.face.HumanFaceState
Record Components:
meshModel - Mesh model
symmetryPlane - Symmetry plane
kdTree - K-d tree
octree - Octree
featurePoints - Feature points
boundingBox - Bounding box
glyphs - Glyphs

public record HumanFaceState(MeshModel meshModel, Plane symmetryPlane, KdTree kdTree, Octree octree, List<Landmark> featurePoints, Box boundingBox, List<Glyph> glyphs) extends Record
A copy of the internal state of the HumanFace instance. Can be used to fall back changes made with the face.
  • Constructor Details

    • HumanFaceState

      public HumanFaceState(HumanFace face)
      Constructor.
      Parameters:
      face - Original face.
    • HumanFaceState

      public HumanFaceState(MeshModel meshModel, Plane symmetryPlane, KdTree kdTree, Octree octree, List<Landmark> featurePoints, Box boundingBox, List<Glyph> glyphs)
      Creates an instance of a HumanFaceState record class.
      Parameters:
      meshModel - the value for the meshModel record component
      symmetryPlane - the value for the symmetryPlane record component
      kdTree - the value for the kdTree record component
      octree - the value for the octree record component
      featurePoints - the value for the featurePoints record component
      boundingBox - the value for the boundingBox record component
      glyphs - the value for the glyphs record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • meshModel

      public MeshModel meshModel()
      Returns the value of the meshModel record component.
      Returns:
      the value of the meshModel record component
    • symmetryPlane

      public Plane symmetryPlane()
      Returns the value of the symmetryPlane record component.
      Returns:
      the value of the symmetryPlane record component
    • kdTree

      public KdTree kdTree()
      Returns the value of the kdTree record component.
      Returns:
      the value of the kdTree record component
    • octree

      public Octree octree()
      Returns the value of the octree record component.
      Returns:
      the value of the octree record component
    • featurePoints

      public List<Landmark> featurePoints()
      Returns the value of the featurePoints record component.
      Returns:
      the value of the featurePoints record component
    • boundingBox

      public Box boundingBox()
      Returns the value of the boundingBox record component.
      Returns:
      the value of the boundingBox record component
    • glyphs

      public List<Glyph> glyphs()
      Returns the value of the glyphs record component.
      Returns:
      the value of the glyphs record component