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

Constructor & Destructor Documentation

◆ WaveDisplay()

WaveDisplay::WaveDisplay ( int  w)
inline

Definition at line 142 of file WaveClip.h.

143  : width(w), where(0), min(0), max(0), rms(0), bl(0)
144  {
145  }

◆ ~WaveDisplay()

WaveDisplay::~WaveDisplay ( )
inline

Definition at line 169 of file WaveClip.h.

170  {
171  }

Member Function Documentation

◆ Allocate()

void WaveDisplay::Allocate ( )
inline

Definition at line 148 of file WaveClip.h.

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

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

Referenced by Allocate().

◆ ownMax

std::vector<float> WaveDisplay::ownMax

Definition at line 138 of file WaveClip.h.

Referenced by Allocate().

◆ ownMin

std::vector<float> WaveDisplay::ownMin

Definition at line 138 of file WaveClip.h.

Referenced by Allocate().

◆ ownRms

std::vector<float> WaveDisplay::ownRms

Definition at line 138 of file WaveClip.h.

Referenced by Allocate().

◆ ownWhere

std::vector<sampleCount> WaveDisplay::ownWhere

Definition at line 137 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:137
WaveDisplay::ownMax
std::vector< float > ownMax
Definition: WaveClip.h:138
WaveDisplay::max
float * max
Definition: WaveClip.h:134
WaveDisplay::width
int width
Definition: WaveClip.h:132
WaveDisplay::ownRms
std::vector< float > ownRms
Definition: WaveClip.h:138
WaveDisplay::ownBl
std::vector< int > ownBl
Definition: WaveClip.h:139
WaveDisplay::ownMin
std::vector< float > ownMin
Definition: WaveClip.h:138
WaveDisplay::rms
float * rms
Definition: WaveClip.h:134
WaveDisplay::min
float * min
Definition: WaveClip.h:134
WaveDisplay::where
sampleCount * where
Definition: WaveClip.h:133
WaveDisplay::bl
int * bl
Definition: WaveClip.h:135