Moka controlers
|
#include <parameter-drawing.hh>
Public Member Functions | |
virtual int | getType () const |
Identificateur du type de paramètre. | |
Constructeur et destructeur | |
CParameterDrawing (int ANbRef=0) | |
CParameterDrawing (const CParameterDrawing &) | |
CParameter * | copy () const |
virtual | ~CParameterDrawing () |
Sauvegarde et chargement des paramètres | |
virtual void | save (std::ostream &) |
virtual void | load (std::istream &) |
virtual void | reinit () |
Accesseurs pour les flags | |
bool | getDisplayLight () const |
void | setDisplayLight (bool) |
pour activer/désactiver la lumière | |
void | invDisplayLight () |
Accesseurs pour les couleurs des axes Ox, Oy et Oz | |
float | getCLLight (int AIndice) const |
const float * | getCLLight () const |
void | setCLLight (int AIndice, float AValue) |
void | setCLLight (float AValue0, float AValue1, float AValue2) |
void | setCLLight (const float ATab[3]) |
float | getCLBackground (int AIndice) const |
const float * | getCLBackground () const |
void | setCLBackground (int AIndice, float AValue) |
void | setCLBackground (float AValue0, float AValue1, float AValue2) |
void | setCLBackground (const float ATab[3]) |
Public Member Functions inherited from CParameter | |
CParameter (unsigned int ANbRef=0) | |
CParameter (const CParameter &AParameter) | |
virtual | ~CParameter () |
void | incNbRef (unsigned int AValue=1) |
void | decNbRef (unsigned int AValue=1) |
unsigned int | getNbRef () const |
virtual void | addPrecompileToUpdate (CPrecompile *) |
virtual void | removePrecompileToUpdate (CPrecompile *) |
virtual void | putAllNeedToUpdate () |
Friends | |
std::ostream & | operator<< (std::ostream &, const CParameterDrawing &) |
Fonctions amies pour lire et écrire dans un flux. | |
std::istream & | operator>> (std::istream &, CParameterDrawing &) |
Cette classe contient simplement les accesseurs et modificateurs des différentes variables membres.
Definition at line 42 of file parameter-drawing.hh.
CParameterDrawing::CParameterDrawing | ( | int | ANbRef = 0 | ) |
Constructeur
Definition at line 32 of file parameter-drawing.cc.
CParameterDrawing::CParameterDrawing | ( | const CParameterDrawing & | AParam | ) |
Definition at line 38 of file parameter-drawing.cc.
|
virtual |
Destructeur
Definition at line 46 of file parameter-drawing.cc.
|
virtual |
Equivalent d'un constructeur par recopie, mais en méthode virtuelle pour le polymorphisme.
Implements CParameter.
Definition at line 49 of file parameter-drawing.cc.
float CParameterDrawing::getCLBackground | ( | int | AIndice | ) | const |
Definition at line 133 of file parameter-drawing.cc.
const float * CParameterDrawing::getCLBackground | ( | ) | const |
Definition at line 143 of file parameter-drawing.cc.
float CParameterDrawing::getCLLight | ( | int | AIndice | ) | const |
Definition at line 111 of file parameter-drawing.cc.
const float * CParameterDrawing::getCLLight | ( | ) | const |
Definition at line 121 of file parameter-drawing.cc.
bool CParameterDrawing::getDisplayLight | ( | ) | const |
Definition at line 155 of file parameter-drawing.cc.
|
virtual |
Identificateur du type de paramètre.
Implements CParameter.
Definition at line 168 of file parameter-drawing.cc.
void CParameterDrawing::invDisplayLight | ( | ) |
Definition at line 163 of file parameter-drawing.cc.
|
virtual |
load
Méthode permettant de récupérer les valeurs des variables membres.
Implements CParameter.
Definition at line 55 of file parameter-drawing.cc.
|
virtual |
reinit
Méthode pour réinitialiser avec nos valeurs par defaut.
Implements CParameter.
Definition at line 58 of file parameter-drawing.cc.
|
virtual |
save
Méthode permettant de sauver les valeurs des variables membres.
Implements CParameter.
Definition at line 52 of file parameter-drawing.cc.
void CParameterDrawing::setCLBackground | ( | int | AIndice, |
float | AValue | ||
) |
Definition at line 138 of file parameter-drawing.cc.
void CParameterDrawing::setCLBackground | ( | float | AValue0, |
float | AValue1, | ||
float | AValue2 | ||
) |
Definition at line 145 of file parameter-drawing.cc.
void CParameterDrawing::setCLBackground | ( | const float | ATab[3] | ) |
Definition at line 151 of file parameter-drawing.cc.
void CParameterDrawing::setCLLight | ( | int | AIndice, |
float | AValue | ||
) |
Definition at line 116 of file parameter-drawing.cc.
void CParameterDrawing::setCLLight | ( | float | AValue0, |
float | AValue1, | ||
float | AValue2 | ||
) |
Definition at line 123 of file parameter-drawing.cc.
void CParameterDrawing::setCLLight | ( | const float | ATab[3] | ) |
Definition at line 129 of file parameter-drawing.cc.
void CParameterDrawing::setDisplayLight | ( | bool | AValue | ) |
pour activer/désactiver la lumière
Definition at line 158 of file parameter-drawing.cc.
|
friend |
Fonctions amies pour lire et écrire dans un flux.
|
friend |