Class BatchDistanceNearestNeighbors.DistCache<T>

java.lang.Object
cz.fidentis.analyst.engines.face.batch.distance.impl.BatchDistanceNearestNeighbors.DistCache<T>
Type Parameters:
T - the type of cached value
Direct Known Subclasses:
BatchDistanceNearestNeighborsCombined.CombinedCache, BatchDistanceNearestNeighborsDirect.DirectionCache, BatchDistanceNearestNeighborsRelative.RelativeDistCache, BatchDistanceRayCasting.RayCastingDistCache
Enclosing class:
BatchDistanceNearestNeighbors

public abstract static class BatchDistanceNearestNeighbors.DistCache<T> extends Object
Cache of distances from the average face to other faces.
  • Constructor Details

    • DistCache

      public DistCache()
  • Method Details

    • addValuesOfFace

      public abstract void addValuesOfFace(MeshDistances meshDistances)
      Caches measured distances
      Parameters:
      meshDistances - Measured distances
    • getDistance

      public abstract double getDistance(int faceIndex1, int faceIndex2, int vertIndex)
      Returns distance of two faces.
      Parameters:
      faceIndex1 - First face index
      faceIndex2 - Second face index
      vertIndex - Index of the vertex on the gauge face
      Returns:
      distance
    • getNumFaces

      public int getNumFaces()
      Returns the number of cached faces
      Returns:
      the number of cached faces
    • getNunFaceVertices

      public int getNunFaceVertices(int faceIndex)
      Returns the number of cached vertices of the given faces
      Returns:
      the number of cached vertices of the given faces
    • getCache

      protected List<List<T>> getCache()
    • add

      protected void add(List<T> list)