App::ColorLegend Class Reference

#include <ColorModel.h>

Public Member Functions

bool addMax (const std::string &rclName)
 
bool addMin (const std::string &rclName)
 
 ColorLegend (const ColorLegend &rclCL)
 
 ColorLegend (void)
 
Color getColor (float fVal) const
 
Color getColor (unsigned long ulPos) const
 
unsigned short getColorIndex (float fVal) const
 
float getMaxValue (void) const
 
float getMinValue (void) const
 
uint32_t getPackedColor (unsigned long ulPos) const
 
std::string getText (unsigned long ulPos) const
 
float getValue (unsigned long ulPos) const
 
unsigned long hasNumberOfFields (void) const
 
bool isOutsideGrayed (void) const
 
bool operator!= (const ColorLegend &rclCL) const
 
ColorLegendoperator= (const ColorLegend &rclCL)
 
bool operator== (const ColorLegend &rclCL) const
 
bool remove (unsigned long ulPos)
 
void removeFirst (void)
 
void removeLast (void)
 
void resize (unsigned long ulN)
 
bool setColor (unsigned long ulPos, float ucRed, float ucGreen, float ucBlue)
 
bool setColor (unsigned long ulPos, unsigned long ulColor)
 
void setOutsideGrayed (bool bOS)
 
bool setText (unsigned long ulPos, const std::string &rclName)
 
bool setValue (unsigned long ulPos, float fVal)
 
virtual ~ColorLegend ()
 

Constructor & Destructor Documentation

◆ ColorLegend() [1/2]

ColorLegend::ColorLegend ( void  )

◆ ColorLegend() [2/2]

ColorLegend::ColorLegend ( const ColorLegend rclCL)

◆ ~ColorLegend()

virtual App::ColorLegend::~ColorLegend ( )
virtual

Member Function Documentation

◆ addMax()

bool ColorLegend::addMax ( const std::string &  rclName)

◆ addMin()

bool ColorLegend::addMin ( const std::string &  rclName)

References App::Color::b, App::Color::g, and App::Color::r.

Referenced by resize().

◆ getColor() [1/2]

Color App::ColorLegend::getColor ( float  fVal) const

◆ getColor() [2/2]

Color ColorLegend::getColor ( unsigned long  ulPos) const

Referenced by getPackedColor().

◆ getColorIndex()

unsigned short App::ColorLegend::getColorIndex ( float  fVal) const

◆ getMaxValue()

float App::ColorLegend::getMaxValue ( void  ) const

◆ getMinValue()

float App::ColorLegend::getMinValue ( void  ) const

◆ getPackedColor()

uint32_t ColorLegend::getPackedColor ( unsigned long  ulPos) const

◆ getText()

std::string ColorLegend::getText ( unsigned long  ulPos) const

◆ getValue()

float ColorLegend::getValue ( unsigned long  ulPos) const

◆ hasNumberOfFields()

unsigned long App::ColorLegend::hasNumberOfFields ( void  ) const

◆ isOutsideGrayed()

bool App::ColorLegend::isOutsideGrayed ( void  ) const

◆ operator!=()

bool App::ColorLegend::operator!= ( const ColorLegend rclCL) const

◆ operator=()

ColorLegend & ColorLegend::operator= ( const ColorLegend rclCL)

◆ operator==()

bool ColorLegend::operator== ( const ColorLegend rclCL) const

◆ remove()

bool ColorLegend::remove ( unsigned long  ulPos)

◆ removeFirst()

void ColorLegend::removeFirst ( void  )

◆ removeLast()

void ColorLegend::removeLast ( void  )

Referenced by resize().

◆ resize()

void ColorLegend::resize ( unsigned long  ulN)

References addMin(), and removeLast().

◆ setColor() [1/2]

bool ColorLegend::setColor ( unsigned long  ulPos,
float  ucRed,
float  ucGreen,
float  ucBlue 
)

Referenced by setColor().

◆ setColor() [2/2]

bool ColorLegend::setColor ( unsigned long  ulPos,
unsigned long  ulColor 
)

References setColor().

◆ setOutsideGrayed()

void App::ColorLegend::setOutsideGrayed ( bool  bOS)

◆ setText()

bool ColorLegend::setText ( unsigned long  ulPos,
const std::string &  rclName 
)

◆ setValue()

bool ColorLegend::setValue ( unsigned long  ulPos,
float  fVal 
)

The documentation for this class was generated from the following files:
  • src/App/ColorModel.h
  • src/App/ColorModel.cpp