Package com.agisoft.metashape
Class Document
java.lang.Object
com.agisoft.metashape.Document
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddChunk()Add a new empty chunk to the document.voidAppend chunks from another document.voidclear()Remove all chunks from the project.voiddelete()dump()Return document contents in XML format.protected voidfinalize()Active chunk.getChunk(int key) Chunk with specified key, may be null.int[]List of chunk keys in the document.Chunk[]static longgetMeta()Get project meta datagetPath()booleanRead only status.voidInitialize document contents from XML format.voidOpen project.voidRemove chunk from the project.voidSave project.voidsetActiveChunk(Chunk chunk) Active chunk.voidSet 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, may be null. -
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
-