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

Cam_int_edit Class Reference

#include <cam_edit.H>

Inheritance diagram for Cam_int_edit:

Inheritance graph
[legend]
Collaboration diagram for Cam_int_edit:

Collaboration graph
[legend]
List of all members.

Public Types

typedef CallMeth_t< Cam_int_edit,
Event
_callb
typedef GuardMeth_t< Cam_int_edit,
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 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 rot_z (CEvent &e, State *&s)
virtual int rot_y (CEvent &e, State *&s)
virtual int rot_x (CEvent &e, State *&s)
virtual int scale (CEvent &e, State *&s)
virtual int scale_x (CEvent &e, State *&s)
virtual int scale_y (CEvent &e, State *&s)
virtual int scale_z (CEvent &e, State *&s)
virtual int edit_down (CEvent &e, State *&s)
virtual int up (CEvent &e, State *&s)
virtual void reset (int rst)
virtual int noop (CEvent &, State *&)
virtual int toggle_buttons (CEvent &e, State *&s)
virtual ~Cam_int_edit ()
 Cam_int_edit (CEvent &d, CEvent &m, CEvent &u, CEvent &d2, CEvent &u2, CEvent &dt, CEvent &dr, CEvent &dz, CEvent &ut, CEvent &ur, CEvent &uz)
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 Attributes

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 _scale
State _scale_move
State _rotate
State _scalex
State _scaley
State _scalez
State _scalex_move
State _scaley_move
State _scalez_move
State _rot_x
State _rot_y
State _rot_z
State _rot_x_move
State _rot_y_move
State _rot_z_move
State _ymove
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
State _entry

Private Attributes

GEOMptr _model

Detailed Description

Definition at line 15 of file cam_edit.H.


Member Typedef Documentation

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

Definition at line 388 of file fsa.H.

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

Definition at line 389 of file fsa.H.


Constructor & Destructor Documentation

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

Definition at line 75 of file cam_edit.H.

Cam_int_edit::Cam_int_edit 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 35 of file cam_edit.C.

References _but_rot, _but_trans, _but_zoom, _cam_choose, _cam_pan, _cam_rot, _cam_zoom, Interactor< Cam_int_edit, Event, State >::_entry, _entry2, _rot_x, _rot_x_move, _rot_y, _rot_z, _rot_z_move, _scale, _scale_move, _scalex, _scalex_move, _scaley, _scaley_move, _scalez, _scalez_move, _ymove, Interactor< Cam_int_edit, Event, State >::Cb(), choose(), down(), down2(), edit_down(), KEYD, noop(), pan(), pan2(), predown(), rot(), rot2(), rot_x(), rot_y(), rot_z(), scale(), scale_x(), scale_y(), scale_z(), toggle_buttons(), up(), zoom(), and zoom2().


Member Function Documentation

void Cam_int_edit::add_up_obs UPobs o  )  [inline]
 

Definition at line 48 of file cam_edit.H.

References _up_obs.

_callb* Interactor< Cam_int_edit , 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_edit , Event , State >::Cb TYPENAME _callb::_method  m  )  [inline, inherited]
 

Definition at line 393 of file fsa.H.

Referenced by Cam_int_edit().

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

Definition at line 340 of file cam_edit.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_edit().

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

Definition at line 186 of file cam_edit.C.

References _cam_rot, Evd::_d, DEVice_2d::cur(), predown(), DEVice_buttons::ptr2d(), and Event::view().

Referenced by Cam_int_edit().

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

Definition at line 215 of file cam_edit.C.

References Evd::_d, _rot_x, _rot_y, _rot_z, _scale, _scalex, _scaley, _scalez, _view, BaseJOTapp::activate_button(), BaseJOTapp::cam_switch(), DEVice_2d::cur(), BaseJOTapp::deactivate_button(), RAYhit::geom(), DEVice_buttons::ptr2d(), RAYhit::success(), and Event::view().

Referenced by Cam_int_edit().

int Cam_int_edit::edit_down CEvent e,
State *&  s
[virtual]
 

Definition at line 789 of file cam_edit.C.

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

Referenced by Cam_int_edit().

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

Definition at line 403 of file fsa.H.

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

Definition at line 402 of file fsa.H.

State* Cam_int_edit::entry2  )  [inline]
 

Definition at line 80 of file cam_edit.H.

References _entry2.

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

Definition at line 399 of file fsa.H.

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

Definition at line 71 of file cam_edit.H.

Referenced by Cam_int_edit().

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

Definition at line 433 of file cam_edit.C.

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

Referenced by Cam_int_edit().

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

Definition at line 417 of file cam_edit.C.

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

Referenced by Cam_int_edit().

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

