Base class for point clouds. More...
Inherits INativeHandle.
Inherited by DensePointCloud, and SparsePointCloud.
Public Member Functions | |
void | Dispose () |
IDisposable implementation. | |
PointCloud | Clone () |
Creates a new point cloud which is a copy of this point cloud. | |
IEnumerable< T > | TryEnumeratePointsAs< T > () |
Tries to get the points of this point cloud. | |
Static Public Member Functions | |
static PointCloud | FromFile (string fileName) |
Loads a point cloud from the given fileName . | |
static PointCloud | FromFile (string fileName, PointCloudFlags flags) |
Loads a point cloud from the given fileName with the specified flags . | |
static PointCloud | FromComposite (Composite obj) |
Create a point cloud from the given Composite obj . | |
static PointCloud | FromHandle (IntPtr handle, ShareObject doShare) |
Creates a point cloud from the given handle . | |
static PointCloud | FromMemory< T > (byte[] buffer, FileFormat fileFormat) |
Creates a point cloud from the given buffer buffer. | |
static PointCloud | FromMemory (byte[] buffer, PointCloudFlags flags, FileFormat fileFormat) |
Creates a point cloud from the given buffer buffer. | |
static PointCloud | FromMemory< T > (IntPtr buffer, long bufferSize, FileFormat fileFormat) |
Creates a point cloud from the given buffer buffer. | |
static PointCloud | FromMemory (IntPtr buffer, long bufferSize, PointCloudFlags flags, FileFormat fileFormat) |
Creates a point cloud from the given buffer buffer. | |
Protected Member Functions | |
PointCloud (IntPtr handle) | |
Constructor. | |
PointCloud (IntPtr handle, UseMemoryPressure useMemoryPressure) | |
Constructor. | |
virtual void | Dispose (bool disposing) |
IDisposable helper function. | |
Properties | |
IntPtr | Handle [get] |
Native handle of the PointCloud. | |
bool | IsDisposed [get] |
Gets if the native handle has been disposed. | |
PointCloudLayout | Layout [get] |
The layout of the buffer / planes. | |
DataType | DataType [get] |
The data type. | |
long | NumPoints [get] |
Number of points. | |
ComponentsPointer3D | PointComponents [get] |
The pointer components for the points. | |
PlaneEnumerator | Planes [get] |
Gets all the component planes of this point cloud. | |
Events | |
NativeHandleEventDelegate | ObjectDisposing |
Raised when this object is about to be disposed via the IDisposable.Dispose method. | |
![]() | |
NativeHandleEventDelegate | ObjectDisposing |
Raised when this object is about to be disposed via the IDisposable.Dispose method. | |
Base class for point clouds.
|
protected |
Constructor.
handle | Native handle to the PointCloud. |
ArgumentException | When handle is IntPtr.Zero. |
|
protected |
Constructor.
handle | Native handle to the PointCloud. |
useMemoryPressure | Guesses memory pressure if UseMemoryPressure.Yes is set. |
ArgumentException | When handle is IntPtr.Zero. |
PointCloud Clone | ( | ) |
Creates a new point cloud which is a copy of this point cloud.
Attention:
The duplicated point cloud may have a different point cloud layout.
CvbException | When duplicating the point cloud failed. |
|
protectedvirtual |
IDisposable helper function.
disposing |
|
static |
Create a point cloud from the given Composite obj .
obj | Composite from which a point cloud is to be created. |
|
static |
Loads a point cloud from the given fileName .
fileName | File to load the point cloud from. |
CvbException | When loading the point cloud failed. |
|
static |
Loads a point cloud from the given fileName with the specified flags .
fileName | File to load the point cloud from. |
flags | Flags to load the point cloud with. |
CvbException | When loading the point cloud failed. |
|
static |
Creates a point cloud from the given handle .
handle | Handle to create point cloud with. |
doShare | Share ownership or adopt it. |
ArgumentException | When handle is IntPtr.Zero. |
|
static |
Creates a point cloud from the given buffer buffer.
buffer | Buffer containing the point cloud data. |
flags | Flags of the point cloud to create. |
fileFormat | File format of the buffer data. |
ArgumentNullException | When buffer is null. |
ArgumentException | When buffer is empty. |
CvbException | When an error during point cloud creation occurs. |
|
static |
Creates a point cloud from the given buffer buffer.
buffer | Buffer containing the point cloud data. |
bufferSize | Size of the buffer . |
flags | Flags of the point cloud to create. |
fileFormat | File format of the buffer data. |
CvbException | When an error during point cloud creation occurs. |
|
static |
Creates a point cloud from the given buffer buffer.
T | Point type used by the cloud. |
buffer | Buffer containing the point cloud data. |
fileFormat | File format of the buffer data. |
ArgumentNullException | When buffer is null. |
ArgumentException | When buffer is empty. |
CvbException | When an error during point cloud creation occurs. |
T | : | struct |
|
static |
Creates a point cloud from the given buffer buffer.
T | Point type used by the cloud. |
buffer | Buffer containing the point cloud data. |
bufferSize | Size of the buffer . |
fileFormat | File format of the buffer data. |
CvbException | When an error during point cloud creation occurs. |
T | : | struct |
IEnumerable< T > TryEnumeratePointsAs< T > | ( | ) |
Tries to get the points of this point cloud.
T | Type to try to get the points in. |
T | : | struct |
NativeHandleEventDelegate ObjectDisposing |
Raised when this object is about to be disposed via the IDisposable.Dispose method.
This event is raised right before this object is disposed. The dispose itself cannot be canceled.