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

Cam_int Class Reference

#include <cam_pz.H>

Inheritance diagram for Cam_int:

Inheritance graph
[legend]
Collaboration diagram for Cam_int:

Collaboration graph
[legend]
List of all members.

Public Types

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

Public Member Functions

void add_up_obs (UPobs *o)
virtual int predown (CEvent &e, State *&s)
virtual int down (CEvent &e, State *&s)
virtual int down2 (CEvent &e, State *&s)
virtual int drag (CEvent &e, State *&s)
virtual int choose (CEvent &e, State *&s)
virtual int rot (CEvent &e, State *&s)
virtual int zoom (CEvent &e, State *&s)
virtual int pan (CEvent &e, State *&s)
virtual int rot2 (CEvent &e, State *&s)
virtual int zoom2 (CEvent &e, State *&s)
virtual int pan2 (CEvent &e, State *&s)
virtual int focus (CEvent &e, State *&s)
virtual int move (CEvent &e, State *&s)
virtual int moveup (CEvent &e, State *&s)
virtual int iconmove (CEvent &e, State *&s)
virtual int iconup (CEvent &e, State *&s)
virtual int up (CEvent &e, State *&s)
virtual int dragup (CEvent &e, State *&s)
virtual int noop (CEvent &, State *&)
virtual ~Cam_int ()
 Cam_int (CEvent &d, CEvent &m, CEvent &u, CEvent &d2, CEvent &u2, CEvent &dt, CEvent &dr, CEvent &dz, CEvent &ut, CEvent &ur, CEvent &uz)
void make_view (mlib::CXYpt &)
virtual void reset (int rst)
Stateentry2 ()
_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

class REF_CLASS (CAMwidget)

Protected Attributes

CamPhys _phys_cam
CAMwidget _camwidg
double _dtime
double _dist
mlib::PIXEL _start_pix
mlib::XYpt _scale_pt
mlib::Wpt _down_pt
mlib::XYpt _down_pt_2d
VIEWptr _view
State _cam_pan
State _cam_zoom
State _cam_rot
State _cam_choose
State _cam_drag
State _move_view
State _icon_click
State _entry2
State _but_trans
State _but_rot
State _but_zoom
State _but_drag
State _phys
ARRAY< UPobs * > _up_obs
int _do_reset
GEOMptr _geom
bool _resizing
CamIcon_icon
State _entry

Static Private Member Functions

static void schedule_in_view (VIEWptr v, CamFocus *cf)

Detailed Description

Definition at line 60 of file cam_pz.H.


Member Typedef Documentation

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

Definition at line 388 of file fsa.H.

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

Definition at line 389 of file fsa.H.


Constructor & Destructor Documentation

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

Definition at line 128 of file cam_pz.H.

Cam_int::Cam_int CEvent d,
CEvent m,
CEvent u,
CEvent d2,
CEvent u2,
CEvent dt,
CEvent dr,
CEvent dz,
CEvent ut,
CEvent ur,
CEvent uz
 

Definition at line 89 of file cam_pz.C.

References _but_rot, _but_trans, _but_zoom, _cam_choose, _cam_drag, _cam_pan, _cam_rot, _cam_zoom, Interactor< Cam_int, Event, State >::_entry, _entry2, _icon_click, _move_view, Interactor< Cam_int, Event, State >::Cb(), choose(), down(), down2(), drag(), dragup(), iconmove(), iconup(), move(), moveup(), noop(), pan(), pan2(), predown(), rot(), rot2(), up(), zoom(), and zoom2().


Member Function Documentation

void Cam_int::add_up_obs UPobs o  )  [inline]
 

Definition at line 104 of file cam_pz.H.

References _up_obs.

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

Definition at line 396 of file fsa.H.

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

Definition at line 393 of file fsa.H.

Referenced by Cam_int().

int Cam_int::choose CEvent e,
State *&  s
[virtual]
 

Definition at line 314 of file cam_pz.C.

References _cam_pan, _cam_zoom, Evd::_d, _dist, _dtime, _start_pix, DEVice_2d::cur(), DEVice_2d::delta(), Config::get_var_bool(), mlib::Vec2< V >::length(), DEVice_2d::set_old(), swap(), the_time(), and Event::view().

Referenced by Cam_int().

int Cam_int::down CEvent e,
State *&  s
[virtual]
 

Definition at line 226 of file cam_pz.C.

References _cam_rot, _camwidg, Evd::_d, _do_reset, _icon, _icon_click, _move_view, _resizing, brcase, DEVice_2d::cur(), CamIcon::FOCUS, CamIcon::intersect_all(), move(), CamIcon::MOVE, predown(), DEVice_buttons::ptr2d(), CamIcon::RESIZE, CamIcon::test_down(), and Event::view().

Referenced by Cam_int().

int Cam_int::down2 CEvent e,
State *&  s
[virtual]
 

Definition at line 290 of file cam_pz.C.

References Evd::_d, _view, BaseJOTapp::cam_switch(), DEVice_2d::cur(), RAYhit::geom(), DEVice_buttons::ptr2d(), RAYhit::success(), and Event::view().

