Package com.agisoft.metashape
Class TiledModel
java.lang.Object
com.agisoft.metashape.TiledModel
public class TiledModel extends Object
Tiled model.
-
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn -
Constructor Summary
Constructors Constructor Description TiledModel()TiledModel(long cPtr, boolean cMemoryOwn)TiledModel(TiledModel tiled_model) -
Method Summary
Modifier and Type Method Description static long[]cArrayUnwrap(TiledModel[] arrayWrapper)static TiledModel[]cArrayWrap(long[] cArray, boolean cMemoryOwn)voiddelete()protected voidfinalize()ChunkgetChunk()Chunk container.static longgetCPtr(TiledModel obj)intgetKey()Tiled model identifier.StringgetLabel()Tiled model label.MetaDatagetMeta()Tiled model meta data.StringgetPath()Path to tiled model file.Vector3dpickPoint(Vector3d origin, Vector3d target)Returns ray intersection with the tiled model.ImagerenderPreview(long width, long height, Matrix4x4d transform, Progress progress)Generate tiled model preview image.voidsetLabel(String label)Tiled model label.voidsetMeta(MetaData meta)Tiled model meta data.
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
TiledModel
public TiledModel(long cPtr, boolean cMemoryOwn) -
TiledModel
public TiledModel() -
TiledModel
-
-
Method Details
-
getCPtr
-
finalize
protected void finalize() -
delete
public void delete() -
cArrayUnwrap
-
cArrayWrap
-
getKey
public int getKey()Tiled model identifier. -
getChunk
Chunk container. -
setLabel
Tiled model label. -
getLabel
Tiled model label. -
getPath
Path to tiled model file. -
setMeta
Tiled model meta data. -
getMeta
Tiled model meta data. -
pickPoint
Returns ray intersection with the tiled model.- Parameters:
origin- Ray origin.target- Point on the ray.- Returns:
- Coordinates of the intersection point or null.
-
renderPreview
Generate tiled model preview image.- Parameters:
width- Preview image width.height- Preview image height.transform- 4x4 viewpoint transformation matrix.- Returns:
- Preview image.
-