FemViewer::Legend Class Reference

#include <Legend.h>

Collaboration diagram for FemViewer::Legend:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Legend ()
 Legend (const Legend &legend)
 Legend (const std::string &path)
 ~Legend ()
Legendoperator= (const Legend &legend)
bool operator== (const Legend &rhs) const
void Reset ()
double GetMin () const
double GetMax () const
double GetStart () const
double GetEnd () const
unsigned int GetRangesNumber (void) const
LegendType GetLegendType (void) const
bool GetOutsideBlack (void) const
bool IsValid () const
std::vector< colormap_value > & GetColors ()
const std::vector
< colormap_value > & 
GetColors () const
template<typename T >
int PackValuesIntoArray (T buffer[][4], const int max_size) const
void SetMin (double minValue)
void SetMax (double maxValue)
void SetStart (double startValue)
void SetEnd (double endValue)
void SetRange (unsigned int numRanges)
void SetType (LegendType type)
void SetOutsideBlack (bool outsideBlack)
void Draw (void)
void Update (void)
void Create (void)
void Set (double minValue=0.0, double maxValue=1.0, double startValue=0.0, double endValue=1.0, unsigned int rangesNumber=_ncont, LegendType legendType=_dftype, bool outsideBlack=false)
int GetLiczbaGranic (void) const
 Zwraca liczbe granic w legendzie nowa wersja.
double GetWartoscGranicy (const unsigned int &i) const
 Zwraca wartosc granicy opodanym indeksie 0..n-1.
int IsBorderNr (double value) const
 Zwraca numer granicy dla podnaje wartosci lub -1 jesli nie jest granica.
std::vector< ColorRGBGetColors (const std::vector< double > &vValues)
 Pobiera wartosci dla kt�rych zwraca kolor�w je�li mieszcz� si� w tym samym przedziale legendy.
std::vector< unsigned int > GetRanges (const double &d) const
 Pobiera element graficzny i wylicza dla niego wartosci kolorow legendy.
int GetRanges (const double &v1, const double &v2) const
 Dla podanych dwu wartosci podaje mozliwy przedzial lub -1 jesli niemoze ich zakwalifikowac do jednego luba zadnego.
void GetRangeValues (unsigned int i, double &v1, double &v2) const
 Dla przedzia�u o podanym numerze pobiera jego graniczne wartosci.
size_t GetRangesSize (void) const
 Zwraca liczbe przedzialow w legendzie.
bool GetColor (const double &value, const unsigned int &range, ColorRGB &c) const
 Dla podanego przedzialu i wartosci zwrocenie skladowe koloru.
void GetRange3 (const unsigned int &range, double &sValue, ColorRGB &sColor, double &eValue, ColorRGB &eColor)
void GetRange (const unsigned int &range, double &sValue, ColorRGB &sColor, double &eValue, ColorRGB &eColor)
 Dla podanego przedzia�u zwraca poczatkowa oraz koncowa - wartosc oraz kolor.
double GetInterp (double value)
 A member function.
double GetInterp (double a, double b, double value) const
double GetValue (double a, double b, double interp) const
 Na podstawie poczatkoej i koncowej wartosci oraz interpolacji zwraca wartosc wewnetrzna.
void GetBorders (const double &s, const double &e, std::vector< double > &vD) const
 Dla dwoch wartosci zwraca wektor ktory zawiera je jako poczatkowa i koncowa oraz wewnatrz wszytskie granice miedzy tymiwartosciami.
bool GetRangesBorder (const double &value, double &s, double &e) const
 Dla podanej wartosci zwraca gorna oraz dolna wartosc przedzialu - nowa wersja.
bool IsBorder2 (double value) const
 sprawdza czy podana wartosc jest granica - nowa wersja
bool IsBorder3 (double value) const
Stare metdy juz najprawdopodobniej niewykorzystywane



int GetIndexMax (void)
 A member function.
void GetColor (double value)
 A member function.
float GetColor3b (double value)
double GetValue (const ColorRGB &rgb)
void GetColor (double value, colormap_value &lv)
bool IsBorder (double value)
 A member function.
bool IsInStartEnd (double value)
 A member function.
