App::ColorGradient Class Reference

#include <ColorModel.h>

List of all members.

Public Types

enum  TColorModel { TRIA, INVERSE_TRIA, GRAY, INVERSE_GRAY }
enum  TStyle { FLOW, ZERO_BASED }

Public Member Functions

 ColorGradient (const ColorGradient &rclCR)
 ColorGradient (float fMin, float fMax, unsigned short usCtColors, TStyle tS, bool bOG=false)
 ColorGradient (void)
Color getColor (float fVal) const
unsigned short getColorIndex (float fVal) const
const ColorModelgetColorModel (void) const
TColorModel getColorModelType (void) const
unsigned short getCountColors (void) const
float getMaxValue (void) const
unsigned short getMinColors (void) const
float getMinValue (void) const
void getRange (float &rfMin, float &rfMax) const
TStyle getStyle (void) const
bool isOutsideGrayed (void) const
ColorGradientoperator= (const ColorGradient &rclCR)
void set (float fMin, float fMax, unsigned short usCt, TStyle tS, bool bOG)
void setColorModel (TColorModel tModel)
void setCountColors (unsigned short usCt)
void setOutsideGrayed (bool bGrayed)
void setRange (float fMin, float fMax)
void setStyle (TStyle tS)

Protected Member Functions

void rebuild (void)
void setColorModel (void)

Protected Attributes

bool _bOutsideGrayed
ColorModel _clBottom
ColorField _clColFld1
ColorField _clColFld2
ColorModel _clTop
ColorModel _clTotal
float _fMax
float _fMin
TColorModel _tColorModel
TStyle _tStyle
unsigned short _usCtColors

Detailed Description

Definition at line 271 of file ColorModel.h.


Member Enumeration Documentation

Enumerator:
TRIA 
INVERSE_TRIA 
GRAY 
INVERSE_GRAY 

Definition at line 275 of file ColorModel.h.

Enumerator:
FLOW 
ZERO_BASED 

Definition at line 274 of file ColorModel.h.


Constructor & Destructor Documentation

ColorGradient::ColorGradient ( void   ) 

Definition at line 161 of file ColorModel.cpp.

References setColorModel(), and ZERO_BASED.

ColorGradient::ColorGradient ( float  fMin,
float  fMax,
unsigned short  usCtColors,
TStyle  tS,
bool  bOG = false 
)

Definition at line 172 of file ColorModel.cpp.

References setColorModel().

ColorGradient::ColorGradient ( const ColorGradient rclCR  ) 

Definition at line 183 of file ColorModel.cpp.


Member Function Documentation

Color App::ColorGradient::getColor ( float  fVal  )  const [inline]
unsigned short App::ColorGradient::getColorIndex ( float  fVal  )  const [inline]
const ColorModel & App::ColorGradient::getColorModel ( void   )  const [inline]
TColorModel App::ColorGradient::getColorModelType ( void   )  const [inline]

Definition at line 294 of file ColorModel.h.

Referenced by Gui::SoFCColorGradient::customize().

unsigned short App::ColorGradient::getCountColors ( void   )  const [inline]
float App::ColorGradient::getMaxValue ( void   )  const [inline]

Definition at line 297 of file ColorModel.h.

unsigned short ColorGradient::getMinColors ( void   )  const
float App::ColorGradient::getMinValue ( void   )  const [inline]

Definition at line 296 of file ColorModel.h.

void App::ColorGradient::getRange ( float &  rfMin,
float &  rfMax 
) const [inline]
TStyle App::ColorGradient::getStyle ( void   )  const [inline]
bool App::ColorGradient::isOutsideGrayed ( void   )  const [inline]

Definition at line 292 of file ColorModel.h.

Referenced by Gui::SoFCColorGradient::customize().

ColorGradient & ColorGradient::operator= ( const ColorGradient rclCR  ) 
void ColorGradient::rebuild ( void   )  [protected]
void ColorGradient::set ( float  fMin,
float  fMax,
unsigned short  usCt,
TStyle  tS,
bool  bOG 
)

Definition at line 209 of file ColorModel.cpp.

References _bOutsideGrayed, _fMax, _fMin, _tStyle, _usCtColors, CCR_EPS, getMinColors(), and rebuild().

void ColorGradient::setColorModel ( void   )  [protected]
void ColorGradient::setColorModel ( TColorModel  tModel  ) 
void App::ColorGradient::setCountColors ( unsigned short  usCt  )  [inline]

Definition at line 287 of file ColorModel.h.

Referenced by Gui::SoFCColorGradient::customize().

void App::ColorGradient::setOutsideGrayed ( bool  bGrayed  )  [inline]

Definition at line 291 of file ColorModel.h.

Referenced by Gui::SoFCColorGradient::customize().

void App::ColorGradient::setRange ( float  fMin,
float  fMax 
) [inline]
void App::ColorGradient::setStyle ( TStyle  tS  )  [inline]

Member Data Documentation

Definition at line 308 of file ColorModel.h.

Referenced by getColor(), operator=(), and set().

Definition at line 309 of file ColorModel.h.

Referenced by getColorModel(), operator=(), rebuild(), and setColorModel().

Definition at line 303 of file ColorModel.h.

Referenced by getColor(), getColorIndex(), getMinColors(), operator=(), rebuild(), and setColorModel().

Definition at line 303 of file ColorModel.h.

Referenced by getColor(), getColorIndex(), getMinColors(), operator=(), rebuild(), and setColorModel().

Definition at line 309 of file ColorModel.h.

Referenced by getColorModel(), operator=(), rebuild(), and setColorModel().

Definition at line 309 of file ColorModel.h.

Referenced by getColorModel(), operator=(), rebuild(), and setColorModel().

float App::ColorGradient::_fMax [protected]

Definition at line 306 of file ColorModel.h.

Referenced by getColor(), getColorIndex(), getColorModel(), getMinColors(), operator=(), rebuild(), and set().

float App::ColorGradient::_fMin [protected]

Definition at line 306 of file ColorModel.h.

Referenced by getColor(), getColorIndex(), getColorModel(), getMinColors(), operator=(), rebuild(), and set().

Definition at line 304 of file ColorModel.h.

Referenced by operator=(), and setColorModel().

unsigned short App::ColorGradient::_usCtColors [protected]

Definition at line 307 of file ColorModel.h.

Referenced by operator=(), rebuild(), and set().


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

Generated on Wed Nov 23 19:01:42 2011 for FreeCAD by  doxygen 1.6.1