Ardour  9.0-pre0-386-g96ef4d20f2
ArdourWaveView::WaveViewProperties Struct Reference

#include <wave_view_private.h>

Public Member Functions

 WaveViewProperties (std::shared_ptr< ARDOUR::AudioRegion > region)
 
bool is_valid () const
 
void set_width_samples (ARDOUR::samplecnt_t const width_samples)
 
uint64_t get_width_pixels () const
 
void set_sample_offsets (samplepos_t const start, samplepos_t const end)
 
samplepos_t get_sample_start () const
 
samplepos_t get_sample_end () const
 
void set_sample_positions_from_pixel_offsets (double start_pixel, double end_pixel)
 
ARDOUR::samplecnt_t get_length_samples () const
 
samplepos_t get_center_sample () const
 
bool is_equivalent (WaveViewProperties const &other)
 
bool contains (samplepos_t start, samplepos_t end)
 

Public Attributes

samplepos_t region_start
 
samplepos_t region_end
 
uint16_t channel
 
double height
 
double samples_per_pixel
 
double amplitude
 
double amplitude_above_axis
 
Gtkmm2ext::Color fill_color
 
Gtkmm2ext::Color outline_color
 
Gtkmm2ext::Color zero_color
 
Gtkmm2ext::Color clip_color
 
bool show_zero
 
bool logscaled
 
WaveView::Shape shape
 
double gradient_depth
 
double start_shift
 

Private Attributes

samplepos_t sample_start
 
samplepos_t sample_end
 

Detailed Description

Definition at line 33 of file wave_view_private.h.

Constructor & Destructor Documentation

◆ WaveViewProperties()

ArdourWaveView::WaveViewProperties::WaveViewProperties ( std::shared_ptr< ARDOUR::AudioRegion region)

Member Function Documentation

◆ contains()

bool ArdourWaveView::WaveViewProperties::contains ( samplepos_t  start,
samplepos_t  end 
)
inline

Definition at line 161 of file wave_view_private.h.

◆ get_center_sample()

samplepos_t ArdourWaveView::WaveViewProperties::get_center_sample ( ) const
inline

Definition at line 143 of file wave_view_private.h.

◆ get_length_samples()

ARDOUR::samplecnt_t ArdourWaveView::WaveViewProperties::get_length_samples ( ) const
inline

Definition at line 137 of file wave_view_private.h.

◆ get_sample_end()

samplepos_t ArdourWaveView::WaveViewProperties::get_sample_end ( ) const
inline

Definition at line 120 of file wave_view_private.h.

◆ get_sample_start()

samplepos_t ArdourWaveView::WaveViewProperties::get_sample_start ( ) const
inline

Definition at line 115 of file wave_view_private.h.

◆ get_width_pixels()

uint64_t ArdourWaveView::WaveViewProperties::get_width_pixels ( ) const
inline

Definition at line 85 of file wave_view_private.h.

◆ is_equivalent()

bool ArdourWaveView::WaveViewProperties::is_equivalent ( WaveViewProperties const &  other)
inline

Definition at line 148 of file wave_view_private.h.

◆ is_valid()

bool ArdourWaveView::WaveViewProperties::is_valid ( ) const
inline

Definition at line 68 of file wave_view_private.h.

◆ set_sample_offsets()

void ArdourWaveView::WaveViewProperties::set_sample_offsets ( samplepos_t const  start,
samplepos_t const  end 
)
inline

Definition at line 91 of file wave_view_private.h.

◆ set_sample_positions_from_pixel_offsets()

void ArdourWaveView::WaveViewProperties::set_sample_positions_from_pixel_offsets ( double  start_pixel,
double  end_pixel 
)
inline

It is possible for the new sample positions to be past the region_end, so we have to do bounds checking/adjustment for this in set_sample_offsets.

Definition at line 125 of file wave_view_private.h.

◆ set_width_samples()

void ArdourWaveView::WaveViewProperties::set_width_samples ( ARDOUR::samplecnt_t const  width_samples)
inline

Definition at line 73 of file wave_view_private.h.

Member Data Documentation

◆ amplitude

double ArdourWaveView::WaveViewProperties::amplitude

Definition at line 49 of file wave_view_private.h.

◆ amplitude_above_axis

double ArdourWaveView::WaveViewProperties::amplitude_above_axis

Definition at line 50 of file wave_view_private.h.

◆ channel

uint16_t ArdourWaveView::WaveViewProperties::channel

Definition at line 46 of file wave_view_private.h.

◆ clip_color

Gtkmm2ext::Color ArdourWaveView::WaveViewProperties::clip_color

Definition at line 54 of file wave_view_private.h.

◆ fill_color

Gtkmm2ext::Color ArdourWaveView::WaveViewProperties::fill_color

Definition at line 51 of file wave_view_private.h.

◆ gradient_depth

double ArdourWaveView::WaveViewProperties::gradient_depth

Definition at line 58 of file wave_view_private.h.

◆ height

double ArdourWaveView::WaveViewProperties::height

Definition at line 47 of file wave_view_private.h.

◆ logscaled

bool ArdourWaveView::WaveViewProperties::logscaled

Definition at line 56 of file wave_view_private.h.

◆ outline_color

Gtkmm2ext::Color ArdourWaveView::WaveViewProperties::outline_color

Definition at line 52 of file wave_view_private.h.

◆ region_end

samplepos_t ArdourWaveView::WaveViewProperties::region_end

Definition at line 45 of file wave_view_private.h.

◆ region_start

samplepos_t ArdourWaveView::WaveViewProperties::region_start

Definition at line 44 of file wave_view_private.h.

◆ sample_end

samplepos_t ArdourWaveView::WaveViewProperties::sample_end
private

Definition at line 64 of file wave_view_private.h.

◆ sample_start

samplepos_t ArdourWaveView::WaveViewProperties::sample_start
private

Definition at line 63 of file wave_view_private.h.

◆ samples_per_pixel

double ArdourWaveView::WaveViewProperties::samples_per_pixel

Definition at line 48 of file wave_view_private.h.

◆ shape

WaveView::Shape ArdourWaveView::WaveViewProperties::shape

Definition at line 57 of file wave_view_private.h.

◆ show_zero

bool ArdourWaveView::WaveViewProperties::show_zero

Definition at line 55 of file wave_view_private.h.

◆ start_shift

double ArdourWaveView::WaveViewProperties::start_shift

Definition at line 59 of file wave_view_private.h.

◆ zero_color

Gtkmm2ext::Color ArdourWaveView::WaveViewProperties::zero_color

Definition at line 53 of file wave_view_private.h.


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