Package com.agisoft.metashape
Class Document
java.lang.Object
com.agisoft.metashape.Document
- All Implemented Interfaces:
AutoCloseable
-
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.voidclose()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[]protected static longgetMeta()Get project meta datagetPath()booleanRead only status.voidInitialize document contents from XML format.voidOpen project.voidRemove chunk from the project.voidSave some chunks 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
protected Document(long cPtr, boolean cMemoryOwn) -
Document
public Document() -
Document
-
-
Method Details
-
getCPtr
-
finalize
protected void finalize() -
delete
public void delete() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
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
Save project.- Parameters:
path- Path to the file.progress- Progress callback.
-
save
Save some chunks from the project.- Parameters:
path- Path to the file.chunk_keys- List of chunks to be saved.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
-