Package com.irurueta.ar.sfm
Class PointColorData
java.lang.Object
com.irurueta.ar.sfm.PointColorData
- All Implemented Interfaces:
Serializable
Contains color information for a given point.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final double
Default quality score value.private String
ID to identify this instance.private double
Quality score of color data. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
average
(PointColorData other, PointColorData result) Averages this color data with provided one and stores the result into provided instance.getId()
Gets id to identify this instance.double
Quality score of color data.void
Sets id to identify this instance.void
setQualityScore
(double qualityScore) Sets quality score of color data.
-
Field Details
-
DEFAULT_QUALITY_SCORE
public static final double DEFAULT_QUALITY_SCOREDefault quality score value.- See Also:
-
id
ID to identify this instance. This is useful in case that this data is stored in some sort of database and must be set externally. -
qualityScore
private double qualityScoreQuality score of color data. The larger the value the higher the quality of color data.
-
-
Constructor Details
-
PointColorData
protected PointColorData()Constructor.
-
-
Method Details
-
getId
Gets id to identify this instance. This is useful in case that this data is stored in some sort of database and must be set externally.- Returns:
- id to identify this instance.
-
setId
Sets id to identify this instance. This is useful in case that this data is stored in some sort of database and must be set externally.- Parameters:
id
- id to identify this instance.
-
getQualityScore
public double getQualityScore()Quality score of color data. The larger the value the higher the quality of color data.- Returns:
- quality score.
-
setQualityScore
public void setQualityScore(double qualityScore) Sets quality score of color data. The larger the value the higher the quality of color data.- Parameters:
qualityScore
- quality score to be set.
-
average
Averages this color data with provided one and stores the result into provided instance.- Parameters:
other
- other instance to average color data with.result
- instance where result of average will be stored.
-