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

vuMCWidget Class Reference

Base class of all Marching Cubes spezial widgets. More...

#include <vuMarchingCubes.h>

Inheritance diagram for vuMCWidget:

Inheritance graph
[legend]
Collaboration diagram for vuMCWidget:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Base class of all Marching Cubes spezial widgets.

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.

Todo:
Think about creating a wxStaticBoxSizer (how should we provide the text?) Maybe by using multiple constructors?

Definition at line 316 of file vuMarchingCubes.h.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
typeBox 
typeStaticBox 
typeGrid 

Definition at line 321 of file vuMarchingCubes.h.


Constructor & Destructor Documentation

vuMCWidget::vuMCWidget  )  [inline]
 

Hiding the default constructor.

Definition at line 336 of file vuMarchingCubes.h.

vuMCWidget::vuMCWidget wxWindow *  p,
int  orient = wxVERTICAL,
int  type = typeBox,
int  hgap = 5,
int  cols = 4,
int  vgap = 0
 

Definition at line 39 of file vuMarchingCubes.cpp.

References DEBUGC.

vuMCWidget::~vuMCWidget  )  [virtual]
 

The destructor does not take care of wxWidgets.

Definition at line 62 of file vuMarchingCubes.cpp.

References _sizer, DEBUG4, and DEBUGC.


Member Function Documentation

vuMCWidget::DECLARE_DYNAMIC_CLASS vuMCWidget   ) 
 

vuMCWidget::DECLARE_EVENT_TABLE  ) 
 

Reimplemented in vuMCKeyValue, vuMCKeyVector, vuMCBitField, vuMCGrayColor, vuMCRGBColor, vuMCSlider, and vuMCHistogram.

wxSizer * vuMCWidget::Sizer  ) 
 

Definition at line 69 of file vuMarchingCubes.cpp.

References DEBUG0.


Member Data Documentation

wxSizer* vuMCWidget::_sizer [private]
 

Definition at line 331 of file vuMarchingCubes.h.

Referenced by ~vuMCWidget().

int vuMCWidget::_sizerType [private]
 

Definition at line 329 of file vuMarchingCubes.h.


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