Scope
scope::ColorProps Class Reference

#include <lut.h>

Public Member Functions

 ColorProps (const ColorEnum &_col=None, const uint16_t &_ll=0, const uint16_t &_ul=UINT16_MAX >> 1)
 
 ColorProps (const ColorProps &cp)
 
ColorPropsoperator= (const ColorProps &cp)
 
 operator ColorEnum () const
 
Several accessor methods
uint16_t Range () const
 
ColorEnum Color () const
 
uint16_t LowerLimit () const
 
uint16_t UpperLimit () const
 
Several mutator methods
void SetColor (const ColorEnum &_col)
 
void SetLowerLimit (const uint16_t &_ll)
 
void SetUpperLimit (const uint16_t &_ul)
 

Protected Attributes

std::mutex mutex
 
ColorEnum col
 
uint16_t ll
 
uint16_t ul
 

Detailed Description

Encapsulated lower and upper limit for range adjustment and color for displaying.

Definition at line 47 of file lut.h.

Constructor & Destructor Documentation

scope::ColorProps::ColorProps ( const ColorEnum &  _col = None,
const uint16_t &  _ll = 0,
const uint16_t &  _ul = UINT16_MAX >> 1 
)
inline

NI-DAQ devices have range of +-x volts digitized to int16, we read this as uint16, thus only values from 0-32767 are used => maximum pixel value is 65534 / 2 = 32767.

Definition at line 67 of file lut.h.

scope::ColorProps::ColorProps ( const ColorProps cp)
inline

Safe copy constructor.

Definition at line 74 of file lut.h.

Member Function Documentation

ColorProps& scope::ColorProps::operator= ( const ColorProps cp)
inline

Safe assignment.

Definition at line 81 of file lut.h.

scope::ColorProps::operator ColorEnum ( ) const
inline

Converts class to enum (for the color type)

Definition at line 104 of file lut.h.

Member Data Documentation

std::mutex scope::ColorProps::mutex
mutableprotected

for protection

Definition at line 51 of file lut.h.

ColorEnum scope::ColorProps::col
protected

the color map type

Definition at line 54 of file lut.h.

uint16_t scope::ColorProps::ll
protected

lower limit to display

Definition at line 57 of file lut.h.

uint16_t scope::ColorProps::ul
protected

upper limit to display

Definition at line 60 of file lut.h.


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