int GetStartIndex (void)
 Zwraca indeks elementu odpowiadajacego typu start w legendzie.
int GetEndIndex (void)
 Zwraca indeks elementu odpowiadajacego typu end w legendzie.
void GetInterval (double valueStart, double valueEnd)

Public Attributes

colormap_value color

Protected Member Functions

void GetRangeColor (const unsigned int &range, double &sValue, ColorRGB &sColor, double &eValue, ColorRGB &eColor)
void GetRangeGradient (const unsigned int &range, double &sValue, ColorRGB &sColor, double &eValue, ColorRGB &eColor)
void MinMaxPos (int &mi, int &mx)
 Zwraca pozycje min i max wzgledem start end.
void FillStartEndColor (void)
 Na podstawie wewnetrznych ustawien.
void FillStartEndGradient (void)
void AddMinMaxColor (void)
void AddMinMaxGradient (void)

Constructor & Destructor Documentation

FemViewer::Legend::Legend (  )  [explicit]
FemViewer::Legend::Legend ( const Legend legend  )  [explicit]
FemViewer::Legend::Legend ( const std::string &  path  )  [explicit]

Here is the call graph for this function:

FemViewer::Legend::~Legend (  ) 

Member Function Documentation

void FemViewer::Legend::AddMinMaxColor ( void   )  [protected]

Here is the call graph for this function:

Here is the caller graph for this function:

void FemViewer::Legend::AddMinMaxGradient ( void   )  [protected]

Here is the call graph for this function:

Here is the caller graph for this function:

void FemViewer::Legend::Create ( void   ) 

Here is the caller graph for this function:

void FemViewer::Legend::Draw ( void   )  [inline]
void FemViewer::Legend::FillStartEndColor ( void   )  [protected]

Na podstawie wewnetrznych ustawien.

Here is the call graph for this function:

Here is the caller graph for this function:

void FemViewer::Legend::FillStartEndGradient ( void   )  [protected]

Here is the call graph for this function:

Here is the caller graph for this function:

void FemViewer::Legend::GetBorders ( const double &  s,
const double &  e,
std::vector< double > &  vD 
) const [inline]

Dla dwoch wartosci zwraca wektor ktory zawiera je jako poczatkowa i koncowa oraz wewnatrz wszytskie granice miedzy tymiwartosciami.

Here is the call graph for this function:

Here is the caller graph for this function:

void FemViewer::Legend::GetColor ( double  value,
colormap_value lv 
)

Here is the call graph for this function:

void FemViewer::Legend::GetColor ( double  value  ) 

A member function.

zwraca wartosc skladowych kolorw dla podanej wartosci w postaci publicznego skladnika klasy

Parameters:
value wartosc dla korej podane sa skaldowe kolorow.
bool FemViewer::Legend::GetColor ( const double &  value,
const unsigned int &  range,
ColorRGB c 
) const

Dla podanego przedzialu i wartosci zwrocenie skladowe koloru.

Returns:
false - jesli wartosc jest z po za podanergo przedzialu, lub z jakiegos innego powodu nie mozna ustalic skladowych koloru dla podanych parametrow

Here is the call graph for this function:

Here is the caller graph for this function:

float FemViewer::Legend::GetColor3b ( double  value  )  [inline]

Here is the call graph for this function:

std::vector< ColorRGB > FemViewer::Legend::GetColors ( const std::vector< double > &  vValues  ) 

Pobiera wartosci dla kt�rych zwraca kolor�w je�li mieszcz� si� w tym samym przedziale legendy.

Here is the call graph for this function:

const std::vector<colormap_value>& FemViewer::Legend::GetColors (  )  const [inline]
std::vector<colormap_value>& FemViewer::Legend::GetColors (  )  [inline]

Here is the caller graph for this function:

double FemViewer::Legend::GetEnd (  )  const [inline]

Here is the caller graph for this function:

int FemViewer::Legend::GetEndIndex ( void   )  [inline]

Zwraca indeks elementu odpowiadajacego typu end w legendzie.

Here is the caller graph for this function:

unsigned int FemViewer::Legend::GetIndexMax ( void   )  [inline]

A member function.

