public class Marker
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Class and Description |
---|---|
static class |
Marker.Projection |
static class |
Marker.Reference |
static class |
Marker.Type |
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Modifier | Constructor and Description |
---|---|
protected |
Marker(long cPtr,
boolean cMemoryOwn) |
|
Marker(Marker marker) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
delete() |
protected void |
finalize() |
int[] |
getCameraKeys()
List of camera keys containing marker projections.
|
java.util.Optional<Chunk> |
getChunk()
Chunk container, may be null.
|
protected static long |
getCPtr(Marker obj) |
int |
getKey()
Marker identifier.
|
java.lang.String |
getLabel()
Marker label.
|
java.util.Map<java.lang.String,java.lang.String> |
getMeta()
Marker meta data.
|
java.util.Optional<Vector> |
getPosition()
Marker position in the current frame, may be null.
|
java.util.Optional<Marker.Projection> |
getProjection(int camera)
Get marker projection.
|
Marker.Reference |
getReference()
Marker reference data.
|
Marker.Type |
getType()
Marker type.
|
boolean |
isEnabled()
Enables/disables the marker.
|
boolean |
isSelected()
Selects/deselects the marker.
|
void |
setEnabled(boolean state)
Enables/disables the marker.
|
void |
setLabel(java.lang.String label)
Marker label.
|
void |
setMeta(java.util.Map<java.lang.String,java.lang.String> meta)
Marker meta data.
|
void |
setProjection(int camera,
Marker.Projection projection)
Set marker projection.
|
void |
setReference(Marker.Reference reference)
Marker reference data.
|
void |
setSelected(boolean state)
Selects/deselects the marker.
|
void |
setType(Marker.Type type)
Marker type.
|
protected Marker(long cPtr, boolean cMemoryOwn)
public Marker(Marker marker)
protected static long getCPtr(Marker obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public void close()
close
in interface java.lang.AutoCloseable
public int getKey()
public java.util.Optional<Chunk> getChunk()
public void setType(Marker.Type type)
public Marker.Type getType()
public void setLabel(java.lang.String label)
public java.lang.String getLabel()
public void setEnabled(boolean state)
public boolean isEnabled()
public void setSelected(boolean state)
public boolean isSelected()
public void setProjection(int camera, Marker.Projection projection)
camera
- Camera key.projection
- Image coordinates, may be null.public java.util.Optional<Marker.Projection> getProjection(int camera)
camera
- Camera key.public java.util.Optional<Vector> getPosition()
public int[] getCameraKeys()
public Marker.Reference getReference()
public void setReference(Marker.Reference reference)
public void setMeta(java.util.Map<java.lang.String,java.lang.String> meta)
public java.util.Map<java.lang.String,java.lang.String> getMeta()