VSliceElement Class Reference

VSliceElement: Klasse zur Repräsentation des Slice Elements (rechts unten). More...

#include <VSliceElement.h>

Inheritance diagram for VSliceElement:

GUIelement List of all members.

Public Member Functions

 VSliceElement (int *, int *, unsigned int *, int *)
 ~VSliceElement (void)
void motion (int, int)
void released (int, int)
void pressed (int, int)
void drag (int, int)
void render (void)
void draw (void)
bool isInside (int, int)
float * getSliderValue ()

Private Attributes

VExitBoxexit
VSliderslider
float * bg
VTexturetex
int * sliceNo
int count
int slice
bool dragging

Detailed Description

VSliceElement: Klasse zur Repräsentation des Slice Elements (rechts unten).

Definition at line 14 of file VSliceElement.h.


Constructor & Destructor Documentation

VSliceElement::VSliceElement ( int *  ,
int *  ,
unsigned int *  ,
int *   
)

Konstruktor

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

Definition at line 10 of file VSliceElement.cpp.

References bg, count, dragging, exit, slice, sliceNo, slider, tex, GUIelement::x, and GUIelement::y.

VSliceElement::~VSliceElement ( void   ) 

Definition at line 37 of file VSliceElement.cpp.

References bg, exit, sliceNo, and slider.


Member Function Documentation

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

Maus Schnittstelle. Passive Bewegung.

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

Reimplemented from GUIelement.

Definition at line 45 of file VSliceElement.cpp.

References exit, and VExitBox::inside().

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

Maus Schnittstelle. Auslassen der linken Taste.

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

Reimplemented from GUIelement.

Definition at line 98 of file VSliceElement.cpp.

References dragging, exit, f, VSlider::getValue(), VExitBox::isInside(), VSlider::released(), VSlider::setValue(), slice, and slider.

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

Maus Schnittstelle. Drücken der linken Taste.

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

Reimplemented from GUIelement.

Definition at line 121 of file VSliceElement.cpp.

References count, VSlider::pressed(), slice, sliceNo, and slider.

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

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

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

Reimplemented from GUIelement.

Definition at line 128 of file VSliceElement.cpp.

References dragging.

void VSliceElement::render ( void   )  [virtual]

Zeichnet das GUI Element.

Reimplemented from GUIelement.

Definition at line 49 of file VSliceElement.cpp.

References GUIelement::alpha, bg, draw(), and GUIelement::setActive().

void VSliceElement::draw ( void   ) 

Definition at line 76 of file VSliceElement.cpp.

References bg, VTexture::bind(), count, VExitBox::draw(), V2Ddraw::drawBox(), exit, VSlider::render(), sliceNo, slider, and tex.

Referenced by render().

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

Testet ob Punkt innerhalb des GUI Elements ist.

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

Reimplemented from GUIelement.

Definition at line 134 of file VSliceElement.cpp.

References GUIelement::width, GUIelement::x, and GUIelement::y.

float * VSliceElement::getSliderValue (  ) 

Liefert den Pointer auf den Slidervalue ([0,1]) zurück.

Definition at line 138 of file VSliceElement.cpp.

References VSlider::getValue(), and slider.


Member Data Documentation

VExitBox* VSliceElement::exit [private]

Definition at line 17 of file VSliceElement.h.

Referenced by draw(), motion(), released(), VSliceElement(), and ~VSliceElement().

VSlider* VSliceElement::slider [private]

Definition at line 18 of file VSliceElement.h.

Referenced by draw(), getSliderValue(), pressed(), released(), VSliceElement(), and ~VSliceElement().

float* VSliceElement::bg [private]

Definition at line 19 of file VSliceElement.h.

Referenced by draw(), render(), VSliceElement(), and ~VSliceElement().

VTexture* VSliceElement::tex [private]

Textur für die Pfeile

Definition at line 21 of file VSliceElement.h.

Referenced by draw(), and VSliceElement().

int* VSliceElement::sliceNo [private]

Definition at line 22 of file VSliceElement.h.

Referenced by draw(), pressed(), VSliceElement(), and ~VSliceElement().

int VSliceElement::count [private]

Definition at line 23 of file VSliceElement.h.

Referenced by draw(), pressed(), and VSliceElement().

int VSliceElement::slice [private]

Definition at line 24 of file VSliceElement.h.

Referenced by pressed(), released(), and VSliceElement().

bool VSliceElement::dragging [private]

Definition at line 25 of file VSliceElement.h.

Referenced by drag(), released(), and VSliceElement().


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