public class Chunk
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
swigCMemOwn |
| Constructor and Description |
|---|
Chunk(Chunk chunk) |
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(Vector3d 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.
|
static long[] |
cArrayUnwrap(Chunk[] arrayWrapper) |
static Chunk[] |
cArrayWrap(long[] cArray,
boolean cMemoryOwn) |
void |
delete() |
java.lang.String |
dump()
Returns chunk contents in XML format.
|
protected void |
finalize() |
Camera |
getCamera(int key)
Camera with specified key, may be null.
|
CoordinateSystem |
getCameraCoordinateSystem()
Coordinate system used for camera reference data, may be null.
|
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.
|
Vector3d |
getCameraLocationAccuracy()
Expected accuracy of camera coordinates in meters.
|
Vector3d |
getCameraOrientationAccuracy()
Expected accuracy of camera orientation angles in degrees.
|
Camera[] |
getCameras()
List of Regular and Keyframe cameras in the chunk.
|
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.
|
Matrix3x3d |
getCirCalibration()
CIR calibration matrix, may be null.
|
CoordinateSystem |
getCoordinateSystem()
Coordinate system used for reference data.
|
static long |
getCPtr(Chunk obj) |
DenseCloud |
getDenseCloud()
Default dense point cloud for the current frame, may be null.
|
DenseCloud[] |
getDenseClouds()
List of dense clouds for the current frame.
|
DepthMaps |
getDepthMaps()
Default depth maps set for the current frame, may be null.
|
DepthMaps[] |
getDepthMapsSets()
List of depth maps sets for the current frame.
|
Document |
getDocument()
Document container, may be null.
|
Elevation |
getElevation()
Default elevation model for the current frame, may be null.
|
Elevation[] |
getElevations()
List of elevation models for the current frame.
|
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.
|
Marker |
getMarker(int key)
Marker with specified key, may be null.
|
CoordinateSystem |
getMarkerCoordinateSystem()
Coordinate system used for marker reference data, may be null.
|
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.
|
Vector3d |
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.
|
MetaData |
getMeta()
Chunk meta data.
|
Model |
getModel()
Default model for the current frame, may be null.
|
Model[] |
getModels()
List of models for the current frame.
|
Orthomosaic |
getOrthomosaic()
Default orthomosaic for the current frame, may be null.
|
Orthomosaic[] |
getOrthomosaics()
List of orthomosaics for the current frame.
|
PointCloud |
getPointCloud()
Generated sparse point cloud, may be null.
|
int |
getPrimaryChannel()
Primary channel index (-1 for default).
|
RasterTransform |
getRasterTransform()
Raster transform, may be null.
|
Region |
getRegion()
Reconstruction volume selection.
|
Scalebar |
getScalebar(int key)
Scale bar with specified key, may be null.
|
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.
|
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.
|
Shapes |
getShapes()
Shapes for the current frame, may be null.
|
double |
getTiepointProjectionAccuracy()
Expected tie point accuracy in pixels.
|
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 |
hasDenseCloud() |
boolean |
hasDepthMaps() |
boolean |
hasElevation() |
boolean |
hasModel() |
boolean |
hasOrthomosaic() |
boolean |
hasPointCloud() |
boolean |
hasShapes() |
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 |
removeDenseCloud() |
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 |
removeTiledModel() |
Image |
renderPreview(long width,
long height,
Matrix4x4d 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(Vector3d accuracy)
Expected accuracy of camera coordinates in meters.
|
void |
setCameraOrientationAccuracy(Vector3d accuracy)
Expected accuracy of camera orientation angles in degrees.
|
void |
setCirCalibration(Matrix3x3d calibration)
CIR calibration matrix, may be null.
|
void |
setCoordinateSystem(CoordinateSystem crs)
Coordinate system used for reference data.
|
void |
setDenseCloudKey(int key) |
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(Vector3d accuracy)
Expected accuracy of marker coordinates in meters.
|
void |
setMarkerProjectionAccuracy(double accuracy)
Expected accuracy of marker projections in pixels.
|
void |
setMeta(MetaData meta)
Chunk meta data.
|
void |
setModelKey(int key) |
void |
setOrthomosaicKey(int key) |
void |
setPointCloud(PointCloud point_cloud)
Generated sparse point cloud, may be null.
|
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 |
setTiledModelKey(int key) |
void |
setTransform(Transform transform)
Transformation parameters specifying chunk location in the world coordinate system.
|
void |
thinPointCloud(int point_limit)
Remove excessive tracks from the point cloud.
|
void |
updateCirCalibration(Progress progress)
Estimate CIR calibration matrix.
|
void |
updateTransform()
Update chunk transformation based on reference data.
|
public Chunk(long cPtr,
boolean cMemoryOwn)
public Chunk(Chunk chunk)
public static long getCPtr(Chunk obj)
protected void finalize()
finalize in class java.lang.Objectpublic void delete()
public static long[] cArrayUnwrap(Chunk[] arrayWrapper)
public static Chunk[] cArrayWrap(long[] cArray, boolean cMemoryOwn)
public java.lang.String dump()
public void load(java.lang.String text)
public int getKey()
public int getFrameKey()
public 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 Chunk getFrame(int key)
public Sensor getSensor(int key)
public CameraGroup getCameraGroup(int key)
public MarkerGroup getMarkerGroup(int key)
public ScalebarGroup getScalebarGroup(int key)
public Camera getCamera(int key)
public Marker getMarker(int key)
public Scalebar getScalebar(int key)
public 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(Vector3d 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 CoordinateSystem getCameraCoordinateSystem()
public void setMarkerCoordinateSystem(CoordinateSystem crs)
public 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(Matrix3x3d calibration)
public Matrix3x3d getCirCalibration()
public void updateCirCalibration(Progress progress)
public void setRasterTransform(RasterTransform transform)
public RasterTransform getRasterTransform()
public void setCameraLocationAccuracy(Vector3d accuracy)
public Vector3d getCameraLocationAccuracy()
public void setCameraOrientationAccuracy(Vector3d accuracy)
public Vector3d getCameraOrientationAccuracy()
public void setMarkerLocationAccuracy(Vector3d accuracy)
public Vector3d 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 hasPointCloud()
public boolean hasDenseCloud()
public boolean hasDepthMaps()
public boolean hasModel()
public boolean hasTiledModel()
public boolean hasElevation()
public boolean hasOrthomosaic()
public boolean hasShapes()
public void setPointCloud(PointCloud point_cloud)
public PointCloud getPointCloud()
public DenseCloud getDenseCloud()
public DepthMaps getDepthMaps()
public Model getModel()
public TiledModel getTiledModel()
public Elevation getElevation()
public Orthomosaic getOrthomosaic()
public void setShapes(Shapes shapes)
public Shapes getShapes()
public void removePointCloud()
public void removeDenseCloud()
public void removeDepthMaps()
public void removeModel()
public void removeTiledModel()
public void removeElevation()
public void removeOrthomosaic()
public void removeShapes()
public DepthMaps[] getDepthMapsSets()
public DenseCloud[] getDenseClouds()
public Model[] getModels()
public TiledModel[] getTiledModels()
public Elevation[] getElevations()
public Orthomosaic[] getOrthomosaics()
public void setDepthMapsKey(int key)
public void setDenseCloudKey(int key)
public void setModelKey(int key)
public void setTiledModelKey(int key)
public void setElevationKey(int key)
public void setOrthomosaicKey(int key)
public void setMeta(MetaData meta)
public MetaData 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 thinPointCloud(int point_limit)
point_limit - Maximum number of points for each photo.public Image renderPreview(long width, long height, Matrix4x4d transform, int point_size, Progress progress)
width - Preview image width.height - Preview image height.transform - 4x4 viewpoint transformation matrix.point_size - Point size.