Public Member Functions | List of all members
PointCloudStream Class Reference

Streams point clouds. More...

#include <cvb/driver/point_cloud_stream.hpp>

Inherits CompositeStreamBase.

Public Member Functions

template<class Rep , class Period >
WaitResultTuple< PointCloudWaitFor (const std::chrono::duration< Rep, Period > &timeSpan, const CancellationToken &token)
 Waits for the given time span for the next acquired point cloud. More...
 
template<class Rep , class Period >
WaitResultTuple< PointCloudWaitFor (const std::chrono::duration< Rep, Period > &timeSpan)
 Waits for the given time span for the next acquired point cloud. More...
 
template<class T , class Rep , class Period >
WaitResultTuple< T > WaitFor (const std::chrono::duration< Rep, Period > &timeSpan, const CancellationToken &token)
 Waits for the given time span for the next acquired point cloud. More...
 
template<class T , class Rep , class Period >
WaitResultTuple< T > WaitFor (const std::chrono::duration< Rep, Period > &timeSpan)
 Waits for the given time span for the next acquired point cloud. More...
 
WaitResultTuple< PointCloudWait (const CancellationToken &token)
 Waits for ever for the next acquired point cloud. More...
 
WaitResultTuple< PointCloudWait ()
 Waits for ever for the next acquired point cloud. More...
 
template<class T >
WaitResultTuple< T > Wait (const CancellationToken &token)
 Waits for ever for the next acquired point cloud. More...
 
template<class T >
WaitResultTuple< T > Wait ()
 Waits for ever for the next acquired point cloud. More...
 
- Public Member Functions inherited from CompositeStreamBase
void * Handle () const noexcept
 Classic API stream handle. More...
 
virtual void EngineStart ()
 Starts the acquisition engine on the host. More...
 
virtual void EngineStart (std::int64_t bufferCountToAcquire)
 Starts the acquisition engine on the host. More...
 
template<class Rep , class Period >
void EngineStop (const std::chrono::duration< Rep, Period > &timeout)
 Stops the acquisition engine. More...
 
virtual void EngineStop ()
 Stops the acquisition engine. More...
 
template<class Rep , class Period >
bool TryEngineStop (const std::chrono::duration< Rep, Period > &timeout) noexcept
 Stops the acquisition engine. More...
 
virtual bool TryEngineStop () noexcept
 Stops the acquisition engine. More...
 
virtual bool TryEngineStop (const std::chrono::milliseconds &timeout) noexcept
 Stops the acquisition engine. More...
 
virtual void EngineAbort ()
 Stops the acquisition engine immediately. More...
 
virtual bool TryEngineAbort () noexcept
 Stops the acquisition engine immediately. More...
 
virtual void DeviceStart ()
 Starts the stream on the device. More...
 
virtual void DeviceStart (std::int64_t bufferCountToAcquire)
 Starts the stream on the device. More...
 
virtual void DeviceStop ()
 Stops the stream in the device. More...
 
virtual bool TryDeviceStop () noexcept
 Stops the stream in the device. More...
 
virtual void DeviceAbort ()
 Stops the stream in the device immediately. More...
 
virtual bool TryDeviceAbort () noexcept
 Stops the stream in the device immediately. More...
 
void DeregisterFlowSetPool ()
 Removes an existing flow set pool from the acquisition engine. More...
 
void RegisterManagedFlowSetPool (int flowSetCount)
 Registers an internal flows set pool. More...
 
void RegisterExternalFlowSetPool (FlowSetPoolPtr flowSetPoolPtr)
 Registers external memory. More...
 
void RegisterExternalFlowSetPool (FlowSetPoolPtr flowSetPoolPtr, std::function< void()> releaseCallback)
 Registers external memory. More...
 
int FlowSetCount () const noexcept
 Gets the number of registered flow sets. More...
 
int MinRequiredFlowSetCount () const
 Gets minimum number of flow sets required for the acquisition. More...
 
