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

PStatStripChart Class Reference

#include <pStatStripChart.h>

Inheritance diagram for PStatStripChart:

PStatGraph GtkStatsStripChart List of all members.

Public Member Functions

 PStatStripChart (PStatMonitor *monitor, PStatView &view, int collector_index, int xsize, int ysize)
virtual ~PStatStripChart ()
void new_data (int frame_number)
void update ()
bool first_data () const
INLINE PStatViewget_view () const
INLINE int get_collector_index () const
INLINE void set_horizontal_scale (float time_width)
INLINE float get_horizontal_scale () const
INLINE void set_vertical_scale (float value_height)
void set_default_vertical_scale ()
void set_auto_vertical_scale ()
INLINE float get_vertical_scale () const
INLINE void set_scroll_mode (bool scroll_mode)
INLINE bool get_scroll_mode () const
int get_collector_under_pixel (int xpoint, int ypoint)
INLINE int timestamp_to_pixel (float time) const
INLINE float pixel_to_timestamp (int x) const
INLINE int height_to_pixel (float value) const
INLINE float pixel_to_height (int y) const

Protected Types

typedef pvector< ColorDataFrameData
typedef pmap< int, FrameDataData

Protected Member Functions

const FrameDataget_frame_data (int frame_number)
void changed_size (int xsize, int ysize)
void force_redraw ()
void force_reset ()
void update_labels ()
virtual void normal_guide_bars ()
virtual void clear_region ()
virtual void copy_region (int start_x, int end_x, int dest_x)
virtual void begin_draw (int from_x, int to_x)
virtual void draw_slice (int x, int frame_number)
virtual void draw_empty (int x)
virtual void draw_cursor (int x)
virtual void end_draw (int from_x, int to_x)
virtual void idle ()

Private Member Functions

void draw_frames (int first_frame, int last_frame)
void draw_pixels (int first_pixel, int last_pixel)

Private Attributes

PStatView_view
int _collector_index
bool _scroll_mode
Data _data
int _next_frame
bool _first_data
int _cursor_pixel
int _level_index
float _time_width
float _start_time
float _value_height

Member Typedef Documentation

typedef pmap<int, FrameData> PStatStripChart::Data [protected]
 

Definition at line 82 of file pStatStripChart.h.

typedef pvector<ColorData> PStatStripChart::FrameData [protected]
 

Definition at line 81 of file pStatStripChart.h.


Constructor & Destructor Documentation

PStatStripChart::PStatStripChart PStatMonitor monitor,
PStatView view,
int  collector_index,
int  xsize,
int  ysize
 

Definition at line 36 of file pStatStripChart.cxx.

References _collector_index, _cursor_pixel, _first_data, PStatGraph::_guide_bar_units, _level_index, PStatCollectorDef::_level_units, _next_frame, _scroll_mode, _start_time, _time_width, PStatGraph::_unit_name, _value_height, PStatGraph::GBU_named, PStatClientData::get_collector_def(), PStatClientData::has_collector(), pstats_scroll_mode, and set_default_vertical_scale().

PStatStripChart::~PStatStripChart  )  [virtual]
 

Definition at line 72 of file pStatStripChart.cxx.


Member Function Documentation

void PStatStripChart::begin_draw int  from_x,
int  to_x
[protected, virtual]
 

Definition at line 375 of file pStatStripChart.cxx.

Referenced by draw_pixels().

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

Definition at line 293 of file pStatStripChart.cxx.

References _cursor_pixel, _first_data, _start_time, _time_width, PStatGraph::_xsize, PStatGraph::_ysize, and draw_pixels().

Referenced by GtkStatsStripChart::configure_event_impl().

void PStatStripChart::clear_region  )  [protected, virtual]
 

Reimplemented in GtkStatsStripChart.

Definition at line 352 of file pStatStripChart.cxx.

Referenced by force_reset().

void PStatStripChart::copy_region int  start_x,
int  end_x,
int  dest_x
[protected, virtual]
 

Reimplemented in GtkStatsStripChart.

Definition at line 363 of file pStatStripChart.cxx.

Referenced by draw_frames().

void PStatStripChart::draw_cursor int  x  )  [protected, virtual]
 

Reimplemented in GtkStatsStripChart.

Definition at line 412 of file pStatStripChart.cxx.

Referenced by draw_pixels().

void PStatStripChart::draw_empty int  x  )  [protected, virtual]
 

Reimplemented in GtkStatsStripChart.

Definition at line 401 of file pStatStripChart.cxx.

Referenced by draw_pixels().

void PStatStripChart::draw_frames int  first_frame,
int  last_frame
[private]
 

