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

GEST_INT Class Reference

#include <gest_int.H>

Inheritance diagram for GEST_INT:

Inheritance graph
[legend]
Collaboration diagram for GEST_INT:

Collaboration graph
[legend]
List of all members.

Public Types

typedef CallMeth_t< Simple_int,
Event
_callb
typedef GuardMeth_t< Simple_int,
Event
_guard

Public Member Functions

 GEST_INT (CVIEWptr &view, CEvent &d, CEvent &m, CEvent &u, CEvent &d2, CEvent &u2)
virtual ~GEST_INT ()
void rem_obs (GestObs *g)
void add_obs (GestObs *g)
void reset ()
void set_drawer (GestureDrawer *drawer)
GestureDrawerdrawer ()
void set_keep_history (bool b)
bool keep_history ()
void start_history ()
GESTUREptr gesture (int k) const
GESTUREptr last () const
virtual int null_cb (CEvent &, State *&)
virtual int down (CEvent &, State *&)
virtual int move (CEvent &, State *&)
virtual int up (CEvent &, State *&)
virtual void notify (CCAMdataptr &data)
virtual int tick ()
virtual void setIndex (int idx)
virtual int getIndex () const
void Own () const
void Free () const
int Lock ()
void Unlock ()
int Unique () const
virtual void notify_manip_start (CCAMdataptr &data)
virtual void notify_manip_end (CCAMdataptr &data)
virtual int noop (CEvent &, State *&)
virtual void add_events (CEvent &d, CEvent &m, CEvent &u)
_callbCb (TYPENAME _callb::_method m)
_callbCb (TYPENAME _callb::_method m, State_t< Event > *s)
_guardGd (const Event &e, TYPENAME _guard::_method m)
Stateentry ()
const Stateentry () const

Protected Member Functions

void activate ()
void deactivate ()

Protected Attributes

VIEWptr _view
ARRAY< GestObs * > _obs
GESTURE_list _stack
GestureDrawer_drawer
FSA _fsa
State _b2_pressed
bool _keep_history
int _num_history
int _index
State _manip_move
CAMptr _cam
State _entry

Detailed Description

Definition at line 57 of file gest_int.H.


Member Typedef Documentation

typedef CallMeth_t<Simple_int ,Event > Interactor< Simple_int , Event , State >::_callb [inherited]
 

Definition at line 388 of file fsa.H.

typedef GuardMeth_t<Simple_int ,Event > Interactor< Simple_int , Event , State >::_guard [inherited]
 

Definition at line 389 of file fsa.H.


Constructor & Destructor Documentation

GEST_INT::GEST_INT CVIEWptr &  view,
CEvent d,
CEvent m,
CEvent u,
CEvent d2,
CEvent u2
 

Definition at line 11 of file gest_int.C.

References _b2_pressed, Interactor< Simple_int, Event, State >::_entry, _obs, _stack, _view, ARRAY< T >::begin_index(), Interactor< Simple_int, Event, State >::Cb(), null_cb(), and ARRAY< T >::set_unique().

virtual GEST_INT::~GEST_INT  )  [inline, virtual]
 

Definition at line 80 of file gest_int.H.

References ERR_LEV_SPAM, and err_mesg().


Member Function Documentation

void GEST_INT::activate  )  [protected]
 

Definition at line 64 of file gest_int.C.

References _fsa, _view, VIEWint::add_interactor(), and VIEWint_list::get().

Referenced by add_obs().

void Simple_int::add_events CEvent d,
CEvent m,
CEvent u
[virtual, inherited]
 

Definition at line 42 of file manip.C.

References Interactor< Simple_int, Event, State >::_entry, Simple_int::_manip_move, Interactor< Simple_int, Event, State >::Cb(), Simple_int::down(), Simple_int::move(), and Simple_int::up().

void GEST_INT::add_obs GestObs g  ) 
 

Definition at line 57 of file gest_int.C.

References _obs, and activate().

_callb* Interactor< Simple_int , Event , State >::Cb TYPENAME _callb::_method  m,
State_t< Event > *  s
[inline, inherited]
 

Definition at line 396 of file fsa.H.

_callb* Interactor< Simple_int , Event , State >::Cb TYPENAME _callb::_method  m  )  [inline, inherited]
 

