GUIelement Class Reference

GUIelement: abstrakte Klasse zur Repräsentation von GUI Elementen. Jedes GUI Element muss seine Position, die Größe des Fensters und die aktuellen Frames-per-seconds (für ein/ausblenden) speichern. More...

#include <GUIelement.h>

Inheritance diagram for GUIelement:

VAxisAlignElement VMenuStarter VRenderMode VSliceElement VTransferFunctionElement List of all members.

Public Member Functions

 GUIelement (int *, int *, unsigned int *)
virtual void motion (int, int)
virtual void pressed (int, int)
virtual void released (int, int)
virtual void drag (int, int)
virtual bool isInside (int, int)
virtual void render ()
bool isActive ()
void setActive (bool)
bool isBlend ()
void setBlend (bool)

Protected Attributes

bool active
bool blend
int * wwidth
int * wheight
int width
int height
unsigned int * fps
float alpha
int x
int y

Detailed Description

GUIelement: abstrakte Klasse zur Repräsentation von GUI Elementen. Jedes GUI Element muss seine Position, die Größe des Fensters und die aktuellen Frames-per-seconds (für ein/ausblenden) speichern.

See also:
VTransferFunctionElement.h

VSliceElement.h

VRenderMode.h

VAxisAlignElement.h

VMenuStarter.h

Definition at line 13 of file GUIelement.h.


Constructor & Destructor Documentation

GUIelement::GUIelement ( int *  ,
int *  ,
unsigned int *   
)

Konstruktor

Parameters:
width Breite des Fensters
height Höhe des Fensters
fps Pointer auf fps Wert

Definition at line 3 of file GUIelement.cpp.

References active, alpha, blend, wheight, and wwidth.


Member Function Documentation

void GUIelement::motion ( int  ,
int   
) [virtual]

Maus Schnittstelle. Passive Bewegung.

Parameters:
x x Koordinate der Maus
y y Koordinate der Maus

Reimplemented in VMenuStarter, VRenderMode, VSliceElement, and VTransferFunctionElement.

Definition at line 12 of file GUIelement.cpp.

void GUIelement::pressed ( int  ,
int   
) [virtual]

Maus Schnittstelle. Drücken der linken Taste.

Parameters:
x x Koordinate der Maus
y y Koordinate der Maus

Reimplemented in VSliceElement, and VTransferFunctionElement.

Definition at line 22 of file GUIelement.cpp.

void GUIelement::released ( int  ,
int   
) [virtual]

Maus Schnittstelle. Auslassen der linken Taste.

Parameters:
x x Koordinate der Maus
y y Koordinate der Maus

Reimplemented in VAxisAlignElement, VRenderMode, VSliceElement, and VTransferFunctionElement.

Definition at line 27 of file GUIelement.cpp.

void GUIelement::drag ( int  ,
int   
) [virtual]

Maus Schnittstelle. Aktive Bewegung (mit gedrückter Maustaste).

Parameters:
x x Koordinate der Maus
y y Koordinate der Maus

Reimplemented in VAxisAlignElement, VRenderMode, VSliceElement, and VTransferFunctionElement.

Definition at line 31 of file GUIelement.cpp.

bool GUIelement::isInside ( int  ,
int   
) [virtual]

Testet ob Punkt innerhalb des GUI Elements ist.

Parameters:
x x Koordinate
y y Koordinate
Returns:
true wenn innerhalb

Reimplemented in VAxisAlignElement, VMenuStarter, VRenderMode, VSliceElement, and VTransferFunctionElement.

Definition at line 35 of file GUIelement.cpp.

void GUIelement::render (  )  [virtual]

Zeichnet das GUI Element.

Reimplemented in VAxisAlignElement, VMenuStarter, VRenderMode, VSliceElement, and VTransferFunctionElement.

Definition at line 17 of file GUIelement.cpp.

bool GUIelement::isActive (  ) 

Testet ob das GUI Element aktiv (eingeblendet) ist.

Returns:
true wenn aktiv

Definition at line 39 of file GUIelement.cpp.

References active.

Referenced by VMenuStarter::motion().

void GUIelement::setActive ( bool   ) 

Setzt das GUI Element aktiv oder passiv.

Definition at line 44 of file GUIelement.cpp.

References active.

Referenced by VTransferFunctionElement::render(), VSliceElement::render(), and VRenderMode::render().

bool GUIelement::isBlend (  ) 

Testet ob das GUI Element gerade eingeblendet wird.

Returns:
true wenn blending aktiv

Definition at line 49 of file GUIelement.cpp.

References blend.

void GUIelement::setBlend ( bool   ) 

Aktiviert / Deaktiviert das Blending.

Definition at line 53 of file GUIelement.cpp.

References blend.

Referenced by VRenderMode::released().


Member Data Documentation

bool GUIelement::active [protected]

Definition at line 16 of file GUIelement.h.

Referenced by GUIelement(), isActive(), setActive(), VAxisAlignElement::VAxisAlignElement(), and VMenuStarter::VMenuStarter().

bool GUIelement::blend [protected]

Definition at line 17 of file GUIelement.h.

Referenced by GUIelement(), isBlend(), and setBlend().

int* GUIelement::wwidth [protected]

Definition at line 18 of file GUIelement.h.

Referenced by GUIelement(), VMenuStarter::isInside(), and VMenuStarter::motion().

int* GUIelement::wheight [protected]

Definition at line 19 of file GUIelement.h.

Referenced by GUIelement(), VMenuStarter::isInside(), and VMenuStarter::motion().

int GUIelement::width [protected]

Definition at line 20 of file GUIelement.h.

Referenced by VTransferFunctionElement::isInside(), VSliceElement::isInside(), and VRenderMode::isInside().

int GUIelement::height [protected]

Definition at line 21 of file GUIelement.h.

Referenced by VTransferFunctionElement::isInside().

unsigned int* GUIelement::fps [protected]

Definition at line 22 of file GUIelement.h.

float GUIelement::alpha [protected]

Definition at line 23 of file GUIelement.h.

Referenced by GUIelement(), VTransferFunctionElement::render(), VSliceElement::render(), and VRenderMode::render().

int GUIelement::x [protected]

Reimplemented in VTransferFunctionElement.

Definition at line 24 of file GUIelement.h.

Referenced by VSliceElement::isInside(), VRenderMode::isInside(), VAxisAlignElement::VAxisAlignElement(), VRenderMode::VRenderMode(), and VSliceElement::VSliceElement().

int GUIelement::y [protected]

Reimplemented in VTransferFunctionElement.

Definition at line 25 of file GUIelement.h.

Referenced by VSliceElement::isInside(), VRenderMode::isInside(), VAxisAlignElement::VAxisAlignElement(), VRenderMode::VRenderMode(), and VSliceElement::VSliceElement().


The documentation for this class was generated from the following files:
Generated on Wed Dec 6 11:08:04 2006 for VisLU by  doxygen 1.5.1-p1