15 #ifndef POINTEREVENTLIST_H 16 #define POINTEREVENTLIST_H 18 #include "pandabase.h" 20 #include "pointerEvent.h" 21 #include "typedReferenceCount.h" 22 #include "eventParameter.h" 23 #include "vector_double.h" 25 class ModifierPointers;
41 INLINE
int get_num_events()
const;
42 INLINE
bool get_in_window(
int n)
const;
43 INLINE
int get_xpos(
int n)
const;
44 INLINE
int get_ypos(
int n)
const;
45 INLINE
int get_dx(
int n)
const;
46 INLINE
int get_dy(
int n)
const;
47 INLINE
int get_sequence(
int n)
const;
48 INLINE
double get_length(
int n)
const;
49 INLINE
double get_direction(
int n)
const;
50 INLINE
double get_rotation(
int n)
const;
51 INLINE
double get_time(
int n)
const;
54 INLINE
void pop_front();
55 void add_event(
bool in_win,
int xpos,
int ypos,
int seq,
double time);
57 bool encircles(
int x,
int y)
const;
58 double total_turns(
double sec)
const;
59 double match_pattern(
const string &pattern,
double rot,
double seglen);
62 INLINE PointerEventList(
const PointerEventList ©);
63 INLINE
void operator = (
const PointerEventList ©);
65 virtual void output(ostream &out)
const;
66 void write(ostream &out,
int indent_level = 0)
const;
69 void parse_pattern(
const string &ascpat, vector_double &pattern);
77 static void init_type() {
78 ParamValueBase::init_type();
79 register_type(_type_handle,
"PointerEventList",
80 ParamValueBase::get_class_type());
83 return get_class_type();
85 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
91 INLINE ostream &operator << (ostream &out,
const PointerEventList &pointerlist) {
92 pointerlist.output(out);
96 #include "pointerEventList.I" Records a set of pointer events that happened recently.
A non-template base class of ParamValue (below), which serves mainly to define the placeholder for th...
A class to retrieve the individual data elements previously stored in a Datagram. ...
TypeHandle is the identifier used to differentiate C++ class types.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...