Definition at line 501 of file pStatStripChart.cxx.

References _cursor_pixel, _first_data, _scroll_mode, _start_time, _time_width, _view, PStatGraph::_xsize, copy_region(), draw_pixels(), PStatThreadData::get_frame(), PStatThreadData::get_latest_frame_number(), PStatFrameData::get_start(), PStatView::get_thread_data(), PStatThreadData::has_frame(), pixel_to_timestamp(), and timestamp_to_pixel().

Referenced by update().

void PStatStripChart::draw_pixels int  first_pixel,
int  last_pixel
[private]
 

Definition at line 573 of file pStatStripChart.cxx.

References _cursor_pixel, _scroll_mode, _view, begin_draw(), draw_cursor(), draw_empty(), draw_slice(), end_draw(), PStatThreadData::get_frame_number_at_time(), PStatView::get_thread_data(), PStatThreadData::has_frame(), pixel_to_timestamp(), and x.

Referenced by changed_size(), draw_frames(), and force_redraw().

void PStatStripChart::draw_slice int  x,
int  frame_number
[protected, virtual]
 

Reimplemented in GtkStatsStripChart.

Definition at line 390 of file pStatStripChart.cxx.

Referenced by draw_pixels().

void PStatStripChart::end_draw int  from_x,
int  to_x
[protected, virtual]
 

Reimplemented in GtkStatsStripChart.

Definition at line 424 of file pStatStripChart.cxx.

Referenced by draw_pixels().

bool PStatStripChart::first_data  )  const
 

Definition at line 138 of file pStatStripChart.cxx.

References _first_data.

Referenced by GtkStatsStripChart::mark_dead().

void PStatStripChart::force_redraw  )  [protected]
 

Definition at line 326 of file pStatStripChart.cxx.

References _first_data, PStatGraph::_xsize, and draw_pixels().

Referenced by GtkStatsStripChart::mark_dead().

void PStatStripChart::force_reset  )  [protected]
 

Definition at line 339 of file pStatStripChart.cxx.

References _first_data, and clear_region().

INLINE int PStatStripChart::get_collector_index  )  const
 

int PStatStripChart::get_collector_under_pixel int  xpoint,
int  ypoint
 

Definition at line 211 of file pStatStripChart.cxx.

References PStatStripChart::ColorData::_collector_index, PStatStripChart::ColorData::_net_value, _view, get_frame_data(), PStatThreadData::get_frame_number_at_time(), PStatView::get_thread_data(), PStatGraph::get_ysize(), height_to_pixel(), pixel_to_timestamp(), and y.

Referenced by GtkStatsStripChart::button_press_event_impl().

const PStatStripChart::FrameData & PStatStripChart::get_frame_data int  frame_number  )  [protected]
 

Definition at line 248 of file pStatStripChart.cxx.

References PStatStripChart::ColorData::_collector_index, _collector_index, _data, PStatStripChart::ColorData::_net_value, _view, data, PStatViewLevel::get_collector(), PStatThreadData::get_frame(), PStatView::get_level(), PStatViewLevel::get_net_value(), PStatView::get_thread_data(), level, and PStatView::set_to_frame().

Referenced by GtkStatsStripChart::draw_slice(), get_collector_under_pixel(), and set_auto_vertical_scale().

INLINE float PStatStripChart::get_horizontal_scale  )  const
 

INLINE bool PStatStripChart::get_scroll_mode  )  const
 

INLINE float PStatStripChart::get_vertical_scale  )  const
 

Referenced by GtkStatsStripChart::draw_slice().

INLINE PStatView& PStatStripChart::get_view  )  const
 

Referenced by GtkStatsStripWindow::idle().

INLINE int PStatStripChart::height_to_pixel float  value  )  const
 

Referenced by GtkStatsStripChart::draw_slice(), GtkStatsStripChart::end_draw(), GtkStatsGuide::expose_event_impl(), and get_collector_under_pixel().

void PStatStripChart::idle  )  [protected, virtual]
 

Reimplemented in GtkStatsStripChart.

Definition at line 437 of file pStatStripChart.cxx.

Referenced by update().

void PStatStripChart::new_data int  frame_number  ) 
 

Definition at line 81 of file pStatStripChart.cxx.

References _next_frame.

void PStatStripChart::normal_guide_bars  )  [protected, virtual]
 

Implements PStatGraph.

Definition at line 490 of file pStatStripChart.cxx.

References _value_height, and PStatGraph::update_guide_bars().

INLINE float PStatStripChart::pixel_to_height int  y  )  const
 

INLINE float PStatStripChart::pixel_to_timestamp int  x  )  const
 

