public class Chunk
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Modifier | Constructor and Description |
---|---|
|
Chunk(Chunk chunk) |
protected |
Chunk(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
Camera |
addCamera()
Add new camera to the chunk.
|
CameraGroup |
addCameraGroup()
Add new camera group to the chunk.
|
CameraTrack |
addCameraTrack()
Add new camera track to the chunk.
|
Chunk |
addFrame()
Add new frame to the chunk.
|
Marker |
addMarker()
Add new marker to the chunk.
|
Marker |
addMarker(Vector point,
boolean visibility)
Add new marker to the chunk.
|
MarkerGroup |
addMarkerGroup()
Add new marker group to the chunk.
|
void |
addPhotos(java.lang.String[] paths,
Progress progress) |
Scalebar |
addScalebar(Camera first,
Camera second)
Add new scale bar to the chunk.
|
Scalebar |
addScalebar(Marker first,
Marker second)
Add new scale bar to the chunk.
|
ScalebarGroup |
addScalebarGroup()
Add new scale bar group to the chunk.
|
Sensor |
addSensor()
Add new sensor to the chunk.
|
void |
close() |
void |
delete() |
java.lang.String |
dump()
Returns chunk contents in XML format.
|
protected void |
finalize() |
java.util.Optional<Camera> |
getCamera(int key)
Camera with specified key, may be null.
|
java.util.Optional<CoordinateSystem> |
getCameraCoordinateSystem()
Coordinate system used for camera reference data, may be null.
|
java.util.Optional<CameraGroup> |
getCameraGroup(int key)
Camera group with specified key, may be null.
|
int[] |
getCameraGroupKeys()
List of camera group keys in the chunk.
|
CameraGroup[] |
getCameraGroups()
List of camera groups in the chunk.
|
int[] |
getCameraKeys()
List of camera keys in the chunk.
|
Vector |
getCameraLocationAccuracy()
Expected accuracy of camera coordinates in meters.
|
Vector |
getCameraOrientationAccuracy()
Expected accuracy of camera orientation angles in degrees.
|
Camera[] |
getCameras()
List of Regular and Keyframe cameras in the chunk.
|
java.util.Optional<CameraTrack> |
getCameraTrack(int key)
Camera track with specified key, may be null.
|
int[] |
getCameraTrackKeys()
List of camera track keys in the chunk.
|
CameraTrack[] |
getCameraTracks()
List of camera tracks in the chunk.
|
java.util.Optional<Matrix> |
getCirCalibration()
CIR calibration matrix, may be null.
|
CoordinateSystem |
getCoordinateSystem()
Coordinate system used for reference data.
|
protected static long |
getCPtr(Chunk obj) |
java.util.Optional<DepthMaps> |
getDepthMaps()
Default depth maps set for the current frame, may be null.
|
DepthMaps[] |
getDepthMapsSets()
List of depth maps sets for the current frame.
|
java.util.Optional<Document> |
getDocument()
Document container, may be null.
|
java.util.Optional<Elevation> |
getElevation()
Default elevation model for the current frame, may be null.
|
Elevation[] |
getElevations()
List of elevation models for the current frame.
|
java.util.Optional<Chunk> |
getFrame(int key)
Frame with specified key, may be null.
|
int |
getFrameKey()
Frame identifier.
|
int[] |
getFrameKeys()
List of frame keys in the chunk.
|
Chunk[] |
getFrames()
List of frames in the chunk.
|
double |
getImageBrightness()
Image brightness as percentage.
|
double |
getImageContrast()
Image contrast as percentage.
|
int |
getKey()
Chunk identifier.
|
java.lang.String |
getLabel()
Chunk label.
|
java.util.Optional<Marker> |
getMarker(int key)
Marker with specified key, may be null.
|
java.util.Optional<CoordinateSystem> |
getMarkerCoordinateSystem()
Coordinate system used for marker reference data, may be null.
|
java.util.Optional<MarkerGroup> |
getMarkerGroup(int key)
Marker group with specified key, may be null.
|
int[] |
getMarkerGroupKeys()
List of marker group keys in the chunk.
|
MarkerGroup[] |
getMarkerGroups()
List of marker groups in the chunk.
|
int[] |
getMarkerKeys()
List of marker keys in the chunk.
|
Vector |
getMarkerLocationAccuracy()
Expected accuracy of marker coordinates in meters.
|
double |
getMarkerProjectionAccuracy()
Expected accuracy of marker projections in pixels.
|
Marker[] |
getMarkers()
List of Regular, Vertex and Fiducial markers in the chunk.
|
java.util.Map<java.lang.String,java.lang.String> |
getMeta()
Chunk meta data.
|
java.util.Optional<Model> |
getModel()
Default model for the current frame, may be null.
|
java.util.Optional<ModelGroup> |
getModelGroup()
Default model group for the current frame, may be null.
|
ModelGroup[] |
getModelGroups()
List of model groups for the current frame.
|
Model[] |
getModels()
List of models for the current frame.
|
java.util.Optional<Orthomosaic> |
getOrthomosaic()
Default orthomosaic for the current frame, may be null.
|
Orthomosaic[] |
getOrthomosaics()
List of orthomosaics for the current frame.
|
java.util.Optional<PointCloud> |
getPointCloud()
Default point cloud for the current frame, may be null.
|
PointCloudGroup[] |
getPointCloudGroups()
List of point cloud groups for the current frame.
|
PointCloud[] |
getPointClouds()
List of point clouds for the current frame.
|
int |
getPrimaryChannel()
Primary channel index (-1 for default).
|
java.util.Optional<RasterTransform> |
getRasterTransform()
Raster transform, may be null.
|
Region |
getRegion()
Reconstruction volume selection.
|
java.util.Optional<Scalebar> |
getScalebar(int key)
Scale bar with specified key, may be null.
|
java.util.Optional<ScalebarGroup> |
getScalebarGroup(int key)
Scale bar group with specified key, may be null.
|
int[] |
getScalebarGroupKeys()
List of scale bar group keys in the chunk.
|
ScalebarGroup[] |
getScalebarGroups()
List of scale bar groups in the chunk.
|
int[] |
getScalebarKeys()
List of scale bar keys in the chunk.
|
Scalebar[] |
getScalebars()
List of scale bars in the chunk.
|
java.util.Optional<Sensor> |
getSensor(int key)
Sensor with specified key, may be null.
|
int[] |
getSensorKeys()
List of sensor keys in the chunk.
|
Sensor[] |
getSensors()
List of sensors in the chunk.
|
java.util.Optional<Shapes> |
getShapes()
Shapes for the current frame, may be null.
|
double |
getTiepointProjectionAccuracy()
Expected tie point accuracy in pixels.
|
java.util.Optional<TiePoints> |
getTiePoints()
Generated tie point cloud, may be null.
|
java.util.Optional<TiledModel> |
getTiledModel()
Default tiled model for the current frame, may be null.
|
TiledModel[] |
getTiledModels()
List of tiled models for the current frame.
|
Transform |
getTransform()
Transformation parameters specifying chunk location in the world coordinate system.
|
boolean |
hasDepthMaps() |
boolean |
hasElevation() |
boolean |
hasModel() |
boolean |
hasOrthomosaic() |
boolean |
hasPointCloud() |
boolean |
hasShapes() |
boolean |
hasTiePoints() |
boolean |
hasTiledModel() |
boolean |
hasTransform() |
boolean |
isEnabled()
Enables/disables the chunk.
|
boolean |
isSelected()
Selects/deselects the chunk.
|
void |
load(java.lang.String text)
Initializes chunk contents from XML format.
|
boolean |
loadReferenceExif(boolean load_rotation,
boolean load_accuracy)
Import camera locations from EXIF meta data.
|
void |
removeCameraGroups(int[] keys)
Remove camera groups from the chunk.
|
void |
removeCameras(int[] keys)
Remove cameras from the chunk.
|
void |
removeCameraTracks(int[] keys)
Remove camera tracks from the chunk.
|
void |
removeDepthMaps() |
void |
removeElevation() |
void |
removeFrames(int[] keys)
Remove frames from the chunk.
|
void |
removeMarkerGroups(int[] keys)
Remove marker groups from the chunk.
|
void |
removeMarkers(int[] keys)
Remove markers from the chunk.
|
void |
removeModel() |
void |
removeOrthomosaic() |
void |
removePointCloud() |
void |
removeScalebarGroups(int[] keys)
Remove scalebars from the chunk.
|
void |
removeScalebars(int[] keys)
Remove scalebars from the chunk.
|
void |
removeSensors(int[] keys)
Remove sensors from the chunk.
|
void |
removeShapes() |
void |
removeTiePoints() |
void |
removeTiledModel() |
Image |
renderPreview(long width,
long height,
Matrix transform,
int point_size,
Progress progress)
Generate chunk preview image.
|
void |
resetRegion()
Reset reconstruction volume selector to default position.
|
void |
resetTransform() |
void |
setCameraCoordinateSystem(CoordinateSystem crs)
Coordinate system used for camera reference data, may be null.
|
void |
setCameraLocationAccuracy(Vector accuracy)
Expected accuracy of camera coordinates in meters.
|
void |
setCameraOrientationAccuracy(Vector accuracy)
Expected accuracy of camera orientation angles in degrees.
|
void |
setCirCalibration(Matrix calibration)
CIR calibration matrix, may be null.
|
void |
setCoordinateSystem(CoordinateSystem crs)
Coordinate system used for reference data.
|
void |
setDepthMapsKey(int key) |
void |
setElevationKey(int key) |
void |
setEnabled(boolean state)
Enables/disables the chunk.
|
void |
setImageBrightness(double brightness)
Image brightness as percentage.
|
void |
setImageContrast(double contrast)
Image contrast as percentage.
|
void |
setLabel(java.lang.String label)
Chunk label.
|
void |
setMarkerCoordinateSystem(CoordinateSystem crs)
Coordinate system used for marker reference data, may be null.
|
void |
setMarkerLocationAccuracy(Vector accuracy)
Expected accuracy of marker coordinates in meters.
|
void |
setMarkerProjectionAccuracy(double accuracy)
Expected accuracy of marker projections in pixels.
|
void |
setMeta(java.util.Map<java.lang.String,java.lang.String> meta)
Chunk meta data.
|
void |
setModelGroupKey(int key) |
void |
setModelKey(int key) |
void |
setOrthomosaicKey(int key) |
void |
setPointCloudKey(int key) |
void |
setPrimaryChannel(int channel)
Primary channel index (-1 for default).
|
void |
setRasterTransform(RasterTransform transform)
Raster transform, may be null.
|
void |
setRegion(Region region)
Reconstruction volume selection.
|
void |
setSelected(boolean state)
Selects/deselects the chunk.
|
void |
setShapes(Shapes shapes)
Shapes for the current frame, may be null.
|
void |
setTiepointProjectionAccuracy(double accuracy)
Expected tie point accuracy in pixels.
|
void |
setTiePoints(TiePoints tie_points)
Generated tie point cloud, may be null.
|
void |
setTiledModelKey(int key) |
void |
setTransform(Transform transform)
Transformation parameters specifying chunk location in the world coordinate system.
|
void |
thinTiePoints(int point_limit)
Remove excessive tracks from the tie point cloud.
|
void |
updateCirCalibration(Progress progress)
Estimate CIR calibration matrix.
|
void |
updateTransform()
Update chunk transformation based on reference data.
|
protected Chunk(long cPtr, boolean cMemoryOwn)
public Chunk(Chunk chunk)
protected static long getCPtr(Chunk obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public void close()
close
in interface java.lang.AutoCloseable
public java.lang.String dump()
public void load(java.lang.String text)
public int getKey()
public int getFrameKey()
public java.util.Optional<Document> getDocument()
public void setLabel(java.lang.String label)
public java.lang.String getLabel()
public void setEnabled(boolean state)
public boolean isEnabled()
public void setSelected(boolean state)
public boolean isSelected()
public Chunk[] getFrames()
public Sensor[] getSensors()
public CameraGroup[] getCameraGroups()
public MarkerGroup[] getMarkerGroups()
public ScalebarGroup[] getScalebarGroups()
public Camera[] getCameras()
public Marker[] getMarkers()
public Scalebar[] getScalebars()
public CameraTrack[] getCameraTracks()
public int[] getFrameKeys()
public int[] getSensorKeys()
public int[] getCameraGroupKeys()
public int[] getMarkerGroupKeys()
public int[] getScalebarGroupKeys()
public int[] getCameraKeys()
public int[] getMarkerKeys()
public int[] getScalebarKeys()
public int[] getCameraTrackKeys()
public java.util.Optional<Chunk> getFrame(int key)
public java.util.Optional<Sensor> getSensor(int key)
public java.util.Optional<CameraGroup> getCameraGroup(int key)
public java.util.Optional<MarkerGroup> getMarkerGroup(int key)
public java.util.Optional<ScalebarGroup> getScalebarGroup(int key)
public java.util.Optional<Camera> getCamera(int key)
public java.util.Optional<Marker> getMarker(int key)
public java.util.Optional<Scalebar> getScalebar(int key)
public java.util.Optional<CameraTrack> getCameraTrack(int key)
public Chunk addFrame()
public Sensor addSensor()
public CameraGroup addCameraGroup()
public MarkerGroup addMarkerGroup()
public ScalebarGroup addScalebarGroup()
public Camera addCamera()
public Marker addMarker()
public CameraTrack addCameraTrack()
public Marker addMarker(Vector point, boolean visibility)
point
- Point to initialize marker projections.visibility
- Enables visibility check during projection assignment.public Scalebar addScalebar(Camera first, Camera second)
first
- First endpoint.second
- Second endpoint.public Scalebar addScalebar(Marker first, Marker second)
first
- First endpoint.second
- Second endpoint.public void removeFrames(int[] keys)
keys
- List of frame keys to remove.public void removeSensors(int[] keys)
keys
- List of sensor keys to remove.public void removeCameraGroups(int[] keys)
keys
- List of camera group keys to remove.public void removeMarkerGroups(int[] keys)
keys
- List of marker group keys to remove.public void removeScalebarGroups(int[] keys)
keys
- List of scalebar group keys to remove.public void removeCameras(int[] keys)
keys
- List of camera keys to remove.public void removeMarkers(int[] keys)
keys
- List of marker keys to remove.public void removeScalebars(int[] keys)
keys
- List of scalebar keys to remove.public void removeCameraTracks(int[] keys)
keys
- List of camera track keys to remove.public void setCoordinateSystem(CoordinateSystem crs)
public CoordinateSystem getCoordinateSystem()
public void setCameraCoordinateSystem(CoordinateSystem crs)
public java.util.Optional<CoordinateSystem> getCameraCoordinateSystem()
public void setMarkerCoordinateSystem(CoordinateSystem crs)
public java.util.Optional<CoordinateSystem> getMarkerCoordinateSystem()
public void setTransform(Transform transform)
public Transform getTransform()
public void resetTransform()
public boolean hasTransform()
public void updateTransform()
public void setRegion(Region region)
public Region getRegion()
public void resetRegion()
public void setCirCalibration(Matrix calibration)
public java.util.Optional<Matrix> getCirCalibration()
public void updateCirCalibration(Progress progress)
public void setRasterTransform(RasterTransform transform)
public java.util.Optional<RasterTransform> getRasterTransform()
public void setCameraLocationAccuracy(Vector accuracy)
public Vector getCameraLocationAccuracy()
public void setCameraOrientationAccuracy(Vector accuracy)
public Vector getCameraOrientationAccuracy()
public void setMarkerLocationAccuracy(Vector accuracy)
public Vector getMarkerLocationAccuracy()
public void setMarkerProjectionAccuracy(double accuracy)
public double getMarkerProjectionAccuracy()
public void setTiepointProjectionAccuracy(double accuracy)
public double getTiepointProjectionAccuracy()
public void setPrimaryChannel(int channel)
public int getPrimaryChannel()
public void setImageBrightness(double brightness)
public double getImageBrightness()
public void setImageContrast(double contrast)
public double getImageContrast()
public boolean hasTiePoints()
public boolean hasPointCloud()
public boolean hasDepthMaps()
public boolean hasModel()
public boolean hasTiledModel()
public boolean hasElevation()
public boolean hasOrthomosaic()
public boolean hasShapes()
public void setTiePoints(TiePoints tie_points)
public java.util.Optional<TiePoints> getTiePoints()
public java.util.Optional<PointCloud> getPointCloud()
public java.util.Optional<DepthMaps> getDepthMaps()
public java.util.Optional<Model> getModel()
public java.util.Optional<ModelGroup> getModelGroup()
public java.util.Optional<TiledModel> getTiledModel()
public java.util.Optional<Elevation> getElevation()
public java.util.Optional<Orthomosaic> getOrthomosaic()
public void setShapes(Shapes shapes)
public java.util.Optional<Shapes> getShapes()
public void removeTiePoints()
public void removePointCloud()
public void removeDepthMaps()
public void removeModel()
public void removeTiledModel()
public void removeElevation()
public void removeOrthomosaic()
public void removeShapes()
public DepthMaps[] getDepthMapsSets()
public PointCloud[] getPointClouds()
public PointCloudGroup[] getPointCloudGroups()
public Model[] getModels()
public ModelGroup[] getModelGroups()
public TiledModel[] getTiledModels()
public Elevation[] getElevations()
public Orthomosaic[] getOrthomosaics()
public void setDepthMapsKey(int key)
public void setPointCloudKey(int key)
public void setModelKey(int key)
public void setModelGroupKey(int key)
public void setTiledModelKey(int key)
public void setElevationKey(int key)
public void setOrthomosaicKey(int key)
public void setMeta(java.util.Map<java.lang.String,java.lang.String> meta)
public java.util.Map<java.lang.String,java.lang.String> getMeta()
public boolean loadReferenceExif(boolean load_rotation, boolean load_accuracy)
load_rotation
- Load yaw, pitch and roll orientation angles.load_accuracy
- Load camera location accuracy.public void addPhotos(java.lang.String[] paths, Progress progress)
public void thinTiePoints(int point_limit)
point_limit
- Maximum number of points for each photo.public Image renderPreview(long width, long height, Matrix transform, int point_size, Progress progress)
width
- Preview image width.height
- Preview image height.transform
- 4x4 viewpoint transformation matrix.point_size
- Point size.