Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
Public Member Functions | List of all members
rs2::points Class Reference

#include <rs_frame.hpp>

Inheritance diagram for rs2::points:
rs2::frame

Public Member Functions

 points ()
 
 points (const frame &f)
 
const vertexget_vertices () const
 
void export_to_ply (const std::string &fname, video_frame texture)
 
const texture_coordinateget_texture_coordinates () const
 
size_t size () const
 
- Public Member Functions inherited from rs2::frame
 frame ()
 
 frame (rs2_frame *ref)
 
 frame (frame &&other) noexcept
 
frameoperator= (frame other)
 
 frame (const frame &other)
 
void swap (frame &other)
 
 ~frame ()
 
void keep ()
 
 operator bool () const
 
rs2_sensorget_sensor ()
 
double get_timestamp () const
 
rs2_timestamp_domain get_frame_timestamp_domain () const
 
rs2_metadata_type get_frame_metadata (rs2_frame_metadata_value frame_metadata) const
 
bool supports_frame_metadata (rs2_frame_metadata_value frame_metadata) const
 
unsigned long long get_frame_number () const
 
const int get_data_size () const
 
const void * get_data () const
 
stream_profile get_profile () const
 
template<class T >
bool is () const
 
template<class T >
as () const
 
rs2_frameget () const
 
 operator rs2_frame * ()
 
frame apply_filter (filter_interface &filter)
 

Additional Inherited Members

- Protected Member Functions inherited from rs2::frame
void add_ref () const
 
void reset ()
 

Constructor & Destructor Documentation

◆ points() [1/2]

rs2::points::points ( )
inline

Extends the frame class with additional point cloud related attributes and functions

◆ points() [2/2]

rs2::points::points ( const frame f)
inline

Extends the frame class with additional point cloud related attributes and functions

Parameters
[in]frame- existing frame instance

Member Function Documentation

◆ export_to_ply()

void rs2::points::export_to_ply ( const std::string &  fname,
video_frame  texture 
)
inline

Export the point cloud to a PLY file

Parameters
[in]stringfname - file name of the PLY to be saved
[in]video_frametexture - the texture for the PLY.

◆ get_texture_coordinates()

const texture_coordinate* rs2::points::get_texture_coordinates ( ) const
inline

Retrieve the texture coordinates (uv map) for the point cloud

Returns
texture_coordinate* - pointer of texture coordinates.

◆ get_vertices()

const vertex* rs2::points::get_vertices ( ) const
inline

Retrieve the vertices of the point cloud

Parameters
[in]vertex*- pointer of vertex sturcture

◆ size()

size_t rs2::points::size ( ) const
inline

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