Audacity  3.0.3
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 127 of file WaveClip.h.

Constructor & Destructor Documentation

◆ WaveDisplay()

WaveDisplay::WaveDisplay ( int  w)
inline

Definition at line 140 of file WaveClip.h.

141  : width(w), where(0), min(0), max(0), rms(0), bl(0)
142  {
143  }

◆ ~WaveDisplay()

WaveDisplay::~WaveDisplay ( )
inline

Definition at line 167 of file WaveClip.h.

168  {
169  }

Member Function Documentation

◆ Allocate()

void WaveDisplay::Allocate ( )
inline

Definition at line 146 of file WaveClip.h.

147  {
148  ownWhere.resize(width + 1);
149  ownMin.resize(width);
150  ownMax.resize(width);
151  ownRms.resize(width);
152  ownBl.resize(width);
153 
154  where = &ownWhere[0];
155  if (width > 0) {
156  min = &ownMin[0];
157  max = &ownMax[0];
158  rms = &ownRms[0];
159  bl = &ownBl[0];
160  }
161  else {
162  min = max = rms = 0;
163  bl = 0;
164  }
165  }

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 137 of file WaveClip.h.

Referenced by Allocate().

◆ ownMax

std::vector<float> WaveDisplay::ownMax

Definition at line 136 of file WaveClip.h.

Referenced by Allocate().

◆ ownMin

std::vector<float> WaveDisplay::ownMin

Definition at line 136 of file WaveClip.h.

Referenced by Allocate().

◆ ownRms

std::vector<float> WaveDisplay::ownRms

Definition at line 136 of file WaveClip.h.

Referenced by Allocate().

◆ ownWhere

std::vector<sampleCount> WaveDisplay::ownWhere

Definition at line 135 of file WaveClip.h.

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

◆ rms

float * WaveDisplay::rms

◆ where

sampleCount* WaveDisplay::where

◆ width

int WaveDisplay::width

The documentation for this class was generated from the following file:
WaveDisplay::ownWhere
std::vector< sampleCount > ownWhere
Definition: WaveClip.h:135
WaveDisplay::ownMax
std::vector< float > ownMax
Definition: WaveClip.h:136
WaveDisplay::max
float * max
Definition: WaveClip.h:132
WaveDisplay::width
int width
Definition: WaveClip.h:130
WaveDisplay::ownRms
std::vector< float > ownRms
Definition: WaveClip.h:136
WaveDisplay::ownBl
std::vector< int > ownBl
Definition: WaveClip.h:137
WaveDisplay::ownMin
std::vector< float > ownMin
Definition: WaveClip.h:136
WaveDisplay::rms
float * rms
Definition: WaveClip.h:132
WaveDisplay::min
float * min
Definition: WaveClip.h:132
WaveDisplay::where
sampleCount * where
Definition: WaveClip.h:131
WaveDisplay::bl
int * bl
Definition: WaveClip.h:133