libimage  0.25.4
 All Classes Namespaces Files Functions Variables Enumerations Macros Pages
Enumerations | Functions | Variables
Merge Namespace Reference

Manage informations in connection with merge method. More...

Enumerations

enum  eMergeType {
  UNKNOWN = 0, NORMAL = 1, LIGHTEN = 2, DARKEN = 3,
  MULTIPLY = 4, ALPHATOP = 5, TOP = 6
}
 Available merge methods enumeration.

Functions

eMergeType fromString (std::string strMergeMethod)
 Convert a string to a merge methods enumeration member.
std::string toString (eMergeType mergeMethod)
 Convert a merge method to a string.

Variables

const char * mergeType_name []
const int mergeType_size = 6
 Number of available merge methods.

Detailed Description

Manage informations in connection with merge method.

Author
Institut national de l'information géographique et forestière

Function Documentation

eMergeType Merge::fromString ( std::string  strMergeMethod)

Convert a string to a merge methods enumeration member.

Parameters
[in]strMergeMethodstring to convert
Returns
the binding merge method, UNKNOWN (0) if string is not recognized
std::string Merge::toString ( eMergeType  mergeMethod)

Convert a merge method to a string.

Parameters
[in]mergeMethodmerge method to convert
Returns
string namming the merge method

Variable Documentation

const char* Merge::mergeType_name[]
Initial value:
{
"UNKNOWN",
"NORMAL",
"LIGHTEN",
"DARKEN",
"MULTIPLY",
"ALPHATOP",
"TOP"
}