OpenGLPrakt --> events --> cEvent --> cVertexEvent

class cVertexEvent
    extends cEvent as public

a cNamedEvent with a payload (a cVertex)

Source:
../src/cVertexEvent.hh:19

Constructors Index

cVertexEvent
[public] constructor which takes the event's name
cVertexEvent
[public] constructor which takes the event's name
cVertexEvent
[public] constructor which takes the event's name
cVertexEvent
[public] copy constructor
~cVertexEvent
[public] destructor


Variables Index

mVertex
[protected] the stored vertex


Methods Index

Clone
[public] clone function
GetVertex
[public] allow accessing the payload


Constructors

cVertexEvent

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

constructor which takes the event's name

Parameters:
name string which contains the event's name

cVertexEvent

public cVertexEvent ( const string & type ,
                      const cVertex & v ) ;

constructor which takes the event's name

Parameters:
name string which contains the event's name
v vertex to transport (optional)

cVertexEvent

public cVertexEvent ( const string & type ,
                      GLfloat x ,
                      GLfloat y = 0 ,
                      GLfloat z = 0 ) ;

constructor which takes the event's name

Parameters:
name string which contains the event's name
x x-component of vertex
y y-component of vertex
z z-component of vertex

cVertexEvent

public cVertexEvent ( const cVertexEvent & e ) ;

copy constructor

cVertexEvent

public virtual ~ cVertexEvent ( ) ;

destructor


Variables

mVertex

protected cVertex mVertex

the stored vertex


Methods

Clone

public virtual cVertexEvent * Clone ( ) const ;

clone function

Return:
pointer to new allocated cVertexEvent

GetVertex

public virtual const cVertex & GetVertex ( ) const ;

allow accessing the payload

Return:
const reference to cVertex containing the payload

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.