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

vuMCKeyValue Class Reference

Displays a key-value-pair. More...

#include <vuMarchingCubes.h>

Inheritance diagram for vuMCKeyValue:

Inheritance graph
[legend]
Collaboration diagram for vuMCKeyValue:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 vuMCKeyValue ()
 Hiding the default constructor.
 vuMCKeyValue (wxWindow *p, const char *key, const char *format, GLfloat val=0)
 Two labels will be created.
virtual ~vuMCKeyValue ()
 Destructor.
virtual void operator= (GLfloat v)
 Value setter that takes a number.
virtual void operator+= (GLfloat v)
virtual void operator-= (GLfloat v)
void Label (wxString txt)
 Value setter taking the label text directly.
 operator GLfloat ()
 Value getter.
 DECLARE_DYNAMIC_CLASS (vuMCKeyValue)
 DECLARE_EVENT_TABLE ()

Protected Attributes

const char * _format
 The number formating text.

Private Attributes

GLfloat _value
 Holds the value.
wxStaticText * _key
 We keep this value to be able to enable and disable it.
wxStaticText * _valueText
 This widget shows the value.

Detailed Description

Displays a key-value-pair.

This class creates two labels side by side. The left side holds the key, and the right side holds the value.

Definition at line 354 of file vuMarchingCubes.h.


Constructor & Destructor Documentation

vuMCKeyValue::vuMCKeyValue  )  [inline]
 

Hiding the default constructor.

Definition at line 376 of file vuMarchingCubes.h.

vuMCKeyValue::vuMCKeyValue wxWindow *  p,
const char *  key,
const char *  format,
GLfloat  val = 0
 

Two labels will be created.

The first displayes the key, the other the value. The second one has to be remembered in _value for later use.

Definition at line 89 of file vuMarchingCubes.cpp.

References DEBUGC, and GLfloat.

vuMCKeyValue::~vuMCKeyValue  )  [virtual]
 

Destructor.

Definition at line 101 of file vuMarchingCubes.cpp.

References DEBUGD.


Member Function Documentation

vuMCKeyValue::DECLARE_DYNAMIC_CLASS vuMCKeyValue   ) 
 

vuMCKeyValue::DECLARE_EVENT_TABLE  ) 
 

Reimplemented from vuMCWidget.

Reimplemented in vuMCKeyVector.

void vuMCKeyValue::Label wxString  txt  ) 
 

Value setter taking the label text directly.

Definition at line 130 of file vuMarchingCubes.cpp.

References _valueText, and DEBUG0.

Referenced by vuMCKeyVector::_updateLabel().

vuMCKeyValue::operator GLfloat  )  [inline]
 

Value getter.

Definition at line 136 of file vuMarchingCubes.cpp.

References DEBUG0.

void vuMCKeyValue::operator+= GLfloat  v  )  [virtual]
 

Reimplemented in vuMCKeyVector.

Definition at line 116 of file vuMarchingCubes.cpp.

References _format, _value, _valueText, DEBUG0, and GLfloat.

void vuMCKeyValue::operator-= GLfloat  v  )  [virtual]
 

Reimplemented in vuMCKeyVector.

Definition at line 123 of file vuMarchingCubes.cpp.

References _format, _value, _valueText, DEBUG0, and GLfloat.

void vuMCKeyValue::operator= GLfloat  v  )  [virtual]
 

Value setter that takes a number.

Reimplemented in vuMCKeyVector.

Definition at line 108 of file vuMarchingCubes.cpp.

References _format, _value, _valueText, DEBUG0, DEBUG3, and GLfloat.


Member Data Documentation

const char* vuMCKeyValue::_format [protected]
 

The number formating text.

Definition at line 369 of file vuMarchingCubes.h.

Referenced by operator+=(), operator-=(), and operator=().

wxStaticText* vuMCKeyValue::_key [private]
 

We keep this value to be able to enable and disable it.

Definition at line 362 of file vuMarchingCubes.h.

GLfloat vuMCKeyValue::_value [private]
 

Holds the value.

Definition at line 360 of file vuMarchingCubes.h.

Referenced by operator+=(), operator-=(), and operator=().

wxStaticText* vuMCKeyValue::_valueText [private]
 

This widget shows the value.

Definition at line 364 of file vuMarchingCubes.h.

Referenced by Label(), operator+=(), operator-=(), and operator=().


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