ardour
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
FFTGraph Class Reference

#include <fft_graph.h>

Inheritance diagram for FFTGraph:

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)
 
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)
 

Private Member Functions

void update_size ()
 
void setWindowSize_internal (int windowSize)
 
void draw_scales (Glib::RefPtr< Gdk::Window > window)
 

Private Attributes

int currentScaleWidth
 
int currentScaleHeight
 
Glib::RefPtr< Gdk::GC > graph_gc
 
int width
 
int height
 
int _windowSize
 
int _dataSize
 
Glib::RefPtr< Pango::Layout > layout
 
AnalysisWindow_a_window
 
fftwf_plan _plan
 
float * _out
 
float * _in
 
float * _hanning
 
int * _logScale
 
bool _show_minmax
 
bool _show_normalized
 

Static Private Attributes

static const int minScaleWidth = 512
 
static const int minScaleHeight = 420
 
static const int h_margin = 20
 
static const int v_margin = 20
 

Friends

class FFTResult
 

Detailed Description

Definition at line 39 of file fft_graph.h.

Constructor & Destructor Documentation

FFTGraph::FFTGraph ( int  windowSize)

Definition at line 48 of file fft_graph.cc.

FFTGraph::~FFTGraph ( )

Definition at line 141 of file fft_graph.cc.

Member Function Documentation

void FFTGraph::draw_scales ( Glib::RefPtr< Gdk::Window >  window)
private

4 5 _ _ | | 1 | | 2 |________| 3

Definition at line 170 of file fft_graph.cc.

bool FFTGraph::on_expose_event ( GdkEventExpose *  event)

Definition at line 148 of file fft_graph.cc.

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

Definition at line 455 of file fft_graph.cc.

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

Definition at line 443 of file fft_graph.cc.

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

Definition at line 155 of file fft_graph.cc.

void FFTGraph::redraw ( )

Definition at line 274 of file fft_graph.cc.

void FFTGraph::set_analysis_window ( AnalysisWindow a_window)

Definition at line 164 of file fft_graph.cc.

void FFTGraph::set_show_minmax ( bool  v)
inline

Definition at line 58 of file fft_graph.h.

void FFTGraph::set_show_normalized ( bool  v)
inline

Definition at line 59 of file fft_graph.h.

void FFTGraph::setWindowSize ( int  windowSize)

Definition at line 66 of file fft_graph.cc.

void FFTGraph::setWindowSize_internal ( int  windowSize)
private

Definition at line 77 of file fft_graph.cc.

void FFTGraph::update_size ( )
private

Definition at line 466 of file fft_graph.cc.

int FFTGraph::windowSize ( ) const
inline

Definition at line 48 of file fft_graph.h.

Friends And Related Function Documentation

friend class FFTResult
friend

Definition at line 98 of file fft_graph.h.

Member Data Documentation

AnalysisWindow* FFTGraph::_a_window
private

Definition at line 86 of file fft_graph.h.

int FFTGraph::_dataSize
private

Definition at line 83 of file fft_graph.h.

float* FFTGraph::_hanning
private

Definition at line 92 of file fft_graph.h.

float* FFTGraph::_in
private

Definition at line 91 of file fft_graph.h.

int* FFTGraph::_logScale
private

Definition at line 93 of file fft_graph.h.

float* FFTGraph::_out
private

Definition at line 90 of file fft_graph.h.

fftwf_plan FFTGraph::_plan
private

Definition at line 88 of file fft_graph.h.

bool FFTGraph::_show_minmax
private

Definition at line 95 of file fft_graph.h.

bool FFTGraph::_show_normalized
private

Definition at line 96 of file fft_graph.h.

int FFTGraph::_windowSize
private

Definition at line 82 of file fft_graph.h.

int FFTGraph::currentScaleHeight
private

Definition at line 73 of file fft_graph.h.

int FFTGraph::currentScaleWidth
private

Definition at line 72 of file fft_graph.h.

Glib::RefPtr<Gdk::GC> FFTGraph::graph_gc
private

Definition at line 77 of file fft_graph.h.

const int FFTGraph::h_margin = 20
staticprivate

Definition at line 75 of file fft_graph.h.

int FFTGraph::height
private

Definition at line 80 of file fft_graph.h.

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

Definition at line 85 of file fft_graph.h.

const int FFTGraph::minScaleHeight = 420
staticprivate

Definition at line 70 of file fft_graph.h.

const int FFTGraph::minScaleWidth = 512
staticprivate

Definition at line 69 of file fft_graph.h.

const int FFTGraph::v_margin = 20
staticprivate

Definition at line 76 of file fft_graph.h.

int FFTGraph::width
private

Definition at line 79 of file fft_graph.h.


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