App::ColorGradient Class Reference

#include <ColorModel.h>

Public Member Functions

 ColorGradient ()
 
 ColorGradient (const ColorGradient &)=default
 
 ColorGradient (float fMin, float fMax, std::size_t usCtColors, ColorBarStyle tS, VisibilityFlags fl=Visibility::Default)
 
Color getColor (float fVal) const
 
std::size_t getColorIndex (float fVal) const
 
const ColorModelgetColorModel () const
 
std::vector< std::string > getColorModelNames () const
 
std::size_t getColorModelType () const
 
std::size_t getCountColors () const
 
float getMaxValue () const
 
std::size_t getMinColors () const
 
float getMinValue () const
 
const ColorGradientProfilegetProfile () const
 
void getRange (float &rfMin, float &rfMax) const
 
ColorBarStyle getStyle () const
 
bool isOutOfRange (float fVal) const
 
bool isOutsideGrayed () const
 
bool isOutsideInvisible () const
 
ColorGradientoperator= (const ColorGradient &)=default
 
void set (float fMin, float fMax, std::size_t usCt, ColorBarStyle tS, VisibilityFlags fl)
 
void setColorModel (std::size_t tModel)
 
void setCountColors (std::size_t usCt)
 
void setOutsideGrayed (bool value)
 
void setOutsideInvisible (bool value)
 
void setProfile (const ColorGradientProfile &pro)
 
void setRange (float fMin, float fMax)
 
void setStyle (ColorBarStyle tS)
 

Protected Member Functions

void createStandardPacks ()
 
void rebuild ()
 
void setColorModel ()
 

Protected Attributes

ColorField colorField1
 
ColorField colorField2
 
ColorModelPack currentModelPack
 
std::vector< ColorModelPackmodelPacks
 
ColorGradientProfile profile
 

Constructor & Destructor Documentation

◆ ColorGradient() [1/3]

ColorGradient::ColorGradient ( )

◆ ColorGradient() [2/3]

ColorGradient::ColorGradient ( float  fMin,
float  fMax,
std::size_t  usCtColors,
ColorBarStyle  tS,
VisibilityFlags  fl = Visibility::Default 
)

◆ ColorGradient() [3/3]

App::ColorGradient::ColorGradient ( const ColorGradient )
default

Member Function Documentation

◆ createStandardPacks()

◆ getColor()

◆ getColorIndex()

◆ getColorModel()

◆ getColorModelNames()

std::vector< std::string > ColorGradient::getColorModelNames ( ) const

◆ getColorModelType()

std::size_t App::ColorGradient::getColorModelType ( ) const

◆ getCountColors()

std::size_t App::ColorGradient::getCountColors ( ) const

◆ getMaxValue()

float App::ColorGradient::getMaxValue ( ) const

◆ getMinColors()

◆ getMinValue()

float App::ColorGradient::getMinValue ( ) const

◆ getProfile()

const ColorGradientProfile & App::ColorGradient::getProfile ( ) const

◆ getRange()

void App::ColorGradient::getRange ( float &  rfMin,
float &  rfMax 
) const

◆ getStyle()

ColorBarStyle App::ColorGradient::getStyle ( ) const

◆ isOutOfRange()

bool App::ColorGradient::isOutOfRange ( float  fVal) const

Referenced by getColor().

◆ isOutsideGrayed()

bool App::ColorGradient::isOutsideGrayed ( ) const

References App::Grayed.

◆ isOutsideInvisible()

bool App::ColorGradient::isOutsideInvisible ( ) const

References App::Invisible.

Referenced by getColor().

◆ operator=()

ColorGradient & App::ColorGradient::operator= ( const ColorGradient )
default

◆ rebuild()

◆ set()

◆ setColorModel() [1/2]

◆ setColorModel() [2/2]

void ColorGradient::setColorModel ( std::size_t  tModel)

◆ setCountColors()

void App::ColorGradient::setCountColors ( std::size_t  usCt)

◆ setOutsideGrayed()

void App::ColorGradient::setOutsideGrayed ( bool  value)

References App::Grayed.

◆ setOutsideInvisible()

void App::ColorGradient::setOutsideInvisible ( bool  value)

References App::Invisible.

◆ setProfile()

void ColorGradient::setProfile ( const ColorGradientProfile pro)

References profile, rebuild(), and setColorModel().

◆ setRange()

void App::ColorGradient::setRange ( float  fMin,
float  fMax 
)

◆ setStyle()

void App::ColorGradient::setStyle ( ColorBarStyle  tS)

Member Data Documentation

◆ colorField1

ColorField App::ColorGradient::colorField1
protected

◆ colorField2

ColorField App::ColorGradient::colorField2
protected

◆ currentModelPack

ColorModelPack App::ColorGradient::currentModelPack
protected

◆ modelPacks

std::vector<ColorModelPack> App::ColorGradient::modelPacks
protected

◆ profile

ColorGradientProfile App::ColorGradient::profile
protected

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