public class TiledModel
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Modifier | Constructor and Description |
---|---|
protected |
TiledModel(long cPtr,
boolean cMemoryOwn) |
|
TiledModel(TiledModel tiled_model) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
delete() |
protected void |
finalize() |
java.util.Optional<Chunk> |
getChunk()
Chunk container, may be null.
|
java.util.Optional<CoordinateSystem> |
getCoordinateSystem()
Reference coordinate system, may be null.
|
protected static long |
getCPtr(TiledModel obj) |
int |
getKey()
Tiled model identifier.
|
java.lang.String |
getLabel()
Tiled model label.
|
java.util.Map<java.lang.String,java.lang.String> |
getMeta()
Tiled model meta data.
|
java.lang.String |
getPath()
Path to tiled model file.
|
Matrix |
getTransform()
4x4 tiled model transformation matrix.
|
java.util.Optional<Vector> |
pickPoint(Vector origin,
Vector target)
Returns ray intersection with the tiled model.
|
Image |
renderPreview(long width,
long height,
Matrix transform,
Progress progress)
Generate tiled model preview image.
|
void |
setCoordinateSystem(CoordinateSystem crs)
Reference coordinate system, may be null.
|
void |
setLabel(java.lang.String label)
Tiled model label.
|
void |
setMeta(java.util.Map<java.lang.String,java.lang.String> meta)
Tiled model meta data.
|
void |
setTransform(Matrix transform)
4x4 tiled model transformation matrix.
|
protected TiledModel(long cPtr, boolean cMemoryOwn)
public TiledModel(TiledModel tiled_model)
protected static long getCPtr(TiledModel 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 setLabel(java.lang.String label)
public java.lang.String getLabel()
public java.lang.String getPath()
public void setMeta(java.util.Map<java.lang.String,java.lang.String> meta)
public java.util.Map<java.lang.String,java.lang.String> getMeta()
public void setTransform(Matrix transform)
public Matrix getTransform()
public void setCoordinateSystem(CoordinateSystem crs)
public java.util.Optional<CoordinateSystem> getCoordinateSystem()
public java.util.Optional<Vector> pickPoint(Vector origin, Vector target)
origin
- Ray origin.target
- Point on the ray.