Interface Landmark
- All Superinterfaces:
IPosition
,Serializable
- All Known Implementing Classes:
FeaturePointImpl
,LandmarkAbstract
,LandmarkImpl
Either user-defined or standard anthropometric feature point.
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones the landmarkgetCode()
Returns a short codeReturns description of the landmark.Returns the closest mesh vicinitygetName()
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.boolean
Returnstrue
, if the vicinity is setboolean
Determines whether the landmark is standard anthropometric feature point or user-defined landmark.default boolean
Determines whether the landmark is standard anthropometric feature point or user-defined landmark.static Collection
<Landmark> landmarksOfTheSameType
(Collection<Landmark> col1, Collection<Landmark> col2) Find landmarks of the same type (id).void
setDescription
(String description) Updates description.void
setMeshVicinity
(MeshVicinity meshVicinity) Updates the closest mesh vicinityvoid
Sets new short name.void
setPosition
(javax.vecmath.Point3d position) Update 3D position
-
Method Details
-
getType
int getType()Returns unique ID aka type of the feature point or user-defined landmark.- Returns:
- unique ID
-
getPosition
javax.vecmath.Point3d getPosition()Description copied from interface:IPosition
get position of thePoint3d
object- Specified by:
getPosition
in interfaceIPosition
- Returns:
- position of the
Point3d
object
-
setPosition
void setPosition(javax.vecmath.Point3d position) Update 3D position- Parameters:
position
- New 3D position. Must not benull
-
clone
Landmark clone()Clones the landmark- Returns:
- a clone of the landmark
-
getMeshVicinity
MeshVicinity getMeshVicinity()Returns the closest mesh vicinity- Returns:
- the closest mesh vicinity
-
setMeshVicinity
Updates the closest mesh vicinity- Parameters:
meshVicinity
- new closest mesh vicinity
-
hasMeshVicinity
boolean hasMeshVicinity()Returnstrue
, if the vicinity is set- Returns:
true
, if the vicinity is set
-
getName
String getName()Returns a short name of the landmark, either user-defined or standard name of anthropometric feature point.- Returns:
- a short name
-
setName
Sets new short name.- Parameters:
name
- new name
-
getDescription
String getDescription()Returns description of the landmark.- Returns:
- description of the landmark
-
setDescription
Updates description.- Parameters:
description
- new description
-
getCode
String getCode()Returns a short code- Returns:
- a short code
-
isStandardFeaturePoint
boolean isStandardFeaturePoint()Determines whether the landmark is standard anthropometric feature point or user-defined landmark.- Returns:
true
if the landmark is a standard anthropometric feature point
-
isUserDefinedLandmark
default boolean isUserDefinedLandmark()Determines whether the landmark is standard anthropometric feature point or user-defined landmark.- Returns:
true
if the landmark is a user-defined landmark
-
landmarksOfTheSameType
static Collection<Landmark> landmarksOfTheSameType(Collection<Landmark> col1, Collection<Landmark> col2) Find landmarks of the same type (id). Landmarks of ID -1 are skipped.- Parameters:
col1
- First collection. Must not benull
col2
- Second collection. Must not benull
- Returns:
- Landmarks of the same type
-