iLand
Signals | Public Member Functions | Static Public Member Functions | Properties | List of all members
Colors Class Reference

#include <colors.h>

Inheritance diagram for Colors:

Signals

void colorsChanged ()
 
void scaleChanged ()
 

Public Member Functions

 Colors (QWidget *parent=0)
 
QStringList colors () const
 
QStringList labels () const
 
QStringList factorLabels () const
 
int colorCount () const
 
double minValue () const
 
double maxValue () const
 
void setMinValue (double val)
 
void setMaxValue (double val)
 
bool hasFactors () const
 
bool autoScale () const
 
void setAutoScale (bool value)
 
QString caption () const
 
QString description () const
 
void setPalette (const GridViewType type, const float min_val, const float max_val)
 
void setFactorLabels (QStringList labels)
 
void setFactorColors (QStringList colors)
 
void setCaption (QString caption, QString description=QString())
 
double meterPerPixel () const
 
void setScale (double meter_per_pixel)
 

Static Public Member Functions

static QColor colorFromValue (const float value, const float min_value=0.f, const float max_value=1.f, const bool reverse=false, const bool black_white=false)
 
static QColor colorFromValue (const float value, const GridViewType view_type, const float min_value=0.f, const float max_value=1.f)
 
static QColor colorFromPalette (const int value, const GridViewType view_type)
 
static QColor shadeColor (const QColor col, const QPointF &coordinates, const DEM *dem)
 

Properties

QStringList colors
 
QStringList labels
 
QStringList factorLabels
 
int count
 
double minValue
 
double maxValue
 
bool autoScale
 
bool hasFactors
 
QString caption
 
QString description
 
double meterPerPixel
 

Constructor & Destructor Documentation

◆ Colors()

Colors::Colors ( QWidget *  parent = 0)

Member Function Documentation

◆ autoScale()

bool Colors::autoScale ( ) const
inline

◆ caption()

QString Colors::caption ( ) const
inline

◆ colorCount()

int Colors::colorCount ( ) const
inline

◆ colorFromPalette()

QColor Colors::colorFromPalette ( const int  value,
const GridViewType  view_type 
)
static

◆ colorFromValue() [1/2]

QColor Colors::colorFromValue ( const float  value,
const float  min_value = 0.f,
const float  max_value = 1.f,
const bool  reverse = false,
const bool  black_white = false 
)
static

◆ colorFromValue() [2/2]

QColor Colors::colorFromValue ( const float  value,
const GridViewType  view_type,
const float  min_value = 0.f,
const float  max_value = 1.f 
)
static

◆ colors()

QStringList Colors::colors ( ) const
inline

◆ colorsChanged

void Colors::colorsChanged ( )
signal

◆ description()

QString Colors::description ( ) const
inline

◆ factorLabels()

QStringList Colors::factorLabels ( ) const
inline

◆ hasFactors()

bool Colors::hasFactors ( ) const
inline

◆ labels()

QStringList Colors::labels ( ) const
inline

◆ maxValue()

double Colors::maxValue ( ) const
inline

◆ meterPerPixel()

double Colors::meterPerPixel ( ) const
inline

◆ minValue()

double Colors::minValue ( ) const
inline

◆ scaleChanged

void Colors::scaleChanged ( )
signal

◆ setAutoScale()

void Colors::setAutoScale ( bool  value)
inline

◆ setCaption()

void Colors::setCaption ( QString  caption,
QString  description = QString() 
)
inline

◆ setFactorColors()

void Colors::setFactorColors ( QStringList  colors)

◆ setFactorLabels()

void Colors::setFactorLabels ( QStringList  labels)

◆ setMaxValue()

void Colors::setMaxValue ( double  val)
inline

◆ setMinValue()

void Colors::setMinValue ( double  val)
inline

◆ setPalette()

void Colors::setPalette ( const GridViewType  type,
const float  min_val,
const float  max_val 
)

◆ setScale()

void Colors::setScale ( double  meter_per_pixel)
inline

◆ shadeColor()

QColor Colors::shadeColor ( const QColor  col,
const QPointF &  coordinates,
const DEM dem 
)
static

Property Documentation

◆ autoScale

bool Colors::autoScale
readwrite

◆ caption

QString Colors::caption
read

◆ colors

QStringList Colors::colors
read

◆ count

int Colors::count
read

◆ description

QString Colors::description
read

◆ factorLabels

QStringList Colors::factorLabels
read

◆ hasFactors

bool Colors::hasFactors
read

◆ labels

QStringList Colors::labels
read

◆ maxValue

double Colors::maxValue
readwrite

◆ meterPerPixel

double Colors::meterPerPixel
read

◆ minValue

double Colors::minValue
readwrite

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