Referenced by Cam_int().

int Cam_int::drag CEvent e,
State *&  s
[virtual]
 

Definition at line 350 of file cam_pz.C.

References _camwidg, Evd::_d, _move_view, _start_pix, DEVice_2d::cur(), make_view(), and move().

Referenced by Cam_int().

int Cam_int::dragup CEvent e,
State *&  s
[virtual]
 

Definition at line 615 of file cam_pz.C.

References _camwidg, Evd::_d, _do_reset, _dtime, _start_pix, _up_obs, DEVice_2d::cur(), mlib::Point2< P, V >::dist(), DOT_DIST, ARRAY< T >::num(), DEVice_buttons::ptr2d(), reset(), RAYhit::success(), RAYhit::surf(), the_time(), up(), and Event::view().

Referenced by Cam_int().

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

Definition at line 403 of file fsa.H.

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

Definition at line 402 of file fsa.H.

State* Cam_int::entry2  )  [inline]
 

Definition at line 134 of file cam_pz.H.

References _entry2.

int Cam_int::focus CEvent e,
State *&  s
[virtual]
 

Definition at line 541 of file cam_pz.C.

References DEVice_2d::cur(), GEOM::find_cam_focus(), DEVice_2d::last, and Event::view().

Referenced by up().

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

Definition at line 399 of file fsa.H.

int Cam_int::iconmove CEvent e,
State *&  s
[virtual]
 

Definition at line 574 of file cam_pz.C.

References _icon, _resizing, and CamIcon::icon_move().

Referenced by Cam_int().

int Cam_int::iconup CEvent e,
State *&  s
[virtual]
 

Definition at line 584 of file cam_pz.C.

References Evd::_d, _dtime, _icon, _resizing, _start_pix, CamIcon::cam(), DEVice_2d::cur(), CamIcon::intersect_icon(), DEVice_buttons::ptr2d(), CamIcon::remove_icon(), CamIcon::resize_up(), the_time(), and Event::view().

Referenced by Cam_int().

void Cam_int::make_view mlib::CXYpt  ) 
 

Referenced by drag().

int Cam_int::move CEvent e,
State *&  s
[virtual]
 

Definition at line 551 of file cam_pz.C.

References Evd::_d, _icon, and CamIcon::set_icon_loc().

Referenced by Cam_int(), down(), and drag().

int Cam_int::moveup CEvent e,
State *&  s
[virtual]
 

Definition at line 561 of file cam_pz.C.

References _do_reset, _geom, _icon, _up_obs, and ARRAY< T >::num().

Referenced by Cam_int().

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

Definition at line 126 of file cam_pz.H.

Referenced by Cam_int().

int Cam_int::pan CEvent e,
State *&  s
[virtual]
 

Definition at line 429 of file cam_pz.C.

References Evd::_d, _down_pt, DEVice_2d::cur(), DEVice_2d::old(), and Event::view().

Referenced by Cam_int().

int Cam_int::pan2 CEvent e,
State *&  s
[virtual]
 

Definition at line 413 of file cam_pz.C.

References Evd::_d, DEVice_2d::cur(), DEVice_2d::delta(), DEVice_2d::set_cur(), and Event::view().

Referenced by Cam_int().

int Cam_int::predown CEvent e,
State *&  s
[virtual]
 

Definition at line 190 of file cam_pz.C.

References Evd::_d, _dist, _do_reset, _down_pt, _down_pt_2d, _dtime, _scale_pt, _start_pix, _view, CamFocus::cancel_cur(), DEVice_2d::cur(), RAYhit::dist(), RAYhit::point(), DEVice_buttons::ptr2d(), RAYhit::success(), the_time(), RAYhit::vec(), and Event::view().

Referenced by Cam_int(), and down().

class Cam_int::REF_CLASS CAMwidget   )  [inline, protected]
 

Definition at line 68 of file cam_pz.H.

void Cam_int::reset int  rst  )  [virtual]
 

Implements UPobs.

Definition at line 703 of file cam_pz.C.

References _camwidg.

Referenced by dragup(), and up().

int Cam_int::rot CEvent e,
State *&  s
[virtual]
 

Definition at line 485 of file cam_pz.C.

References Evd::_d, mlib::Acos(), DEVice_2d::cur(), DEVice_2d::old(), Sign(), sqr(), and Event::view().

Referenced by Cam_int().

int Cam_int::rot2 CEvent e,
State *&  s
[virtual]
 

Definition at line 398 of file cam_pz.C.

References Event::view().

Referenced by Cam_int().

static void Cam_int::schedule_in_view VIEWptr  v,
CamFocus cf
[static, private]
 

int Cam_int::up CEvent e,
State *&  s
[virtual]
 

Definition at line 660 of file cam_pz.C.

