cmil::Coord Class Reference

#include <InputData.h>

Inheritance diagram for cmil::Coord:

Inheritance graph
[legend]
Collaboration diagram for cmil::Coord:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Coord (const std::string &ident)
virtual InputDataclone ()
virtual void setCoord (int x, int y, int xrel, int yrel)
void do_run (CoordAction *action) const

Private Attributes

int m_x
int m_y
int m_xrel
int m_yrel

Detailed Description

This represents coordinate based motion. This can be useful for mice or other similar devices.

Definition at line 258 of file InputData.h.


Constructor & Destructor Documentation

cmil::Coord::Coord ( const std::string &  ident  )  [inline]

Definition at line 260 of file InputData.h.

Referenced by clone().

00260 : tInputData<CoordAction>(ident), m_x(0), m_y(0), m_xrel(0), m_yrel(0) {}

Here is the caller graph for this function:


Member Function Documentation

virtual InputData* cmil::Coord::clone (  )  [inline, virtual]

Implements cmil::InputData.

Definition at line 262 of file InputData.h.

References Coord().

00262                                  {
00263         return new Coord(*this);
00264       };

Here is the call graph for this function:

void cmil::Coord::do_run ( CoordAction action  )  const [inline]

Definition at line 274 of file InputData.h.

References m_x, m_xrel, m_y, m_yrel, and cmil::CoordAction::runCoord().

00274                                              {
00275         action->runCoord(m_x, m_y, m_xrel, m_yrel);
00276       };

Here is the call graph for this function:

virtual void cmil::Coord::setCoord ( int  x,
int  y,
int  xrel,
int  yrel 
) [inline, virtual]

Definition at line 267 of file InputData.h.

References m_x, m_xrel, m_y, and m_yrel.

Referenced by cmil::SDL::SDLMice::translate().

00267                                                               {
00268         m_x=x;
00269         m_y=y;
00270         m_xrel=xrel;
00271         m_yrel=yrel;
00272       }; 

Here is the caller graph for this function:


Member Data Documentation

int cmil::Coord::m_x [private]

Definition at line 276 of file InputData.h.

Referenced by do_run(), and setCoord().

int cmil::Coord::m_xrel [private]

Definition at line 283 of file InputData.h.

Referenced by do_run(), and setCoord().

int cmil::Coord::m_y [private]

Definition at line 276 of file InputData.h.

Referenced by do_run(), and setCoord().

int cmil::Coord::m_yrel [private]

Definition at line 283 of file InputData.h.

Referenced by do_run(), and setCoord().


The documentation for this class was generated from the following file:
(c) 2006-2007 John P. Feltz
Generated on Wed Jul 25 16:08:02 2007 for Common Media Input Layer by doxygen 1.4.7

SourceForge.net Logo