Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Emma::DeviceSensorNode Class Reference

DeviceSensorNode is the base class for all sensors which listen to physical devices. More...

#include <EmmaDeviceSensorNode.h>

Inheritance diagram for Emma::DeviceSensorNode:

Emma::ChildNode Emma::EventHandler Emma::Node Fusion::Object Fusion::IObject Emma::ButtonSensor Emma::ValueSensor Emma::WindowSensor List of all members.

Public Member Functions

 DeviceSensorNode ()
virtual ~DeviceSensorNode ()
 DECLARE_CLASS (DeviceSensorNode, ChildNode)
virtual Fusion::ResultType beginFieldFiring (const char *property, const Fusion::Value &value)
virtual bool handleEvent (const Event &event)
 Callback function that is implemented by the callee.

Protected Member Functions

void clearInterestMaps ()
void addInterestMap (const Fusion::UTF8String &name, int32_t num)
int32_t interestNameToNumber (const Fusion::UTF8String &name) const
Fusion::UTF8String interestNumberToName (int32_t n) const

Detailed Description

DeviceSensorNode is the base class for all sensors which listen to physical devices.

These can be built-in (like keyboard and mouse) or plugged in, like space-balls.

Remarks:
Base class ChildNode
Author:
Chris Marrin
Date:
8/30/2005


Constructor & Destructor Documentation

Emma::DeviceSensorNode::DeviceSensorNode  )  [inline]
 

virtual Emma::DeviceSensorNode::~DeviceSensorNode  )  [inline, virtual]
 


Member Function Documentation

void Emma::DeviceSensorNode::addInterestMap const Fusion::UTF8String name,
int32_t  num
[inline, protected]
 

virtual Fusion::ResultType Emma::DeviceSensorNode::beginFieldFiring const char *  property,
const Fusion::Value value
[virtual]
 

Reimplemented from Emma::Node.

void Emma::DeviceSensorNode::clearInterestMaps  )  [inline, protected]
 

Emma::DeviceSensorNode::DECLARE_CLASS DeviceSensorNode  ,
ChildNode 
 

virtual bool Emma::DeviceSensorNode::handleEvent const Event event  )  [inline, virtual]
 

Callback function that is implemented by the callee.

Parameters:
event specifies the time of the event. Event time will be the same for events occurring in the same render phase For example, PREUPDATE, POSTUPDATE, PRERENDER and POSTRENDER event callbacks will all pass the same event time for the same frame. Returning stop Emma from calling the rest of the handlers for this event If you return true, Emma will keep on calling rest of the handlers for this event

Implements Emma::EventHandler.

Reimplemented in Emma::ButtonSensor, Emma::ValueSensor, and Emma::WindowSensor.

int32_t Emma::DeviceSensorNode::interestNameToNumber const Fusion::UTF8String name  )  const [protected]
 

Fusion::UTF8String Emma::DeviceSensorNode::interestNumberToName int32_t  n  )  const [protected]
 


The documentation for this class was generated from the following file:
Generated on Sat Apr 1 06:08:28 2006 for Emma SDK Guide by  doxygen 1.4.3