Definition at line 152 of file cam_edit.C.

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

Referenced by Cam_int_edit(), and down().

virtual void Cam_int_edit::reset int  rst  )  [inline, virtual]
 

Implements UPobs.

Definition at line 70 of file cam_edit.H.

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

Definition at line 487 of file cam_edit.C.

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

Referenced by Cam_int_edit().

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

Definition at line 402 of file cam_edit.C.

References Event::view().

Referenced by Cam_int_edit().

int Cam_int_edit::rot_x CEvent e,
State *&  s
[virtual]
 

Definition at line 761 of file cam_edit.C.

References Evd::_d, angle(), DEVice_2d::cur(), DEVice_2d::old(), mlib::Mat4< Wtransf, Wpt, Wvec, Wline, Wquat >::rotation(), Event::view(), and mlib::Wvec::X().

Referenced by Cam_int_edit().

int Cam_int_edit::rot_y CEvent e,
State *&  s
[virtual]
 

Definition at line 733 of file cam_edit.C.

References Evd::_d, angle(), DEVice_2d::cur(), DEVice_2d::old(), mlib::Mat4< Wtransf, Wpt, Wvec, Wline, Wquat >::rotation(), Event::view(), and mlib::Wvec::Y().

Referenced by Cam_int_edit().

int Cam_int_edit::rot_z CEvent e,
State *&  s
[virtual]
 

Definition at line 704 of file cam_edit.C.

References Evd::_d, angle(), DEVice_2d::cur(), DEVice_2d::old(), mlib::Mat4< Wtransf, Wpt, Wvec, Wline, Wquat >::rotation(), Event::view(), and mlib::Wvec::Z().

Referenced by Cam_int_edit().

int Cam_int_edit::scale CEvent e,
State *&  s
[virtual]
 

Definition at line 557 of file cam_edit.C.

References Evd::_d, DEVice_2d::cur(), DEVice_2d::old(), mlib::Mat4< Wtransf, Wpt, Wvec, Wline, Wquat >::scaling(), and Event::view().

Referenced by Cam_int_edit().

int Cam_int_edit::scale_x CEvent e,
State *&  s
[virtual]
 

Definition at line 595 of file cam_edit.C.

References Evd::_d, DEVice_2d::cur(), DEVice_2d::old(), mlib::Mat4< Wtransf, Wpt, Wvec, Wline, Wquat >::scaling(), and Event::view().

Referenced by Cam_int_edit().

int Cam_int_edit::scale_y CEvent e,
State *&  s
[virtual]
 

Definition at line 632 of file cam_edit.C.

References Evd::_d, DEVice_2d::cur(), DEVice_2d::old(), mlib::Mat4< Wtransf, Wpt, Wvec, Wline, Wquat >::scaling(), and Event::view().

Referenced by Cam_int_edit().

int Cam_int_edit::scale_z CEvent e,
State *&  s
[virtual]
 

Definition at line 669 of file cam_edit.C.

References Evd::_d, DEVice_2d::cur(), DEVice_2d::old(), mlib::Mat4< Wtransf, Wpt, Wvec, Wline, Wquat >::scaling(), and Event::view().

Referenced by Cam_int_edit().

int Cam_int_edit::toggle_buttons CEvent e,
State *&  s
[virtual]
 

Definition at line 807 of file cam_edit.C.

References BaseJOTapp::button_toggle().

Referenced by Cam_int_edit().

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

Definition at line 535 of file cam_edit.C.

References _model, and Event::view().

Referenced by Cam_int_edit().

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

Definition at line 450 of file cam_edit.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_edit().

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

Definition at line 378 of file cam_edit.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_edit().


Member Data Documentation

State Cam_int_edit::_but_drag [protected]
 

Definition at line 39 of file cam_edit.H.

State Cam_int_edit::_but_rot [protected]
 

Definition at line 39 of file cam_edit.H.

Referenced by Cam_int_edit().

State Cam_int_edit::_but_trans [protected]
 

Definition at line 39 of file cam_edit.H.

Referenced by Cam_int_edit().

State Cam_int_edit::_but_zoom [protected]
 

Definition at line 39 of file cam_edit.H.

Referenced by Cam_int_edit().

State Cam_int_edit::_cam_choose [protected]
 

Definition at line 30 of file cam_edit.H.

Referenced by Cam_int_edit().

State Cam_int_edit::_cam_drag [protected]
 

Definition at line 30 of file cam_edit.H.

State Cam_int_edit::_cam_pan [protected]
 

Definition at line 30 of file cam_edit.H.

Referenced by Cam_int_edit(), and choose().

State Cam_int_edit::_cam_rot [protected]
 

