#include <driveInterface.h>
Inheritance diagram for DriveInterface:
Public Member Functions | |
virtual TypeHandle | get_type () const |
virtual TypeHandle | force_init_type () |
Static Public Member Functions | |
TypeHandle | get_class_type () |
void | init_type () |
Protected Member Functions | |
virtual void | do_transmit_data (const DataNodeTransmit &input, DataNodeTransmit &output) |
Private Member Functions | |
~DriveInterface () | |
INLINE void | set_forward_speed (float speed) |
INLINE float | get_forward_speed () const |
INLINE void | set_reverse_speed (float speed) |
INLINE float | get_reverse_speed () const |
INLINE void | set_rotate_speed (float speed) |
INLINE float | get_rotate_speed () const |
INLINE void | set_vertical_dead_zone (float zone) |
INLINE float | get_vertical_dead_zone () const |
INLINE void | set_horizontal_dead_zone (float zone) |
INLINE float | get_horizontal_dead_zone () const |
INLINE void | set_vertical_ramp_up_time (float ramp_up_time) |
INLINE float | get_vertical_ramp_up_time () const |
INLINE void | set_vertical_ramp_down_time (float ramp_down_time) |
INLINE float | get_vertical_ramp_down_time () const |
INLINE void | set_horizontal_ramp_up_time (float ramp_up_time) |
INLINE float | get_horizontal_ramp_up_time () const |
INLINE void | set_horizontal_ramp_down_time (float ramp_down_time) |
INLINE float | get_horizontal_ramp_down_time () const |
INLINE float | get_speed () const |
INLINE float | get_rot_speed () const |
void | reset () |
INLINE const LPoint3f & | get_pos () const |
**** Translation **** | |
INLINE float | get_x () const |
INLINE float | get_y () const |
INLINE float | get_z () const |
INLINE void | set_pos (const LVecBase3f &vec) |
INLINE void | set_pos (float x, float y, float z) |
INLINE void | set_x (float x) |
INLINE void | set_y (float y) |
INLINE void | set_z (float z) |
INLINE const LVecBase3f & | get_hpr () const |
**** Rotation **** | |
INLINE float | get_h () const |
INLINE float | get_p () const |
INLINE float | get_r () const |
INLINE void | set_hpr (const LVecBase3f &hpr) |
INLINE void | set_hpr (float h, float p, float r) |
INLINE void | set_h (float h) |
INLINE void | set_p (float p) |
INLINE void | set_r (float r) |
void | set_force_roll (float force_roll) |
INLINE void | set_ignore_mouse (bool ignore_mouse) |
INLINE bool | get_ignore_mouse () const |
INLINE void | set_force_mouse (bool force_mouse) |
INLINE bool | get_force_mouse () const |
INLINE void | set_stop_this_frame (bool stop_this_frame) |
INLINE bool | get_stop_this_frame () const |
void | set_mat (const LMatrix4f &mat) |
const LMatrix4f & | get_mat () |
void | force_dgraph () |
void | apply (double x, double y, bool any_button) |
PT (EventStoreTransform) _transform | |
PT (EventStoreVec3) _velocity | |
Private Attributes | |
PUBLISHED | __pad0__: DriveInterface(const string &name = "") |
float | _forward_speed |
float | _reverse_speed |
float | _rotate_speed |
float | _vertical_dead_zone |
float | _horizontal_dead_zone |
float | _vertical_center |
float | _horizontal_center |
float | _vertical_ramp_up_time |
float | _vertical_ramp_down_time |
float | _horizontal_ramp_up_time |
float | _horizontal_ramp_down_time |
float | _speed |
float | _rot_speed |
LPoint3f | _xyz |
LVecBase3f | _hpr |
LVector3f | _vel |
bool | _ignore_mouse |
bool | _force_mouse |
bool | _stop_this_frame |
LMatrix4f | _mat |
ModifierButtons | _mods |
KeyHeld | _up_arrow |
KeyHeld | _down_arrow |
KeyHeld | _left_arrow |
KeyHeld | _right_arrow |
int | _xy_input |
int | _button_events_input |
int | _transform_output |
int | _velocity_output |
Static Private Attributes | |
const float | _hpr_quantize = 0.001 |
TypeHandle | _type_handle |
|
Definition at line 157 of file driveInterface.cxx. |
|
|
|
Definition at line 221 of file driveInterface.cxx. References _hpr, _transform_output, _vel, _velocity_output, _xyz, DataGraphTraverser::collect_leftovers(), DataNode::get_num_outputs(), PandaNode::output(), DataNodeTransmit::reserve(), DataNodeTransmit::set_data(), and DataGraphTraverser::traverse_below(). |
|
Reimplemented from DataNode. Definition at line 197 of file driveInterface.h. References DataNode::get_class_type(), and DataNode::init_type(). |
|
Reimplemented from DataNode. Definition at line 186 of file driveInterface.h. |
|
|
|
|
|
|
|
|
|
|
|
|
|
**** Rotation ****
|
|
|
|
Definition at line 206 of file driveInterface.cxx. References _hpr, _mat, _xyz, and compose_matrix(). |
|
|
|
**** Translation ****
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from DataNode. Definition at line 194 of file driveInterface.h. References DataNode::get_class_type(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from DataNode. Definition at line 189 of file driveInterface.h. References DataNode::get_class_type(), DataNode::init_type(), and register_type(). Referenced by ConfigureFn(). |
|
|
|
|
|
Definition at line 167 of file driveInterface.cxx. References _down_arrow, _hpr, _left_arrow, _mods, _right_arrow, _up_arrow, _xyz, ModifierButtons::all_buttons_up(), and DriveInterface::KeyHeld::clear(). |
|
|
|
Definition at line 186 of file driveInterface.cxx. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 195 of file driveInterface.cxx. References _hpr, _xyz, decompose_matrix(), and scale. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from DataNode. Definition at line 40 of file driveInterface.h. |
|
Definition at line 169 of file driveInterface.h. Referenced by do_transmit_data(). |
|
Definition at line 157 of file driveInterface.h. Referenced by apply(), do_transmit_data(), and reset(). |
|
Definition at line 133 of file driveInterface.h. Referenced by apply(). |
|
Definition at line 111 of file driveInterface.h. Referenced by apply(). |
|
Definition at line 117 of file driveInterface.h. Referenced by apply(). |
|
Definition at line 115 of file driveInterface.h. Referenced by apply(). |
|
Definition at line 124 of file driveInterface.h. Referenced by apply(). |
|
Definition at line 123 of file driveInterface.h. Referenced by apply(). |
|
Definition at line 130 of file driveInterface.h. Referenced by apply(), do_transmit_data(), force_dgraph(), get_mat(), reset(), and set_mat(). |
|
Definition at line 34 of file driveInterface.cxx. |
|
Definition at line 132 of file driveInterface.h. Referenced by do_transmit_data(). |
|
Definition at line 158 of file driveInterface.h. Referenced by apply(), do_transmit_data(), and reset(). |
|
Definition at line 137 of file driveInterface.h. Referenced by get_mat(). |
|
Definition at line 140 of file driveInterface.h. Referenced by do_transmit_data(), and reset(). |
|
Definition at line 112 of file driveInterface.h. Referenced by apply(). |
|
Definition at line 158 of file driveInterface.h. Referenced by apply(), do_transmit_data(), and reset(). |
|
Definition at line 127 of file driveInterface.h. Referenced by apply(). |
|
Definition at line 113 of file driveInterface.h. Referenced by apply(). |
|
Definition at line 126 of file driveInterface.h. Referenced by apply(). |
|
Definition at line 134 of file driveInterface.h. Referenced by apply(). |
|
Definition at line 172 of file driveInterface.h. Referenced by do_transmit_data(), and force_dgraph(). |
|
Reimplemented from DataNode. Definition at line 33 of file driveInterface.cxx. |
|
Definition at line 157 of file driveInterface.h. Referenced by apply(), do_transmit_data(), and reset(). |
|
Definition at line 131 of file driveInterface.h. Referenced by apply(), do_transmit_data(), and force_dgraph(). |
|
Definition at line 173 of file driveInterface.h. Referenced by do_transmit_data(), and force_dgraph(). |
|
Definition at line 116 of file driveInterface.h. Referenced by apply(). |
|
Definition at line 114 of file driveInterface.h. Referenced by apply(). |
|
Definition at line 122 of file driveInterface.h. Referenced by apply(). |
|
Definition at line 121 of file driveInterface.h. Referenced by apply(). |
|
Definition at line 168 of file driveInterface.h. Referenced by do_transmit_data(). |
|
Definition at line 129 of file driveInterface.h. Referenced by apply(), do_transmit_data(), force_dgraph(), get_mat(), reset(), and set_mat(). |