VCamera Class Reference

VCamera: Klasse zur Repr�sentation der Kamera. Arbeitet mit Rotation und Translation. More...

#include <VCamera.h>

List of all members.

Public Member Functions

 VCamera (int *, int *, float)
 ~VCamera ()
void setCamera ()
void setRotation ()
void setAxisAlign (int)
void changeDirection (int, int)
void changeDistance (int, int)
void setFromPoint (int, int)
void deleteFromPoint ()
void setDistance (float)
float getDistance ()

Private Attributes

Vector2< float > fromPoint
float distance
float angleX
float angleY
float maxdistance
float mindistance
int * winheight
int * winwidth


Detailed Description

VCamera: Klasse zur Repr�sentation der Kamera. Arbeitet mit Rotation und Translation.

Definition at line 8 of file VCamera.h.


Constructor & Destructor Documentation

VCamera::VCamera ( int *  ,
int *  ,
float   
)

Konstruktor

Parameters:
width Breite des Fensters
height H�he des Fensters
distance Distanz der Kamera

Definition at line 10 of file VCamera.cpp.

References angleX, angleY, deleteFromPoint(), maxdistance, mindistance, setDistance(), winheight, and winwidth.

VCamera::~VCamera (  ) 

Definition at line 22 of file VCamera.cpp.


Member Function Documentation

void VCamera::setCamera (  ) 

F�hrt Translation und Rotationen aus.

Definition at line 27 of file VCamera.cpp.

Referenced by draw(), and reshape().

void VCamera::setRotation (  ) 

F�hrt nur Rotationen aus.

Definition at line 36 of file VCamera.cpp.

Referenced by VAxisAlignElement::render().

void VCamera::setAxisAlign ( int   ) 

Setzt die Ausrichtung entlang einer Achse.

Parameters:
axis 0 f�r x-Achse, 1 f�r y-Achse, 2 f�r z-Achse

Definition at line 46 of file VCamera.cpp.

References angleX, and angleY.

Referenced by VAxisAlignElement::released().

void VCamera::changeDirection ( int  ,
int   
)

�ndert die Ausrichtung der Kamera.

Parameters:
x x Koordinate der Mausposition
y y Koordinate der Mausposition

Definition at line 72 of file VCamera.cpp.

References angleX, angleY, and fromPoint.

Referenced by mousedragging().

void VCamera::changeDistance ( int  ,
int   
)

�ndert die Distanz der Kamera.

Parameters:
x x Koordinate der Mausposition
y y Koordinate der Mausposition

Definition at line 85 of file VCamera.cpp.

References fromPoint, setDistance(), winheight, and winwidth.

Referenced by mousedragging().

void VCamera::setFromPoint ( int  ,
int   
)

Setzt den Ausgangspunkt der Rotation

Definition at line 61 of file VCamera.cpp.

References fromPoint.

Referenced by mousebutton().

void VCamera::deleteFromPoint (  ) 

L�scht den Ausgangspunkt der Rotation

Definition at line 67 of file VCamera.cpp.

References fromPoint.

Referenced by mousebutton(), and VCamera().

void VCamera::setDistance ( float   ) 

Setzt die Distanz der Kamera

Definition at line 54 of file VCamera.cpp.

References distance, and maxdistance.

Referenced by changeDistance(), and VCamera().

float VCamera::getDistance (  ) 

Gibt die Distanz der Kamera zur�ck

Definition at line 41 of file VCamera.cpp.

References distance.


Member Data Documentation

Vector2<float> VCamera::fromPoint [private]

Ausgangspunkt der Rotation

Definition at line 12 of file VCamera.h.

Referenced by changeDirection(), changeDistance(), deleteFromPoint(), and setFromPoint().

float VCamera::distance [private]

Distanz zum Ursprung

Definition at line 16 of file VCamera.h.

Referenced by getDistance(), and setDistance().

float VCamera::angleX [private]

Rotierungswinkel um die x Achse

Definition at line 19 of file VCamera.h.

Referenced by changeDirection(), setAxisAlign(), and VCamera().

float VCamera::angleY [private]

Rotierungswinkel um die y Achse

Definition at line 22 of file VCamera.h.

Referenced by changeDirection(), setAxisAlign(), and VCamera().

float VCamera::maxdistance [private]

Maximale Distanz

Definition at line 25 of file VCamera.h.

Referenced by setDistance(), and VCamera().

float VCamera::mindistance [private]

Minimale Distanz

Definition at line 27 of file VCamera.h.

Referenced by VCamera().

int* VCamera::winheight [private]

H�he des Fensters

Definition at line 30 of file VCamera.h.

Referenced by changeDistance(), and VCamera().

int* VCamera::winwidth [private]

Breite des Fensters

Definition at line 32 of file VCamera.h.

Referenced by changeDistance(), and VCamera().


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