#include <vuMarchingCubes.h>
Inheritance diagram for vuMCRGBColor:
Public Types | |
enum | { idMCRGBSlider = vuMCGrayColor::idMCGCLast, idMCRGBButton, idMCRGBLast } |
Public Member Functions | |
vuMCRGBColor () | |
Default constructor. | |
vuMCRGBColor (wxWindow *p, const char *title, vuMCDecorator< float > *cb, wxColour c, float a) | |
virtual | ~vuMCRGBColor () |
Destructor. | |
void | operator= (wxColour &c) |
When the button is clicket, a the color should be set by a dialog. | |
operator GLfloat * () | |
Returns the color as OpenGL color. | |
vuVector | tovuVector () |
GLfloat | Red () |
GLfloat | Green () |
GLfloat | Blue () |
GLfloat | Alpha () |
void | OnButton (wxCommandEvent &event) |
void | OnScroll (wxScrollEvent &event) |
DECLARE_DYNAMIC_CLASS (vuMCRGBColor) | |
DECLARE_EVENT_TABLE () | |
Private Member Functions | |
void | _setColor (wxColour &col) |
void | _setColor () |
void | _setText () |
void | _OnScroll (wxCommandEvent &event) |
Private Attributes | |
GLfloat | _glColor [4] |
wxStaticText * | _title |
wxButton * | _color |
wxSlider * | _slider |
wxStaticText * | _colorText |
vuMCDecorator< float > * | _callback |
This class is nearly the same as vuMCGrayColor but it handles RGB colors and therefore has a button to change the RGB value of the color. At the moment, the alpha chanel isnt used. Instead we multiply the alpha value from _slider directly to the RGB-values of the color.
Definition at line 620 of file vuMarchingCubes.h.
|
Definition at line 625 of file vuMarchingCubes.h. |
|
Default constructor.
Definition at line 652 of file vuMarchingCubes.h. |
|
Definition at line 457 of file vuMarchingCubes.cpp. References DEBUGC, and VU_MCRGB_SLIDER_MAX. |
|
Destructor.
Definition at line 479 of file vuMarchingCubes.cpp. References DEBUGD. |
|
|
|
Definition at line 499 of file vuMarchingCubes.cpp. References _color, _glColor, _slider, and DEBUG0. Referenced by OnButton(), OnScroll(), and operator=(). |
|
Definition at line 489 of file vuMarchingCubes.cpp. |
|
Definition at line 509 of file vuMarchingCubes.cpp. References _colorText, _slider, and DEBUG0. Referenced by OnScroll(). |
|
Definition at line 574 of file vuMarchingCubes.cpp. References _glColor, DEBUG0, and GLfloat. Referenced by vuMarchingCubes::glInit(), and vuMarchingCubes::setBackground(). |
|
Definition at line 568 of file vuMarchingCubes.cpp. References _glColor, DEBUG0, and GLfloat. Referenced by vuMarchingCubes::glInit(), and vuMarchingCubes::setBackground(). |
|
|
|
Reimplemented from vuMCWidget. |
|
Definition at line 562 of file vuMarchingCubes.cpp. References _glColor, DEBUG0, and GLfloat. Referenced by vuMarchingCubes::glInit(), and vuMarchingCubes::setBackground(). |
|
Definition at line 533 of file vuMarchingCubes.cpp. References _color, _setColor(), and DEBUG0. |
Here is the call graph for this function:
|
Definition at line 548 of file vuMarchingCubes.cpp. References _setColor(), _setText(), and DEBUG0. |
Here is the call graph for this function:
|
Returns the color as OpenGL color.
Definition at line 521 of file vuMarchingCubes.cpp. References DEBUG0. |
|
When the button is clicket, a the color should be set by a dialog.
Definition at line 515 of file vuMarchingCubes.cpp. References _setColor(), and DEBUG0. |
Here is the call graph for this function:
|
Definition at line 556 of file vuMarchingCubes.cpp. References _glColor, DEBUG0, and GLfloat. Referenced by vuMarchingCubes::glInit(), and vuMarchingCubes::setBackground(). |
|
Definition at line 527 of file vuMarchingCubes.cpp. References _glColor, and DEBUG0. Referenced by vuMarchingCubes::createGLNotebook(), vuMarchingCubes::init(), vuMarchingCubes::OnCubeChange(), vuMarchingCubes::OnSelectType(), vuMarchingCubes::OnSetLineColor(), and vuMarchingCubes::OnSetObjectColor(). |
|
Definition at line 640 of file vuMarchingCubes.h. |
|
Definition at line 636 of file vuMarchingCubes.h. Referenced by _setColor(), and OnButton(). |
|
Definition at line 638 of file vuMarchingCubes.h. Referenced by _setText(). |
|
Definition at line 633 of file vuMarchingCubes.h. Referenced by _setColor(), Alpha(), Blue(), Green(), Red(), and tovuVector(). |
|
Definition at line 637 of file vuMarchingCubes.h. Referenced by _setColor(), and _setText(). |
|
Definition at line 635 of file vuMarchingCubes.h. |