cartobase  5.0.5
carto::RescalerInfo Class Reference

Low level rescaler info used for rescaling. More...

#include <cartobase/type/converter.h>

Public Member Functions

 RescalerInfo ()
 Construct object requesting default rescaling. More...
 
bool explicitRescale () const
 Test if any explicit rescaling parameters has been specified. More...
 

Public Attributes

bool usevtypelimits
 Use limits of the input type instead of effective input min-max. More...
 
double vmin
 
double vmax
 
double omin
 
double omax
 

Detailed Description

Low level rescaler info used for rescaling.

Request linear rescaling from the input range [vmin, vmax] to the output range [omin, omax]. These ranges are initialized with Not-a-Number (NaN) values, which correspond to the following defaults:

  • NaN in the input range means to use as input range the range of values effectively used in the input of the rescaler; unless usevtypelimits is true, in which case the whole range values of accommodated by the input type is used.
  • NaN in the output range means to use the whole range of values accommodated by the output type.

Definition at line 57 of file converter.h.

Constructor & Destructor Documentation

◆ RescalerInfo()

carto::RescalerInfo::RescalerInfo ( )

Construct object requesting default rescaling.

Member Function Documentation

◆ explicitRescale()

bool carto::RescalerInfo::explicitRescale ( ) const

Test if any explicit rescaling parameters has been specified.

Member Data Documentation

◆ omax

double carto::RescalerInfo::omax

◆ omin

double carto::RescalerInfo::omin

◆ usevtypelimits

bool carto::RescalerInfo::usevtypelimits

Use limits of the input type instead of effective input min-max.

Has no effect if vmin and vmax are explicitly specified.

Definition at line 69 of file converter.h.

◆ vmax

double carto::RescalerInfo::vmax

◆ vmin

double carto::RescalerInfo::vmin

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