OpenGLPrakt --> cObject --> cVisibleObject --> cInteractiveObject

class cInteractiveObject
    extends cVisibleObject as public
    extends cEventConsumer as public

A class for a visible object which is able to react on several events.

Source:
../src/cInteractiveObject.hh:25

Constructors Index

cInteractiveObject
[public] constructor with initialization
cInteractiveObject
[public] constructor with initialization
cInteractiveObject
[public] constructor with initialization
cInteractiveObject
[public] copy constructor
~cInteractiveObject
[public] destructor


Variables Index

mSelected
[protected] remember whether we are currently selected "active" object


Methods Index

GetDefaultName
[protected] return default class name as char *
Init
[public] perform initialization
ReceiveEvent
[public] event receiver
SubscribeToActiveEvents
[protected] subscribe to any event the active object is interested in
SubscribeToPassiveEvents
[protected] subscribe to any event the object is interested in the whole time
UnsubscribeFromActiveEvents
[protected] unsubscribe from any event the active object is interested in
UnsubscribeFromPassiveEvents
[protected] unsubscribe from any event the object is interested in the whole time


Constructors

cInteractiveObject

public cInteractiveObject ( cEventDispatcher * disp ,
                            const char * name = NULL ) ;

constructor with initialization

Parameters:
disp cEventDispatcher to register/unregister at
name optional name of object (defaults to class name)

cInteractiveObject

public cInteractiveObject ( cEventDispatcher * disp ,
                            const cVertex & pos ,
                            const char * name = NULL ) ;

constructor with initialization

Parameters:
disp cEventDispatcher to register/unregister at
pos initial position of object
name optional name of object (defaults to class name)

cInteractiveObject

public cInteractiveObject ( cEventDispatcher * disp ,
                            const cVertex & pos ,
                            const cQuaternion & rot ,
                            const char * name = NULL ) ;

constructor with initialization

Parameters:
disp cEventDispatcher to register/unregister at
pos initial position of object
rot initial rotation of object
name optional name of object (defaults to class name)

cInteractiveObject

public cInteractiveObject ( const cInteractiveObject & cio ) ;

copy constructor

cInteractiveObject

public ~ cInteractiveObject ( ) ;

destructor


Variables

mSelected

protected bool mSelected

remember whether we are currently selected "active" object


Methods

Init

public virtual int Init ( ) ;

perform initialization

ReceiveEvent

public virtual int ReceiveEvent ( const cEvent & event ) ;

event receiver

Parameters:
event cEvent to receive/check

GetDefaultName

protected virtual const char * GetDefaultName ( ) const ;

return default class name as char *

See Also:
cObject::GetName

SubscribeToActiveEvents

protected virtual void SubscribeToActiveEvents ( ) ;

subscribe to any event the active object is interested in

SubscribeToPassiveEvents

protected virtual void SubscribeToPassiveEvents ( ) ;

subscribe to any event the object is interested in the whole time

UnsubscribeFromActiveEvents

protected virtual void UnsubscribeFromActiveEvents ( ) ;

unsubscribe from any event the active object is interested in

UnsubscribeFromPassiveEvents

protected virtual void UnsubscribeFromPassiveEvents ( ) ;

unsubscribe from any event the object is interested in the whole time


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.