Ardour  9.0-pre0-582-g084a23a80d
LevelMeterBase Class Referenceabstract

#include <level_meter.h>

Inheritance diagram for LevelMeterBase:
[legend]

Classes

struct  MeterInfo
 

Public Member Functions

 LevelMeterBase (ARDOUR::Session *, PBD::EventLoop::InvalidationRecord *ir, ArdourWidgets::FastMeter::Orientation o=ArdourWidgets::FastMeter::Vertical)
 
virtual ~LevelMeterBase ()
 
virtual void set_meter (ARDOUR::PeakMeter *meter)
 
void update_gain_sensitive ()
 
float update_meters ()
 
void update_meters_falloff ()
 
void clear_meters (bool reset_highlight=true)
 
void hide_meters ()
 
void setup_meters (int len=0, int width=3, int thin=2)
 
void set_max_audio_meter_count (uint32_t cnt=0)
 
- Public Member Functions inherited from ARDOUR::SessionHandlePtr
 SessionHandlePtr (ARDOUR::Session *s)
 
 SessionHandlePtr ()
 
virtual ~SessionHandlePtr ()
 
virtual void set_session (ARDOUR::Session *)
 
virtual ARDOUR::Sessionsession () const
 

Public Attributes

PBD::Signal< bool(GdkEventButton *)> ButtonPress
 
PBD::Signal< bool(GdkEventButton *)> ButtonRelease
 

Protected Member Functions

virtual void mtr_pack (Gtk::Widget &w)=0
 
virtual void mtr_remove (Gtk::Widget &w)=0
 
- Protected Member Functions inherited from ARDOUR::SessionHandlePtr
virtual void session_going_away ()
 

Private Member Functions

void hide_all_meters ()
 
bool meter_button_press (GdkEventButton *)
 
bool meter_button_release (GdkEventButton *)
 
void parameter_changed (std::string)
 
void configuration_changed (ARDOUR::ChanCount in, ARDOUR::ChanCount out)
 
void meter_type_changed (ARDOUR::MeterType)
 
void color_handler ()
 

Private Attributes

PBD::EventLoop::InvalidationRecordparent_invalidator
 
ARDOUR::PeakMeter_meter
 
ArdourWidgets::FastMeter::Orientation _meter_orientation
 
Width _width
 
guint16 regular_meter_width
 
int meter_length
 
guint16 thin_meter_width
 
std::vector< MeterInfometers
 
float max_peak
 
ARDOUR::MeterType visible_meter_type
 
uint32_t midi_count
 
uint32_t meter_count
 
uint32_t max_visible_meters
 
PBD::ScopedConnection _configuration_connection
 
PBD::ScopedConnection _meter_type_connection
 
PBD::ScopedConnection _parameter_connection
 
bool color_changed
 

Additional Inherited Members

- Protected Attributes inherited from ARDOUR::SessionHandlePtr
ARDOUR::Session_session
 
PBD::ScopedConnectionList _session_connections
 

Detailed Description

Definition at line 50 of file gtk2_ardour/level_meter.h.

Constructor & Destructor Documentation

◆ LevelMeterBase()

◆ ~LevelMeterBase()

virtual LevelMeterBase::~LevelMeterBase ( )
virtual

Member Function Documentation

◆ clear_meters()

void LevelMeterBase::clear_meters ( bool  reset_highlight = true)

◆ color_handler()

void LevelMeterBase::color_handler ( )
private

◆ configuration_changed()

void LevelMeterBase::configuration_changed ( ARDOUR::ChanCount  in,
ARDOUR::ChanCount  out 
)
private

◆ hide_all_meters()

void LevelMeterBase::hide_all_meters ( )
private

◆ hide_meters()

void LevelMeterBase::hide_meters ( )

◆ meter_button_press()

bool LevelMeterBase::meter_button_press ( GdkEventButton )
private

◆ meter_button_release()

bool LevelMeterBase::meter_button_release ( GdkEventButton )
private

◆ meter_type_changed()

void LevelMeterBase::meter_type_changed ( ARDOUR::MeterType  )
private

◆ mtr_pack()

virtual void LevelMeterBase::mtr_pack ( Gtk::Widget w)
protectedpure virtual