References _camwidg, Evd::_d, _do_reset, _down_pt_2d, _up_obs, DEVice_2d::cur(), mlib::Point2< P, V >::dist(), DOT_DIST, focus(), gel_to_bmesh(), RAYhit::geom(), mlib::Plane< PLANE, P, V, L >::intersect(), ARRAY< T >::num(), DEVice_buttons::ptr2d(), reset(), RAYhit::screen_point(), BMESH::set_center_of_interest(), RAYhit::success(), RAYhit::surf(), and Event::view().

Referenced by Cam_int(), and dragup().

int Cam_int::zoom CEvent e,
State *&  s
[virtual]
 

Definition at line 446 of file cam_pz.C.

References Evd::_d, _down_pt, _scale_pt, DEVice_2d::cur(), DEVice_2d::delta(), mlib::Vec3< V >::length(), mlib::Vec3< V >::normalized(), and Event::view().

Referenced by Cam_int().

int Cam_int::zoom2 CEvent e,
State *&  s
[virtual]
 

Definition at line 374 of file cam_pz.C.

References Evd::_d, _start_pix, DEVice_2d::cur(), DEVice_2d::delta(), DEVice_2d::old(), DEVice_2d::set_cur(), Sign(), and Event::view().

Referenced by Cam_int().


Member Data Documentation

State Cam_int::_but_drag [protected]
 

Definition at line 95 of file cam_pz.H.

State Cam_int::_but_rot [protected]
 

Definition at line 95 of file cam_pz.H.

Referenced by Cam_int().

State Cam_int::_but_trans [protected]
 

Definition at line 95 of file cam_pz.H.

Referenced by Cam_int().

State Cam_int::_but_zoom [protected]
 

Definition at line 95 of file cam_pz.H.

Referenced by Cam_int().

State Cam_int::_cam_choose [protected]
 

Definition at line 92 of file cam_pz.H.

Referenced by Cam_int().

State Cam_int::_cam_drag [protected]
 

Definition at line 92 of file cam_pz.H.

Referenced by Cam_int().

State Cam_int::_cam_pan [protected]
 

Definition at line 92 of file cam_pz.H.

Referenced by Cam_int(), and choose().

State Cam_int::_cam_rot [protected]
 

Definition at line 92 of file cam_pz.H.

Referenced by Cam_int(), and down().

State Cam_int::_cam_zoom [protected]
 

Definition at line 92 of file cam_pz.H.

Referenced by Cam_int(), and choose().

CAMwidget Cam_int::_camwidg [protected]
 

Definition at line 84 of file cam_pz.H.

Referenced by down(), drag(), dragup(), reset(), and up().

double Cam_int::_dist [protected]
 

Definition at line 86 of file cam_pz.H.

Referenced by choose(), and predown().

int Cam_int::_do_reset [protected]
 

Definition at line 98 of file cam_pz.H.

Referenced by down(), dragup(), moveup(), predown(), and up().

mlib::Wpt Cam_int::_down_pt [protected]
 

Definition at line 89 of file cam_pz.H.

Referenced by pan(), predown(), and zoom().

mlib::XYpt Cam_int::_down_pt_2d [protected]
 

Definition at line 90 of file cam_pz.H.

Referenced by predown(), and up().

double Cam_int::_dtime [protected]
 

Definition at line 85 of file cam_pz.H.

Referenced by choose(), dragup(), iconup(), and predown().

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

Definition at line 407 of file fsa.H.

Referenced by Cam_int().

State Cam_int::_entry2 [protected]
 

Definition at line 95 of file cam_pz.H.

Referenced by Cam_int(), and entry2().

GEOMptr Cam_int::_geom [protected]
 

Definition at line 99 of file cam_pz.H.

Referenced by moveup().

CamIcon* Cam_int::_icon [protected]
 

Definition at line 101 of file cam_pz.H.

Referenced by down(), iconmove(), iconup(), move(), and moveup().

State Cam_int::_icon_click [protected]
 

Definition at line 93 of file cam_pz.H.

Referenced by Cam_int(), and down().

State Cam_int::_move_view [protected]
 

Definition at line 93 of file cam_pz.H.

Referenced by Cam_int(), down(), and drag().

State Cam_int::_phys [protected]
 

Definition at line 95 of file cam_pz.H.

CamPhys Cam_int::_phys_cam [protected]
 

Definition at line 81 of file cam_pz.H.

bool Cam_int::_resizing [protected]
 

Definition at line 100 of file cam_pz.H.

Referenced by down(), iconmove(), and iconup().

mlib::XYpt Cam_int::_scale_pt [protected]
 

Definition at line 88 of file cam_pz.H.

Referenced by predown(), and zoom().

mlib::PIXEL Cam_int::_start_pix [protected]
 

Definition at line 87 of file cam_pz.H.

Referenced by choose(), drag(), dragup(), iconup(), predown(), and zoom2().

ARRAY<UPobs*> Cam_int::_up_obs [protected]
 

Definition at line 97 of file cam_pz.H.

Referenced by add_up_obs(), dragup(), moveup(), and up().

VIEWptr Cam_int::_view [protected]
 

Definition at line 91 of file cam_pz.H.

Referenced by down2(), and predown().


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