Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ClockObject Class Reference

#include <clockObject.h>

List of all members.

Private Member Functions

 ClockObject ()
INLINE ~ClockObject ()
INLINE void set_mode (Mode mode)
INLINE Mode get_mode () const
INLINE double get_frame_time () const
INLINE double get_real_time () const
INLINE double get_long_time () const
INLINE void reset ()
void set_real_time (double time)
void set_frame_time (double time)
void set_frame_count (int frame_count)
INLINE int get_frame_count () const
INLINE double get_frame_rate () const
INLINE double get_dt () const
INLINE void set_dt (double dt)
INLINE double get_max_dt () const
INLINE void set_max_dt (double max_dt)
void tick ()
void sync_frame_time ()

Static Private Member Functions

INLINE ClockObject * get_global_clock ()

Private Attributes

PUBLISHED __pad0__: enum Mode { M_normal
PUBLISHED M_non_real_time
TrueClock_true_clock
Mode _mode
double _start_short_time
double _start_long_time
int _frame_count
double _actual_frame_time
double _reported_frame_time
double _dt
double _max_dt

Static Private Attributes

ClockObject * _global_clock = (ClockObject *)NULL


Constructor & Destructor Documentation

ClockObject::ClockObject  )  [private]
 

Definition at line 32 of file clockObject.cxx.

References _actual_frame_time, _dt, _frame_count, _max_dt, _mode, _reported_frame_time, _start_long_time, _start_short_time, _true_clock, TrueClock::get_long_time(), TrueClock::get_ptr(), and TrueClock::get_short_time().

INLINE ClockObject::~ClockObject  )  [private]
 


Member Function Documentation

INLINE double ClockObject::get_dt  )  const [private]
 

Referenced by DriveInterface::apply(), event_csn_update(), CollisionHandlerFloor::handle_entries(), herc_idle(), panda_idle(), and AutonomousLerp::step().

INLINE int ClockObject::get_frame_count  )  const [private]
 

Referenced by ClientBase::do_poll(), PandaFramework::report_frame_rate(), PandaFramework::reset_frame_rate(), and set_frame_count().

INLINE double ClockObject::get_frame_rate  )  const [private]
 

INLINE double ClockObject::get_frame_time  )  const [private]
 

Referenced by ClientBase::do_poll(), SequenceNode::CData::fillin(), DriveInterface::KeyHeld::get_effect(), load_gridded_models(), AnimControl::loop(), main(), move_gridded_stuff(), AnimControl::pingpong(), AnimControl::play(), AnimControl::pose(), PGEntry::press(), PandaFramework::report_frame_rate(), PandaFramework::reset_frame_rate(), PGEntry::set_focus(), set_frame_time(), DriveInterface::KeyHeld::set_key(), PGEntry::update_cursor(), Character::update_to_now(), and SequenceNode::CData::write_datagram().

INLINE ClockObject* ClockObject::get_global_clock  )  [static, private]
 

Referenced by DriveInterface::apply(), Connection::consider_flush(), QueuedConnectionReader::delay_datagram(), Connection::do_flush(), ClientBase::do_poll(), event_csn_update(), TimedCycle::fillin(), SequenceNode::CData::fillin(), QueuedConnectionReader::get_delayed(), DriveInterface::KeyHeld::get_effect(), CollisionHandlerFloor::handle_entries(), herc_idle(), load_gridded_models(), AnimControl::loop(), main(), move_gridded_stuff(), panda_idle(), AnimControl::pingpong(), AnimControl::play(), AnimControl::pose(), PGEntry::press(), GraphicsEngine::render_frame(), PandaFramework::report_frame_rate(), PandaFramework::reset_frame_rate(), Connection::send_datagram(), Connection::send_raw_datagram(), PGEntry::set_focus(), DriveInterface::KeyHeld::set_key(), AutonomousLerp::step(), PGEntry::update_cursor(), Character::update_to_now(), and SequenceNode::CData::write_datagram().

