Base class for streams that work with composites.
More...
Inherits IStream, and INativeHandle.
Inherited by CompositeStream, ImageStream, and PointCloudStream.
|
static readonly UsTimeSpan | INFINITY = UsTimeSpan.FromMilliseconds(ENDLESS) |
| Constant for infinite time span.
|
|
|
Device | Parent [get] |
| Gets the parent Device.
|
|
IntPtr | Handle [get] |
| Native handle of the PointCloud.
|
|
bool | IsDisposed [get] |
| Gets if the native handle has been disposed.
|
|
StreamNodeMapDictionary | NodeMaps [get] |
| Gets the dictionary holding all available GenApi.NodeMaps. More...
|
|
AcquisitionInterface | AcquisitionInterface [get] |
| Gets the acquisition interface to use on this stream. Composite streams currently only support AcquisitionInterface.Grab3.
|
|
bool | IsIndexed [get] |
| Gets if this stream is indexed (has a fixed amount of data).
|
|
AcquisitionState | AcquisitionState [get, protected set] |
| Current acquisition state of the stream.
|
|
int | FlowSetCount [get] |
| Gets the number of registered flow sets.
|
|
int | MinRequireedFlowSetCount [get] |
| Gets minimum number of flow-sets required for the acquisition. More...
|
|
AcquisitionInterface | AcquisitionInterface [get] |
| Gets or sets the acquisition interface to use on this stream.
|
|
bool | IsIndexed [get] |
| Gets if this stream is indexed (has a fixed amount of data).
|
|
Properties inherited from INativeHandle |
IntPtr | Handle [get] |
| The native handle of the object.
|
|
bool | IsDisposed [get] |
| Possibility to check whether the object has already been disposed of.
|
|
Base class for streams that work with composites.
◆ CompositeStreamBase()
Constructor
- Parameters
-
device | Parent device. |
index | Index of the desired stream on this device. |
◆ DeregisterFlowSetPool()
void DeregisterFlowSetPool |
( |
| ) |
|
Removes an existing flow set pool from the acquisition engine.
This call is only allowed when the acquisition engine is not running.
Removing the flow set pool can be useful in between changes of FlowSetCount to reduce memory.
◆ DeviceAbort()
virtual void DeviceAbort |
( |
| ) |
|
|
virtual |
Aborts the device acquisition.
- Exceptions
-
◆ DeviceStart()
virtual void DeviceStart |
( |
long |
frameCountToAcquire | ) |
|
|
virtual |
Starts the device acquisition.
- Parameters
-
frameCountToAcquire | Number of buffers to acquire before stopping. ENDLESS for endless. |
- Exceptions
-
◆ DeviceStop()
virtual void DeviceStop |
( |
| ) |
|
|
virtual |
Stops the device acquisition.
- Exceptions
-
◆ Dispose()
virtual void Dispose |
( |
bool |
disposing | ) |
|
|
protectedvirtual |
IDisposable helper function.
- Parameters
-
◆ EngineAbort()
virtual void EngineAbort |
( |
| ) |
|
|
virtual |
Aborts the acquisition engine. Does not throw an exception when engine could not be aborted.
- Exceptions
-
◆ EngineStart()
virtual void EngineStart |
( |
long |
bufferCountToAcquire | ) |
|
|
virtual |
Starts the acquisition engine.
- Parameters
-
- Exceptions
-
◆ EngineStop()
Stops the acquisition engine.
- Parameters
-
timeout | Time to wait for the last data to be acquired. |
- Exceptions
-
◆ RegisterComposite< T >()
T RegisterComposite< T > |
( |
T |
composite | ) |
|
|
protected |
Registers a composite for deregistration on disposal.
- Template Parameters
-
T | Returned composite type. |
- Parameters
-
- Returns
- The given composite .
◆ RegisterManagedFlowSetPool()
void RegisterManagedFlowSetPool |
( |
int |
numFlowSets | ) |
|
Registers an internal flow-set pool.
Creates an internal flow-set pool with numFlowSets flow-sets. Any previously registered flow-set pool will be deregistered.
To reduce memory consumption call DeregisterFlowSetPool before this call as first the new memory is created to be exception safe.
- Parameters
-
numFlowSets | Number of flow-sets to allocate. |
◆ TryAbort()
Tries to abort the device using TryDeviceAbort and then the engine using TryEngineAbort. Does not throw an exception if aborting wasn't successful.
- Returns
- True if aborting was successful, false otherwise.
◆ TryDeviceAbort()
virtual bool TryDeviceAbort |
( |
| ) |
|
|
virtual |
Tries to abort the device acquisition. Does not throw an error if the device could not be aborted.
- Returns
- True if device was aborted, false otherwise.
◆ TryDeviceStop()
virtual bool TryDeviceStop |
( |
| ) |
|
|
virtual |
Tries to stop the device acquisition. Des not throw an exception when the device could not be stopped.
- Returns
- True if device was stopped, false otherwise.
◆ TryEngineAbort()
virtual bool TryEngineAbort |
( |
| ) |
|
|
virtual |
Aborts the acquisition engine.
- Returns
- True if the engine was aborted, false otherwise.
◆ TryEngineStop() [1/2]
virtual bool TryEngineStop |
( |
| ) |
|
|
virtual |
Tries to stop the acquisition engine. Does not throw an exception when engine could not be stopped.
- Returns
- True if engine was stopped, false otherwise.
◆ TryEngineStop() [2/2]
Tries to stop the acquisition engine. Does not throw an exception when engine could not be stopped.
- Parameters
-
timeout | Time to wait for the last data to be acquired. |
- Returns
- True if engine was stopped, false otherwise.
◆ TryStop()
Tries to stop the Device using TryDeviceStop and then the engine using TryEngineStop(). Does not throw an exception if stopping wasn't successful.
- Returns
- True if stopping was successful, false otherwise.
◆ WaitForNextComposite() [1/2]
IntPtr WaitForNextComposite |
( |
UsTimeSpan |
timeout, |
|
|
CancellationToken |
token, |
|
|
out WaitStatus |
waitStatus |
|
) |
| |
|
protected |
Waits for and returns the next composite of the stream.
- Parameters
-
timeout | Time to wait before timeout. |
token | Token to cancel the operation. |
waitStatus | Return status of the operation. |
- Returns
- Acquired composite.
- Exceptions
-
ArgumentNullException | When token is null. |
◆ WaitForNextComposite() [2/2]
Waits for and returns the next composite of the stream.
- Parameters
-
timeout | Time to wait before timeout. |
waitStatus | Return status of the operation. |
- Returns
- Acquired composite.
◆ MinRequireedFlowSetCount
int MinRequireedFlowSetCount |
|
get |
Gets minimum number of flow-sets required for the acquisition.
The count is as reported by the underlying transport layer provider and will at least be 3.
◆ NodeMaps
Gets the dictionary holding all available GenApi.NodeMaps.
Dictionary containing all available node maps.
◆ 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.