The transformation of continuous values to a number of values (Interpolate function). More...
#include <Interpolate.h>
Public Types | |
enum | MethodType { NUMERIC, COLOR } |
It controls the ... More... | |
enum | ModeType { LINEAR, COSINE, CUBIC } |
It controls the ... More... | |
typedef void | ReturnType |
typedef Visitor | VisitorType |
Public Member Functions | |
virtual ReturnType | accept (VisitorType &guest) const =0 |
It call the visit method from the guest object. More... | |
const std::string & | getFallbackValue () const |
void | setFallbackValue (const std::string &v) |
Initializer Methods | |
Methods related to instantiation and destruction. | |
Interpolate () | |
It initializes a new Interpolate. More... | |
Interpolate (const Interpolate &rhs) | |
Copy constructor. More... | |
~Interpolate () | |
Destructor. More... | |
virtual Interpolate * | clone () const |
It returns a clone of this object. More... | |
Accessor methods | |
Methods used to get or set properties. | |
void | setLookupValue (ParameterValue *v) |
ParameterValue * | getLookupValue () const |
void | add (InterpolationPoint *i) |
void | setModeType (ModeType t) |
const ModeType & | getModeType () const |
void | setMethodType (MethodType t) |
const MethodType & | geMethodType () const |
const std::vector< InterpolationPoint * > & | getInterpolationPoints () const |
Protected Attributes | |
std::string | m_fallbackValue |
The value of the fallbackValue attribute is used as a default value, if the SE implementation does not support the function. If the implementation supports the function, then the result value is determined by executing the function. (Mandatory) More... | |
Private Attributes | |
std::vector< InterpolationPoint * > | m_interpolationPoints |
Mandatory. More... | |
ParameterValue * | m_lookupValue |
Mandatory. More... | |
MethodType | m_method |
Mandatory. More... | |
ModeType | m_mode |
Mandatory. More... | |
The transformation of continuous values to a number of values (Interpolate function).
The Symbology encoding specification defines three pre-defined functions for transforming raw data:
The Interpolation points have to be specified in ascending order of Data. They define a graph of points. LookupValues less than the Data value of the first InterpolationPoint are mapped to its corresponding Value. Accordingly, LookupValues greater than the Data value of the last InterpolationPoint are mapped to the Value of this one. LookupValues between two InterpolationPoints are interpolated between the corresponding Values.
Only numeric quantities are allowed for LookupValue and Data. Values are usually numeric as well. The interpolation of color-values requires the attribute mode="color" at the Interpolate element.
Definition at line 88 of file Interpolate.h.
|
inherited |
Definition at line 58 of file BaseVisitable.h.
|
inherited |
Definition at line 57 of file BaseVisitable.h.
te::se::Interpolate::Interpolate | ( | ) |
It initializes a new Interpolate.
te::se::Interpolate::Interpolate | ( | const Interpolate & | rhs | ) |
Copy constructor.
rhs | The other Interpolate. |
te::se::Interpolate::~Interpolate | ( | ) |
Destructor.
|
pure virtualinherited |
It call the visit method from the guest object.
guest | The guest or visitor. |
void te::se::Interpolate::add | ( | InterpolationPoint * | i | ) |
|
virtual |
|
inline |
Definition at line 159 of file Interpolate.h.
|
inherited |
const std::vector<InterpolationPoint*>& te::se::Interpolate::getInterpolationPoints | ( | ) | const |
|
inline |
Definition at line 149 of file Interpolate.h.
|
inline |
Definition at line 155 of file Interpolate.h.
|
inherited |
void te::se::Interpolate::setLookupValue | ( | ParameterValue * | v | ) |
void te::se::Interpolate::setMethodType | ( | MethodType | t | ) |
void te::se::Interpolate::setModeType | ( | ModeType | t | ) |
|
protectedinherited |
The value of the fallbackValue attribute is used as a default value, if the SE implementation does not support the function. If the implementation supports the function, then the result value is determined by executing the function. (Mandatory)
Definition at line 88 of file Function.h.
|
private |
Mandatory.
Definition at line 168 of file Interpolate.h.
|
private |
Mandatory.
Definition at line 167 of file Interpolate.h.
|
private |
Mandatory.
Definition at line 170 of file Interpolate.h.
|
private |
Mandatory.
Definition at line 169 of file Interpolate.h.