INLINE double ClockObject::get_long_time  )  const [private]
 

INLINE double ClockObject::get_max_dt  )  const [private]
 

INLINE Mode ClockObject::get_mode  )  const [private]
 

INLINE double ClockObject::get_real_time  )  const [private]
 

Referenced by Connection::consider_flush(), QueuedConnectionReader::delay_datagram(), Connection::do_flush(), TimedCycle::fillin(), QueuedConnectionReader::get_delayed(), Connection::send_datagram(), Connection::send_raw_datagram(), set_real_time(), sync_frame_time(), and tick().

INLINE void ClockObject::reset  )  [private]
 

INLINE void ClockObject::set_dt double  dt  )  [private]
 

void ClockObject::set_frame_count int  frame_count  )  [private]
 

Definition at line 96 of file clockObject.cxx.

References _frame_count, _global_clock, and get_frame_count().

void ClockObject::set_frame_time double  time  )  [private]
 

Definition at line 76 of file clockObject.cxx.

References _actual_frame_time, _global_clock, _reported_frame_time, and get_frame_time().

INLINE void ClockObject::set_max_dt double  max_dt  )  [private]
 

INLINE void ClockObject::set_mode Mode  mode  )  [private]
 

void ClockObject::set_real_time double  time  )  [private]
 

Definition at line 55 of file clockObject.cxx.

References _global_clock, _start_long_time, _start_short_time, _true_clock, TrueClock::get_long_time(), get_real_time(), and TrueClock::get_short_time().

void ClockObject::sync_frame_time  )  [private]
 

Definition at line 154 of file clockObject.cxx.

References _mode, _reported_frame_time, and get_real_time().

void ClockObject::tick  )  [private]
 

Definition at line 118 of file clockObject.cxx.

References _actual_frame_time, _dt, _frame_count, _max_dt, _reported_frame_time, get_real_time(), and M_non_real_time.

Referenced by main(), and GraphicsEngine::render_frame().


Member Data Documentation

PUBLISHED ClockObject::__pad0__ [private]
 

Definition at line 69 of file clockObject.h.

double ClockObject::_actual_frame_time [private]
 

Definition at line 108 of file clockObject.h.

Referenced by ClockObject(), set_frame_time(), and tick().

double ClockObject::_dt [private]
 

Definition at line 110 of file clockObject.h.

Referenced by ClockObject(), and tick().

int ClockObject::_frame_count [private]
 

Definition at line 107 of file clockObject.h.

Referenced by ClockObject(), set_frame_count(), and tick().

ClockObject * ClockObject::_global_clock = (ClockObject *)NULL [static, private]
 

Definition at line 23 of file clockObject.cxx.

Referenced by set_frame_count(), set_frame_time(), and set_real_time().

double ClockObject::_max_dt [private]
 

Definition at line 111 of file clockObject.h.

Referenced by ClockObject(), and tick().

Mode ClockObject::_mode [private]
 

Definition at line 104 of file clockObject.h.

Referenced by ClockObject(), and sync_frame_time().

double ClockObject::_reported_frame_time [private]
 

Definition at line 109 of file clockObject.h.

Referenced by ClockObject(), set_frame_time(), sync_frame_time(), and tick().

double ClockObject::_start_long_time [private]
 

Definition at line 106 of file clockObject.h.

Referenced by ClockObject(), and set_real_time().

double ClockObject::_start_short_time [private]
 

Definition at line 105 of file clockObject.h.

Referenced by ClockObject(), and set_real_time().

TrueClock* ClockObject::_true_clock [private]
 

Definition at line 103 of file clockObject.h.

Referenced by ClockObject(), and set_real_time().

PUBLISHED ClockObject::M_non_real_time [private]
 

Definition at line 69 of file clockObject.h.

Referenced by tick().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:11:34 2003 for Panda by doxygen1.3