#include <vuMarchingCubes.h>
Inheritance diagram for vuMCKeyVector:
Public Member Functions | |
vuMCKeyVector () | |
wxWindows needs a default constructor so we define an empty one. | |
vuMCKeyVector (wxWindow *p, const char *key, int size, const char *format) | |
My default constructor. | |
virtual | ~vuMCKeyVector () |
Destructor. | |
void | operator() (int n, GLfloat val) |
Vector value setter. | |
GLfloat | Get (int i) |
operator const GLfloat * () | |
Vector getter. | |
void | Inc (int n, GLfloat val) |
Imcrement component n of the vector by val . | |
vuMCKeyVector & | operator[] (int n) |
Selects a element of the vector. | |
virtual void | operator= (GLfloat v) |
Set component _pos of the vector to v . | |
void | operator+= (GLfloat val) |
Increment component _pos of the vector by val . | |
void | operator-= (GLfloat val) |
Decrement component _pos of the vector by val . | |
DECLARE_DYNAMIC_CLASS (vuMCKeyVector) | |
DECLARE_EVENT_TABLE () | |
Private Member Functions | |
void | _updateLabel () |
Construct the label from _vector. | |
Private Attributes | |
GLfloat | _vector [VU_MCKV_MAX_SIZE] |
int | _size |
Actual size of the vector. | |
int | _pos |
State for the operator[]. | |
wxString | _mylabel |
This class makes use of the functionallity already implemented in vuMCKeyValue.
Internally the class calculates the string to be displayed and passes it to the label in vuMCKeyValue via vuMCKeyValue::Label().
Several operators are implemented to set the values of the vector. This is realized by implementing a state machine (member _pos). operator[] sets up the state machine while all other operators (the manipulating operators, such as operator=) us this state.
Definition at line 411 of file vuMarchingCubes.h.
|
wxWindows needs a default constructor so we define an empty one.
Definition at line 433 of file vuMarchingCubes.h. |
|
My default constructor.
Definition at line 152 of file vuMarchingCubes.cpp. |
|
Destructor.
Definition at line 163 of file vuMarchingCubes.cpp. References DEBUGD. |
|
Construct the label from _vector.
Definition at line 168 of file vuMarchingCubes.cpp. References _vector, DEBUG0, DEBUG1, and vuMCKeyValue::Label(). Referenced by Inc(), operator()(), operator+=(), operator-=(), and operator=(). |
Here is the call graph for this function:
|
|
|
Reimplemented from vuMCKeyValue. |
|
Definition at line 187 of file vuMarchingCubes.cpp. References _size, _vector, assert, DEBUG0, and GLfloat. Referenced by vuMarchingCubes::glRender(), and vuMarchingCubes::onMouseLeftMoving(). |
|
Imcrement component
Definition at line 200 of file vuMarchingCubes.cpp. References _size, _updateLabel(), _vector, assert, DEBUG0, and GLfloat. |
Here is the call graph for this function:
|
Vector getter.
Definition at line 194 of file vuMarchingCubes.cpp. References DEBUG0. |
|
Vector value setter.
Definition at line 179 of file vuMarchingCubes.cpp. References _size, _updateLabel(), _vector, assert, DEBUG0, and GLfloat. |
Here is the call graph for this function:
|
Increment component _pos of the vector by
Reimplemented from vuMCKeyValue. Definition at line 227 of file vuMarchingCubes.cpp. References _pos, _updateLabel(), _vector, assert, DEBUG0, and GLfloat. |
Here is the call graph for this function:
|
Decrement component _pos of the vector by
Reimplemented from vuMCKeyValue. Definition at line 235 of file vuMarchingCubes.cpp. References _pos, _updateLabel(), _vector, assert, DEBUG0, and GLfloat. |
Here is the call graph for this function:
|
Set component _pos of the vector to
Reimplemented from vuMCKeyValue. Definition at line 219 of file vuMarchingCubes.cpp. References _pos, _updateLabel(), _vector, assert, DEBUG0, and GLfloat. |
Here is the call graph for this function:
|
Selects a element of the vector. This operator also sets up the state machine (_pos) which other operaters use to manipulate the vector. Definition at line 211 of file vuMarchingCubes.cpp. |
|
Definition at line 425 of file vuMarchingCubes.h. |
|
State for the operator[]. It is initialized with -1 which means "no position". Definition at line 423 of file vuMarchingCubes.h. Referenced by operator+=(), operator-=(), operator=(), and operator[](). |
|
Actual size of the vector.
Definition at line 418 of file vuMarchingCubes.h. Referenced by Get(), Inc(), operator()(), and operator[](). |
|
Definition at line 415 of file vuMarchingCubes.h. Referenced by _updateLabel(), Get(), Inc(), operator()(), operator+=(), operator-=(), and operator=(). |