Package com.agisoft.metashape
Class Document
java.lang.Object
com.agisoft.metashape.Document
public class Document extends Object
-
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn -
Constructor Summary
-
Method Summary
Modifier and Type Method Description ChunkaddChunk()Add a new empty chunk to the document.voidappend(Document document, Progress progress)Append chunks from another document.voidclear()Remove all chunks from the project.voiddelete()Stringdump()Return document contents in XML format.protected voidfinalize()ChunkgetActiveChunk()Active chunk.ChunkgetChunk(int key)Chunk with specified key.int[]getChunkKeys()List of chunk keys in the document.Chunk[]getChunks()static longgetCPtr(Document obj)MetaDatagetMeta()Get project meta dataStringgetPath()booleanisReadOnly()Read only status.voidload(String text)Initialize document contents from XML format.voidopen(String path, boolean read_only, Progress progress)Open project.voidremove(Chunk chunk)Remove chunk from the project.voidsave(String path, int[] chunk_keys, int compression, boolean absolute_paths, Progress progress)Save project.voidsetActiveChunk(Chunk chunk)Active chunk.voidsetMeta(MetaData meta)Set project meta data.voidsetReadOnly(boolean read_only)Read only status.
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
Document
public Document(long cPtr, boolean cMemoryOwn) -
Document
public Document() -
Document
-
-
Method Details
-
getCPtr
-
finalize
protected void finalize() -
delete
public void delete() -
dump
Return document contents in XML format. -
load
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
Open project.- Parameters:
path- Path to the file.read_only- Open document in read-only mode.progress- Progress callback.
-
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
Add a new empty chunk to the document.- Returns:
- New chunk.
-
getChunks
- Returns:
- List of chunks in the document.
-
getChunkKeys
public int[] getChunkKeys()List of chunk keys in the document. -
getChunk
Chunk with specified key. -
getActiveChunk
Active chunk. -
setActiveChunk
Active chunk. -
remove
Remove chunk from the project.- Parameters:
chunk- Chunk to remove.
-
append
Append chunks from another document.- Parameters:
document- Document to append.
-
setMeta
Set project meta data. -
getMeta
Get project meta data
-