#include <vuMarchingCubes.h>
Inheritance diagram for vuMCWidget:
Public Types | |
enum | { typeBox, typeStaticBox, typeGrid } |
Public Member Functions | |
vuMCWidget () | |
Hiding the default constructor. | |
vuMCWidget (wxWindow *p, int orient=wxVERTICAL, int type=typeBox, int hgap=5, int cols=4, int vgap=0) | |
virtual | ~vuMCWidget () |
The destructor does not take care of wxWidgets. | |
wxSizer * | Sizer () |
DECLARE_DYNAMIC_CLASS (vuMCWidget) | |
DECLARE_EVENT_TABLE () | |
Private Attributes | |
int | _sizerType |
wxSizer * | _sizer |
The class remembers the parent widget but does not create an widget. It also provides the _sizer member which should be filled by descendend classes.
The idea of this class structure is to create the needed wxWindows elements in a hirarchical way. All classes behave with the paradigma that wxWindows manages all widgets, so non of the classes here takes care about removing widgets it created.
Widget structure
This base class as described above only remembers the parent widget for later use. The next level in this hirarchy should create a sizer and override Sizer(). Any successive class then creates widgets with _parent as it's parent.
Usage
First create an object of any class in the third level of this hirarchy. Than use Sizer() to add it to the sizer of the window.
Definition at line 316 of file vuMarchingCubes.h.
|
Definition at line 321 of file vuMarchingCubes.h. |
|
Hiding the default constructor.
Definition at line 336 of file vuMarchingCubes.h. |
|
Definition at line 39 of file vuMarchingCubes.cpp. References DEBUGC. |
|
The destructor does not take care of wxWidgets.
Definition at line 62 of file vuMarchingCubes.cpp. |
|
|
|
Reimplemented in vuMCKeyValue, vuMCKeyVector, vuMCBitField, vuMCGrayColor, vuMCRGBColor, vuMCSlider, and vuMCHistogram. |
|
Definition at line 69 of file vuMarchingCubes.cpp. References DEBUG0. |
|
Definition at line 331 of file vuMarchingCubes.h. Referenced by ~vuMCWidget(). |
|
Definition at line 329 of file vuMarchingCubes.h. |