|
CiftiLib
A C++ library for CIFTI-2 and CIFTI-1 files
|
Public Member Functions | |
| Label (const int32_t key, const AString &name) | |
| Label (const int32_t key, const AString &name, const float red, const float green, const float blue, const float alpha) | |
| Label (const int32_t key, const AString &name, const double red, const double green, const double blue, const double alpha) | |
| Label (const int32_t key, const AString &name, const float rgba[]) | |
| Label (const int32_t key, const AString &name, const int32_t red, const int32_t green, const int32_t blue, const int32_t alpha) | |
| Label (const int32_t key, const AString &name, const int32_t rgba[]) | |
| Label (const int32_t key) | |
| Label (const Label &gl) | |
| Label & | operator= (const Label &gl) |
| int32_t | hashCode () |
| bool | equals (const Label &) |
| int32_t | operator< (const Label &gl) |
| int32_t | getKey () const |
| void | setKey (const int32_t key) |
| AString | getName () const |
| void | setName (const AString &name) |
| bool | isSelected () const |
| void | setSelected (const bool selected) |
| float * | getColor () const |
| void | getColor (float rgbaOut[]) const |
| void | setColor (const float rgba[]) |
| int32_t * | getColorInt () const |
| void | setColorInt (const int32_t rgba[]) |
| float | getRed () const |
| float | getGreen () const |
| float | getBlue () const |
| float | getAlpha () const |
| bool | matches (const Label &rhs, const bool checkColor=false) const |
Static Public Member Functions | |
| static void | getDefaultColor (float rgbaOut[4]) |
| static int32_t | getInvalidLabelKey () |
| Label::Label | ( | const int32_t | key, |
| const AString & | name | ||
| ) |
Constructor.
| key | - key of the label. |
| name | - name of label. |
|
explicit |
Constructor.
| key | - Key of the label. |
| name | - name of label. |
| red | - red color component, zero to one. |
| green | - green color component, zero to one. |
| blue | - blue color component, zero to one. |
| alpha | - alpha color component, zero to one. |
|
explicit |
Constructor.
| key | - Key of the label. |
| name | - name of label. |
| red | - red color component, zero to one. |
| green | - green color component, zero to one. |
| blue | - blue color component, zero to one. |
| alpha | - alpha color component, zero to one. |
| Label::Label | ( | const int32_t | key, |
| const AString & | name, | ||
| const float | rgba[] | ||
| ) |
Constructor.
| key | - Key of the label. |
| name | - name of label. |
| rgba | - red, green, blue, alpha color componenents, zero to one. |
|
explicit |
Constructor.
| key | - Key of the label. |
| name | - name of label. |
| red | - red color component, zero to two-fifty-five. |
| green | - green color component, zero to two-fifty-five. |
| blue | - blue color component, zero to two-fifty-five. |
| alpha | - alpha color component, zero to two-fifty-five. |
| Label::Label | ( | const int32_t | key, |
| const AString & | name, | ||
| const int32_t | rgba[] | ||
| ) |
Constructor.
| key | - Key of the label. |
| name | - name of label. |
| rgba | - red, green, blue, alpha color componenents, zero to 255. |
| Label::Label | ( | const int32_t | key | ) |
Constructor.
| key | - Key of the label. |
| bool Label::equals | ( | const Label & | gl | ) |
Determine if two labels are equal. Two Labels are equal if they have the same "key".
| gl | label for comparison. |
| float Label::getAlpha | ( | ) | const |
Get the alpha color component for this label.
| float Label::getBlue | ( | ) | const |
Get the blue color component for this label.
| float * Label::getColor | ( | ) | const |
Get the color components.
| void Label::getColor | ( | float | rgbaOut[] | ) | const |
Get the color components.
| rgbaOut | four dimensional array into which are loaded, red, green, blue, and alpha components ranging 0.0. to 1.0. |
| int32_t * Label::getColorInt | ( | ) | const |
Get the colors as integers ranging 0 to 255.
|
static |
Get the default color.
| rgbaOut | ouput, a four-dimensional array of floats containing the red, green, blue, and alpha components with values ranging from 0.0 to 1.0. |
| float Label::getGreen | ( | ) | const |
Get the green color component for this label.
|
inlinestatic |
| int32_t Label::getKey | ( | ) | const |
Get the key of this label.
| AString Label::getName | ( | ) | const |
Get the name.
| float Label::getRed | ( | ) | const |
Get the red color component for this label.
| bool Label::isSelected | ( | ) | const |
Is this label selected (for display)?
| int32_t Label::operator< | ( | const Label & | gl | ) |
Compare this label to another label using the indices of the labels.
| gl | - Compare to this Label. |
| void Label::setColor | ( | const float | rgba[] |