Definition at line 393 of file fsa.H.

Referenced by Simple_int::add_events(), Pen::create_fsa(), GEST_INT(), Screen_pan_int::Screen_pan_int(), and Simple_int::Simple_int().

void GEST_INT::deactivate  )  [protected]
 

Definition at line 74 of file gest_int.C.

References _fsa, _view, VIEWint_list::get(), and VIEWint::rem_interactor().

Referenced by rem_obs().

int GEST_INT::down CEvent ,
State *& 
[virtual]
 

Reimplemented from Simple_int.

Definition at line 84 of file gest_int.C.

References Evd::_d, _drawer, _obs, _stack, _view, BufferRefImage::add(), DEVice_2d::cur(), BufferRefImage::is_observing(), ARRAY< T >::last(), BufferRefImage::lookup(), GEOM::null, ARRAY< T >::num(), DEVice_2d::pressure(), DEVice_buttons::ptr2d(), ray_geom(), and Event::view().

GestureDrawer* GEST_INT::drawer  )  [inline]
 

Definition at line 95 of file gest_int.H.

References _drawer.

const State * Interactor< Simple_int , Event , State >::entry  )  const [inline, inherited]
 

Definition at line 403 of file fsa.H.

State * Interactor< Simple_int , Event , State >::entry  )  [inline, inherited]
 

Definition at line 402 of file fsa.H.

void REFcounter::Free  )  const [inline, inherited]
 

Definition at line 76 of file ref.H.

References REFcounter::_mutex, REFcounter::_u, and REF_ME.

_guard* Interactor< Simple_int , Event , State >::Gd const Event e,
TYPENAME _guard::_method  m
[inline, inherited]
 

Definition at line 399 of file fsa.H.

GESTUREptr GEST_INT::gesture int  k  )  const [inline]
 

Definition at line 107 of file gest_int.H.

References _stack, and ARRAY< T >::valid_index().

Referenced by last(), and GESTURE::prev().

virtual int FRAMEobs::getIndex  )  const [inline, virtual, inherited]
 

Definition at line 45 of file gel.H.

References FRAMEobs::_index.

bool GEST_INT::keep_history  )  [inline]
 

Definition at line 102 of file gest_int.H.

References _keep_history.

GESTUREptr GEST_INT::last  )  const [inline]
 

Definition at line 110 of file gest_int.H.

References _stack, gesture(), and ARRAY< T >::num().

int REFcounter::Lock  )  [inline, inherited]
 

Definition at line 105 of file ref.H.

References REFcounter::_mutex, and REFcounter::_u.

Referenced by REFlock::REFlock().

int GEST_INT::move CEvent ,
State *& 
[virtual]
 

Reimplemented from Simple_int.

Definition at line 122 of file gest_int.C.

References _stack, DEVice_2d::cur(), debug, ARRAY< T >::empty(), err_adv(), Config::get_var_dbl(), ARRAY< T >::last(), DEVice_2d::last, MIN_DIST, and DEVice_2d::pressure().

virtual int Simple_int::noop CEvent ,
State *& 
[inline, virtual, inherited]
 

Definition at line 41 of file manip.H.

void GEST_INT::notify CCAMdataptr &  data  )  [virtual]
 

Implements CAMobs.

Definition at line 200 of file gest_int.C.

References _stack, _view, ARRAY< T >::clear(), debug, ARRAY< T >::empty(), err_adv(), BufferRefImage::is_observing(), ARRAY< T >::last(), BufferRefImage::lookup(), and BufferRefImage::rem().

virtual void CAMobs::notify_manip_end CCAMdataptr &  data  )  [inline, virtual, inherited]
 

Definition at line 164 of file cam.H.

virtual void CAMobs::notify_manip_start CCAMdataptr &  data  )  [inline, virtual, inherited]
 

Definition at line 163 of file cam.H.

virtual int GEST_INT::null_cb CEvent ,
State *& 
[inline, virtual]
 

Definition at line 112 of file gest_int.H.

Referenced by GEST_INT().

void REFcounter::Own  )  const [inline, inherited]
 

Definition at line 59 of file ref.H.

References REFcounter::_mutex, REFcounter::_u, and REF_ME.

void GEST_INT::rem_obs GestObs g  ) 
 

Definition at line 49 of file gest_int.C.

