ATLAS Offline Software
|
Public Member Functions | |
void | initEditWindow () |
void | applyValuesToMaterial (SoMaterial *, bool preview=false) |
QColor | guiAmbientColour () const |
QColor | guiDiffuseColour () const |
QColor | guiSpecularColour () const |
QColor | guiEmissiveColour () const |
int | guiTransparency () const |
int | guiShininess () const |
QString | printFloat (const double &d) |
QString | toSbColTxt (const QColor &c) |
void | setLastAppliedFromCurrent () |
bool | previewEqualToLastApplied () const |
void | updateApplyResetButtons () |
void | adaptGuiForMode () |
void | switchModeBasedOnLastApplied () |
void | adaptGuiAndMaterialsToLastApplied () |
QColor | emissiveColourFromSimpleParameters (const QColor &simpleColour, const double &brightness) const |
double | brightnessEstimateFromDetailedParameters (const QColor &diffuseColour, const QColor &emissiveColour) const |
void | blockGuiSignals (bool) |
Static Public Member Functions | |
static SbColor | qcol2sbcol (const QColor &) |
static QColor | sbcol2qcol (const SbColor &) |
static double | distSq (const QColor &a, const QColor &b) |
static bool | equal (const QColor &a, const QColor &b, const double &tol=1.0e-6) |
static QColor | simpleAmbient () |
static QColor | simpleSpecular () |
static int | simpleShininess () |
Public Attributes | |
VP1MaterialButton * | theclass |
QPoint | dragStartPosition |
bool | simplemode |
int | dim |
QString | materialtext |
QWidget * | editwindow |
SoMaterial * | preview_material |
Ui::VP1MaterialButtonForm | editwindow_ui |
SoQtRenderArea * | renderarea |
SoSwitch * | previewswitch |
QList< SoMaterial * > | handledmaterials |
QColor | lastapplied_ambient |
QColor | lastapplied_diffuse |
QColor | lastapplied_specular |
QColor | lastapplied_emissive |
int | lastapplied_shininess |
int | lastapplied_transparency |
int | lastapplied_brightness |
int | blockcount |
Definition at line 48 of file VP1MaterialButton.cxx.
void VP1MaterialButton::Imp::adaptGuiAndMaterialsToLastApplied | ( | ) |
Definition at line 200 of file VP1MaterialButton.cxx.
void VP1MaterialButton::Imp::adaptGuiForMode | ( | ) |
Definition at line 703 of file VP1MaterialButton.cxx.
void VP1MaterialButton::Imp::applyValuesToMaterial | ( | SoMaterial * | m, |
bool | preview = false |
||
) |
Definition at line 405 of file VP1MaterialButton.cxx.
void VP1MaterialButton::Imp::blockGuiSignals | ( | bool | b | ) |
Definition at line 280 of file VP1MaterialButton.cxx.
double VP1MaterialButton::Imp::brightnessEstimateFromDetailedParameters | ( | const QColor & | diffuseColour, |
const QColor & | emissiveColour | ||
) | const |
Definition at line 536 of file VP1MaterialButton.cxx.
QColor VP1MaterialButton::Imp::guiAmbientColour | ( | ) | const |
Definition at line 546 of file VP1MaterialButton.cxx.
QColor VP1MaterialButton::Imp::guiDiffuseColour | ( | ) | const |
Definition at line 552 of file VP1MaterialButton.cxx.
QColor VP1MaterialButton::Imp::guiEmissiveColour | ( | ) | const |
Definition at line 564 of file VP1MaterialButton.cxx.
int VP1MaterialButton::Imp::guiShininess | ( | ) | const |
Definition at line 580 of file VP1MaterialButton.cxx.
QColor VP1MaterialButton::Imp::guiSpecularColour | ( | ) | const |
Definition at line 558 of file VP1MaterialButton.cxx.
int VP1MaterialButton::Imp::guiTransparency | ( | ) | const |
Definition at line 573 of file VP1MaterialButton.cxx.
void VP1MaterialButton::Imp::initEditWindow | ( | ) |
Definition at line 307 of file VP1MaterialButton.cxx.
bool VP1MaterialButton::Imp::previewEqualToLastApplied | ( | ) | const |
Definition at line 604 of file VP1MaterialButton.cxx.
|
inline |
|
static |
Definition at line 499 of file VP1MaterialButton.cxx.
|
static |
void VP1MaterialButton::Imp::setLastAppliedFromCurrent | ( | ) |
Definition at line 586 of file VP1MaterialButton.cxx.
|
inlinestatic |
Definition at line 118 of file VP1MaterialButton.cxx.
|
inlinestatic |
Definition at line 120 of file VP1MaterialButton.cxx.
|
inlinestatic |
Definition at line 119 of file VP1MaterialButton.cxx.
void VP1MaterialButton::Imp::switchModeBasedOnLastApplied | ( | ) |
Definition at line 716 of file VP1MaterialButton.cxx.
|
inline |
Definition at line 103 of file VP1MaterialButton.cxx.
void VP1MaterialButton::Imp::updateApplyResetButtons | ( | ) |
Definition at line 617 of file VP1MaterialButton.cxx.
int VP1MaterialButton::Imp::blockcount |
Definition at line 115 of file VP1MaterialButton.cxx.
int VP1MaterialButton::Imp::dim |
Definition at line 56 of file VP1MaterialButton.cxx.
QPoint VP1MaterialButton::Imp::dragStartPosition |
Definition at line 52 of file VP1MaterialButton.cxx.
QWidget* VP1MaterialButton::Imp::editwindow |
Definition at line 59 of file VP1MaterialButton.cxx.
Ui::VP1MaterialButtonForm VP1MaterialButton::Imp::editwindow_ui |
Definition at line 61 of file VP1MaterialButton.cxx.
QList<SoMaterial*> VP1MaterialButton::Imp::handledmaterials |
Definition at line 68 of file VP1MaterialButton.cxx.
QColor VP1MaterialButton::Imp::lastapplied_ambient |
Definition at line 84 of file VP1MaterialButton.cxx.
int VP1MaterialButton::Imp::lastapplied_brightness |
Definition at line 90 of file VP1MaterialButton.cxx.
QColor VP1MaterialButton::Imp::lastapplied_diffuse |
Definition at line 85 of file VP1MaterialButton.cxx.
QColor VP1MaterialButton::Imp::lastapplied_emissive |
Definition at line 87 of file VP1MaterialButton.cxx.
int VP1MaterialButton::Imp::lastapplied_shininess |
Definition at line 88 of file VP1MaterialButton.cxx.
QColor VP1MaterialButton::Imp::lastapplied_specular |
Definition at line 86 of file VP1MaterialButton.cxx.
int VP1MaterialButton::Imp::lastapplied_transparency |
Definition at line 89 of file VP1MaterialButton.cxx.
QString VP1MaterialButton::Imp::materialtext |
Definition at line 58 of file VP1MaterialButton.cxx.
SoMaterial* VP1MaterialButton::Imp::preview_material |
Definition at line 60 of file VP1MaterialButton.cxx.
SoSwitch* VP1MaterialButton::Imp::previewswitch |
Definition at line 65 of file VP1MaterialButton.cxx.
SoQtRenderArea* VP1MaterialButton::Imp::renderarea |
Definition at line 64 of file VP1MaterialButton.cxx.
bool VP1MaterialButton::Imp::simplemode |
Definition at line 54 of file VP1MaterialButton.cxx.
VP1MaterialButton* VP1MaterialButton::Imp::theclass |
Definition at line 50 of file VP1MaterialButton.cxx.