Developer Documentation
ACG::ColorCoder Class Reference

Class for generating nice colors for doubles. More...

#include <OpenFlipper/libs_required/ACG/Utils/ColorCoder.hh>

Inheritance diagram for ACG::ColorCoder:
ACG::IColorCoder

Public Member Functions

 ColorCoder (float _min=0.0, float _max=1.0, bool _signed=false)
 Default constructor.
 
void set_range (float _min, float _max, bool _signed)
 set the color coding range for unsigned coding
 
ACG::Vec4uc color4_raw (float _v) const override
 color coding
 
ACG::Vec4f color_float4_raw (float _v) const override
 color coding
 
float min () const override
 min scalar value
 
float max () const override
 max scalar value
 
- Public Member Functions inherited from ACG::IColorCoder
virtual ACG::Vec4uc color4 (float _v) const
 
virtual ACG::Vec4f color_float4 (float _v) const
 
ACG::Vec3uc color (float _v) const
 
ACG::Vec3f color_float (float _v) const
 
QColor color_qcolor (float _v) const
 
ACG::Vec4f operator() (float _v) const
 
void setMapOutsideRangeToAlpha0 (bool value)
 
bool getMapOutsideRangeToAlpha0 () const
 

Private Member Functions

ACG::Vec4uc color_unsigned (float _v) const
 
ACG::Vec4uc color_signed (float _v) const
 

Private Attributes

float val0_
 
float val1_
 
float val2_
 
float val3_
 
float val4_
 
bool signed_mode_
 

Additional Inherited Members

- Protected Attributes inherited from ACG::IColorCoder
bool mapOutsideRangeToAlpha0_ = false
 

Detailed Description

Class for generating nice colors for doubles.

Definition at line 68 of file ColorCoder.hh.


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