Class TiledModel

java.lang.Object
com.agisoft.metashape.TiledModel
All Implemented Interfaces:
AutoCloseable

public class TiledModel extends Object implements AutoCloseable
Tiled model.
  • Field Details

    • swigCMemOwn

      protected transient boolean swigCMemOwn
  • Constructor Details

    • TiledModel

      protected TiledModel(long cPtr, boolean cMemoryOwn)
    • TiledModel

      public TiledModel(TiledModel tiled_model)
  • Method Details

    • getCPtr

      protected static long getCPtr(TiledModel obj)
    • finalize

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

      public void delete()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • getKey

      public int getKey()
      Tiled model identifier.
    • getChunk

      public Optional<Chunk> getChunk()
      Chunk container, may be null.
    • 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(Map<String,String> meta)
      Tiled model meta data.
    • getMeta

      public Map<String,String> getMeta()
      Tiled model meta data.
    • setTransform

      public void setTransform(Matrix transform)
      4x4 tiled model transformation matrix.
    • getTransform

      public Matrix getTransform()
      4x4 tiled model transformation matrix.
    • setCoordinateSystem

      public void setCoordinateSystem(Optional<CoordinateSystem> crs)
      Reference coordinate system, may be null.
    • getCoordinateSystem

      public Optional<CoordinateSystem> getCoordinateSystem()
      Reference coordinate system, may be null.
    • pickPoint

      public Optional<Vector> pickPoint(Vector origin, Vector target)
      Returns ray intersection with the tiled model.
      Parameters:
      origin - Ray origin.
      target - Point on the ray.
      Returns:
      Coordinates of the intersection point, may be null.
    • renderPreview

      public Image renderPreview(long width, long height, Matrix 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.