- Main Page
- Classes
- Files
- Directories

- Class List
- Class Hierarchy
- Class Members

Public Member Functions

# FbxFuncEventHandler< EventType > Class Template Reference

Search for all occurrences

## Detailed Description

### template<typename EventType>
class FbxFuncEventHandler< EventType >

Definition at line 111 of file fbxeventhandler.h.

`#include <fbxeventhandler.h>`

Inheritance diagram for FbxFuncEventHandler< EventType >:
[legend]

List of all members.

## Public Member Functions
| FbxFuncEventHandler (FbxListener *pListener, CallbackFnc pFunction)
virtual int | GetHandlerEventType ()
| Get event type of current handler.
virtual void | FunctionCall (const FbxEventBase &pEvent)
| Call function that process event data.
virtual FbxListener * | GetListener ()
| Get listener of current handler.

## Constructor & Destructor Documentation

FbxFuncEventHandler | ( | FbxListener * | pListener,
|  | CallbackFnc | pFunction
| ) |  | `[inline]`

Definition at line 116 of file fbxeventhandler.h.

    : mListener(pListener), mFunction(pFunction){}

## Member Function Documentation

virtual int GetHandlerEventType | ( |  | ) | `[inline, virtual]`

Search for all occurrences

Get event type of current handler.

Returns:
  The type ID of event.

Implements FbxEventHandler.

Definition at line 117 of file fbxeventhandler.h.

    { return EventType::GetStaticTypeId(); }

virtual void FunctionCall | ( | const FbxEventBase & | pEvent | ) | `[inline, virtual]`

Search for all occurrences

Call function that process event data.

Parameters:

  pEvent | specify the event type. pEvent could be a specific class which derived from FbxEventBase.

See also:
  FbxEventBase

Implements FbxEventHandler.

Definition at line 118 of file fbxeventhandler.h.

    { (*mFunction)(reinterpret_cast<const EventType*>(&pEvent), mListener); }

virtual FbxListener* GetListener | ( |  | ) | `[inline, virtual]`

Search for all occurrences

Get listener of current handler.

Returns:
  A pointer to the listener object.

Implements FbxEventHandler.

Definition at line 119 of file fbxeventhandler.h.

    { return mListener; }

The documentation for this class was generated from the following file:

- fbxsdk/core/fbxeventhandler.h