OpenTracker

An Open Architecture for Reconfigurable Tracking based on XML | Contact

ot::WacomGraphireModule Class Reference

#include <WacomGraphireModule.h>

Inheritance diagram for ot::WacomGraphireModule:

Inheritance graph
[legend]
Collaboration diagram for ot::WacomGraphireModule:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 WacomGraphireModule ()
virtual ~WacomGraphireModule ()
virtual NodecreateNode (const std::string &name, StringTable &attributes)
virtual void close ()
virtual void start ()
virtual void pushEvent ()

Protected Attributes

NodeVector nodes

Detailed Description

Definition at line 69 of file WacomGraphireModule.h.


Constructor & Destructor Documentation

ot::WacomGraphireModule::WacomGraphireModule (  )  [inline]

constructor method.

Definition at line 78 of file WacomGraphireModule.h.

ot::WacomGraphireModule::~WacomGraphireModule (  )  [virtual]

Destructor method, clears nodes member.

Definition at line 87 of file WacomGraphireModule.cxx.

References nodes.


Member Function Documentation

void ot::WacomGraphireModule::close (  )  [virtual]

closes WacomGraphire static library

Reimplemented from ot::Module.

Definition at line 210 of file WacomGraphireModule.cxx.

References ot::hTab, and ot::Module::isInitialized().

virtual Node* ot::WacomGraphireModule::createNode ( const std::string &  name,
StringTable attributes 
) [virtual]

This method is called to ruct a new Node.

It compares name to the WacomGraphireSource element name, and if it matches creates a new WacomGraphireSource node.

Parameters:
name reference to string containing element name refenrence to StringTable containing attribute values
Returns:
pointer to new Node or NULL. The new Node must be allocated with new !

Implements ot::NodeFactory.

void ot::WacomGraphireModule::pushEvent (  )  [virtual]

pushes events into the tracker tree.

Checks all WacomGraphireSources and pushes new events, if a WacomGraphireSource with particular device fires. The events store position, pressure and status of the buttons of the Wacom pointing device.

Reimplemented from ot::Module.

Definition at line 219 of file WacomGraphireModule.cxx.

References ot::butNew, ot::curNew, ot::WacomGraphireSource::device, ot::WacomGraphireSource::event, ot::Event::getButton(), ot::Event::getPosition(), ot::hTab, ot::Module::isInitialized(), nodes, ot::pkt, ot::prsNew, ot::ptNew, ot::Event::timeStamp(), and ot::Node::updateObservers().

void ot::WacomGraphireModule::start (  )  [virtual]

opens WacomGraphire static library (WINTAB32.LIB)

Reimplemented from ot::Module.

Definition at line 116 of file WacomGraphireModule.cxx.

References ot::hTab, ot::hWndWacom, ot::Module::initialized, ot::Module::isInitialized(), and ot::RuleAppWndProc().


Member Data Documentation

list of WacomGraphireSource nodes in the tree

Definition at line 74 of file WacomGraphireModule.h.

Referenced by pushEvent(), and ~WacomGraphireModule().


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

copyright (c) 2006 Graz University of Technology