Public Member Functions | Private Member Functions | Private Attributes | List of all members
rs2::color_map Class Reference

#include <rendering.h>

Public Member Functions

 color_map (std::map< float, float3 > map, int steps=4000)
 
 color_map (const std::vector< float3 > &values, int steps=4000)
 
 color_map ()
 
float3 get (float value) const
 
float max_key () const
 
float min_key () const
 

Private Member Functions

float3 calc (float value) const
 
void initialize (int steps)
 

Private Attributes

std::vector< float3_cache
 
float3_data
 
std::map< float, float3_map
 
float _max
 
float _min
 
size_t _size
 

Detailed Description

Definition at line 730 of file rendering.h.

Constructor & Destructor Documentation

rs2::color_map::color_map ( std::map< float, float3 map,
int  steps = 4000 
)
inline

Definition at line 733 of file rendering.h.

rs2::color_map::color_map ( const std::vector< float3 > &  values,
int  steps = 4000 
)
inline

Definition at line 738 of file rendering.h.

rs2::color_map::color_map ( )
inline

Definition at line 747 of file rendering.h.

Member Function Documentation

float3 rs2::color_map::calc ( float  value) const
inlineprivate

Definition at line 761 of file rendering.h.

float3 rs2::color_map::get ( float  value) const
inline

Definition at line 749 of file rendering.h.

void rs2::color_map::initialize ( int  steps)
inlineprivate

Definition at line 779 of file rendering.h.

float rs2::color_map::max_key ( ) const
inline

Definition at line 758 of file rendering.h.

float rs2::color_map::min_key ( ) const
inline

Definition at line 757 of file rendering.h.

Member Data Documentation

std::vector<float3> rs2::color_map::_cache
private

Definition at line 800 of file rendering.h.

float3* rs2::color_map::_data
private

Definition at line 802 of file rendering.h.

std::map<float, float3> rs2::color_map::_map
private

Definition at line 799 of file rendering.h.

float rs2::color_map::_max
private

Definition at line 801 of file rendering.h.

float rs2::color_map::_min
private

Definition at line 801 of file rendering.h.

size_t rs2::color_map::_size
private

Definition at line 802 of file rendering.h.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:40