public class WorldObject
Description of the object in the world.
Constructor and Description |
---|
WorldObject(int id,
WorldCoordinate position,
DetectionClass objectClass)
Description of the object in the world.
|
Modifier and Type | Method and Description |
---|---|
int |
component1()
Unique identifier of the object.
|
WorldCoordinate |
component2()
Coordinate of the object relative to the camera
|
DetectionClass |
component3()
Type of the object
|
WorldObject |
copy(int id,
WorldCoordinate position,
DetectionClass objectClass)
Description of the object in the world.
|
boolean |
equals(java.lang.Object p) |
int |
getId()
Unique identifier of the object.
|
DetectionClass |
getObjectClass()
Type of the object
|
WorldCoordinate |
getPosition()
Coordinate of the object relative to the camera
|
int |
hashCode() |
java.lang.String |
toString() |
public WorldObject(int id, WorldCoordinate position, DetectionClass objectClass)
Description of the object in the world.
id
- Unique identifier of the object.All the objects are tracked, so the identifier determines the object across framesposition
- Coordinate of the object relative to the cameraobjectClass
- Type of the objectid
- Unique identifier of the object.
All the objects are tracked, so the identifier determines the object across framesposition
- Coordinate of the object relative to the cameraobjectClass
- Type of the objectpublic int getId()
Unique identifier of the object.
All the objects are tracked, so the identifier determines the object across frames
public WorldCoordinate getPosition()
Coordinate of the object relative to the camera
public DetectionClass getObjectClass()
Type of the object
public int component1()
Unique identifier of the object.
All the objects are tracked, so the identifier determines the object across frames
public WorldCoordinate component2()
Coordinate of the object relative to the camera
public DetectionClass component3()
Type of the object
public WorldObject copy(int id, WorldCoordinate position, DetectionClass objectClass)
Description of the object in the world.
id
- Unique identifier of the object.
All the objects are tracked, so the identifier determines the object across framesposition
- Coordinate of the object relative to the cameraobjectClass
- Type of the objectpublic java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)