Record Class CachedMultiResolutionSubMesh

java.lang.Object
java.lang.Record
dev.gothickit.zenkit.mrm.CachedMultiResolutionSubMesh
All Implemented Interfaces:
CacheableObject<CachedMultiResolutionSubMesh>, MultiResolutionSubMesh

public record CachedMultiResolutionSubMesh(@Nullable Material material, @NotNull MeshTriangle @NotNull [] triangles, @NotNull MeshWedge @NotNull [] wedges, float @NotNull [] colors, short @NotNull [] trianglePlaneIndices, @NotNull MeshPlane @NotNull [] trianglePlanes, @NotNull MeshTriangleEdge @NotNull [] triangleEdges, @NotNull MeshEdge @NotNull [] edges, float @NotNull [] edgeScores, short @NotNull [] wedgeMap) extends Record implements MultiResolutionSubMesh
  • Constructor Summary

    Constructors
    Constructor
    Description
    CachedMultiResolutionSubMesh(@Nullable Material material, @NotNull MeshTriangle @NotNull [] triangles, @NotNull MeshWedge @NotNull [] wedges, float @NotNull [] colors, short @NotNull [] trianglePlaneIndices, @NotNull MeshPlane @NotNull [] trianglePlanes, @NotNull MeshTriangleEdge @NotNull [] triangleEdges, @NotNull MeshEdge @NotNull [] edges, float @NotNull [] edgeScores, short @NotNull [] wedgeMap)
    Creates an instance of a CachedMultiResolutionSubMesh record class.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    float @NotNull []
    Returns the value of the colors record component.
    @NotNull MeshEdge @NotNull []
    Returns the value of the edges record component.
    float @NotNull []
    Returns the value of the edgeScores record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
     
    @Nullable Material
    Returns the value of the material record component.
    final String
    Returns a string representation of this record class.
    @NotNull MeshTriangleEdge @NotNull []
    Returns the value of the triangleEdges record component.
    short @NotNull []
    Returns the value of the trianglePlaneIndices record component.
    @NotNull MeshPlane @NotNull []
    Returns the value of the trianglePlanes record component.
    @NotNull MeshTriangle @NotNull []
    Returns the value of the triangles record component.
    short @NotNull []
    Returns the value of the wedgeMap record component.
    @NotNull MeshWedge @NotNull []
    Returns the value of the wedges record component.

    Methods inherited from class java.lang.Object

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

    • CachedMultiResolutionSubMesh

      public CachedMultiResolutionSubMesh(@Nullable @Nullable Material material, @NotNull @NotNull MeshTriangle @NotNull [] triangles, @NotNull @NotNull MeshWedge @NotNull [] wedges, float @NotNull [] colors, short @NotNull [] trianglePlaneIndices, @NotNull @NotNull MeshPlane @NotNull [] trianglePlanes, @NotNull @NotNull MeshTriangleEdge @NotNull [] triangleEdges, @NotNull @NotNull MeshEdge @NotNull [] edges, float @NotNull [] edgeScores, short @NotNull [] wedgeMap)
      Creates an instance of a CachedMultiResolutionSubMesh record class.
      Parameters:
      material - the value for the material record component
      triangles - the value for the triangles record component
      wedges - the value for the wedges record component
      colors - the value for the colors record component
      trianglePlaneIndices - the value for the trianglePlaneIndices record component
      trianglePlanes - the value for the trianglePlanes record component
      triangleEdges - the value for the triangleEdges record component
      edges - the value for the edges record component
      edgeScores - the value for the edgeScores record component
      wedgeMap - the value for the wedgeMap record component
  • Method Details

    • cache

      @NotNull public @NotNull CachedMultiResolutionSubMesh cache()
      Specified by:
      cache in interface CacheableObject<CachedMultiResolutionSubMesh>
    • isCached

      public boolean isCached()
      Specified by:
      isCached in interface CacheableObject<CachedMultiResolutionSubMesh>
    • 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.
    • material

      @Nullable public @Nullable Material material()
      Returns the value of the material record component.
      Specified by:
      material in interface MultiResolutionSubMesh
      Returns:
      the value of the material record component
    • triangles

      @NotNull public @NotNull MeshTriangle @NotNull [] triangles()
      Returns the value of the triangles record component.
      Specified by:
      triangles in interface MultiResolutionSubMesh
      Returns:
      the value of the triangles record component
    • wedges

      @NotNull public @NotNull MeshWedge @NotNull [] wedges()
      Returns the value of the wedges record component.
      Specified by:
      wedges in interface MultiResolutionSubMesh
      Returns:
      the value of the wedges record component
    • colors

      public float @NotNull [] colors()
      Returns the value of the colors record component.
      Specified by:
      colors in interface MultiResolutionSubMesh
      Returns:
      the value of the colors record component
    • trianglePlaneIndices

      public short @NotNull [] trianglePlaneIndices()
      Returns the value of the trianglePlaneIndices record component.
      Specified by:
      trianglePlaneIndices in interface MultiResolutionSubMesh
      Returns:
      the value of the trianglePlaneIndices record component
    • trianglePlanes

      @NotNull public @NotNull MeshPlane @NotNull [] trianglePlanes()
      Returns the value of the trianglePlanes record component.
      Specified by:
      trianglePlanes in interface MultiResolutionSubMesh
      Returns:
      the value of the trianglePlanes record component
    • triangleEdges

      @NotNull public @NotNull MeshTriangleEdge @NotNull [] triangleEdges()
      Returns the value of the triangleEdges record component.
      Specified by:
      triangleEdges in interface MultiResolutionSubMesh
      Returns:
      the value of the triangleEdges record component
    • edges

      @NotNull public @NotNull MeshEdge @NotNull [] edges()
      Returns the value of the edges record component.
      Specified by:
      edges in interface MultiResolutionSubMesh
      Returns:
      the value of the edges record component
    • edgeScores

      public float @NotNull [] edgeScores()
      Returns the value of the edgeScores record component.
      Specified by:
      edgeScores in interface MultiResolutionSubMesh
      Returns:
      the value of the edgeScores record component
    • wedgeMap

      public short @NotNull [] wedgeMap()
      Returns the value of the wedgeMap record component.
      Specified by:
      wedgeMap in interface MultiResolutionSubMesh
      Returns:
      the value of the wedgeMap record component