Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
WaveDisplay Class Reference

#include <WaveClip.h>

Collaboration diagram for WaveDisplay:
[legend]

Public Member Functions

 WaveDisplay (int w)
 
void Allocate ()
 
 ~WaveDisplay ()
 

Public Attributes

int width
 
sampleCountwhere
 
float * min
 
float * max
 
float * rms
 
int * bl
 
std::vector< sampleCountownWhere
 
std::vector< float > ownMin
 
std::vector< float > ownMax
 
std::vector< float > ownRms
 
std::vector< int > ownBl
 

Detailed Description

Definition at line 47 of file WaveClip.h.

Constructor & Destructor Documentation

◆ WaveDisplay()

WaveDisplay::WaveDisplay ( int  w)
inline

Definition at line 60 of file WaveClip.h.

61 : width(w), where(0), min(0), max(0), rms(0), bl(0)
62 {
63 }
int * bl
Definition: WaveClip.h:53
float * rms
Definition: WaveClip.h:52
sampleCount * where
Definition: WaveClip.h:51
float * min
Definition: WaveClip.h:52
int width
Definition: WaveClip.h:50
float * max
Definition: WaveClip.h:52

◆ ~WaveDisplay()

WaveDisplay::~WaveDisplay ( )
inline

Definition at line 87 of file WaveClip.h.

88 {
89 }

Member Function Documentation

◆ Allocate()

void WaveDisplay::Allocate ( )
inline

Definition at line 66 of file WaveClip.h.

67 {
68 ownWhere.resize(width + 1);
69 ownMin.resize(width);
70 ownMax.resize(width);
71 ownRms.resize(width);
72 ownBl.resize(width);
73
74 where = &ownWhere[0];
75 if (width > 0) {
76 min = &ownMin[0];
77 max = &ownMax[0];
78 rms = &ownRms[0];
79 bl = &ownBl[0];
80 }
81 else {
82 min = max = rms = 0;
83 bl = 0;
84 }
85 }
std::vector< float > ownMin
Definition: WaveClip.h:56
std::vector< sampleCount > ownWhere
Definition: WaveClip.h:55
std::vector< float > ownMax
Definition: WaveClip.h:56
std::vector< int > ownBl
Definition: WaveClip.h:57
std::vector< float > ownRms
Definition: WaveClip.h:56

References bl, max, min, ownBl, ownMax, ownMin, ownRms, ownWhere, rms, where, and width.

Referenced by anonymous_namespace{WaveformView.cpp}::DrawClipWaveform().

Here is the caller graph for this function:

Member Data Documentation

◆ bl

int* WaveDisplay::bl

◆ max

float * WaveDisplay::max

◆ min

float* WaveDisplay::min

◆ ownBl

std::vector<int> WaveDisplay::ownBl

Definition at line 57 of file WaveClip.h.

Referenced by Allocate().

◆ ownMax

std::vector<float> WaveDisplay::ownMax

Definition at line 56 of file WaveClip.h.

Referenced by Allocate().

◆ ownMin

std::vector<float> WaveDisplay::ownMin

Definition at line 56 of file WaveClip.h.

Referenced by Allocate().

◆ ownRms

std::vector<float> WaveDisplay::ownRms

Definition at line 56 of file WaveClip.h.

Referenced by Allocate().

◆ ownWhere

std::vector<sampleCount> WaveDisplay::ownWhere

Definition at line 55 of file WaveClip.h.

Referenced by Allocate(), and WaveClipWaveformCache::GetWaveDisplay().

◆ rms

float * WaveDisplay::rms

◆ where

sampleCount* WaveDisplay::where

◆ width

int WaveDisplay::width

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