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

Pen Class Reference

#include <pen.H>

Inheritance diagram for Pen:

Inheritance graph
[legend]
Collaboration diagram for Pen:

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

 Pen (Cstr_ptr &pen_name, CGEST_INTptr &gest_int=GEST_INTptr(), CEvent &d=Event(), CEvent &m=Event(), CEvent &u=Event(), CEvent &shift_d=Event(), CEvent &shift_u=Event(), CEvent &ctrl_d=Event(), CEvent &ctrl_u=Event())
str_ptr pen_name () const
mlib::XYpt get_ptr_position () const
mlib::XYpt get_last_position () const
VIEWptr view () const
virtual void activate (State *)
virtual bool deactivate (State *)
virtual void notify_gesture (GEST_INT *, CGESTUREptr &)
virtual void key (CEvent &)
virtual int erase_down (CEvent &, State *&)
virtual int erase_move (CEvent &, State *&)
virtual int erase_up (CEvent &, State *&)
virtual int ctrl_down (CEvent &, State *&)
virtual int ctrl_move (CEvent &, State *&)
virtual int ctrl_up (CEvent &, State *&)
virtual int down (CEvent &, State *&)
virtual int move (CEvent &, State *&)
virtual int up (CEvent &, State *&)
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
virtual int handle_event (CEvent &, State *&)

Protected Types

typedef int(Pen::* callback_meth_t )(CEvent &, State *&)

Protected Member Functions

Statecreate_fsa (CEvent &d, CEvent &m, CEvent &u, callback_meth_t down, callback_meth_t move, callback_meth_t up)
int check_interactive (CEvent &e, State *&s)

Protected Attributes

GEST_INTptr _gest_int
State_shift_fsa
State_ctrl_fsa
str_ptr _pen_name
VIEWptr _view
DrawState _draw_start
DrawFSA _fsa
State _manip_move
CAMptr _cam
State _entry

Detailed Description

Definition at line 25 of file pen.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.

typedef int(Pen::* Pen::callback_meth_t)(CEvent &, State *&) [protected]
 

Definition at line 38 of file pen.H.


Constructor & Destructor Documentation

Pen::Pen Cstr_ptr &  pen_name,
CGEST_INTptr &  gest_int = GEST_INTptr(),
CEvent d = Event(),
CEvent m = Event(),
CEvent u = Event(),
CEvent shift_d = Event(),
CEvent shift_u = Event(),
CEvent ctrl_d = Event(),
CEvent ctrl_u = Event()
 

Definition at line 19 of file pen.C.

References _ctrl_fsa, Interactor< Simple_int, Event, State >::_entry, _shift_fsa, create_fsa(), ctrl_down(), ctrl_move(), ctrl_up(), erase_down(), erase_move(), erase_up(), and State_t< EVENT >::set_name().


Member Function Documentation

void Pen::activate State  )  [virtual]
 

Definition at line 133 of file pen.C.

References _ctrl_fsa, Interactor< Simple_int, Event, State >::_entry, _gest_int, _pen_name, _shift_fsa, and ModeName::push_name().

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().

_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(), create_fsa(), GEST_INT::GEST_INT(), Screen_pan_int::Screen_pan_int(), and Simple_int::Simple_int().

int Pen::check_interactive CEvent e,
State *&  s
[protected]
 

Definition at line 71 of file pen.C.

References Evd::_d, DEVice_2d::cur(), GEOM::null, DEVice_buttons::ptr2d(), ray_geom(), and Event::view().

Referenced by down(), and erase_down().

State * Pen::create_fsa CEvent d,
CEvent m,
CEvent u,
callback_meth_t  down,
callback_meth_t  move,
callback_meth_t  up
[protected]
 

Definition at line 48 of file pen.C.

References Interactor< Simple_int, Event, State >::Cb().

Referenced by Pen().

virtual int Pen::ctrl_down CEvent ,
State *& 
[inline, virtual]
 

Definition at line 77 of file pen.H.

Referenced by Pen().

virtual int Pen::ctrl_move CEvent ,
State *& 
[inline, virtual]
 

Definition at line 78 of file pen.H.

Referenced by Pen().

virtual int Pen::ctrl_up CEvent ,
State *& 
[inline, virtual]
 

Definition at line 79 of file pen.H.

Referenced by Pen().

bool Pen::deactivate State  )  [virtual]
 

Definition at line 150 of file pen.C.

References _ctrl_fsa, Interactor< Simple_int, Event, State >::_entry, _gest_int, _shift_fsa, and ModeName::pop_name().

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

Reimplemented from Simple_int.

Definition at line 97 of file pen.C.

References check_interactive().

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.

int Pen::erase_down CEvent ,
State *& 
[virtual]
 

Definition at line 115 of file pen.C.

References check_interactive().

Referenced by Pen().

int Pen::erase_move CEvent ,
State *& 
[virtual]
 

Definition at line 121 of file pen.C.

Referenced by Pen().

int Pen::erase_up CEvent ,
State *& 
[virtual]
 

Definition at line 127 of file pen.C.

Referenced by Pen().

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

Definition at line 399 of file fsa.H.

mlib::XYpt Pen::get_last_position  )  const [inline]
 

Definition at line 55 of file pen.H.

References DEVice_2d::last, and DEVice_2d::old().

mlib::XYpt Pen::get_ptr_position  )  const [inline]
 

Definition at line 54 of file pen.H.

References DEVice_2d::cur(), and DEVice_2d::last.

virtual int GestObs::handle_event CEvent ,
State *& 
[inline, virtual, inherited]
 

Definition at line 142 of file gest_int.H.

virtual void Pen::key CEvent  )  [inline, virtual]
 

Definition at line 69 of file pen.H.

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

Reimplemented from Simple_int.

Definition at line 103 of file pen.C.

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

Definition at line 41 of file manip.H.

void Pen::notify_gesture GEST_INT ,
CGESTUREptr
[virtual]
 

Implements GestObs.

Definition at line 83 of file pen.C.

References _fsa, Config::get_var_bool(), FSAT< EVENT >::handle_event(), FSAT< EVENT >::is_reset(), and GEST_INT::reset().

str_ptr Pen::pen_name  )  const [inline]
 

Definition at line 53 of file pen.H.

References _pen_name.

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

Reimplemented from Simple_int.

Definition at line 109 of file pen.C.

VIEWptr Pen::view  )  const [inline]
 

Definition at line 57 of file pen.H.

References _view.


Member Data Documentation

CAMptr Simple_int::_cam [protected, inherited]
 

Definition at line 36 of file manip.H.

State* Pen::_ctrl_fsa [protected]
 

Definition at line 31 of file pen.H.

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

DrawState Pen::_draw_start [protected]
 

Definition at line 34 of file pen.H.

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

Definition at line 407 of file fsa.H.

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

DrawFSA Pen::_fsa [protected]
 

Definition at line 35 of file pen.H.

Referenced by notify_gesture().

GEST_INTptr Pen::_gest_int [protected]
 

Definition at line 29 of file pen.H.

Referenced by activate(), and deactivate().

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().

str_ptr Pen::_pen_name [protected]
 

Definition at line 32 of file pen.H.

Referenced by activate(), and pen_name().

State* Pen::_shift_fsa [protected]
 

Definition at line 30 of file pen.H.

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

VIEWptr Pen::_view [protected]
 

Definition at line 33 of file pen.H.

Referenced by view().


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