Record Class AvgMeshConfig

java.lang.Object
java.lang.Record
cz.fidentis.analyst.engines.avgmesh.AvgMeshConfig
Record Components:
templateMesh - Template mesh which is transformed to the averaged mesh. The original mesh remains unchanged. New mesh is allocated instead.
glContext - OpenGL context for GPU-accelerated computation. Can be null for CPU-based methods.

public record AvgMeshConfig(Collection<MeshFacet> templateMesh, com.jogamp.opengl.GLContext glContext) extends Record
Strategies of the average mesh computation.
  • Constructor Details

    • AvgMeshConfig

      public AvgMeshConfig(MeshFacet facet, com.jogamp.opengl.GLContext glContext)
      Constructor.
      Parameters:
      facet - Template mesh facet which is transformed to the averaged mesh. The original mesh remains unchanged. New mesh is allocated instead.
      glContext - OpenGL context for GPU-accelerated computation. Can be null for CPU-based methods.
    • AvgMeshConfig

      public AvgMeshConfig(MeshModel model, com.jogamp.opengl.GLContext glContext)
      Constructor.
      Parameters:
      model - Template mesh model which is transformed to the averaged mesh. The original mesh remains unchanged. New mesh is allocated instead.
      glContext - OpenGL context for GPU-accelerated computation. Can be null for CPU-based methods.
    • AvgMeshConfig

      public AvgMeshConfig(Collection<MeshFacet> templateMesh, com.jogamp.opengl.GLContext glContext)
      Creates an instance of a AvgMeshConfig record class.
      Parameters:
      templateMesh - the value for the templateMesh record component
      glContext - the value for the glContext record component
  • Method Details

    • getNearestNeighborsVisitor

      public AvgMeshVisitor getNearestNeighborsVisitor()
      Instantiates and returns a k-d tree visitor.
      Returns:
      a visitor
    • getRayCastingVisitor

      public AvgMeshVisitor getRayCastingVisitor()
      Instantiates and returns an octree visitor.
      Returns:
      a visitor
    • getRayCastingGpuVisitor

      public AvgMeshVisitor getRayCastingGpuVisitor()
      Instantiates and returns a mesh visitor.
      Returns:
      a visitor
    • 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.
    • templateMesh

      public Collection<MeshFacet> templateMesh()
      Returns the value of the templateMesh record component.
      Returns:
      the value of the templateMesh record component
    • glContext

      public com.jogamp.opengl.GLContext glContext()
      Returns the value of the glContext record component.
      Returns:
      the value of the glContext record component