//Zwraca indeks przedzialu <1-n> do ktorego nalezy na podstawie wartosci. //zwraca maksymalna wartosc indeksu Zwraca liczba indeksow (0-n)

Returns:
zwrca liczbe bedaca liczba indeksow
double FemViewer::Legend::GetInterp ( double  a,
double  b,
double  value 
) const
double FemViewer::Legend::GetInterp ( double  value  ) 

A member function.

Dla podanej wartosci rozwiazania zwraca wartosc interpolacji <0-1> z przynaleznego przedzialu tej wartosci

Parameters:
value sprawdzana wartosc.
Returns:
interpolacja dla podanej wartosci z przynale�nego zakresu

Here is the caller graph for this function:

void FemViewer::Legend::GetInterval ( double  valueStart,
double  valueEnd 
)
LegendType FemViewer::Legend::GetLegendType ( void   )  const [inline]

Here is the caller graph for this function:

int FemViewer::Legend::GetLiczbaGranic ( void   )  const [inline]

Zwraca liczbe granic w legendzie nowa wersja.

Here is the caller graph for this function:

double FemViewer::Legend::GetMax (  )  const [inline]

Here is the caller graph for this function:

double FemViewer::Legend::GetMin (  )  const [inline]

Here is the caller graph for this function:

bool FemViewer::Legend::GetOutsideBlack ( void   )  const [inline]

Here is the caller graph for this function:

void FemViewer::Legend::GetRange ( const unsigned int &  range,
double &  sValue,
ColorRGB sColor,
double &  eValue,
ColorRGB eColor 
) [inline]

Dla podanego przedzia�u zwraca poczatkowa oraz koncowa - wartosc oraz kolor.

Je�li podany przedzialu jest z po za zakrestu to w wartosciach zwracanych nie jest dokonywana zmiana

Parameters:
range numer sprawdzanego przedzialu
sValue poczatkowa wartosc
sColor poczatkowy kolor
eValue koncowa wartos
eColor koncowy kolor

Here is the call graph for this function:

void FemViewer::Legend::GetRange3 ( const unsigned int &  range,
double &  sValue,
ColorRGB sColor,
double &  eValue,
ColorRGB eColor 
)

Here is the call graph for this function:

void FemViewer::Legend::GetRangeColor ( const unsigned int &  range,
double &  sValue,
ColorRGB sColor,
double &  eValue,
ColorRGB eColor 
) [protected]

Here is the caller graph for this function:

void FemViewer::Legend::GetRangeGradient ( const unsigned int &  range,
double &  sValue,
ColorRGB sColor,
double &  eValue,
ColorRGB eColor 
) [protected]

Here is the caller graph for this function:

int FemViewer::Legend::GetRanges ( const double &  v1,
const double &  v2 
) const

Dla podanych dwu wartosci podaje mozliwy przedzial lub -1 jesli niemoze ich zakwalifikowac do jednego luba zadnego.

Here is the call graph for this function:

std::vector< unsigned int > FemViewer::Legend::GetRanges ( const double &  d  )  const

Pobiera element graficzny i wylicza dla niego wartosci kolorow legendy.

Returns:
zwraca false w przypadku gdy nie mozna wszytskich wartosci elementu zakwalifikowac do jednego przedzialu przez co nie mozna dla wsyztskich ustawic koloru Pobiera wektor element�w graficznych i wylicza dla niego wartosci kolor�w legendy Dla podanej wartosci zwraca mozliwe przedzialy w jakich sie znajduje

Dla granicy powinny to byc dwie warto�ci: lewa i prawa dla wartosci miedzy granicami jest to tylko jeden przedzial

Here is the call graph for this function:

Here is the caller graph for this function:

bool FemViewer::Legend::GetRangesBorder ( const double &  value,
double &  s,
double &  e 
) const

Dla podanej wartosci zwraca gorna oraz dolna wartosc przedzialu - nowa wersja.

Here is the call graph for this function:

unsigned int FemViewer::Legend::GetRangesNumber ( void   )  const [inline]

Here is the caller graph for this function:

size_t FemViewer::Legend::GetRangesSize ( void   )  const

Zwraca liczbe przedzialow w legendzie.

Here is the caller graph for this function:

void FemViewer::Legend::GetRangeValues ( unsigned int  i,
double &  v1,
double &  v2 
) const

Dla przedzia�u o podanym numerze pobiera jego graniczne wartosci.

Here is the call graph for this function:

Here is the caller graph for this function:

double FemViewer::Legend::GetStart (  )  const [inline]

Here is the caller graph for this function:

int FemViewer::Legend::GetStartIndex ( void   )  [inline]

Zwraca indeks elementu odpowiadajacego typu start w legendzie.

Here is the caller graph for this function:

double FemViewer::Legend::GetValue ( const ColorRGB rgb  ) 

Here is the call graph for this function:

double FemViewer::Legend::GetValue ( double  a,
double  b,
double  interp 
) const

Na podstawie poczatkoej i koncowej wartosci oraz interpolacji zwraca wartosc wewnetrzna.

double FemViewer::Legend::GetWartoscGranicy ( const unsigned int &  i  )  const [inline]

Zwraca wartosc granicy opodanym indeksie 0..n-1.

Here is the call graph for this function:

Here is the caller graph for this function:

bool FemViewer::Legend::IsBorder ( double  value  ) 

A member function.

Sprawdzenie czy podana wartosc jest granica - stara wersja.

Parameters:
value sprawdzana wartosc.
Returns:
prawda jesli wartosc jest granica, w przeciwnym razie false
bool FemViewer::Legend::IsBorder2 ( double  value  )  const

sprawdza czy podana wartosc jest granica - nowa wersja

Here is the call graph for this function:

bool FemViewer::Legend::IsBorder3 ( double  value  )  const
int FemViewer::Legend::IsBorderNr ( double  value  )  const

Zwraca numer granicy dla podnaje wartosci lub -1 jesli nie jest granica.

Here is the call graph for this function:

Here is the caller graph for this function:

bool FemViewer::Legend::IsInStartEnd ( double  value  ) 

A member function.

Sprawdza czy podana wartosc jest >= start i <=end. Zwraca true dla prawdy lub false jesli nie

Parameters:
value sprawdzana wartosc.
Returns:
prawda jesli wartosc jest granica, w przeciwnym razie false
bool FemViewer::Legend::IsValid (  )  const [inline]
void FemViewer::Legend::MinMaxPos ( int &  mi,
int &  mx 
) [protected]

Zwraca pozycje min i max wzgledem start end.

mi dla min, mx dla max: -1 - mnijeszy od min 0 - miedzy min a max 1 wiekszy od max

Here is the call graph for this function:

Here is the caller graph for this function:

Legend & FemViewer::Legend::operator= ( const Legend legend  ) 
bool FemViewer::Legend::operator== ( const Legend rhs  )  const
template<typename T >
int FemViewer::Legend::PackValuesIntoArray ( T  buffer[][4],
const int  max_size 
) const [inline]

Here is the caller graph for this function:

void FemViewer::Legend::Reset ( void   ) 

Here is the caller graph for this function:

void FemViewer::Legend::Set ( double  minValue = 0.0,
double  maxValue = 1.0,
double  startValue = 0.0,
double  endValue = 1.0,
unsigned int  rangesNumber = _ncont,
LegendType  legendType = _dftype,
bool  outsideBlack = false 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void FemViewer::Legend::SetEnd ( double  endValue  )  [inline]

Here is the call graph for this function:

void FemViewer::Legend::SetMax ( double  maxValue  )  [inline]

Here is the call graph for this function:

void FemViewer::Legend::SetMin ( double  minValue  )  [inline]

Here is the call graph for this function:

void FemViewer::Legend::SetOutsideBlack ( bool  outsideBlack  )  [inline]

Here is the call graph for this function:

void FemViewer::Legend::SetRange ( unsigned int  numRanges  )  [inline]

Here is the call graph for this function:

void FemViewer::Legend::SetStart ( double  startValue  )  [inline]

Here is the call graph for this function:

void FemViewer::Legend::SetType ( LegendType  type  )  [inline]

Here is the call graph for this function:

void FemViewer::Legend::Update ( void   )  [inline]

Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 3 Jun 2020 for ModFEM by  doxygen 1.6.1