Class Document

java.lang.Object
com.agisoft.metashape.Document

public class Document extends Object
  • Field Details

    • swigCMemOwn

      protected transient boolean swigCMemOwn
  • Constructor Details

    • Document

      public Document(long cPtr, boolean cMemoryOwn)
    • Document

      public Document()
    • Document

      public Document(Document document)
  • Method Details

    • getCPtr

      public static long getCPtr(Document obj)
    • finalize

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

      public void delete()
    • dump

      public String dump()
      Return document contents in XML format.
    • load

      public void load(String text)
      Initialize document contents from XML format.
    • clear

      public void clear()
      Remove all chunks from the project.
    • save

      public void save(String path, int[] chunk_keys, int compression, boolean absolute_paths, Progress progress)
      Save project.
      Parameters:
      path - Path to the file.
      chunk_keys - List of chunks to be saved.
      compression - Project compression level.
      absolute_paths - Store absolute image paths.
      progress - Progress callback.
    • open

      public void open(String path, boolean read_only, Progress progress)
      Open project.
      Parameters:
      path - Path to the file.
      read_only - Open document in read-only mode.
      progress - Progress callback.
    • getPath

      public String getPath()
      Returns:
      Path to the document file.
    • setReadOnly

      public void setReadOnly(boolean read_only)
      Read only status.
    • isReadOnly

      public boolean isReadOnly()
      Read only status.
    • addChunk

      public Chunk addChunk()
      Add a new empty chunk to the document.
      Returns:
      New chunk.
    • getChunks

      public Chunk[] getChunks()
      Returns:
      List of chunks in the document.
    • getChunkKeys

      public int[] getChunkKeys()
      List of chunk keys in the document.
    • getChunk

      public Chunk getChunk(int key)
      Chunk with specified key, may be null.
    • getActiveChunk

      public Chunk getActiveChunk()
      Active chunk.
    • setActiveChunk

      public void setActiveChunk(Chunk chunk)
      Active chunk.
    • remove

      public void remove(Chunk chunk)
      Remove chunk from the project.
      Parameters:
      chunk - Chunk to remove.
    • append

      public void append(Document document, Progress progress)
      Append chunks from another document.
      Parameters:
      document - Document to append.
    • setMeta

      public void setMeta(MetaData meta)
      Set project meta data.
    • getMeta

      public MetaData getMeta()
      Get project meta data