OpenGLPrakt --> events --> cEvent --> cRotationEvent

class cRotationEvent
    extends cEvent as public

a cNamedEvent with a payload (a cQuaternion)

Source:
../src/cRotationEvent.hh:19

Constructors Index

cRotationEvent
[public] constructor which takes the event's name
cRotationEvent
[public] constructor w/ initialization
cRotationEvent
[public] copy constructor
~cRotationEvent
[public] destructor


Variables Index

mAngle
[protected] the stored angle
mAxis
[protected] the stored axis


Methods Index

Clone
[public] clone function
GetAngle
[public] allow accessing the payload
GetAxis
[public] allow accessing the payload


Constructors

cRotationEvent

public cRotationEvent ( const string & type = "cRotationEvent" ) ;

constructor which takes the event's name

Parameters:
name string which contains the event's name

cRotationEvent

public cRotationEvent ( const string & type ,
                        GLfloat angle ,
                        const cVertex & axis ) ;

constructor w/ initialization

Parameters:
name string which contains the event's name
angle angle in degree
axis axis to turn around

cRotationEvent

public cRotationEvent ( const cRotationEvent & e ) ;

copy constructor

cRotationEvent

public virtual ~ cRotationEvent ( ) ;

destructor


Variables

mAngle

protected GLfloat mAngle

the stored angle

mAxis

protected cVertex mAxis

the stored axis


Methods

Clone

public virtual cRotationEvent * Clone ( ) const ;

clone function

Return:
pointer to new allocated cRotationEvent

GetAngle

public virtual GLfloat GetAngle ( ) const ;

allow accessing the payload

Return:
angle to turn around

GetAxis

public virtual const cVertex & GetAxis ( ) const ;

allow accessing the payload

Return:
axis to turn around

This documentation was generated automatically by the ccdoc tool (version 0.7a).
Click here to submit a bug report or feature request.

Click here to return to the top of the page.