Class ZeroWeightsDecorator

java.lang.Object
cz.fidentis.analyst.data.mesh.measurement.FacetDistancesDecorator
cz.fidentis.analyst.data.mesh.measurement.ZeroWeightsDecorator
All Implemented Interfaces:
FacetDistances, Serializable, Iterable<DistanceRecord>

public class ZeroWeightsDecorator extends FacetDistancesDecorator implements Serializable
This decorator sets weight of all distance values to zero.
See Also:
  • Constructor Details

    • ZeroWeightsDecorator

      public ZeroWeightsDecorator(FacetDistances subElement)
      Constructor.
      Parameters:
      subElement - decorated sub-element
    • ZeroWeightsDecorator

      public ZeroWeightsDecorator()
      Constructor without sub-element! Use only for future clonning by the clone(FacetDistances) method.
  • Method Details

    • clone

      public FacetDistancesDecorator clone(FacetDistances subElement)
      Description copied from class: FacetDistancesDecorator
      Creates a copy of the decorator but decorating given sub-element.
      Specified by:
      clone in class FacetDistancesDecorator
      Parameters:
      subElement - decorated sub-element, must not by null
      Returns:
      a copy of the decorator decorating given sub-element
    • get

      public DistanceRecord get(int pointIndex)
      Description copied from interface: FacetDistances
      Returns distance measurement for a single facet's vertex.
      Specified by:
      get in interface FacetDistances
      Specified by:
      get in class FacetDistancesDecorator
      Parameters:
      pointIndex - index of the facet's vertex from the range from zero to MeshFacet.getNumberOfVertices() - 1.
      Returns:
      the mesh point with the distance value