VSlider Class Reference

VSlider: Klasse zur Repräsentation eines Sliders. More...

#include <VSlider.h>

List of all members.

Public Member Functions

 VSlider (float, int, int, int, int, float *)
 ~VSlider (void)
void render ()
bool isInside (int, int)
void pressed (int, int)
void drag (int, int)
void released (int, int)
float * getValue ()
void setValue (float)

Private Attributes

float value
Vector2< float > begin
Vector2< float > end
int offset
float * alpha
Vector3< float > color
Vector2< float > fromPoint


Detailed Description

VSlider: Klasse zur Repräsentation eines Sliders.

Definition at line 7 of file VSlider.h.


Constructor & Destructor Documentation

VSlider::VSlider ( float  ,
int  ,
int  ,
int  ,
int  ,
float *   
)

Konstruktor

Parameters:
initialvalue Anfangswert für Slidervalue
x1,y1 Anfangspunkt
x2,y2 Endpunkt
alpha Pointer auf alpha Wert (für Blending)

Definition at line 10 of file VSlider.cpp.

References alpha, begin, color, end, offset, and value.

VSlider::~VSlider ( void   ) 

Definition at line 20 of file VSlider.cpp.


Member Function Documentation

void VSlider::render (  ) 

Definition at line 23 of file VSlider.cpp.

References begin.

Referenced by VSliceElement::draw().

bool VSlider::isInside ( int  ,
int   
)

Definition at line 53 of file VSlider.cpp.

References begin, and offset.

void VSlider::pressed ( int  ,
int   
)

Definition at line 63 of file VSlider.cpp.

References fromPoint.

Referenced by VSliceElement::pressed().

void VSlider::drag ( int  ,
int   
)

Definition at line 68 of file VSlider.cpp.

References begin, end, fromPoint, and value.

void VSlider::released ( int  ,
int   
)

Definition at line 92 of file VSlider.cpp.

References fromPoint.

Referenced by VSliceElement::released().

float * VSlider::getValue (  ) 

Liefert den Pointer auf den Slidervalue zurück

Definition at line 59 of file VSlider.cpp.

References value.

Referenced by VSliceElement::getSliderValue(), and VSliceElement::released().

void VSlider::setValue ( float   ) 

Setzt einen neuen Slidervalue

Definition at line 87 of file VSlider.cpp.

References value.

Referenced by VSliceElement::released().


Member Data Documentation

float VSlider::value [private]

aktuelle Position des Sliders ([0,1])

Definition at line 10 of file VSlider.h.

Referenced by drag(), getValue(), setValue(), and VSlider().

Vector2<float> VSlider::begin [private]

Anfangspunkt des Sliders

Definition at line 12 of file VSlider.h.

Referenced by drag(), isInside(), render(), and VSlider().

Vector2<float> VSlider::end [private]

Endpunkt des Sliders

Definition at line 14 of file VSlider.h.

Referenced by drag(), and VSlider().

int VSlider::offset [private]

Länge des Bedienelements

Definition at line 16 of file VSlider.h.

Referenced by isInside(), and VSlider().

float* VSlider::alpha [private]

Definition at line 17 of file VSlider.h.

Referenced by VSlider().

Vector3<float> VSlider::color [private]

Definition at line 18 of file VSlider.h.

Referenced by VSlider().

Vector2<float> VSlider::fromPoint [private]

Anfangspunkt des Draggings

Definition at line 20 of file VSlider.h.

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


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