Class LandmarkAbstract
java.lang.Object
cz.fidentis.analyst.data.landmarks.impl.LandmarkAbstract
- All Implemented Interfaces:
Landmark
,IPosition
,Serializable
- Direct Known Subclasses:
FeaturePointImpl
,LandmarkImpl
Generic class for landmarks and feature points.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Landmark
clone()
Clones the landmarkboolean
abstract String
getCode()
Returns a short codeabstract String
Returns description of the landmark.Returns the closest mesh vicinityabstract String
getName()
Returns a short name of the landmark, either user-defined or standard name of anthropometric feature point.javax.vecmath.Point3d
get position of thePoint3d
objectint
getType()
Returns unique ID aka type of the feature point or user-defined landmark.int
hashCode()
boolean
Returnstrue
, if the vicinity is setabstract boolean
Determines whether the landmark is standard anthropometric feature point or user-defined landmark.abstract void
setDescription
(String description) Updates description.void
setMeshVicinity
(MeshVicinity meshVicinity) Updates the closest mesh vicinityabstract void
Sets new short name.void
setPosition
(javax.vecmath.Point3d position) Update 3D positiontoString()
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface cz.fidentis.analyst.data.landmarks.Landmark
isUserDefinedLandmark
-
Constructor Details
-
LandmarkAbstract
public LandmarkAbstract(int id, javax.vecmath.Point3d position) Constructor.- Parameters:
id
- A unique idposition
- 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. -
getPosition
public javax.vecmath.Point3d getPosition()Description copied from interface:IPosition
get position of thePoint3d
object- Specified by:
getPosition
in interfaceIPosition
- Specified by:
getPosition
in interfaceLandmark
- 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 interfaceLandmark
- Parameters:
position
- New 3D position. Must not benull
-
clone
Description copied from interface:Landmark
Clones the landmark -
getMeshVicinity
Description copied from interface:Landmark
Returns the closest mesh vicinity- Specified by:
getMeshVicinity
in interfaceLandmark
- Returns:
- the closest mesh vicinity
-
setMeshVicinity
Description copied from interface:Landmark
Updates the closest mesh vicinity- Specified by:
setMeshVicinity
in interfaceLandmark
- Parameters:
meshVicinity
- new closest mesh vicinity
-
hasMeshVicinity
public boolean hasMeshVicinity()Description copied from interface:Landmark
Returnstrue
, if the vicinity is set- Specified by:
hasMeshVicinity
in interfaceLandmark
- Returns:
true
, if the vicinity is set
-
getName
Description copied from interface:Landmark
Returns a short name of the landmark, either user-defined or standard name of anthropometric feature point. -
setName
Description copied from interface:Landmark
Sets new short name. -
getDescription
Description copied from interface:Landmark
Returns description of the landmark.- Specified by:
getDescription
in interfaceLandmark
- Returns:
- description of the landmark
-
setDescription
Description copied from interface:Landmark
Updates description.- Specified by:
setDescription
in interfaceLandmark
- Parameters:
description
- new description
-
getCode
Description copied from 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 interfaceLandmark
- Returns:
true
if the landmark is a standard anthropometric feature point
-
equals
-
hashCode
public int hashCode() -
toString
-