#include <gesture.H>
Inheritance diagram for GESTURE:
Public Types | |
enum | ref_img_t { REF_IMG_NONE = 0, REF_IMG_ID = 1, REF_IMG_COLOR = 2, REF_IMG_COLOR_2 = 4, REF_IMG_ID_PRE1 = 8, REF_IMG_ID_PRE2 = 16, REF_IMG_ID_PRE3 = 32, REF_IMG_ID_PRE4 = 64, REF_IMG_TEX_MEM = 128 } |
Public Member Functions | |
GESTURE (GEST_INT *gi, int index, mlib::CPIXEL &p, double pressure, GestureDrawer *drawer=0, CEvent &down=Event()) | |
GESTURE (CGESTURE &gest) | |
DEFINE_RTTI_METHODS3 ("GESTURE", GESTURE *, GEL, CDATA_ITEM *) | |
void | init (mlib::CPIXEL &p, CEvent &down, double pressure) |
void | add (mlib::CPIXEL &p, double min_dist, double pressure) |
void | complete (mlib::CPIXEL &p, CEvent &up=Event()) |
void | trim () |
GestureDrawer * | drawer () |
void | set_drawer (GestureDrawer *drawer) |
void | set_command (CCOMMANDptr &u) |
void | undo () |
const mlib::PIXEL_list & | pts () const |
pixel locations: | |
mlib::PIXEL | start () const |
first pixel in the gesture | |
mlib::PIXEL | end () const |
last pixel in the gesture | |
mlib::PIXEL | center () const |
centroid of the gesture computed as the average | |
mlib::VEXEL | endpt_vec () const |
vector from starting point to endpoint | |
mlib::PIXEL | endpt_midpt () const |
mid point of line segment between start and end points in pixel space | |
double | length () const |
length of the gesture along its curve(s) | |
double | endpoint_dist () const |
straight-line pixel distance between start and end points | |
double | dist (CGESTUREptr &g) const |
pixel-space distance between this gesture and the one provided, computed as distance between centers | |
bool | complete () const |
void | smooth_points () |
run a single pass of smoothing on the point list: | |
void | smooth_points (int n) |
run n passes of smoothing on the point list: | |
double | spread () const |
max distance to center | |
void | reflect_points (const mlib::PIXELline &l) |
reflect points about a line | |
void | fix_endpoints (mlib::CPIXEL &a, mlib::CPIXEL &b) |
mlib::PIXELline | endpt_line () const |
mlib::PIXEL_list | endpt_seg () const |
bool | self_intersects () const |
does gesture intersect itself? | |
bool | intersects_line (const mlib::PIXELline &l) const |
does gesture intersect the line provided? | |
bool | intersects_seg (const mlib::PIXELline &l) const |
does gesture intersect the line segment provided? | |
bool | below_min_length () const |
is the gesture length less than the minimum gesture length? | |
bool | below_min_spread () const |
is the gesture length below the minimum allowed spread (max distance to center) | |
CARRAY< double > & | timing () const |
double | start_time () const |
time at which first pixel was drawn | |
double | end_time () const |
time at which last pixel was drawn | |
double | elapsed_time () const |
time that elapsed between first and last pixels drawn | |
double | elapsed_time (int i) const |
time that elapsed between the drawing of the first pixel and pixel whose index is given | |
double | remaining_time (int i) const |
time that elapsed between the drawing of the pixel whose index is given, and the last pixel in the gesture | |
double | elapsed_time (CGESTUREptr &g) const |
time that elapsed between the completion of this gesture and the start of the gesture provided | |
double | between_time (CGESTUREptr &g) const |
double | age () const |
CARRAY< double > & | pressures () const |
void | set_pressure (int i, double p) |
double | radius () const |
avg distance to center | |
double | speed () const |
length divided by elapsed time | |
double | startup_time (double dist_thresh=Config::get_var_dbl("GEST_STARTUP_DIST_THRESH", 10.0, true)) const |
double | remaining_time (double dist_thresh=Config::get_var_dbl("GEST_STARTUP_DIST_THRESH", 10.0, true)) const |
double | straightness () const |
how straight is the gesture? returns 1 for straight and tends to zero as curvature increases | |
double | winding (bool do_trim=1, bool abs=0) const |
double | winding_abs (bool do_trim=1) const |
int | index () const |
void | set_index (int k) |
GESTUREptr | prev (int k=1) const |
bool | is_corner (int i) const |
int | num_corners () const |
ARRAY< int > | corners () const |
virtual bool | is_stroke () const |
virtual bool | is_line (double min_straightness, double min_len) const |
virtual bool | is_line () const |
virtual bool | is_tap () const |
virtual bool | is_double_tap () const |
virtual bool | is_slash () const |
quick, short, straight stroke | |
virtual bool | is_dslash () const |
delayed slash (starts w/ pause) | |
virtual bool | is_tslash () const |
tap-slash (tap, then slash) | |
virtual bool | is_slash_tap () const |
slash/tap | |
virtual bool | is_dot () const |
small, tight spiral | |
virtual bool | is_scribble () const |
used for crossing out stuff | |
virtual bool | is_zip_zap () const |
forward/back slash | |
virtual bool | is_arc () const |
slightly curving stroke | |
virtual bool | is_small_arc () const |
a small arc (eg under 60 pixels long) | |
virtual bool | is_closed () const |
virtual bool | is_loop () const |
virtual bool | is_lasso () const |
virtual bool | is_circle (double max_ratio=1.25) const |
virtual bool | is_small_circle (double max_ratio=1.25) const |
virtual bool | is_ellipse (mlib::PIXEL ¢er, mlib::VEXEL &axis, double &r1, double &r2, double err_mult=1) const |
virtual bool | is_almost_ellipse (mlib::PIXEL ¢er, mlib::VEXEL &axis, double &r1, double &r2) const |
virtual bool | is_ellipse () const |
virtual bool | is_n_line () const |
virtual bool | is_e_line () const |
virtual bool | is_s_line () const |
virtual bool | is_w_line () const |
virtual bool | is_ne_line () const |
virtual bool | is_se_line () const |
virtual bool | is_sw_line () const |
virtual bool | is_nw_line () const |
virtual bool | is_x () const |
virtual bool | is_click_hold () const |
virtual bool | is_press_hold () const |
void | print_stats () const |
void | print_types () const |
virtual int | draw (CVIEWptr &v) |
virtual int | draw_final (CVIEWptr &v) |
virtual bool | needs_blend () const |
virtual BBOX | bbox (int) const |
virtual BBOXpix | pix_bbox () const |
virtual DATA_ITEM * | dup () const |
DEFINE_RTTI_METHODS3 ("GEL", GEL *, DATA_ITEM, CDATA_ITEM *) | |
virtual CTAGlist & | tags () const |
virtual RAYhit & | intersect (RAYhit &r, mlib::CWtransf &m=mlib::Identity, int uv=0) const |
virtual RAYnear & | nearest (RAYnear &r, mlib::CWtransf &m=mlib::Identity) const |
virtual bool | inside (mlib::CXYpt_list &) const |
virtual bool | cull (const VIEW *) const |
virtual bool | is_3D () const |
virtual bool | can_do_halo () const |
virtual Cstr_ptr & | name () const |
virtual ostream & | print (ostream &s) const |
void | Own () const |
void | Free () const |
int | Lock () |
void | Unlock () |
int | Unique () const |
virtual void | add_tags () const |
virtual STDdstream & | format (STDdstream &d) const |
virtual STDdstream & | decode (STDdstream &d) |
virtual void | recompute () |
virtual STAT_STR_RET | class_name () const =0 |
virtual int | is_of_type (Cstr_ptr &t) const |
virtual int | draw_id_ref () |
virtual int | draw_id_ref_pre1 () |
virtual int | draw_id_ref_pre2 () |
virtual int | draw_id_ref_pre3 () |
virtual int | draw_id_ref_pre4 () |
virtual int | draw_color_ref () |
virtual int | draw_color_ref_2 () |
virtual int | draw_tex_mem_ref () |
virtual ref_img_t | use_ref_image () |
virtual int | draw_vis_ref () |
virtual int | draw_ref_img (ref_img_t t) |
Static Public Member Functions | |
static STAT_STR_RET | static_name () |
static STAT_STR_RET | static_name () |
static int | add_decoder (Cstr_ptr &d, DATA_ITEM *di, int copy=-1) |
static void | set_default_decoder (DATA_ITEM *(*d)(STDdstream &, Cstr_ptr &, DATA_ITEM *)) |
static DATA_ITEM * | Decode (STDdstream &d, int DelayDecoding=0) |
static DATA_ITEM * | lookup (Cstr_ptr &d) |
static HASH * | di_hash () |
Protected Member Functions | |
mlib::VEXEL | vec (int i) const |
mlib::VEXEL | vecn (int i) const |
double | angle (int i) const |
Protected Attributes | |
GEST_INT * | _gest_int |
owner of this | |
int | _index |
index of this in owner's list | |
mlib::PIXEL_list | _pts |
pixel trail | |
ARRAY< double > | _times |
times for each pixel added | |
ARRAY< double > | _pressures |
pressures recorded for each pixel | |
int | _start_frame |
frame number of down event | |
double | _end_frame |
frame number of up event | |
Event | _down |
Event | _up |
down and up events | |
GestureDrawer * | _drawer |
thing that can draw this | |
COMMANDptr | _cmd |
how to undo previous result of this | |
BBOX | _bbox |
BBOXpix | _pix_bbox |
bool | _complete |
if complete() was called... | |
int | _copy |
TAGlist | _DEFINERtags |
Static Protected Attributes | |
static TAGlist * | _gel_tags = 0 |
Class that defines a gesture -- a pixel trail drawn by the user, with timing info and ability to "recognize" certain meanings, like a tap, a straight line, a circle, a dot, etc.
Definition at line 36 of file gesture.H.
|
Definition at line 25 of file ref_img_client.H. |
|
Definition at line 42 of file gesture.H. References init(). |
|
|
|
Definition at line 25 of file gesture.C. References _bbox, _end_frame, _pix_bbox, _pressures, _pts, _times, ARRAY< T >::empty(), ARRAY< T >::last(), VIEW::stamp(), stop_watch::sys_time(), BBOXpix::update(), BBOX::update(), and mlib::Pointlist< L, P, V, S >::update_length(). Referenced by complete(), and init(). |
|
Definition at line 41 of file data_item.C. References DATA_ITEM::_hash, and HASH::add(). Referenced by JOTvar< OBJ, TYPE >::check_inst_name(), FUNC_ITEM::FUNC_ITEM(), hashdist::hashdist(), JOTvar< OBJ, TYPE >::JOTvar(), and DISTRIB::notify_exist(). |
|
Definition at line 205 of file data_item.H. |
|
Definition at line 165 of file gesture.H. References end_time(), and stop_watch::sys_time(). |
|
Definition at line 315 of file gesture.H. References mlib::Acos(), and vecn(). Referenced by is_corner(), trim(), and winding(). |
|
Reimplemented from GEL. Definition at line 281 of file gesture.H. References _bbox. |
|
is the gesture length less than the minimum gesture length?
Definition at line 142 of file gesture.H. References length(), and MIN_GESTURE_LENGTH. |
|
is the gesture length below the minimum allowed spread (max distance to center)
Definition at line 144 of file gesture.H. References length(), and MIN_GESTURE_SPREAD. |
|
Definition at line 162 of file gesture.H. References start_time(). |
|
Reimplemented in GEOM. |
|
centroid of the gesture computed as the average
Definition at line 93 of file gesture.H. References _pts, and mlib::Pointlist< L, P, V, S >::average(). Referenced by dist(), is_circle(), is_dot(), is_ellipse(), is_x(), and radius(). |
|
|
Definition at line 104 of file gesture.H. References _complete. |
|
Definition at line 70 of file gesture.C. References _complete, _pressures, _pts, _up, add(), Config::get_var_int(), ARRAY< T >::last(), ARRAY< T >::num(), smooth_points(), and trim(). |
|
Definition at line 315 of file gesture.C. References _pts, is_corner(), and ARRAY< T >::num(). Referenced by is_zip_zap(), and num_corners(). |
|
|
|
Definition at line 57 of file data_item.C. References DATA_ITEM::_copy, DATA_ITEM::_decode_unknown, DATA_ITEM::class_name(), DATA_ITEM::decode(), DATA_ITEM::dup(), Config::get_var_bool(), and DATA_ITEM::lookup(). Referenced by JOThash::get(), DISTRIB::interpret(), and operator>>(). |
|
Reimplemented in JOTsend_geom, and BMESH. Definition at line 145 of file data_item.C. References DATA_ITEM::class_name(), COMMENT::decode(), j, COMMENT::name(), TAGformat::read_end_id(), TAGformat::read_id(), DATA_ITEM::recompute(), and DATA_ITEM::tags(). Referenced by DATA_ITEM::Decode(), BMESH::decode(), JOTio::get(), BMESH::get_patches(), Patch::get_texture(), VIEW::get_view_animator(), and VIEW::get_view_data_file(). |
|
|
|
|
|
Definition at line 225 of file data_item.H. References DATA_ITEM::_hash. |
|
pixel-space distance between this gesture and the one provided, computed as distance between centers
Definition at line 103 of file gesture.H. References center(), and mlib::Point2< P, V >::dist(). Referenced by is_dot(), is_double_tap(), is_tslash(), is_zip_zap(), and trim(). |
|
Reimplemented from GEL. |
|
Reimplemented in GELset. Definition at line 55 of file ref_img_client.H. Referenced by RefImageClient::draw_ref_img(), and RefImageClient::draw_tex_mem_ref(). |
|
Reimplemented in GELset. Definition at line 56 of file ref_img_client.H. Referenced by RefImageClient::draw_ref_img(). |
|
Reimplemented from RefImageClient. Definition at line 1287 of file gesture.C. References _drawer, and GestureDrawer::draw(). |
|
Reimplemented in GELset, and OGLTexture. Definition at line 50 of file ref_img_client.H. Referenced by RefImageClient::draw_ref_img(). |
|
Reimplemented in GELset. Definition at line 51 of file ref_img_client.H. Referenced by RefImageClient::draw_ref_img(). |
|
Reimplemented in GELset. Definition at line 52 of file ref_img_client.H. Referenced by RefImageClient::draw_ref_img(). |
|
Reimplemented in GELset. Definition at line 53 of file ref_img_client.H. Referenced by RefImageClient::draw_ref_img(). |
|
Reimplemented in GELset. Definition at line 54 of file ref_img_client.H. Referenced by RefImageClient::draw_ref_img(). |
|
|
Reimplemented in DotsShader, DotsShader_EX, GLSLHatching, HalftoneShader, HalftoneShaderEx, and MSLDShader. Definition at line 57 of file ref_img_client.H. References RefImageClient::draw_color_ref(). Referenced by RefImageClient::draw_ref_img(). |
|
Reimplemented in GELset, GEOM, LINE3D, OGLTexture, ControlFrameTexture, ControlLineTexture, SilFrameTexture, SilsTexture, WireframeTexture, ZcrossFrameTexture, ZcrossTexture, CAMwidget_anchor, CAMwidget_anchor, BMESH, Patch, BALLwidget_anchor, and GRIDwidget_anchor. Definition at line 68 of file ref_img_client.H. Referenced by Patch::draw_vis_ref(). |
|
Definition at line 69 of file gesture.H. References _drawer. |
|
Implements GEL. |
|
time that elapsed between the completion of this gesture and the start of the gesture provided
Definition at line 159 of file gesture.H. References end_time(). |
|
time that elapsed between the drawing of the first pixel and pixel whose index is given
Definition at line 155 of file gesture.H. References _times, and start_time(). |
|
time that elapsed between first and last pixels drawn
Definition at line 153 of file gesture.H. References end_time(), and start_time(). Referenced by is_click_hold(), is_double_tap(), is_press_hold(), is_slash_tap(), is_tap(), is_tslash(), remaining_time(), speed(), and startup_time(). |
|
last pixel in the gesture
Definition at line 91 of file gesture.H. References _pts, and ARRAY< T >::last(). Referenced by endpoint_dist(), endpt_line(), endpt_midpt(), endpt_seg(), endpt_vec(), and is_zip_zap(). |
|
time at which last pixel was drawn
Definition at line 151 of file gesture.H. References _times, and ARRAY< T >::last(). Referenced by age(), elapsed_time(), is_x(), and remaining_time(). |
|
straight-line pixel distance between start and end points
Definition at line 101 of file gesture.H. References mlib::Point2< P, V >::dist(), end(), and start(). Referenced by is_closed(), is_scribble(), and straightness(). |
|
|
|
mid point of line segment between start and end points in pixel space
|
|
|
|
vector from starting point to endpoint
Definition at line 95 of file gesture.H. References end(), and start(). Referenced by is_e_line(), is_n_line(), is_ne_line(), is_nw_line(), is_s_line(), is_se_line(), is_sw_line(), is_w_line(), and is_x(). |
|
Definition at line 118 of file gesture.H. References _pts, and mlib::Point2list< L, P, V, S >::fix_endpoints(). |
|
Reimplemented in Animator, JOTdone, JOTsend_geom, and BMESH. Definition at line 194 of file data_item.C. References DATA_ITEM::class_name(), TAGformat::end_id(), Config::get_var_bool(), TAGformat::id(), DATA_ITEM::tags(), and STDdstream::write_newline(). Referenced by JOTdone::format(), BMESH::format(), Animator::format(), JOTio::put(), and VIEW::put_view_data_file(). |
|
Definition at line 76 of file ref.H. References REFcounter::_mutex, REFcounter::_u, and REF_ME. |
|
Definition at line 196 of file gesture.H. References _index. |
|
Definition at line 15 of file gesture.C. References _bbox, _down, _pix_bbox, _start_frame, add(), BBOXpix::set(), BBOX::set(), and VIEW::stamp(). Referenced by GESTURE(). |
|
Reimplemented in TEXT2D. |
|
|
|
does gesture intersect the line provided?
Definition at line 131 of file gesture.H. References _pts, and mlib::Point2list< L, P, V, S >::intersects_line(). |
|
does gesture intersect the line segment provided?
Definition at line 136 of file gesture.H. References _pts, and mlib::Point2list< L, P, V, S >::intersects_seg(). |
|
Reimplemented in GEOM. |
|
Definition at line 243 of file gesture.H. References Config::get_var_dbl(), and is_ellipse(). |
|
slightly curving stroke
Definition at line 430 of file gesture.C. References is_stroke(), length(), straightness(), winding(), and winding_abs(). Referenced by is_small_arc(). |
|
Definition at line 510 of file gesture.C. References center(), debug, err_adv(), Config::get_var_bool(), and is_ellipse(). Referenced by print_types(). |
|
Definition at line 571 of file gesture.C. References Evd::_d, _down, _up, elapsed_time(), and length(). Referenced by print_types(). |
|
Definition at line 331 of file gesture.C. References endpoint_dist(), is_stroke(), length(), and max(). Referenced by print_types(). |
|
Definition at line 296 of file gesture.C. References _pts, angle(), Config::get_var_int(), ARRAY< T >::num(), mlib::rad2deg(), and ARRAY< T >::valid_index(). Referenced by corners(). |
|
small, tight spiral
Definition at line 455 of file gesture.C. References _pts, center(), dist(), is_stroke(), length(), ARRAY< T >::num(), straightness(), and winding(). Referenced by print_types(). |
|
Definition at line 364 of file gesture.C. References dist(), elapsed_time(), is_tap(), and prev(). Referenced by print_types(). |
|
delayed slash (starts w/ pause)
Definition at line 373 of file gesture.C. References is_stroke(), length(), remaining_time(), startup_time(), and straightness(). Referenced by print_types(). |
|
Definition at line 627 of file gesture.C. References endpt_vec(), is_line(), and mlib::Vec2< V >::normalized(). Referenced by print_types(). |
|
Definition at line 250 of file gesture.H. References center(). Referenced by is_almost_ellipse(), is_circle(), and print_types(). |
|
Definition at line 1011 of file gesture.C. References _pts, mlib::Pointlist< L, P, V, S >::average(), debug, ellipse_max_err(), err_adv(), Config::get_var_bool(), mlib::Mat4< M, P, V, L, Q >::inverse(), is_loop(), mlib::Vec2< V >::is_null(), j, mlib::Vec2< V >::length(), mlib::Vec2< V >::normalized(), ARRAY< T >::num(), sqr(), swap(), and trim_endpt_overlap(). |
|
Definition at line 497 of file gesture.C. References is_stroke(), length(), speed(), straightness(), and winding(). Referenced by print_types(). |
|
Definition at line 592 of file gesture.C. References Config::get_var_dbl(). Referenced by is_e_line(), is_n_line(), is_ne_line(), is_nw_line(), is_s_line(), is_se_line(), is_sw_line(), is_w_line(), is_x(), and print_types(). |
|
Definition at line 582 of file gesture.C. References is_stroke(), length(), and straightness(). |
|
Definition at line 485 of file gesture.C. References is_stroke(), length(), straightness(), and winding(). Referenced by is_ellipse(), and print_types(). |
|
Definition at line 614 of file gesture.C. References endpt_vec(), is_line(), and mlib::Vec2< V >::normalized(). Referenced by print_types(). |
|
Definition at line 666 of file gesture.C. References endpt_vec(), is_line(), and mlib::Vec2< V >::normalized(). Referenced by print_types(). |
|
Definition at line 705 of file gesture.C. References endpt_vec(), is_line(), and mlib::Vec2< V >::normalized(). Referenced by print_types(). |
|
Definition at line 214 of file data_item.H. References IS. Referenced by BMESH::operator=(). |
|
Definition at line 354 of file gesture.C. References elapsed_time(), is_stroke(), and length(). Referenced by print_types(). |
|
Definition at line 640 of file gesture.C. References endpt_vec(), is_line(), and mlib::Vec2< V >::normalized(). Referenced by print_types(). |
|
used for crossing out stuff
Definition at line 472 of file gesture.C. References endpoint_dist(), is_stroke(), length(), speed(), straightness(), and winding(). Referenced by print_types(). |
|
Definition at line 679 of file gesture.C. References endpt_vec(), is_line(), and mlib::Vec2< V >::normalized(). Referenced by print_types(). |
|
quick, short, straight stroke
Definition at line 602 of file gesture.C. References is_stroke(), length(), speed(), and straightness(). Referenced by is_tslash(), and print_types(). |
|
slash/tap
Definition at line 399 of file gesture.C. References elapsed_time(), is_tap(), and prev(). |
|
a small arc (eg under 60 pixels long)
Definition at line 447 of file gesture.C. References is_arc(), and length(). Referenced by print_types(). |
|
Definition at line 535 of file gesture.C. References debug, err_adv(), Config::get_var_bool(), is_stroke(), length(), spread(), straightness(), and winding(). Referenced by print_types(). |
|
Definition at line 325 of file gesture.C. References Evd::_d, _down, _pts, _up, and ARRAY< T >::num(). Referenced by is_arc(), is_closed(), is_dot(), is_dslash(), is_lasso(), is_line(), is_loop(), is_press_hold(), is_scribble(), is_slash(), is_small_circle(), is_tap(), is_zip_zap(), print_types(), and startup_time(). |
|
Definition at line 692 of file gesture.C. References endpt_vec(), is_line(), and mlib::Vec2< V >::normalized(). Referenced by print_types(). |
|
Definition at line 344 of file gesture.C. References elapsed_time(), is_stroke(), and length(). Referenced by is_double_tap(), is_slash_tap(), and print_types(). |
|
tap-slash (tap, then slash)
Definition at line 388 of file gesture.C. References dist(), elapsed_time(), is_slash(), and prev(). Referenced by print_types(). |
|
Definition at line 653 of file gesture.C. References endpt_vec(), is_line(), and mlib::Vec2< V >::normalized(). Referenced by print_types(). |
|
Definition at line 718 of file gesture.C. References center(), mlib::Point2< P, V >::dist(), end_time(), endpt_vec(), is_line(), length(), max(), and prev(). Referenced by print_types(). |
|
forward/back slash
Definition at line 409 of file gesture.C. References _pts, corners(), dist(), end(), is_stroke(), length(), ARRAY< T >::num(), start(), and straightness(). Referenced by print_types(). |
|
length of the gesture along its curve(s)
Definition at line 99 of file gesture.H. References _pts, and mlib::Pointlist< L, P, V, S >::length(). Referenced by below_min_length(), below_min_spread(), ellipse_max_err(), is_arc(), is_click_hold(), is_closed(), is_dot(), is_dslash(), is_lasso(), is_line(), is_loop(), is_press_hold(), is_scribble(), is_slash(), is_small_arc(), is_small_circle(), is_tap(), is_x(), is_zip_zap(), print_stats(), speed(), startup_time(), straightness(), and trim(). |
|
Definition at line 105 of file ref.H. References REFcounter::_mutex, and REFcounter::_u. Referenced by REFlock::REFlock(). |
|
Definition at line 222 of file data_item.H. References DATA_ITEM::_hash, and HASH::find(). Referenced by DATA_ITEM::Decode(), FUNC_ITEM::FUNC_ITEM(), Patch::get_tex(), and BMESH::read_jot_stream(). |
|
Reimplemented in GEOM. Definition at line 129 of file gel.H. References GEL::_name. Referenced by operator<<(). |
|
Reimplemented in GEOM. |
|
Reimplemented from GEL. |
|
Definition at line 206 of file gesture.H. References corners(), and ARRAY< T >::num(). |
|
Definition at line 59 of file ref.H. References REFcounter::_mutex, REFcounter::_u, and REF_ME. |
|
Definition at line 282 of file gesture.H. References _pix_bbox. |
|
Definition at line 168 of file gesture.H. References _pressures. Referenced by GestureDrawer::draw(). |
|
Definition at line 158 of file gesture.C. References _gest_int, _index, and GEST_INT::gesture(). Referenced by is_double_tap(), is_slash_tap(), is_tslash(), and is_x(). |
|
Reimplemented in GEOM. Definition at line 131 of file gel.H. Referenced by operator<<(). |
|
Definition at line 1225 of file gesture.C. References err_msg(), length(), speed(), straightness(), winding(), and winding_abs(). |
|
Definition at line 1243 of file gesture.C. References is_circle(), is_click_hold(), is_closed(), is_dot(), is_double_tap(), is_dslash(), is_e_line(), is_ellipse(), is_lasso(), is_line(), is_loop(), is_n_line(), is_ne_line(), is_nw_line(), is_press_hold(), is_s_line(), is_scribble(), is_se_line(), is_slash(), is_small_arc(), is_small_circle(), is_stroke(), is_sw_line(), is_tap(), is_tslash(), is_w_line(), is_x(), and is_zip_zap(). |
|
pixel locations:
Definition at line 87 of file gesture.H. References _pts. Referenced by GestureBoxDrawer::draw(), and GestureDrawer::draw(). |
|
avg distance to center
Definition at line 206 of file gesture.C. References _pts, center(), mlib::Pointlist< L, P, V, S >::dist(), ARRAY< T >::empty(), and ARRAY< T >::num(). |
|
Reimplemented in Patch. Definition at line 208 of file data_item.H. Referenced by DATA_ITEM::decode(). |
|
reflect points about a line
Definition at line 60 of file gesture.C. References _pts, ARRAY< T >::num(), and mlib::Line< L, P, V >::reflection(). |
|
Definition at line 181 of file gesture.H. References elapsed_time(), and startup_time(). |
|
time that elapsed between the drawing of the pixel whose index is given, and the last pixel in the gesture
Definition at line 157 of file gesture.H. References _times, and end_time(). Referenced by is_dslash(). |
|
does gesture intersect itself?
Definition at line 128 of file gesture.H. References _pts, and mlib::Pointlist< L, P, V, S >::self_intersects(). |
|
Definition at line 78 of file gesture.H. References _cmd. |
|
Definition at line 218 of file data_item.H. References DATA_ITEM::_decode_unknown. |
|
Definition at line 70 of file gesture.H. References _drawer. |
|
Definition at line 197 of file gesture.H. References _index. |
|
Definition at line 169 of file gesture.H. References _pressures, and ARRAY< T >::num(). |
|
run n passes of smoothing on the point list:
Definition at line 53 of file gesture.C. References smooth_points(). |
|
run a single pass of smoothing on the point list:
Definition at line 42 of file gesture.C. References _pts, and ARRAY< T >::num(). Referenced by complete(), and smooth_points(). |
|
length divided by elapsed time
Definition at line 167 of file gesture.C. References elapsed_time(), and length(). Referenced by ellipse_max_err(), is_lasso(), is_scribble(), is_slash(), and print_stats(). |
|
max distance to center
Definition at line 113 of file gesture.H. References _pts, and mlib::Pointlist< L, P, V, S >::spread(). Referenced by is_small_circle(), and trim(). |
|
first pixel in the gesture
Definition at line 89 of file gesture.H. References _pts. Referenced by endpoint_dist(), endpt_line(), endpt_midpt(), endpt_seg(), endpt_vec(), and is_zip_zap(). |
|
time at which first pixel was drawn
Definition at line 149 of file gesture.H. References _times. Referenced by between_time(), and elapsed_time(). |
|
Time spent within the given threshold distance of the 1st point. Used to measure a gesture that begins w/ a pause. Definition at line 176 of file gesture.C. References _pts, _times, elapsed_time(), err_msg(), mlib::Pointlist< L, P, V, S >::interpolate(), is_stroke(), length(), and ARRAY< T >::valid_index(). Referenced by is_dslash(), and remaining_time(). |
|
Definition at line 44 of file ref_img_client.H. References RET_STAT_STR. Referenced by BMESH::operator=(). |
|
Definition at line 31 of file data_item.C. References RET_STAT_STR. Referenced by BALLwidget_anchor::BALLwidget_anchor(), CAMwidget_anchor::CAMwidget_anchor(), Patch::cur_tex(), OGLTexture::draw_id_ref(), OGLTexture::draw_id_triangles(), OGLTexture::draw_vis_ref(), VIEW::get_view_animator(), GRIDwidget_anchor::GRIDwidget_anchor(), and toggle_sil_frame(). |
|
how straight is the gesture? returns 1 for straight and tends to zero as curvature increases
Definition at line 190 of file gesture.H. References endpoint_dist(), and length(). Referenced by is_arc(), is_dot(), is_dslash(), is_lasso(), is_line(), is_loop(), is_scribble(), is_slash(), is_small_circle(), is_zip_zap(), and print_stats(). |
|
Reimplemented from DATA_ITEM. Reimplemented in GEOM. Definition at line 113 of file gel.H. References GEL::_gel_tags. Referenced by GEOM::tags(). |
|
Definition at line 147 of file gesture.H. References _times. |
|
Definition at line 100 of file gesture.C. References _pressures, _pts, _times, angle(), clip_tip(), debug, mlib::deg2rad(), dist(), err_adv(), Config::get_var_bool(), Config::get_var_dbl(), length(), ARRAY< T >::num(), spread(), and ARRAY< T >::truncate(). Referenced by complete(), and winding(). |
|
Definition at line 79 of file gesture.H. References _cmd. |
|
Definition at line 115 of file ref.H. References REFcounter::_mutex, and REFcounter::_u. |
|
Definition at line 111 of file ref.H. References REFcounter::_mutex, and REFcounter::_u. Referenced by REFlock::~REFlock(). |
|
Reimplemented in GEOM, DotsShader, DotsShader_EX, GLSLHatching, HalftoneShader, HalftoneShaderEx, MSLDShader, BMESH, and Patch. Definition at line 60 of file ref_img_client.H. References RefImageClient::REF_IMG_NONE. Referenced by OGLTexture::draw_id_ref(), and Patch::use_ref_image(). |
|
Definition at line 313 of file gesture.H. References _pts. Referenced by vecn(). |
|
Definition at line 314 of file gesture.H. References mlib::Vec2< V >::normalized(), and vec(). Referenced by angle(). |
|
Definition at line 247 of file gesture.C. References _pts, angle(), debug, err_adv(), Config::get_var_bool(), mlib::Pointlist< L, P, V, S >::interpolate_length(), mlib::Pointlist< L, P, V, S >::length(), max(), min(), ARRAY< T >::num(), and trim(). Referenced by is_arc(), is_dot(), is_lasso(), is_loop(), is_scribble(), is_small_circle(), print_stats(), and winding_abs(). |
|
Definition at line 194 of file gesture.H. References winding(). Referenced by is_arc(), and print_stats(). |
|
|
|
how to undo previous result of this
Definition at line 305 of file gesture.H. Referenced by set_command(), and undo(). |
|
if complete() was called...
Definition at line 308 of file gesture.H. Referenced by complete(). |
|
Definition at line 197 of file data_item.H. Referenced by DATA_ITEM::Decode(). |
|
Definition at line 198 of file data_item.H. Referenced by DATA_ITEM::tags(). |
|
Definition at line 303 of file gesture.H. Referenced by init(), is_click_hold(), and is_stroke(). |
|
thing that can draw this
Definition at line 304 of file gesture.H. Referenced by draw_final(), drawer(), and set_drawer(). |
|
frame number of up event
Definition at line 302 of file gesture.H. Referenced by add(). |
|
Definition at line 138 of file gel.H. Referenced by GEL::tags(). |
|
owner of this
Definition at line 296 of file gesture.H. Referenced by prev(). |
|
index of this in owner's list
Definition at line 297 of file gesture.H. Referenced by index(), prev(), and set_index(). |
|
Definition at line 307 of file gesture.H. Referenced by add(), init(), and pix_bbox(). |
|
pressures recorded for each pixel
Definition at line 300 of file gesture.H. Referenced by add(), complete(), pressures(), set_pressure(), and trim(). |
|
pixel trail
Definition at line 298 of file gesture.H. Referenced by add(), center(), complete(), corners(), end(), fix_endpoints(), intersects_line(), intersects_seg(), is_corner(), is_dot(), is_ellipse(), is_stroke(), is_zip_zap(), length(), pts(), radius(), reflect_points(), self_intersects(), smooth_points(), spread(), start(), startup_time(), trim(), vec(), and winding(). |
|
frame number of down event
Definition at line 301 of file gesture.H. Referenced by init(). |
|
times for each pixel added
Definition at line 299 of file gesture.H. Referenced by add(), elapsed_time(), end_time(), remaining_time(), start_time(), startup_time(), timing(), and trim(). |
|
down and up events
Definition at line 303 of file gesture.H. Referenced by complete(), is_click_hold(), and is_stroke(). |