Implemented in LevelMeterVBox, and LevelMeterHBox.

◆ mtr_remove()

virtual void LevelMeterBase::mtr_remove ( Gtk::Widget w)
protectedpure virtual

Implemented in LevelMeterVBox, and LevelMeterHBox.

◆ parameter_changed()

void LevelMeterBase::parameter_changed ( std::string  )
private

◆ set_max_audio_meter_count()

void LevelMeterBase::set_max_audio_meter_count ( uint32_t  cnt = 0)

◆ set_meter()

virtual void LevelMeterBase::set_meter ( ARDOUR::PeakMeter meter)
virtual

◆ setup_meters()

void LevelMeterBase::setup_meters ( int  len = 0,
int  width = 3,
int  thin = 2 
)

◆ update_gain_sensitive()

void LevelMeterBase::update_gain_sensitive ( )

◆ update_meters()

float LevelMeterBase::update_meters ( )

◆ update_meters_falloff()

void LevelMeterBase::update_meters_falloff ( )

Member Data Documentation

◆ _configuration_connection

PBD::ScopedConnection LevelMeterBase::_configuration_connection
private

Definition at line 109 of file gtk2_ardour/level_meter.h.

◆ _meter

ARDOUR::PeakMeter* LevelMeterBase::_meter
private

Definition at line 78 of file gtk2_ardour/level_meter.h.

◆ _meter_orientation

ArdourWidgets::FastMeter::Orientation LevelMeterBase::_meter_orientation
private

Definition at line 79 of file gtk2_ardour/level_meter.h.

◆ _meter_type_connection

PBD::ScopedConnection LevelMeterBase::_meter_type_connection
private

Definition at line 110 of file gtk2_ardour/level_meter.h.

◆ _parameter_connection

PBD::ScopedConnection LevelMeterBase::_parameter_connection
private

Definition at line 111 of file gtk2_ardour/level_meter.h.

◆ _width

Width LevelMeterBase::_width
private

Definition at line 81 of file gtk2_ardour/level_meter.h.

◆ ButtonPress

PBD::Signal<bool(GdkEventButton *)> LevelMeterBase::ButtonPress

Emitted in the GUI thread when a button is pressed over the meter

Definition at line 69 of file gtk2_ardour/level_meter.h.

◆ ButtonRelease

PBD::Signal<bool(GdkEventButton *)> LevelMeterBase::ButtonRelease

Definition at line 70 of file gtk2_ardour/level_meter.h.

◆ color_changed

bool LevelMeterBase::color_changed
private

Definition at line 121 of file gtk2_ardour/level_meter.h.

◆ max_peak

float LevelMeterBase::max_peak
private

Definition at line 103 of file gtk2_ardour/level_meter.h.

◆ max_visible_meters

uint32_t LevelMeterBase::max_visible_meters
private

Definition at line 107 of file gtk2_ardour/level_meter.h.

◆ meter_count

uint32_t LevelMeterBase::meter_count
private

Definition at line 106 of file gtk2_ardour/level_meter.h.

◆ meter_length

int LevelMeterBase::meter_length
private

Definition at line 100 of file gtk2_ardour/level_meter.h.

◆ meters

std::vector<MeterInfo> LevelMeterBase::meters
private

Definition at line 102 of file gtk2_ardour/level_meter.h.

◆ midi_count

uint32_t LevelMeterBase::midi_count
private

Definition at line 105 of file gtk2_ardour/level_meter.h.

◆ parent_invalidator

PBD::EventLoop::InvalidationRecord* LevelMeterBase::parent_invalidator
private

Definition at line 77 of file gtk2_ardour/level_meter.h.

◆ regular_meter_width

guint16 LevelMeterBase::regular_meter_width
private

Definition at line 99 of file gtk2_ardour/level_meter.h.

◆ thin_meter_width

guint16 LevelMeterBase::thin_meter_width
private

Definition at line 101 of file gtk2_ardour/level_meter.h.

◆ visible_meter_type

ARDOUR::MeterType LevelMeterBase::visible_meter_type
private

Definition at line 104 of file gtk2_ardour/level_meter.h.


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