Class DrawableFeaturePoints

java.lang.Object
cz.fidentis.analyst.drawables.Drawable
cz.fidentis.analyst.drawables.DrawableFeaturePoints
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DrawableFpWeights

public class DrawableFeaturePoints extends Drawable implements Serializable
Drawable feature points.
See Also:
  • Field Details

    • FP_DEFAULT_COLOR

      public static final Color FP_DEFAULT_COLOR
    • FP_DEFAULT_RADIUS_SIZE

      public static final double FP_DEFAULT_RADIUS_SIZE
      See Also:
  • Constructor Details

    • DrawableFeaturePoints

      public DrawableFeaturePoints(List<Landmark> featurePoints)
      Constructor.
      Parameters:
      featurePoints - Feature points
    • DrawableFeaturePoints

      public DrawableFeaturePoints(List<Landmark> featurePoints, Color defaultColor, double landmarkRadius)
      Constructor.
      Parameters:
      featurePoints - Feature points
      defaultColor - Default color
      landmarkRadius - Default perimeter
  • Method Details

    • addFeaturePoint

      public void addFeaturePoint(Landmark fp)
      Adds a new feature point
      Parameters:
      fp - featurePoint to be added
    • removeFeaturePoint

      public void removeFeaturePoint(Landmark fp)
      Removes a feature point
      Parameters:
      fp - featurePoint to be removed
    • removeFeaturePoint

      public void removeFeaturePoint(int i)
      Removes a feature point
      Parameters:
      i - index
    • getColor

      public Color getColor(int index)
      Returns color of the feature point.
      Parameters:
      index - Index of the feature point
      Returns:
      The color or null
    • setColor

      public void setColor(int index, Color color)
      Sets color of the feature point.
      Parameters:
      index - Index of the feature point
      color - New color of the feature point
    • setColor

      public void setColor(Landmark fp, Color color)
      Sets color of the feature point.
      Parameters:
      color - New color of the feature point
    • getAssignedColor

      public Color getAssignedColor(int index)
      Gets the assigned color of a feature point based on its relation to mesh
      Parameters:
      index - index of a chosen feature point
      Returns:
      Color
    • getAssignedColor

      public Color getAssignedColor(Landmark fp)
      Gets the assigned color of a feature point based on its relation to mesh
      Parameters:
      fp - feature point
      Returns:
      Color
    • getMaxDistance

      public double getMaxDistance()
      Gets the maximum distance of all feature points from the mesh
      Returns:
      double
    • resetColorToDefault

      public void resetColorToDefault(int index)
      Removes (possible) special color of the feature point.
      Parameters:
      index - Index of the feature point
    • resetAllColorsToDefault

      public void resetAllColorsToDefault()
      Removes all individual colors of feature points.
    • getSize

      public Double getSize(int index)
      Returns size of the feature point.
      Parameters:
      index - Index of the feature point
      Returns:
      The size or null
    • setSize

      public void setSize(int index, double size)
      Sets size of the feature point.
      Parameters:
      index - Index of the feature point
      size - New size of the feature point.
    • resetSizeToDefault

      public void resetSizeToDefault(int index)
      Removes (possible) special size of the feature point.
      Parameters:
      index - Index of the feature point
    • resetAllSizesToDefault

      public void resetAllSizesToDefault()
      Removes all individual sizes of feature points.
    • setLandmarkRadius

      public void setLandmarkRadius(double landmarkRadius)
      Sets the radius of feature points.
      Parameters:
      landmarkRadius - Radius of feature points
    • getRenderMode

      public RenderingMode getRenderMode(int index)
      Returns render mode of the feature point.
      Parameters:
      index - Index of the feature point
      Returns:
      The render mode or null
    • setRenderMode

      public void setRenderMode(int index, RenderingMode renderMode)
      Sets render mode of the feature point. RenderingMode.NOTHING hides the point.
      Parameters:
      index - Index of the feature point
      renderMode - New render mode of the feature point
    • resetRenderModeToDefault

      public void resetRenderModeToDefault(int index)
      Removes (possible) special render mode of the feature point.
      Parameters:
      index - Index of the feature point
    • resetAllRenderModesToDefault

      public void resetAllRenderModesToDefault()
      Removes all individual render modes of feature points.
    • getFeaturePoints

      public List<Landmark> getFeaturePoints()
      Returns:
      List of all Landmark
    • getStandardFeaturePoints

      public List<Landmark> getStandardFeaturePoints()
      Returns:
      List of only standard feature points
    • getUserDefinedLandmarks

      public List<Landmark> getUserDefinedLandmarks()
      Returns:
      List of only user-defined landmarks
    • getLandmarksByMeshVicinity

      public Set<Landmark> getLandmarksByMeshVicinity(MeshVicinity.Location location)
      Parameters:
      location - MeshVicinity.Location of landmarks on the mesh
      Returns:
      Set of Landmark with the same MeshVicinity.Location
    • getLandmarkRadius

      public double getLandmarkRadius()
    • getDistanceThreshold

      public double getDistanceThreshold()
    • getOffTheMeshColor

      public Color getOffTheMeshColor()
    • getCloseToMeshColor

      public Color getCloseToMeshColor()
    • getOnTheMeshColor

      public Color getOnTheMeshColor()
    • getCustomOffTheMeshColor

      public Color getCustomOffTheMeshColor()
    • getCustomCloseToMeshColor

      public Color getCustomCloseToMeshColor()
    • getCustomOnTheMeshColor

      public Color getCustomOnTheMeshColor()
    • setDistanceThreshold

      public void setDistanceThreshold(double distanceThreshold)
    • setOffTheMeshColor

      public void setOffTheMeshColor(Color offTheMeshColor)
    • setCloseToMeshColor

      public void setCloseToMeshColor(Color closeToMeshColor)
    • setOnTheMeshColor

      public void setOnTheMeshColor(Color onTheMeshColor)
    • setCustomOffTheMeshColor

      public void setCustomOffTheMeshColor(Color customOffTheMeshColor)
    • setCustomCloseToMeshColor

      public void setCustomCloseToMeshColor(Color customCloseToMeshColor)
    • setCustomOnTheMeshColor

      public void setCustomOnTheMeshColor(Color customOnTheMeshColor)
    • getSpecialColors

      public Map<Integer,Color> getSpecialColors()
    • getSpecialSizes

      public Map<Integer,Double> getSpecialSizes()
    • getSpecialRenderModes

      public Map<Integer,RenderingMode> getSpecialRenderModes()