OrbbecSDK 2.1.1
OrbbecSDK: Software-Development-Kit for Orbbec 3D Cameras
Loading...
Searching...
No Matches
ob::StreamProfile Class Reference

#include <StreamProfile.hpp>

+ Inheritance diagram for ob::StreamProfile:

Public Member Functions

 StreamProfile (StreamProfile &streamProfile)=delete
 
StreamProfileoperator= (StreamProfile &streamProfile)=delete
 
 StreamProfile (StreamProfile &&streamProfile) noexcept
 
StreamProfileoperator= (StreamProfile &&streamProfile) noexcept
 
virtual ~StreamProfile () noexcept
 
const ob_stream_profilegetImpl () const
 
OBFormat getFormat () const
 Get the format of the stream.
 
OBStreamType getType () const
 Get the type of stream.
 
OBExtrinsic getExtrinsicTo (std::shared_ptr< StreamProfile > target) const
 Get the extrinsic parameters from current stream profile to the given target stream profile.
 
template<typename T >
bool is () const
 Check if frame object is compatible with the given type.
 
template<typename T >
std::shared_ptr< T > as ()
 Converts object type to target type.
 
template<typename T >
std::shared_ptr< const T > as () const
 Converts object type to target type (const version)
 
OBFormat format () const
 
OBStreamType type () const
 

Protected Member Functions

 StreamProfile (const ob_stream_profile_t *impl)
 

Protected Attributes

const ob_stream_profile_t * impl_ = nullptr
 

Detailed Description

Definition at line 18 of file StreamProfile.hpp.

Constructor & Destructor Documentation

◆ StreamProfile() [1/3]

ob::StreamProfile::StreamProfile ( StreamProfile & streamProfile)
delete

◆ StreamProfile() [2/3]

ob::StreamProfile::StreamProfile ( StreamProfile && streamProfile)
inlinenoexcept

Definition at line 26 of file StreamProfile.hpp.

◆ ~StreamProfile()

virtual ob::StreamProfile::~StreamProfile ( )
inlinevirtualnoexcept

Definition at line 41 of file StreamProfile.hpp.

◆ StreamProfile() [3/3]

ob::StreamProfile::StreamProfile ( const ob_stream_profile_t * impl)
inlineexplicitprotected

Definition at line 135 of file StreamProfile.hpp.

Member Function Documentation

◆ operator=() [1/2]

StreamProfile & ob::StreamProfile::operator= ( StreamProfile & streamProfile)
delete

◆ operator=() [2/2]

StreamProfile & ob::StreamProfile::operator= ( StreamProfile && streamProfile)
inlinenoexcept

Definition at line 30 of file StreamProfile.hpp.

◆ getImpl()

const ob_stream_profile * ob::StreamProfile::getImpl ( ) const
inline

Definition at line 49 of file StreamProfile.hpp.

◆ getFormat()

OBFormat ob::StreamProfile::getFormat ( ) const
inline

Get the format of the stream.

Returns
OBFormat return the format of the stream

Definition at line 58 of file StreamProfile.hpp.

Referenced by format().

◆ getType()

OBStreamType ob::StreamProfile::getType ( ) const
inline

Get the type of stream.

Returns
OBStreamType return the type of the stream

Definition at line 70 of file StreamProfile.hpp.

Referenced by is(), and type().

◆ getExtrinsicTo()

OBExtrinsic ob::StreamProfile::getExtrinsicTo ( std::shared_ptr< StreamProfile > target) const
inline

Get the extrinsic parameters from current stream profile to the given target stream profile.

Returns
OBExtrinsic Return the extrinsic parameters.

Definition at line 82 of file StreamProfile.hpp.

◆ is()

template<typename T >
bool ob::StreamProfile::is ( ) const

Check if frame object is compatible with the given type.

Template Parameters
TGiven type
Returns
bool return result

Definition at line 335 of file StreamProfile.hpp.

Referenced by as(), and as().

◆ as() [1/2]

template<typename T >
std::shared_ptr< T > ob::StreamProfile::as ( )
inline

Converts object type to target type.

Template Parameters
TTarget type
Returns
std::shared_ptr<T> Return the result. Throws an exception if conversion is not possible.

Definition at line 103 of file StreamProfile.hpp.

◆ as() [2/2]

template<typename T >
std::shared_ptr< const T > ob::StreamProfile::as ( ) const
inline

Converts object type to target type (const version)

Template Parameters
TTarget type
Returns
std::shared_ptr<T> Return the result. Throws an exception if conversion is not possible.

Definition at line 117 of file StreamProfile.hpp.

◆ format()

OBFormat ob::StreamProfile::format ( ) const
inline

Definition at line 126 of file StreamProfile.hpp.

Referenced by getFormat().

◆ type()

OBStreamType ob::StreamProfile::type ( ) const
inline

Definition at line 130 of file StreamProfile.hpp.

Referenced by getType().

Member Data Documentation

◆ impl_


The documentation for this class was generated from the following file: