BC_Meter Class Reference

#include <bcmeter.h>

Inherits BC_SubWindow.

Inherited by AMeterPatch, and MeterMeter.

Collaboration diagram for BC_Meter:

Collaboration graph
[legend]

Public Member Functions

 BC_Meter (int x, int y, int orientation, int pixels, int min, int max, int mode, int use_titles, long over_delay, long peak_delay)
virtual ~BC_Meter ()
int initialize ()
void set_images (VFrame **data)
int set_delays (int over_delay, int peak_delay)
int region_pixel (int region)
int region_pixels (int region)
virtual int button_press_event ()
int update (float new_value, int over)
int reposition_window (int x, int y, int pixels)
int reset ()
int reset_over ()
int change_format (int mode, int min, int max)

Static Public Member Functions

static int get_title_w ()
static int get_meter_w ()

Private Member Functions

void draw_titles ()
void draw_face ()
int level_to_pixel (float level)
void get_divisions ()

Private Attributes

BC_Pixmapimages [TOTAL_METER_IMAGES]
int orientation
int pixels
int low_division
int medium_division
int high_division
int use_titles
ArrayList< int > tick_pixels
ArrayList< int > title_pixels
ArrayList< char * > db_titles
float level
float peak
int mode
DB db
int peak_timer
int peak_pixel
int level_pixel
int peak_pixel1
int peak_pixel2
int over_count
int over_timer
int min
int max
long over_delay
long peak_delay

Detailed Description

Definition at line 18 of file bcmeter.h.


Constructor & Destructor Documentation

BC_Meter::BC_Meter ( int  x,
int  y,
int  orientation,
int  pixels,
int  min,
int  max,
int  mode,
int  use_titles,
long  over_delay,
long  peak_delay 
)

Definition at line 25 of file bcmeter.C.

References db_titles, images, and ArrayList< TYPE >::set_array_delete().

Here is the call graph for this function:

BC_Meter::~BC_Meter (  )  [virtual]

Definition at line 49 of file bcmeter.C.

References db_titles, images, ArrayList< TYPE >::remove_all(), ArrayList< TYPE >::remove_all_objects(), tick_pixels, and title_pixels.

Here is the call graph for this function:


Member Function Documentation

int BC_Meter::initialize (  )  [virtual]

void BC_Meter::set_images ( VFrame **  data  ) 

Definition at line 107 of file bcmeter.C.

References BC_WindowBase::BC_Pixmap, images, and BC_WindowBase::parent_window.

Referenced by initialize().

int BC_Meter::set_delays ( int  over_delay,
int  peak_delay 
)

Definition at line 68 of file bcmeter.C.

int BC_Meter::region_pixel ( int  region  ) 

Definition at line 327 of file bcmeter.C.

References BC_WindowBase::get_resources(), VFrame::get_w(), METER_RIGHT, and BC_Resources::xmeter_images.

Referenced by draw_face().

Here is the call graph for this function:

int BC_Meter::region_pixels ( int  region  ) 

Definition at line 340 of file bcmeter.C.

References BC_WindowBase::get_resources(), BC_WindowBase::get_w(), VFrame::get_w(), METER_MID, and BC_Resources::xmeter_images.

Referenced by draw_face().

Here is the call graph for this function:

int BC_Meter::button_press_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Reimplemented in AMeterPatch, and MeterMeter.

Definition at line 147 of file bcmeter.C.

References BC_WindowBase::cursor_inside(), BC_WindowBase::is_event_win(), and reset_over().

Here is the call graph for this function:

int BC_Meter::get_title_w (  )  [static]

Definition at line 57 of file bcmeter.C.

References BC_WindowBase::get_resources(), and BC_Resources::meter_title_w.

Referenced by draw_face(), draw_titles(), MeterPanel::get_meter_w(), MeterPanel::get_meters_width(), and initialize().

Here is the call graph for this function:

int BC_Meter::get_meter_w (  )  [static]

Definition at line 62 of file bcmeter.C.

References BC_WindowBase::get_resources(), VFrame::get_w(), and BC_Resources::ymeter_images.

Referenced by MeterPanel::get_meter_w(), and MeterPanel::get_meters_width().

Here is the call graph for this function:

int BC_Meter::update ( float  new_value,
int  over 
)

Definition at line 495 of file bcmeter.C.

References db, draw_face(), level, METER_DB, min, mode, over_delay, over_timer, peak, peak_delay, peak_timer, and DB::todb().

Referenced by RecordAudio::run(), MeterPanel::update(), and PatchBay::update_meters().

Here is the call graph for this function:

int BC_Meter::reposition_window ( int  x,
int  y,
int  pixels 
)

int BC_Meter::reset (  ) 

Definition at line 135 of file bcmeter.C.

References draw_face(), level, level_pixel, min, over_count, over_timer, peak, peak_pixel, and peak_timer.

Referenced by RecordAudio::run(), PatchBay::stop_meters(), and MeterPanel::stop_meters().

Here is the call graph for this function:

int BC_Meter::reset_over (  ) 

int BC_Meter::change_format ( int  mode,
int  min,
int  max 
)

Definition at line 164 of file bcmeter.C.

References BC_WindowBase::get_x(), BC_WindowBase::get_y(), pixels, and reposition_window().

Referenced by MeterPanel::change_format(), and PatchBay::change_meter_format().

Here is the call graph for this function:

void BC_Meter::draw_titles (  )  [private]

void BC_Meter::draw_face (  )  [private]

int BC_Meter::level_to_pixel ( float  level  )  [private]

Definition at line 173 of file bcmeter.C.

References max, METER_DB, min, mode, and pixels.

Referenced by draw_face().

void BC_Meter::get_divisions (  )  [private]


Field Documentation

BC_Pixmap* BC_Meter::images[TOTAL_METER_IMAGES] [private]

Definition at line 56 of file bcmeter.h.

Referenced by BC_Meter(), draw_face(), initialize(), set_images(), and ~BC_Meter().

int BC_Meter::orientation [private]

Definition at line 57 of file bcmeter.h.

Referenced by draw_face(), draw_titles(), get_divisions(), initialize(), and reposition_window().

int BC_Meter::pixels [private]

int BC_Meter::low_division [private]

Definition at line 60 of file bcmeter.h.

Referenced by draw_face(), and get_divisions().

Definition at line 61 of file bcmeter.h.

Referenced by draw_face(), and get_divisions().

int BC_Meter::high_division [private]

Definition at line 62 of file bcmeter.h.

Referenced by draw_face(), and get_divisions().

int BC_Meter::use_titles [private]

Definition at line 63 of file bcmeter.h.

Referenced by draw_face(), draw_titles(), and initialize().

Definition at line 65 of file bcmeter.h.

Referenced by draw_titles(), get_divisions(), and ~BC_Meter().

Definition at line 67 of file bcmeter.h.

Referenced by draw_titles(), get_divisions(), and ~BC_Meter().

ArrayList<char*> BC_Meter::db_titles [private]

Definition at line 68 of file bcmeter.h.

Referenced by BC_Meter(), draw_titles(), get_divisions(), and ~BC_Meter().

float BC_Meter::level [private]

Definition at line 69 of file bcmeter.h.

Referenced by draw_face(), initialize(), reset(), and update().

float BC_Meter::peak [private]

Definition at line 69 of file bcmeter.h.

Referenced by draw_face(), initialize(), reset(), and update().

int BC_Meter::mode [private]

Definition at line 70 of file bcmeter.h.

Referenced by level_to_pixel(), and update().

DB BC_Meter::db [private]

Definition at line 71 of file bcmeter.h.

Referenced by update().

int BC_Meter::peak_timer [private]

Definition at line 72 of file bcmeter.h.

Referenced by initialize(), reset(), and update().

int BC_Meter::peak_pixel [private]

Definition at line 79 of file bcmeter.h.

Referenced by initialize(), and reset().

int BC_Meter::level_pixel [private]

Definition at line 79 of file bcmeter.h.

Referenced by draw_face(), initialize(), and reset().

int BC_Meter::peak_pixel1 [private]

Definition at line 79 of file bcmeter.h.

Referenced by draw_face().

int BC_Meter::peak_pixel2 [private]

Definition at line 79 of file bcmeter.h.

Referenced by draw_face().

int BC_Meter::over_count [private]

Definition at line 80 of file bcmeter.h.

Referenced by initialize(), and reset().

int BC_Meter::over_timer [private]

Definition at line 80 of file bcmeter.h.

Referenced by draw_face(), initialize(), reset(), reset_over(), and update().

int BC_Meter::min [private]

Definition at line 81 of file bcmeter.h.

Referenced by get_divisions(), level_to_pixel(), reset(), and update().

int BC_Meter::max [private]

Definition at line 82 of file bcmeter.h.

Referenced by get_divisions(), and level_to_pixel().

long BC_Meter::over_delay [private]

Definition at line 83 of file bcmeter.h.

Referenced by update().

long BC_Meter::peak_delay [private]

Definition at line 84 of file bcmeter.h.

Referenced by update().


The documentation for this class was generated from the following files:

Generated on Mon Apr 28 14:14:35 2008 for Cinelerra by  doxygen 1.5.5