#include <vuMarchingCubes.h>
Inheritance diagram for vuMCGrayColor:


Public Types | |
| enum | { idMCGCSlider = vuMCBitField::idMCBFLast, idMCGCLast } |
Public Member Functions | |
| vuMCGrayColor () | |
| Default constructor. | |
| vuMCGrayColor (wxWindow *p, const char *title, vuMCDecorator< float > *cb, float color) | |
| virtual | ~vuMCGrayColor () |
| Also hide the estructor. | |
| operator float * () | |
| Returns the OpenGL color (ie. a float[4] with alpha=0). | |
| void | OnScroll (wxScrollEvent &event) |
| DECLARE_DYNAMIC_CLASS (vuMCGrayColor) | |
| DECLARE_EVENT_TABLE () | |
Private Member Functions | |
| void | _setColor (float col) |
Private Attributes | |
| float | _glColor [4] |
| The color given to a OpenGL command. | |
| wxStaticText * | _title |
| This label is remembered only to be able to disable it. | |
| wxPanel * | _color |
| Display's the actual color. | |
| wxStaticText * | _colorText |
| Shows the actual color value. | |
| wxSlider * | _slider |
| We save this pointer to enable and disable it. | |
| vuMCDecorator< float > * | _callback |
| This callback is called, whenever the slider is moved. | |
The Color is calcualted by taking the color white and multiplicating it with a normalized value of a slider.
Definition at line 564 of file vuMarchingCubes.h.
|
|
Definition at line 569 of file vuMarchingCubes.h. |
|
|
Default constructor.
Definition at line 594 of file vuMarchingCubes.h. |
|
||||||||||||||||||||
|
Definition at line 387 of file vuMarchingCubes.cpp. References DEBUGC, and VU_MCGC_SLIDER_MAX. |
|
|
Also hide the estructor.
Definition at line 407 of file vuMarchingCubes.cpp. References DEBUGD. |
|
|
We do not take care about the widget is existing already because we create it in the constructor. Definition at line 417 of file vuMarchingCubes.cpp. References _color, _colorText, _glColor, assert, and DEBUG0. Referenced by OnScroll(). |
|
|
|
|
|
Reimplemented from vuMCWidget. |
|
|
Definition at line 438 of file vuMarchingCubes.cpp. References _setColor(), and DEBUG0. |
Here is the call graph for this function:

|
|
Returns the OpenGL color (ie. a float[4] with alpha=0).
Definition at line 432 of file vuMarchingCubes.cpp. References DEBUG0. |
|
|
This callback is called, whenever the slider is moved.
Definition at line 587 of file vuMarchingCubes.h. |
|
|
Display's the actual color.
Definition at line 581 of file vuMarchingCubes.h. Referenced by _setColor(). |
|
|
Shows the actual color value.
Definition at line 583 of file vuMarchingCubes.h. Referenced by _setColor(). |
|
|
The color given to a OpenGL command.
Definition at line 577 of file vuMarchingCubes.h. Referenced by _setColor(). |
|
|
We save this pointer to enable and disable it.
Definition at line 585 of file vuMarchingCubes.h. |
|
|
This label is remembered only to be able to disable it.
Definition at line 579 of file vuMarchingCubes.h. |
1.3.9.1