Referenced by draw_frames(), draw_pixels(), get_collector_under_pixel(), and set_auto_vertical_scale().

void PStatStripChart::set_auto_vertical_scale  ) 
 

Definition at line 170 of file pStatStripChart.cxx.

References PStatStripChart::ColorData::_net_value, _view, PStatGraph::_xsize, get_frame_data(), PStatThreadData::get_frame_number_at_time(), PStatView::get_thread_data(), PStatThreadData::has_frame(), pixel_to_timestamp(), set_vertical_scale(), and x.

Referenced by GtkStatsStripWindow::menu_auto_vscale().

void PStatStripChart::set_default_vertical_scale  ) 
 

Definition at line 150 of file pStatStripChart.cxx.

References _collector_index, PStatCollectorDef::_suggested_scale, PStatClientData::get_collector_def(), PStatGraph::get_target_frame_rate(), PStatClientData::has_collector(), and set_vertical_scale().

Referenced by PStatStripChart().

INLINE void PStatStripChart::set_horizontal_scale float  time_width  ) 
 

Referenced by GtkStatsStripWindow::menu_hscale().

INLINE void PStatStripChart::set_scroll_mode bool  scroll_mode  ) 
 

INLINE void PStatStripChart::set_vertical_scale float  value_height  ) 
 

Referenced by GtkStatsStripWindow::menu_vscale(), set_auto_vertical_scale(), and set_default_vertical_scale().

INLINE int PStatStripChart::timestamp_to_pixel float  time  )  const
 

Referenced by draw_frames().

void PStatStripChart::update  ) 
 

Definition at line 94 of file pStatStripChart.cxx.

References _data, _level_index, _next_frame, _time_width, _view, draw_frames(), PStatMonitor::get_client_data(), PStatThreadData::get_frame(), PStatThreadData::get_latest_frame_number(), PStatView::get_level_index(), PStatGraph::get_monitor(), PStatClientData::get_num_collectors(), PStatClientData::get_num_threads(), PStatFrameData::get_start(), PStatView::get_thread_data(), idle(), PStatThreadData::is_empty(), and update_labels().

Referenced by GtkStatsStripWindow::idle().

void PStatStripChart::update_labels  )  [protected]
 

Definition at line 462 of file pStatStripChart.cxx.

References _collector_index, PStatGraph::_labels, PStatGraph::_labels_changed, _level_index, _view, PStatViewLevel::get_collector(), PStatView::get_level(), PStatView::get_level_index(), PStatGraph::get_monitor(), and level.

Referenced by update().


Member Data Documentation

int PStatStripChart::_collector_index [private]
 

Definition at line 106 of file pStatStripChart.h.

Referenced by get_frame_data(), PStatStripChart(), set_default_vertical_scale(), and update_labels().

int PStatStripChart::_cursor_pixel [private]
 

Definition at line 113 of file pStatStripChart.h.

Referenced by changed_size(), draw_frames(), draw_pixels(), and PStatStripChart().

Data PStatStripChart::_data [private]
 

Definition at line 109 of file pStatStripChart.h.

Referenced by get_frame_data(), and update().

bool PStatStripChart::_first_data [private]
 

Definition at line 112 of file pStatStripChart.h.

Referenced by changed_size(), draw_frames(), first_data(), force_redraw(), force_reset(), and PStatStripChart().

int PStatStripChart::_level_index [private]
 

Definition at line 115 of file pStatStripChart.h.

Referenced by PStatStripChart(), update(), and update_labels().

int PStatStripChart::_next_frame [private]
 

Definition at line 111 of file pStatStripChart.h.

Referenced by new_data(), PStatStripChart(), and update().

bool PStatStripChart::_scroll_mode [private]
 

Definition at line 107 of file pStatStripChart.h.

Referenced by draw_frames(), draw_pixels(), and PStatStripChart().

float PStatStripChart::_start_time [private]
 

Definition at line 118 of file pStatStripChart.h.

Referenced by changed_size(), draw_frames(), and PStatStripChart().

float PStatStripChart::_time_width [private]
 

Definition at line 117 of file pStatStripChart.h.

Referenced by changed_size(), draw_frames(), PStatStripChart(), and update().

float PStatStripChart::_value_height [private]
 

Definition at line 119 of file pStatStripChart.h.

Referenced by normal_guide_bars(), and PStatStripChart().

PStatView& PStatStripChart::_view [private]
 

Definition at line 105 of file pStatStripChart.h.

Referenced by draw_frames(), draw_pixels(), get_collector_under_pixel(), get_frame_data(), set_auto_vertical_scale(), update(), and update_labels().


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