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

PStatPianoRoll Class Reference

#include <pStatPianoRoll.h>

Inheritance diagram for PStatPianoRoll:

PStatGraph GtkStatsPianoRoll List of all members.

Public Member Functions

 PStatPianoRoll (PStatMonitor *monitor, int thread_index, int xsize, int ysize)
virtual ~PStatPianoRoll ()
void update ()
INLINE void set_horizontal_scale (float time_width)
INLINE float get_horizontal_scale () const
INLINE int timestamp_to_pixel (float time) const
INLINE float pixel_to_timestamp (int x) const

Protected Member Functions

void changed_size (int xsize, int ysize)
void force_redraw ()
virtual void normal_guide_bars ()
virtual void begin_draw ()
virtual void begin_row (int row)
virtual void draw_bar (int row, int from_x, int to_x)
virtual void end_row (int row)
virtual void end_draw ()
virtual void idle ()

Private Types

typedef pvector< ColorBarColorBars
typedef pmap< int, BarBuilderPageData

Private Member Functions

void compute_page (const PStatFrameData &frame_data)

Private Attributes

int _thread_index
float _time_width
float _start_time
PageData _page_data
int _current_frame

Member Typedef Documentation

typedef pvector<ColorBar> PStatPianoRoll::ColorBars [private]
 

Definition at line 86 of file pStatPianoRoll.h.

typedef pmap<int, BarBuilder> PStatPianoRoll::PageData [private]
 

Definition at line 99 of file pStatPianoRoll.h.


Constructor & Destructor Documentation

PStatPianoRoll::PStatPianoRoll PStatMonitor monitor,
int  thread_index,
int  xsize,
int  ysize
 

Definition at line 92 of file pStatPianoRoll.cxx.

References _current_frame, PStatGraph::_guide_bar_units, _start_time, _thread_index, _time_width, PStatGraph::GBU_hz, PStatGraph::GBU_ms, PStatGraph::GBU_show_units, normal_guide_bars(), and pstats_target_frame_rate.

PStatPianoRoll::~PStatPianoRoll  )  [virtual]
 

Definition at line 110 of file pStatPianoRoll.cxx.


Member Function Documentation

void PStatPianoRoll::begin_draw  )  [protected, virtual]
 

Reimplemented in GtkStatsPianoRoll.

Definition at line 205 of file pStatPianoRoll.cxx.

Referenced by force_redraw().

void PStatPianoRoll::begin_row int  row  )  [protected, virtual]
 

Definition at line 218 of file pStatPianoRoll.cxx.

Referenced by force_redraw().

void PStatPianoRoll::changed_size int  xsize,
int  ysize
[protected]
 

Definition at line 150 of file pStatPianoRoll.cxx.

References PStatGraph::_xsize, PStatGraph::_ysize, force_redraw(), and normal_guide_bars().

Referenced by GtkStatsPianoRoll::configure_event_impl().

void PStatPianoRoll::compute_page const PStatFrameData frame_data  )  [private]
 

Definition at line 288 of file pStatPianoRoll.cxx.

References PStatGraph::_labels, PStatGraph::_labels_changed, _page_data, _start_time, PStatFrameData::get_end(), PStatFrameData::get_num_events(), PStatFrameData::get_start(), PStatFrameData::get_time(), PStatFrameData::get_time_collector(), PStatClientData::has_collector(), and size_t.

Referenced by update().

void PStatPianoRoll::draw_bar int  row,
int  from_x,
int  to_x
[protected, virtual]
 

Reimplemented in GtkStatsPianoRoll.

Definition at line 229 of file pStatPianoRoll.cxx.

Referenced by force_redraw().

void PStatPianoRoll::end_draw  )  [protected, virtual]
 

Reimplemented in GtkStatsPianoRoll.

Definition at line 251 of file pStatPianoRoll.cxx.

Referenced by force_redraw().

void PStatPianoRoll::end_row int  row  )  [protected, virtual]
 

Definition at line 240 of file pStatPianoRoll.cxx.

Referenced by force_redraw().

void PStatPianoRoll::force_redraw  )  [protected]
 

Definition at line 167 of file pStatPianoRoll.cxx.

References PStatPianoRoll::ColorBar::_end, PStatGraph::_labels, _page_data, PStatPianoRoll::ColorBar::_start, begin_draw(), begin_row(), draw_bar(), end_draw(), end_row(), and timestamp_to_pixel().

Referenced by changed_size(), GtkStatsPianoRoll::mark_dead(), and update().

INLINE float PStatPianoRoll::get_horizontal_scale  )  const
 

Referenced by GtkStatsPianoRoll::begin_draw(), and GtkStatsPianoRoll::end_draw().

void PStatPianoRoll::idle  )  [protected, virtual]
 

Reimplemented in GtkStatsPianoRoll.

Definition at line 262 of file pStatPianoRoll.cxx.

Referenced by update().

void PStatPianoRoll::normal_guide_bars  )  [protected, virtual]
 

Implements PStatGraph.

Definition at line 193 of file pStatPianoRoll.cxx.

References _time_width, PStatGraph::get_xsize(), and PStatGraph::update_guide_bars().

Referenced by changed_size(), and PStatPianoRoll().

INLINE float PStatPianoRoll::pixel_to_timestamp int  x  )  const
 

INLINE void PStatPianoRoll::set_horizontal_scale float  time_width  ) 
 

Referenced by GtkStatsPianoWindow::menu_hscale().

INLINE int PStatPianoRoll::timestamp_to_pixel float  time  )  const
 

Referenced by force_redraw().

void PStatPianoRoll::update  ) 
 

Definition at line 119 of file pStatPianoRoll.cxx.

References _current_frame, _thread_index, compute_page(), force_redraw(), PStatThreadData::get_frame(), PStatThreadData::get_latest_frame_number(), PStatClientData::get_num_collectors(), PStatClientData::get_num_threads(), PStatClientData::get_thread_data(), idle(), and PStatThreadData::is_empty().

Referenced by GtkStatsPianoWindow::idle().


Member Data Documentation

int PStatPianoRoll::_current_frame [private]
 

Definition at line 101 of file pStatPianoRoll.h.

Referenced by PStatPianoRoll(), and update().

PageData PStatPianoRoll::_page_data [private]
 

Definition at line 100 of file pStatPianoRoll.h.

Referenced by compute_page(), and force_redraw().

float PStatPianoRoll::_start_time [private]
 

Definition at line 79 of file pStatPianoRoll.h.

Referenced by compute_page(), and PStatPianoRoll().

int PStatPianoRoll::_thread_index [private]
 

Definition at line 76 of file pStatPianoRoll.h.

Referenced by PStatPianoRoll(), and update().

float PStatPianoRoll::_time_width [private]
 

Definition at line 78 of file pStatPianoRoll.h.

Referenced by normal_guide_bars(), and PStatPianoRoll().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 01:01:23 2003 for Panda-Tool by doxygen1.3