public class PointCloud
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Modifier | Constructor and Description |
---|---|
protected |
PointCloud(long cPtr,
boolean cMemoryOwn) |
|
PointCloud(PointCloud point_cloud) |
Modifier and Type | Method and Description |
---|---|
void |
assignClass(int target,
int[] source,
Progress progress)
Assign class to points.
|
void |
close() |
void |
compactPoints(Progress progress)
Permanently removes deleted points from point cloud.
|
void |
delete() |
protected void |
finalize() |
java.util.Optional<Chunk> |
getChunk()
Chunk container, may be null.
|
java.util.Optional<CoordinateSystem> |
getCoordinateSystem()
Reference coordinate system, may be null.
|
protected static long |
getCPtr(PointCloud obj) |
java.util.Optional<PointCloudGroup> |
getGroup()
Point cloud group, may be null.
|
int |
getKey()
Point cloud identifier.
|
java.lang.String |
getLabel()
Point cloud label.
|
java.util.Map<java.lang.String,java.lang.String> |
getMeta()
Point cloud meta data.
|
java.lang.String |
getPath()
Path to point cloud file.
|
long |
getPointCount()
Number of points in point cloud.
|
java.util.Optional<Trajectory> |
getTrajectory()
Point cloud trajectory, may be null.
|
Matrix |
getTransform()
4x4 point cloud transformation matrix.
|
boolean |
isEnabled()
Enables/disables the point cloud.
|
boolean |
isSelected()
Selects/deselects the point cloud.
|
java.util.Optional<Vector> |
pickPoint(Vector origin,
Vector target)
Returns ray intersection with the point cloud.
|
void |
removePoints(int[] point_classes,
Progress progress)
Remove points.
|
Image |
renderPreview(long width,
long height,
Matrix transform,
int point_size,
Progress progress)
Generate point cloud preview image.
|
void |
restorePoints(int[] point_classes,
Progress progress)
Restore deleted points.
|
void |
setCoordinateSystem(CoordinateSystem crs)
Reference coordinate system, may be null.
|
void |
setEnabled(boolean state)
Enables/disables the point cloud.
|
void |
setGroup(PointCloudGroup group)
Point cloud group, may be null.
|
void |
setLabel(java.lang.String label)
Point cloud label.
|
void |
setMeta(java.util.Map<java.lang.String,java.lang.String> meta)
Point cloud meta data.
|
void |
setSelected(boolean state)
Selects/deselects the point cloud.
|
void |
setTrajectory(Trajectory trajectory)
Point cloud trajectory, may be null.
|
void |
setTransform(Matrix transform)
4x4 point cloud transformation matrix.
|
protected static long |
swigRelease(PointCloud obj) |
protected PointCloud(long cPtr, boolean cMemoryOwn)
public PointCloud(PointCloud point_cloud)
protected static long getCPtr(PointCloud obj)
protected static long swigRelease(PointCloud obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public void close()
close
in interface java.lang.AutoCloseable
public int getKey()
public java.util.Optional<Chunk> getChunk()
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 void setGroup(PointCloudGroup group)
public java.util.Optional<PointCloudGroup> getGroup()
public void setTrajectory(Trajectory trajectory)
public java.util.Optional<Trajectory> getTrajectory()
public java.lang.String getPath()
public long getPointCount()
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 void setTransform(Matrix transform)
public Matrix getTransform()
public void setCoordinateSystem(CoordinateSystem crs)
public java.util.Optional<CoordinateSystem> getCoordinateSystem()
public java.util.Optional<Vector> pickPoint(Vector origin, Vector target)
origin
- Ray origin.target
- Point on the ray.public void compactPoints(Progress progress)
progress
- Progress callback.public void removePoints(int[] point_classes, Progress progress)
point_classes
- Classes of points to be removed.progress
- Progress callback.public void restorePoints(int[] point_classes, Progress progress)
point_classes
- Classes of points to be restored.progress
- Progress callback.public void assignClass(int target, int[] source, Progress progress)
target
- Target class.source
- Classes of points to be replaced.progress
- Progress callback.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.