ImFusion SDK 4.3
PolyDataStreamData Class Reference

#include <ImFusion/Stream/PolyDataStreamData.h>

Polygonal data (point clouds or meshes) streamed from a streaming device. More...

+ Inheritance diagram for PolyDataStreamData:

Detailed Description

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.
 
PolyDataStreampolyDataStream () 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< StreamDataclone () const override
 
- Public Member Functions inherited from StreamData
virtual Streamstream () 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 DataComponentListcomponents () const
 Returns the list of DataComponents for this data.
 
DataComponentListcomponents ()
 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.
 
- Protected Attributes inherited from StreamData
Streamm_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

- Protected Member Functions inherited from StreamData
 StreamData (const StreamData &other)=default
 
 StreamData (Stream *stream)
 
 StreamData (Stream *stream, DataComponentList &&components)
 

Member Function Documentation

◆ clone()

std::unique_ptr< StreamData > clone ( ) const
overridevirtual

Implements StreamData.


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close