Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

vuMCRGBColor Class Reference

Class provides a Button and a slider to manipulate a color. More...

#include <vuMarchingCubes.h>

Inheritance diagram for vuMCRGBColor:

Inheritance graph
[legend]
Collaboration diagram for vuMCRGBColor:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Class provides a Button and a slider to manipulate a color.

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.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
idMCRGBSlider 
idMCRGBButton 
idMCRGBLast 

Definition at line 625 of file vuMarchingCubes.h.


Constructor & Destructor Documentation

vuMCRGBColor::vuMCRGBColor  )  [inline]
 

Default constructor.

Definition at line 652 of file vuMarchingCubes.h.

vuMCRGBColor::vuMCRGBColor wxWindow *  p,
const char *  title,
vuMCDecorator< float > *  cb,
wxColour  c,
float  a
 

Definition at line 457 of file vuMarchingCubes.cpp.

References DEBUGC, and VU_MCRGB_SLIDER_MAX.

vuMCRGBColor::~vuMCRGBColor  )  [virtual]
 

Destructor.

Definition at line 479 of file vuMarchingCubes.cpp.

References DEBUGD.


Member Function Documentation

void vuMCRGBColor::_OnScroll wxCommandEvent &  event  )  [private]
 

void vuMCRGBColor::_setColor  )  [private]
 

Definition at line 499 of file vuMarchingCubes.cpp.

References _color, _glColor, _slider, and DEBUG0.

Referenced by OnButton(), OnScroll(), and operator=().

void vuMCRGBColor::_setColor wxColour &  col  )  [private]
 

Definition at line 489 of file vuMarchingCubes.cpp.

References _color, _glColor, _slider, and DEBUG0.

void vuMCRGBColor::_setText  )  [private]
 

Definition at line 509 of file vuMarchingCubes.cpp.

References _colorText, _slider, and DEBUG0.

Referenced by OnScroll().

GLfloat vuMCRGBColor::Alpha  ) 
 

Definition at line 574 of file vuMarchingCubes.cpp.

References _glColor, DEBUG0, and GLfloat.

Referenced by vuMarchingCubes::glInit(), and vuMarchingCubes::setBackground().

GLfloat vuMCRGBColor::Blue  ) 
 

Definition at line 568 of file vuMarchingCubes.cpp.

References _glColor, DEBUG0, and GLfloat.

Referenced by vuMarchingCubes::glInit(), and vuMarchingCubes::setBackground().

vuMCRGBColor::DECLARE_DYNAMIC_CLASS vuMCRGBColor   ) 
 

vuMCRGBColor::DECLARE_EVENT_TABLE  ) 
 

Reimplemented from vuMCWidget.

GLfloat vuMCRGBColor::Green  ) 
 

Definition at line 562 of file vuMarchingCubes.cpp.

References _glColor, DEBUG0, and GLfloat.

Referenced by vuMarchingCubes::glInit(), and vuMarchingCubes::setBackground().

void vuMCRGBColor::OnButton wxCommandEvent &  event  ) 
 

Definition at line 533 of file vuMarchingCubes.cpp.

References _color, _setColor(), and DEBUG0.

Here is the call graph for this function:

void vuMCRGBColor::OnScroll wxScrollEvent &  event  ) 
 

Definition at line 548 of file vuMarchingCubes.cpp.

References _setColor(), _setText(), and DEBUG0.

Here is the call graph for this function:

vuMCRGBColor::operator GLfloat *  ) 
 

Returns the color as OpenGL color.

Definition at line 521 of file vuMarchingCubes.cpp.

References DEBUG0.

void vuMCRGBColor::operator= wxColour &  c  ) 
 

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:

GLfloat vuMCRGBColor::Red  ) 
 

Definition at line 556 of file vuMarchingCubes.cpp.

References _glColor, DEBUG0, and GLfloat.

Referenced by vuMarchingCubes::glInit(), and vuMarchingCubes::setBackground().

vuVector vuMCRGBColor::tovuVector  ) 
 

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().


Member Data Documentation

vuMCDecorator<float>* vuMCRGBColor::_callback [private]
 

Definition at line 640 of file vuMarchingCubes.h.

wxButton* vuMCRGBColor::_color [private]
 

Definition at line 636 of file vuMarchingCubes.h.

Referenced by _setColor(), and OnButton().

wxStaticText* vuMCRGBColor::_colorText [private]
 

Definition at line 638 of file vuMarchingCubes.h.

Referenced by _setText().

GLfloat vuMCRGBColor::_glColor[4] [private]
 

Definition at line 633 of file vuMarchingCubes.h.

Referenced by _setColor(), Alpha(), Blue(), Green(), Red(), and tovuVector().

wxSlider* vuMCRGBColor::_slider [private]
 

Definition at line 637 of file vuMarchingCubes.h.

Referenced by _setColor(), and _setText().

wxStaticText* vuMCRGBColor::_title [private]
 

Definition at line 635 of file vuMarchingCubes.h.


The documentation for this class was generated from the following files:
Generated on Wed Dec 15 21:21:54 2004 for vuVolume by  doxygen 1.3.9.1