Record Class Glyph

java.lang.Object
java.lang.Record
cz.fidentis.analyst.data.shapes.Glyph
Record Components:
location - position
normal - normal vector
maxCurvatureDir - the maximal principal curvature at the sample point
minCurvatureDir - the minimal principal curvature at the sample point
All Implemented Interfaces:
Serializable

public record Glyph(javax.vecmath.Point3d location, javax.vecmath.Vector3d normal, javax.vecmath.Vector3d maxCurvatureDir, javax.vecmath.Vector3d minCurvatureDir) extends Record implements Serializable
Information about a point selected to be a glyph. Needed for rendering shadow-casting glyphs.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Glyph(javax.vecmath.Point3d location, javax.vecmath.Vector3d normal)
    Create a glyph with a default orientation if the min/max curvature is not known.
    Glyph(javax.vecmath.Point3d location, javax.vecmath.Vector3d normal, javax.vecmath.Vector3d maxCurvatureDir, javax.vecmath.Vector3d minCurvatureDir)
    Creates an instance of a Glyph record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    javax.vecmath.Point3d
    Returns the value of the location record component.
    javax.vecmath.Vector3d
    Returns the value of the maxCurvatureDir record component.
    javax.vecmath.Vector3d
    Returns the value of the minCurvatureDir record component.
    javax.vecmath.Vector3d
    Returns the value of the normal record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Glyph

      public Glyph(javax.vecmath.Point3d location, javax.vecmath.Vector3d normal)
      Create a glyph with a default orientation if the min/max curvature is not known.
      Parameters:
      location - position
      normal - normal vector
    • Glyph

      public Glyph(javax.vecmath.Point3d location, javax.vecmath.Vector3d normal, javax.vecmath.Vector3d maxCurvatureDir, javax.vecmath.Vector3d minCurvatureDir)
      Creates an instance of a Glyph record class.
      Parameters:
      location - the value for the location record component
      normal - the value for the normal record component
      maxCurvatureDir - the value for the maxCurvatureDir record component
      minCurvatureDir - the value for the minCurvatureDir 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.
    • location

      public javax.vecmath.Point3d location()
      Returns the value of the location record component.
      Returns:
      the value of the location record component
    • normal

      public javax.vecmath.Vector3d normal()
      Returns the value of the normal record component.
      Returns:
      the value of the normal record component
    • maxCurvatureDir

      public javax.vecmath.Vector3d maxCurvatureDir()
      Returns the value of the maxCurvatureDir record component.
      Returns:
      the value of the maxCurvatureDir record component
    • minCurvatureDir

      public javax.vecmath.Vector3d minCurvatureDir()
      Returns the value of the minCurvatureDir record component.
      Returns:
      the value of the minCurvatureDir record component