References _obs, deactivate(), and ARRAY< T >::empty().

void GEST_INT::reset  )  [inline]
 

Definition at line 91 of file gest_int.H.

References _fsa, and FSAT< EVENT >::reset().

Referenced by Pen::notify_gesture().

void GEST_INT::set_drawer GestureDrawer drawer  )  [inline]
 

Definition at line 94 of file gest_int.H.

References _drawer.

void GEST_INT::set_keep_history bool  b  )  [inline]
 

Definition at line 97 of file gest_int.H.

References _keep_history, ERR_LEV_SPAM, and err_mesg().

virtual void FRAMEobs::setIndex int  idx  )  [inline, virtual, inherited]
 

Definition at line 44 of file gel.H.

References FRAMEobs::_index.

void GEST_INT::start_history  ) 
 

Definition at line 180 of file gest_int.C.

References _keep_history, _num_history, _stack, ERR_LEV_SPAM, err_mesg(), and ARRAY< T >::num().

int GEST_INT::tick  )  [virtual]
 

Reimplemented from FRAMEobs.

Definition at line 221 of file gest_int.C.

int REFcounter::Unique  )  const [inline, inherited]
 

Definition at line 115 of file ref.H.

References REFcounter::_mutex, and REFcounter::_u.

void REFcounter::Unlock  )  [inline, inherited]
 

Definition at line 111 of file ref.H.

References REFcounter::_mutex, and REFcounter::_u.

Referenced by REFlock::~REFlock().

int GEST_INT::up CEvent ,
State *& 
[virtual]
 

Reimplemented from Simple_int.

Definition at line 149 of file gest_int.C.

References _obs, _stack, _view, debug, ARRAY< T >::empty(), err_adv(), BufferRefImage::is_observing(), ARRAY< T >::last(), DEVice_2d::last, BufferRefImage::lookup(), ARRAY< T >::num(), and BufferRefImage::rem().


Member Data Documentation

State GEST_INT::_b2_pressed [protected]
 

Definition at line 65 of file gest_int.H.

Referenced by GEST_INT().

CAMptr Simple_int::_cam [protected, inherited]
 

Definition at line 36 of file manip.H.

GestureDrawer* GEST_INT::_drawer [protected]
 

Definition at line 62 of file gest_int.H.

Referenced by down(), drawer(), and set_drawer().

State Interactor< Simple_int , Event , State >::_entry [protected, inherited]
 

Definition at line 407 of file fsa.H.

Referenced by Pen::activate(), Simple_int::add_events(), Pen::deactivate(), FilmTrans::FilmTrans(), GEST_INT(), MMENU::invoke(), Pen::Pen(), Screen_pan_int::Screen_pan_int(), and Simple_int::Simple_int().

FSA GEST_INT::_fsa [protected]
 

Definition at line 63 of file gest_int.H.

Referenced by activate(), deactivate(), and reset().

int FRAMEobs::_index [protected, inherited]
 

Definition at line 37 of file gel.H.

Referenced by FRAMEobs::getIndex(), and FRAMEobs::setIndex().

bool GEST_INT::_keep_history [protected]
 

Definition at line 68 of file gest_int.H.

Referenced by keep_history(), set_keep_history(), and start_history().

State Simple_int::_manip_move [protected, inherited]
 

Definition at line 35 of file manip.H.

Referenced by Simple_int::add_events(), FilmTrans::FilmTrans(), and Simple_int::Simple_int().

int GEST_INT::_num_history [protected]
 

Definition at line 70 of file gest_int.H.

Referenced by start_history().

ARRAY<GestObs*> GEST_INT::_obs [protected]
 

Definition at line 60 of file gest_int.H.

Referenced by add_obs(), down(), GEST_INT(), rem_obs(), and up().

GESTURE_list GEST_INT::_stack [protected]
 

Definition at line 61 of file gest_int.H.

Referenced by down(), GEST_INT(), gesture(), last(), move(), notify(), start_history(), and up().

VIEWptr GEST_INT::_view [protected]
 

Definition at line 59 of file gest_int.H.

Referenced by activate(), deactivate(), down(), GEST_INT(), notify(), and up().


The documentation for this class was generated from the following files:
Generated on Mon Sep 18 11:45:33 2006 for jot by  doxygen 1.4.4