![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Stream/PolyDataStreamData.h>
Polygonal data (point clouds or meshes) streamed from a streaming device. More...
Polygonal data (point clouds or meshes) streamed from a streaming device.
Can contain one or more meshes and/or point clouds, represented by Mesh and PointCloud objects respectively.
Public Member Functions | |
PolyDataStreamData (Stream *stream) | |
PolyDataStreamData (const PolyDataStreamData &other) | |
virtual std::string | name () |
Name provided by the stream source. | |
virtual std::vector< std::shared_ptr< const Mesh > > | meshes () const |
Return all meshes. | |
virtual std::vector< std::shared_ptr< const PointCloud > > | pointClouds () const |
Return all point clouds. | |
PolyDataStream * | polyDataStream () const |
Returns the polydata stream object which updates this data. | |
virtual void | setName (const std::string &name) |
virtual void | setMeshes (std::vector< std::shared_ptr< const Mesh > > meshes) |
Sets the list of meshes in the stream data, replacing any existing meshes. | |
virtual void | setPointClouds (std::vector< std::shared_ptr< const PointCloud > > clouds) |
Sets the list of point clouds in the stream data, replacing any existing point clouds. | |
std::unique_ptr< StreamData > | clone () const override |
![]() | |
virtual Stream * | stream () const |
Returns the stream object which updates this data. | |
virtual unsigned long long | timestampDevice () const |
Timestamp in milliseconds. Set by the streaming device. | |
virtual void | setTimestampDevice (unsigned long long time) |
Set timestamp provided by the streaming device, in milliseconds. | |
virtual unsigned long long | timestampArrival () const |
Timestamp in milliseconds. Based on message's arrival time. | |
virtual void | setTimestampArrival (std::chrono::system_clock::time_point time) |
Set the system time when this streamData was arrived. It will be stored in milliseconds relative to epoch time. | |
virtual void | setTimestampArrival (unsigned long long time) |
Set arrival timestamp manually, in milliseconds. | |
const DataComponentList & | components () const |
Returns the list of DataComponents for this data. | |
DataComponentList & | components () |
Returns the list of DataComponents for this data. | |
template<typename StreamDataClass> | |
const StreamDataClass * | typed () const |
Protected Attributes | |
std::string | m_name |
Name provided by the stream source. | |
std::vector< std::shared_ptr< const Mesh > > | m_meshes |
List of meshes in the stream. | |
std::vector< std::shared_ptr< const PointCloud > > | m_clouds |
List of point clouds in the stream. | |
![]() | |
Stream * | m_stream |
The stream object which updates this data. | |
unsigned long long | m_timestampDevice |
Timestamp of the streaming device, in milliseconds. | |
unsigned long long | m_timestampArrival |
Timestamp when the data is received in ImFusion framework, in milliseconds. | |
DataComponentList | m_dataComponentList |
The list of DataComponents for this StreamData. | |
Additional Inherited Members | |
![]() | |
StreamData (const StreamData &other)=default | |
StreamData (Stream *stream) | |
StreamData (Stream *stream, DataComponentList &&components) | |
|
overridevirtual |
Implements StreamData.