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

vuMCGrayColor Class Reference

This class provides widgets to change a gray color. More...

#include <vuMarchingCubes.h>

Inheritance diagram for vuMCGrayColor:

Inheritance graph
[legend]
Collaboration diagram for vuMCGrayColor:

Collaboration graph
[legend]
List of all members.

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.

Detailed Description

This class provides widgets to change a gray color.

The Color is calcualted by taking the color white and multiplicating it with a normalized value of a slider.

Todo:
have a look on the callback.

Definition at line 564 of file vuMarchingCubes.h.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
idMCGCSlider 
idMCGCLast 

Definition at line 569 of file vuMarchingCubes.h.


Constructor & Destructor Documentation

vuMCGrayColor::vuMCGrayColor  )  [inline]
 

Default constructor.

Definition at line 594 of file vuMarchingCubes.h.

vuMCGrayColor::vuMCGrayColor wxWindow *  p,
const char *  title,
vuMCDecorator< float > *  cb,
float  color
 

Definition at line 387 of file vuMarchingCubes.cpp.

References DEBUGC, and VU_MCGC_SLIDER_MAX.

vuMCGrayColor::~vuMCGrayColor  )  [virtual]
 

Also hide the estructor.

Definition at line 407 of file vuMarchingCubes.cpp.

References DEBUGD.


Member Function Documentation

void vuMCGrayColor::_setColor float  col  )  [private]
 

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

vuMCGrayColor::DECLARE_DYNAMIC_CLASS vuMCGrayColor   ) 
 

vuMCGrayColor::DECLARE_EVENT_TABLE  ) 
 

Reimplemented from vuMCWidget.

void vuMCGrayColor::OnScroll wxScrollEvent &  event  ) 
 

Definition at line 438 of file vuMarchingCubes.cpp.

References _setColor(), and DEBUG0.

Here is the call graph for this function:

vuMCGrayColor::operator float *  ) 
 

Returns the OpenGL color (ie. a float[4] with alpha=0).

Definition at line 432 of file vuMarchingCubes.cpp.

References DEBUG0.


Member Data Documentation

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

This callback is called, whenever the slider is moved.

Definition at line 587 of file vuMarchingCubes.h.

wxPanel* vuMCGrayColor::_color [private]
 

Display's the actual color.

Definition at line 581 of file vuMarchingCubes.h.

Referenced by _setColor().

wxStaticText* vuMCGrayColor::_colorText [private]
 

Shows the actual color value.

Definition at line 583 of file vuMarchingCubes.h.

Referenced by _setColor().

float vuMCGrayColor::_glColor[4] [private]
 

The color given to a OpenGL command.

Definition at line 577 of file vuMarchingCubes.h.

Referenced by _setColor().

wxSlider* vuMCGrayColor::_slider [private]
 

We save this pointer to enable and disable it.

Definition at line 585 of file vuMarchingCubes.h.

wxStaticText* vuMCGrayColor::_title [private]
 

This label is remembered only to be able to disable it.

Definition at line 579 of file vuMarchingCubes.h.


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