Class TiledModel

java.lang.Object
com.agisoft.metashape.TiledModel

public class TiledModel
extends Object
Tiled model.
  • Field Details

    • swigCMemOwn

      protected transient boolean swigCMemOwn
  • Constructor Details

    • TiledModel

      public TiledModel​(long cPtr, boolean cMemoryOwn)
    • TiledModel

      public TiledModel()
    • TiledModel

      public TiledModel​(TiledModel tiled_model)
  • Method Details

    • getCPtr

      public static long getCPtr​(TiledModel obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class Object
    • delete

      public void delete()
    • cArrayUnwrap

      public static long[] cArrayUnwrap​(TiledModel[] arrayWrapper)
    • cArrayWrap

      public static TiledModel[] cArrayWrap​(long[] cArray, boolean cMemoryOwn)
    • getKey

      public int getKey()
      Tiled model identifier.
    • getChunk

      public Chunk getChunk()
      Chunk container.
    • setLabel

      public void setLabel​(String label)
      Tiled model label.
    • getLabel

      public String getLabel()
      Tiled model label.
    • getPath

      public String getPath()
      Path to tiled model file.
    • setMeta

      public void setMeta​(MetaData meta)
      Tiled model meta data.
    • getMeta

      public MetaData getMeta()
      Tiled model meta data.
    • pickPoint

      public Vector3d pickPoint​(Vector3d origin, Vector3d target)
      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

      public Image renderPreview​(long width, long height, Matrix4x4d transform, Progress progress)
      Generate tiled model preview image.
      Parameters:
      width - Preview image width.
      height - Preview image height.
      transform - 4x4 viewpoint transformation matrix.
      Returns:
      Preview image.