Definition at line 30 of file cam_edit.H.

Referenced by Cam_int_edit(), and down().

State Cam_int_edit::_cam_zoom [protected]
 

Definition at line 30 of file cam_edit.H.

Referenced by Cam_int_edit(), and choose().

double Cam_int_edit::_dist [protected]
 

Definition at line 24 of file cam_edit.H.

Referenced by choose(), and predown().

int Cam_int_edit::_do_reset [protected]
 

Definition at line 42 of file cam_edit.H.

Referenced by predown().

mlib::Wpt Cam_int_edit::_down_pt [protected]
 

Definition at line 27 of file cam_edit.H.

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

mlib::XYpt Cam_int_edit::_down_pt_2d [protected]
 

Definition at line 28 of file cam_edit.H.

Referenced by predown().

double Cam_int_edit::_dtime [protected]
 

Definition at line 23 of file cam_edit.H.

Referenced by choose(), and predown().

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

Definition at line 407 of file fsa.H.

Referenced by Cam_int_edit().

State Cam_int_edit::_entry2 [protected]
 

Definition at line 39 of file cam_edit.H.

Referenced by Cam_int_edit(), and entry2().

GEOMptr Cam_int_edit::_geom [protected]
 

Definition at line 43 of file cam_edit.H.

State Cam_int_edit::_icon_click [protected]
 

Definition at line 31 of file cam_edit.H.

GEOMptr Cam_int_edit::_model [private]
 

Definition at line 18 of file cam_edit.H.

Referenced by edit_down(), and up().

State Cam_int_edit::_move_view [protected]
 

Definition at line 31 of file cam_edit.H.

State Cam_int_edit::_phys [protected]
 

Definition at line 39 of file cam_edit.H.

bool Cam_int_edit::_resizing [protected]
 

Definition at line 44 of file cam_edit.H.

State Cam_int_edit::_rot_x [protected]
 

Definition at line 34 of file cam_edit.H.

Referenced by Cam_int_edit(), and down2().

State Cam_int_edit::_rot_x_move [protected]
 

Definition at line 35 of file cam_edit.H.

Referenced by Cam_int_edit().

State Cam_int_edit::_rot_y [protected]
 

Definition at line 34 of file cam_edit.H.

Referenced by Cam_int_edit(), and down2().

State Cam_int_edit::_rot_y_move [protected]
 

Definition at line 35 of file cam_edit.H.

State Cam_int_edit::_rot_z [protected]
 

Definition at line 34 of file cam_edit.H.

Referenced by Cam_int_edit(), and down2().

State Cam_int_edit::_rot_z_move [protected]
 

Definition at line 35 of file cam_edit.H.

Referenced by Cam_int_edit().

State Cam_int_edit::_rotate [protected]
 

Definition at line 32 of file cam_edit.H.

State Cam_int_edit::_scale [protected]
 

Definition at line 32 of file cam_edit.H.

Referenced by Cam_int_edit(), and down2().

State Cam_int_edit::_scale_move [protected]
 

Definition at line 32 of file cam_edit.H.

Referenced by Cam_int_edit().

mlib::XYpt Cam_int_edit::_scale_pt [protected]
 

Definition at line 26 of file cam_edit.H.

Referenced by predown(), and zoom().

State Cam_int_edit::_scalex [protected]
 

Definition at line 33 of file cam_edit.H.

Referenced by Cam_int_edit(), and down2().

State Cam_int_edit::_scalex_move [protected]
 

Definition at line 33 of file cam_edit.H.

Referenced by Cam_int_edit().

State Cam_int_edit::_scaley [protected]
 

Definition at line 33 of file cam_edit.H.

Referenced by Cam_int_edit(), and down2().

State Cam_int_edit::_scaley_move [protected]
 

Definition at line 33 of file cam_edit.H.

Referenced by Cam_int_edit().

State Cam_int_edit::_scalez [protected]
 

Definition at line 33 of file cam_edit.H.

Referenced by Cam_int_edit(), and down2().

State Cam_int_edit::_scalez_move [protected]
 

Definition at line 33 of file cam_edit.H.

Referenced by Cam_int_edit().

mlib::PIXEL Cam_int_edit::_start_pix [protected]
 

Definition at line 25 of file cam_edit.H.

Referenced by choose(), predown(), and zoom2().

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

Definition at line 41 of file cam_edit.H.

Referenced by add_up_obs().

VIEWptr Cam_int_edit::_view [protected]
 

Definition at line 29 of file cam_edit.H.

Referenced by down2(), edit_down(), and predown().

State Cam_int_edit::_ymove [protected]
 

Definition at line 36 of file cam_edit.H.

Referenced by Cam_int_edit().


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