#include <PME.h>
Public Member Functions | |
| void | set_position (CPoint &P) |
| CPoint | get_position () |
| void | update_position () |
| void | set_orbit (CPoint &R, CPoint &V) |
| MovementType | get_current_move_type () |
| MovementType | get_next_move_type () |
| void | update_move_type () |
| void | set_next_move_type (MovementType mov_type) |
| void | set_current_move_type (MovementType mov_type) |
| void | push_trace (CPoint &pos) |
| void | reset_trace () |
| void | set_bounce_velocity (CPoint bv) |
| void | set_bounce_distance (float bd) |
| PMESource (SpatialSource &s) | |
| PMESource () | |
| ~PMESource () | |
Protected Attributes | |
| SpatialSource * | source |
| Orbit | orbit |
| MovementType | current_move_type |
| MovementType | next_move_type |
| CPoint | trace [MAX_TRACE_LENGTH] |
| float | bounce_distance |
| CPoint | bounce_velocity |
| unsigned | current_trace_index |
| unsigned | trace_length |
| PMESource::PMESource | ( | SpatialSource & | s | ) |
| PMESource::PMESource | ( | ) |
| PMESource::~PMESource | ( | ) | [inline] |
| void PMESource::set_position | ( | CPoint & | P | ) |
References csl::SpatialSource::setPosition(), and source.
Referenced by PME::update_grabbed_position().
| CPoint PMESource::get_position | ( | ) |
References csl::SpatialSource::getPosition(), and source.
Referenced by PME::check_for_grabbed_source().
| void PMESource::update_position | ( | ) |
References bounce_distance, bounce_velocity, Orbit::calculate_absolute_position(), Orbit::calculate_new_position_in_orbit(), current_move_type, current_trace_index, csl::SpatialSource::getPosition(), kBounce, kDraw, kGrabbed, kOrbit, kStopped, orbit, csl::SpatialSource::setPosition(), signof, source, trace, trace_length, x, csl::CPoint::x, csl::CPoint::y, and csl::CPoint::z.
Referenced by PME::manage_sources().
| MovementType PMESource::get_current_move_type | ( | ) | [inline] |
| MovementType PMESource::get_next_move_type | ( | ) | [inline] |
| void PMESource::update_move_type | ( | ) | [inline] |
| void PMESource::set_next_move_type | ( | MovementType | mov_type | ) |
References next_move_type.
| void PMESource::set_current_move_type | ( | MovementType | mov_type | ) |
References current_move_type.
Referenced by PME::check_for_grabbed_source(), and PME::manage_sources().
| void PMESource::push_trace | ( | CPoint & | pos | ) |
| void PMESource::reset_trace | ( | ) | [inline] |
| void PMESource::set_bounce_velocity | ( | CPoint | bv | ) | [inline] |
| void PMESource::set_bounce_distance | ( | float | bd | ) |
References bounce_distance.
SpatialSource* PMESource::source [protected] |
Referenced by get_position(), set_position(), and update_position().
Orbit PMESource::orbit [protected] |
Referenced by set_orbit(), and update_position().
MovementType PMESource::current_move_type [protected] |
Referenced by get_current_move_type(), set_current_move_type(), update_move_type(), and update_position().
MovementType PMESource::next_move_type [protected] |
Referenced by get_next_move_type(), set_next_move_type(), and update_move_type().
CPoint PMESource::trace[MAX_TRACE_LENGTH] [protected] |
Referenced by push_trace(), and update_position().
float PMESource::bounce_distance [protected] |
Referenced by set_bounce_distance(), and update_position().
CPoint PMESource::bounce_velocity [protected] |
Referenced by set_bounce_velocity(), and update_position().
unsigned PMESource::current_trace_index [protected] |
Referenced by reset_trace(), and update_position().
unsigned PMESource::trace_length [protected] |
Referenced by push_trace(), reset_trace(), and update_position().
1.5.8