Cvb::Driver::AcquisitionInterface AcquisitionInterface () const noexcept override
 Gets the interface of this implementation. More...
 
void Start () override
 Starts the acquisition. More...
 
void Stop () override
 Stops the acquisition. More...
 
bool TryStop () noexcept override
 Stops the acquisition. More...
 
void Abort () override
 Stops the acquisition of images immediately. More...
 
bool TryAbort () noexcept override
 Stops the acquisition of images immediately. More...
 
bool IsIndexed () const noexcept override
 Gets whether this stream is an indexed stream. More...
 
Cvb::AcquisitionState AcquisitionState () const noexcept
 Gets the current acquisition state. More...
 
std::vector< FlowInfoFlowSetInfo () const
 Gets the flow set info of this stream. More...
 
NodeMapPtr NodeMap (const String &name) const
 Gets the NodeMap with the given name. More...
 
std::map< String, NodeMapPtr > NodeMaps () const
 Gets the dictionary holding all available stream NodeMaps. More...
 
- Public Member Functions inherited from StreamBase
DevicePtr Parent () const noexcept
 Gets the parent device of this stream. More...
 

Detailed Description

Streams point clouds.

Member Function Documentation

◆ Wait() [1/4]

WaitResultTuple<PointCloud> Wait ( const CancellationToken token)
inline

Waits for ever for the next acquired point cloud.

Parameters
[in]tokenA token to cancel this individual wait.
Returns
A tuple containing a point cloud, the wait status, and an node map enumerator.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ Wait() [2/4]

WaitResultTuple<PointCloud> Wait ( )
inline

Waits for ever for the next acquired point cloud.

Returns
A tuple containing a point cloud, the wait status, and an node map enumerator.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ Wait() [3/4]

WaitResultTuple<T> Wait ( const CancellationToken token)
inline

Waits for ever for the next acquired point cloud.

Parameters
[in]tokenA token to cancel this individual wait.
Returns
A tuple containing a point cloud (cast to the given type), the wait status, and an node map enumerator.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ Wait() [4/4]

WaitResultTuple<T> Wait ( )
inline

Waits for ever for the next acquired point cloud.

Returns
A tuple containing a point cloud (cast to the given type), the wait status, and an node map enumerator.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ WaitFor() [1/4]

WaitResultTuple<PointCloud> WaitFor ( const std::chrono::duration< Rep, Period > &  timeSpan,
const CancellationToken token 
)
inline

Waits for the given time span for the next acquired point cloud.

Parameters
[in]timeSpanTime to wait for data.
[in]tokenA token to cancel this individual wait.
Returns
A tuple containing a point cloud, the wait status, and an node map enumerator.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ WaitFor() [2/4]

WaitResultTuple<PointCloud> WaitFor ( const std::chrono::duration< Rep, Period > &  timeSpan)
inline

Waits for the given time span for the next acquired point cloud.

Parameters
[in]timeSpanTime to wait for data.
Returns
A tuple containing a point cloud, the wait status, and an node map enumerator.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ WaitFor() [3/4]

WaitResultTuple<T> WaitFor ( const std::chrono::duration< Rep, Period > &  timeSpan,
const CancellationToken token 
)
inline

Waits for the given time span for the next acquired point cloud.

Parameters
[in]timeSpanTime to wait for data.
[in]tokenA token to cancel this individual wait.
Returns
A tuple containing a point cloud (cast to the given type), the wait status, and an node map enumerator.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ WaitFor() [4/4]

WaitResultTuple<T> WaitFor ( const std::chrono::duration< Rep, Period > &  timeSpan)
inline

Waits for the given time span for the next acquired point cloud.

Parameters
[in]timeSpanTime to wait for data.
Returns
A tuple containing a point cloud (cast to the given type), the wait status, and an node map enumerator.
Exceptions
Anyexception derived from std::exception including CvbException.