Class ZeroWeightsDecorator
java.lang.Object
cz.fidentis.analyst.engines.distance.measurement.FacetDistancesDecorator
cz.fidentis.analyst.engines.distance.measurement.ZeroWeightsDecorator
- All Implemented Interfaces:
FacetDistances
,Serializable
,Iterable<DistanceRecord>
This decorator sets weight of all distance values to zero.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor without sub-element!ZeroWeightsDecorator
(FacetDistances subElement) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionclone
(FacetDistances subElement) Creates a copy of the decorator but decorating given sub-element.get
(int pointIndex) Returns distance measurement for a single facet's vertex.Methods inherited from class cz.fidentis.analyst.engines.distance.measurement.FacetDistancesDecorator
getMeasuredFacet, getSubElement, size
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cz.fidentis.analyst.engines.distance.measurement.FacetDistances
iterator, stream
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ZeroWeightsDecorator
Constructor.- Parameters:
subElement
- decorated sub-element
-
ZeroWeightsDecorator
public ZeroWeightsDecorator()Constructor without sub-element! Use only for future clonning by theclone(FacetDistances)
method.
-
-
Method Details
-
clone
Description copied from class:FacetDistancesDecorator
Creates a copy of the decorator but decorating given sub-element.- Specified by:
clone
in classFacetDistancesDecorator
- Parameters:
subElement
- decorated sub-element, must not bynull
-
get
Description copied from interface:FacetDistances
Returns distance measurement for a single facet's vertex.- Specified by:
get
in interfaceFacetDistances
- Specified by:
get
in classFacetDistancesDecorator
- Parameters:
pointIndex
- index of the facet's vertex from the range from zero toMeshFacet.getNumberOfVertices()
- 1.- Returns:
- the mesh point with the distance value
-