Class LandmarkAbstract

java.lang.Object
cz.fidentis.analyst.data.landmarks.impl.LandmarkAbstract
All Implemented Interfaces:
Landmark, IPosition, Serializable
Direct Known Subclasses:
FeaturePointImpl, LandmarkImpl

public abstract class LandmarkAbstract extends Object implements Landmark
Generic class for landmarks and feature points.
See Also:
  • Constructor Details

    • LandmarkAbstract

      public LandmarkAbstract(int id, javax.vecmath.Point3d position)
      Constructor.
      Parameters:
      id - A unique id
      position - 3D position
  • Method Details

    • getType

      public int getType()
      Description copied from interface: Landmark
      Returns unique ID aka type of the feature point or user-defined landmark.
      Specified by:
      getType in interface Landmark
      Returns:
      unique ID
    • getPosition

      public javax.vecmath.Point3d getPosition()
      Description copied from interface: IPosition
      get position of the Point3d object
      Specified by:
      getPosition in interface IPosition
      Specified by:
      getPosition in interface Landmark
      Returns:
      position of the Point3d object
    • setPosition

      public void setPosition(javax.vecmath.Point3d position)
      Description copied from interface: Landmark
      Update 3D position
      Specified by:
      setPosition in interface Landmark
      Parameters:
      position - New 3D position. Must not be null
    • clone

      public abstract Landmark clone()
      Description copied from interface: Landmark
      Clones the landmark
      Specified by:
      clone in interface Landmark
      Overrides:
      clone in class Object
      Returns:
      a clone of the landmark
    • getMeshVicinity

      public MeshVicinity getMeshVicinity()
      Description copied from interface: Landmark
      Returns the closest mesh vicinity
      Specified by:
      getMeshVicinity in interface Landmark
      Returns:
      the closest mesh vicinity
    • setMeshVicinity

      public void setMeshVicinity(MeshVicinity meshVicinity)
      Description copied from interface: Landmark
      Updates the closest mesh vicinity
      Specified by:
      setMeshVicinity in interface Landmark
      Parameters:
      meshVicinity - new closest mesh vicinity
    • hasMeshVicinity

      public boolean hasMeshVicinity()
      Description copied from interface: Landmark
      Returns true, if the vicinity is set
      Specified by:
      hasMeshVicinity in interface Landmark
      Returns:
      true, if the vicinity is set
    • getName

      public abstract String getName()
      Description copied from interface: Landmark
      Returns a short name of the landmark, either user-defined or standard name of anthropometric feature point.
      Specified by:
      getName in interface Landmark
      Returns:
      a short name
    • setName

      public abstract void setName(String name)
      Description copied from interface: Landmark
      Sets new short name.
      Specified by:
      setName in interface Landmark
      Parameters:
      name - new name
    • getDescription

      public abstract String getDescription()
      Description copied from interface: Landmark
      Returns description of the landmark.
      Specified by:
      getDescription in interface Landmark
      Returns:
      description of the landmark
    • setDescription

      public abstract void setDescription(String description)
      Description copied from interface: Landmark
      Updates description.
      Specified by:
      setDescription in interface Landmark
      Parameters:
      description - new description
    • getCode

      public abstract String getCode()
      Description copied from interface: Landmark
      Returns a short code
      Specified by:
      getCode in interface Landmark
      Returns:
      a short code
    • isStandardFeaturePoint

      public abstract boolean isStandardFeaturePoint()
      Description copied from interface: Landmark
      Determines whether the landmark is standard anthropometric feature point or user-defined landmark.
      Specified by:
      isStandardFeaturePoint in interface Landmark
      Returns:
      true if the landmark is a standard anthropometric feature point
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object