Class PointColorData

java.lang.Object
com.irurueta.ar.sfm.PointColorData
All Implemented Interfaces:
Serializable

public abstract class PointColorData extends Object implements Serializable
Contains color information for a given point.
See Also:
  • Field Details

    • DEFAULT_QUALITY_SCORE

      public static final double DEFAULT_QUALITY_SCORE
      Default quality score value.
      See Also:
    • id

      private String 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 qualityScore
      Quality score of color data. The larger the value the higher the quality of color data.
  • Constructor Details

    • PointColorData

      protected PointColorData()
      Constructor.
  • Method Details

    • getId

      public String 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

      public void setId(String id)
      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

      public abstract void average(PointColorData other, PointColorData result)
      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.