public interface SpatialObject
Modifier and Type | Method and Description |
---|---|
void |
addEntryPoint(java.lang.String name,
Length xPos,
Length yPos,
Length zPos)
Adds an entry point to this SpatialObject.
|
void |
addExitPoint(java.lang.String name,
Length xPos,
Length yPos,
Length zPos)
Adds an exit point to this SpatialObject.
|
Length[] |
getEntryPoint(java.lang.String name)
Gets the position of the given entry point.
|
Length[] |
getEntryPointGlobal(java.lang.String name)
Gets the position of the entry point in global coordinates.
|
java.util.Set<java.lang.String> |
getEntryPointNames()
Gets a set of names of all the entry points this SpatialObject contains.
|
Length[] |
getExitPoint(java.lang.String name)
Gets the position of the given exit point.
|
Length[] |
getExitPointGlobal(java.lang.String name)
Gets the position of the exit point in global coordinates.
|
java.util.Set<java.lang.String> |
getExitPointNames()
Gets a set of names of all the exit points this SpatialObject contains.
|
Matrix4d |
getMatrix()
Gets a 4x4 double matrix object which contains the spatial data of the SpatialObejct.
|
java.lang.String |
getName()
Returns the name of the named object.
|
Length |
getPosX() |
Length |
getPosY() |
Length |
getPosZ() |
boolean |
isMovable()
Check whether this Object is a MovableSpatialObject or not.
|
void |
resetRotation()
Resets the rotation of the object.
|
void |
rotX(double angle)
Adds a rotation about the x-axis to the current orientation.
|
void |
rotY(double angle)
Adds a rotation about the y-axis to the current orientation.
|
void |
rotZ(double angle)
Adds a rotation about the z-axis to the current orientation.
|
void |
setPosition(Length x,
Length y,
Length z)
It sets the new position for the object
|
void addEntryPoint(java.lang.String name, Length xPos, Length yPos, Length zPos)
name
- The name of this entry point.xPos
- The x-position of this entry point in local coordinates.yPos
- The y-position of this entry point in local coordinates.zPos
- The z-position of this entry point in local coordinates.void addExitPoint(java.lang.String name, Length xPos, Length yPos, Length zPos)
name
- The name of this exit point.xPos
- The x-position of this exit point in local coordinates.yPos
- The y-position of this exit point in local coordinates.zPos
- The z-position of this exit point in local coordinates.java.util.Set<java.lang.String> getEntryPointNames()
java.util.Set<java.lang.String> getExitPointNames()
Length[] getEntryPoint(java.lang.String name)
name
- The name of the entry point.Length[] getEntryPointGlobal(java.lang.String name)
name
- The name of the entry point.Length[] getExitPoint(java.lang.String name)
name
- The name of the exit point.Length[] getExitPointGlobal(java.lang.String name)
name
- The name of the exit point.Matrix4d getMatrix()
java.lang.String getName()
Length getPosX()
Length getPosY()
Length getPosZ()
boolean isMovable()
void resetRotation()
void rotX(double angle)
angle
- The rotation angle in radiansvoid rotY(double angle)
angle
- The rotation angle in radiansvoid rotZ(double angle)
angle
- The rotation angle in radians