Ardour  9.0-pre0-822-g12e3bc5c20
FFTGraph Class Reference

#include <fft_graph.h>

Inheritance diagram for FFTGraph:
[legend]

Public Member Functions

 FFTGraph (int windowSize)
 
 ~FFTGraph ()
 
void set_analysis_window (AnalysisWindow *a_window)
 
int windowSize () const
 
void setWindowSize (int windowSize)
 
void redraw ()
 
bool on_expose_event (GdkEventExpose *event)
 
bool on_motion_notify_event (GdkEventMotion *)
 
bool on_leave_notify_event (GdkEventCrossing *)
 
bool on_button_press_event (GdkEventButton *)
 
void on_size_request (Gtk::Requisition *requisition)
 
void on_size_allocate (Gtk::Allocation &alloc)
 
FFTResultprepareResult (Gdk::Color color, std::string trackname)
 
void set_show_minmax (bool v)
 
void set_show_normalized (bool v)
 
void set_show_proportioanl (bool v)
 

Private Member Functions

void update_size ()
 
void setWindowSize_internal (int windowSize)
 
int draw_scales (cairo_t *)
 

Private Attributes

int currentScaleWidth
 
int width
 
int height
 
int _yoff
 
int _ann_x
 
int _ann_y
 
cairo_rectangle_t _ann_area
 
unsigned int _windowSize
 
unsigned int _dataSize
 
Glib::RefPtr< Pango::Layout > layout
 
cairo_surface_t * _surface
 
AnalysisWindow_a_window
 
fftwf_plan _plan
 
float * _out
 
float * _in
 
float * _hanning
 
int * _logScale
 
bool _show_minmax
 
bool _show_normalized
 
bool _show_proportional
 
float _fft_start
 
float _fft_end
 
float _fft_log_base
 

Static Private Attributes

static const int minScaleWidth = 512
 
static const int minScaleHeight = 420
 
static const int hl_margin = 40
 
static const int hr_margin = 12
 
static const int v_margin = 12
 

Friends

class FFTResult
 

Detailed Description

Definition at line 39 of file fft_graph.h.

Constructor & Destructor Documentation

◆ FFTGraph()

FFTGraph::FFTGraph ( int  windowSize)

◆ ~FFTGraph()

FFTGraph::~FFTGraph ( )

Member Function Documentation

◆ draw_scales()

int FFTGraph::draw_scales ( cairo_t *  )
private

◆ on_button_press_event()

bool FFTGraph::on_button_press_event ( GdkEventButton *  )
inline

Definition at line 55 of file fft_graph.h.

◆ on_expose_event()

bool FFTGraph::on_expose_event ( GdkEventExpose *  event)

◆ on_leave_notify_event()

bool FFTGraph::on_leave_notify_event ( GdkEventCrossing *  )

◆ on_motion_notify_event()

bool FFTGraph::on_motion_notify_event ( GdkEventMotion *  )

◆ on_size_allocate()

void FFTGraph::on_size_allocate ( Gtk::Allocation &  alloc)

◆ on_size_request()

void FFTGraph::on_size_request ( Gtk::Requisition *  requisition)

◆ prepareResult()

FFTResult* FFTGraph::prepareResult ( Gdk::Color  color,
std::string  trackname 
)

◆ redraw()

void FFTGraph::redraw ( )

◆ set_analysis_window()

void FFTGraph::set_analysis_window ( AnalysisWindow a_window)

◆ set_show_minmax()

void FFTGraph::set_show_minmax ( bool  v)
inline

Definition at line 61 of file fft_graph.h.

◆ set_show_normalized()

void FFTGraph::set_show_normalized ( bool  v)
inline

Definition at line 62 of file fft_graph.h.

◆ set_show_proportioanl()

void FFTGraph::set_show_proportioanl ( bool  v)
inline

Definition at line 63 of file fft_graph.h.

◆ setWindowSize()

void FFTGraph::setWindowSize ( int  windowSize)

◆ setWindowSize_internal()

void FFTGraph::setWindowSize_internal ( int  windowSize)
private

◆ update_size()

void FFTGraph::update_size ( )
private

◆ windowSize()

int FFTGraph::windowSize ( ) const
inline

Definition at line 48 of file fft_graph.h.

Friends And Related Function Documentation

◆ FFTResult

friend class FFTResult
friend

Definition at line 113 of file fft_graph.h.

Member Data Documentation

◆ _a_window

AnalysisWindow* FFTGraph::_a_window
private

Definition at line 96 of file fft_graph.h.

◆ _ann_area

cairo_rectangle_t FFTGraph::_ann_area
private

Definition at line 88 of file fft_graph.h.

◆ _ann_x

int FFTGraph::_ann_x
private

Definition at line 86 of file fft_graph.h.

◆ _ann_y

int FFTGraph::_ann_y
private

Definition at line 87 of file fft_graph.h.

◆ _dataSize

unsigned int FFTGraph::_dataSize
private

Definition at line 91 of file fft_graph.h.

◆ _fft_end

float FFTGraph::_fft_end
private

Definition at line 110 of file fft_graph.h.

◆ _fft_log_base

float FFTGraph::_fft_log_base
private

Definition at line 111 of file fft_graph.h.

◆ _fft_start

float FFTGraph::_fft_start
private

Definition at line 109 of file fft_graph.h.

◆ _hanning

float* FFTGraph::_hanning
private

Definition at line 102 of file fft_graph.h.

◆ _in

float* FFTGraph::_in
private

Definition at line 101 of file fft_graph.h.

◆ _logScale

int* FFTGraph::_logScale
private

Definition at line 103 of file fft_graph.h.

◆ _out

float* FFTGraph::_out
private

Definition at line 100 of file fft_graph.h.

◆ _plan

fftwf_plan FFTGraph::_plan
private

Definition at line 98 of file fft_graph.h.

◆ _show_minmax

bool FFTGraph::_show_minmax
private

Definition at line 105 of file fft_graph.h.

◆ _show_normalized

bool FFTGraph::_show_normalized
private

Definition at line 106 of file fft_graph.h.

◆ _show_proportional

bool FFTGraph::_show_proportional
private

Definition at line 107 of file fft_graph.h.

◆ _surface

cairo_surface_t* FFTGraph::_surface
private

Definition at line 94 of file fft_graph.h.

◆ _windowSize

unsigned int FFTGraph::_windowSize
private

Definition at line 90 of file fft_graph.h.

◆ _yoff

int FFTGraph::_yoff
private

Definition at line 85 of file fft_graph.h.

◆ currentScaleWidth

int FFTGraph::currentScaleWidth
private

Definition at line 80 of file fft_graph.h.

◆ height

int FFTGraph::height
private

Definition at line 83 of file fft_graph.h.

◆ hl_margin

const int FFTGraph::hl_margin = 40
staticprivate

Definition at line 76 of file fft_graph.h.

◆ hr_margin

const int FFTGraph::hr_margin = 12
staticprivate

Definition at line 77 of file fft_graph.h.

◆ layout

Glib::RefPtr<Pango::Layout> FFTGraph::layout
private

Definition at line 93 of file fft_graph.h.

◆ minScaleHeight

const int FFTGraph::minScaleHeight = 420
staticprivate

Definition at line 74 of file fft_graph.h.

◆ minScaleWidth

const int FFTGraph::minScaleWidth = 512
staticprivate

Definition at line 73 of file fft_graph.h.

◆ v_margin

const int FFTGraph::v_margin = 12
staticprivate

Definition at line 78 of file fft_graph.h.

◆ width

int FFTGraph::width
private

Definition at line 82 of file fft_graph.h.


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