CSL  6.0
csl::SpeakerSetLayout Class Reference

#include <VBAP.h>

Public Member Functions

 SpeakerSetLayout (SpeakerLayout *aLayout, VBAPMode mode=kAuto)
 Constructors & destructor: More...
 
 ~SpeakerSetLayout ()
 destructor More...
 
SpeakerLayoutspeakerLayout ()
 Returns the Speaker Layout used to find the triplets. More...
 
void dump ()
 

Private Member Functions

void findSpeakerTriplets () throw (CException)
 
void findSpeakerPairs () throw (CException)
 
void invertTripleMatrix (SpeakerSet *lst)
 
void addTriple (SpeakerSet *lst)
 
void removeTriple (SpeakerSet *lst)
 
bool evaluateCrossing (CPoint &li, CPoint &lj, CPoint &ln, CPoint &lm)
 

Private Attributes

SpeakerSet ** mTriplets
 
SpeakerLayoutmSpeakerLayout
 
unsigned mNumTriplets
 
unsigned mMode
 

Friends

class VBAP
 

Detailed Description

Definition at line 152 of file VBAP.h.

Constructor & Destructor Documentation

SpeakerSetLayout::SpeakerSetLayout ( SpeakerLayout aLayout,
VBAPMode  mode = kAuto 
)

Constructors & destructor:

default constructor. Creates an empty speaker layout.

Definition at line 58 of file VBAP.cpp.

References dump(), findSpeakerPairs(), findSpeakerTriplets(), csl::SpeakerLayout::isPeriphonic(), csl::kAuto, csl::kPantophonic, csl::kPeriphonic, MAX_NUM_VBAP_TRIPLETS, mMode, mNumTriplets, mSpeakerLayout, and mTriplets.

SpeakerSetLayout::~SpeakerSetLayout ( )

destructor

Definition at line 87 of file VBAP.cpp.

References mNumTriplets, and mTriplets.

Member Function Documentation

SpeakerLayout* csl::SpeakerSetLayout::speakerLayout ( )
inline

Returns the Speaker Layout used to find the triplets.

Definition at line 160 of file VBAP.h.

void SpeakerSetLayout::dump ( void  )

Definition at line 126 of file VBAP.cpp.

References csl::SpeakerSet::dump(), mNumTriplets, and mTriplets.

Referenced by SpeakerSetLayout().

void SpeakerSetLayout::invertTripleMatrix ( SpeakerSet lst)
private
void SpeakerSetLayout::addTriple ( SpeakerSet lst)
private

Definition at line 98 of file VBAP.cpp.

References MAX_NUM_VBAP_TRIPLETS, mNumTriplets, and mTriplets.

Referenced by findSpeakerPairs(), and findSpeakerTriplets().

void SpeakerSetLayout::removeTriple ( SpeakerSet lst)
private

Definition at line 107 of file VBAP.cpp.

References mNumTriplets, and mTriplets.

Referenced by findSpeakerTriplets().

bool SpeakerSetLayout::evaluateCrossing ( CPoint li,
CPoint lj,
CPoint ln,
CPoint lm 
)
private

Definition at line 146 of file VBAP.cpp.

References vecAngle().

Referenced by findSpeakerTriplets().

Friends And Related Function Documentation

friend class VBAP
friend

Definition at line 153 of file VBAP.h.

Member Data Documentation

SpeakerSet** csl::SpeakerSetLayout::mTriplets
private
SpeakerLayout* csl::SpeakerSetLayout::mSpeakerLayout
private
unsigned csl::SpeakerSetLayout::mNumTriplets
private
unsigned csl::SpeakerSetLayout::mMode
private

Definition at line 169 of file VBAP.h.

Referenced by findSpeakerTriplets(), invertTripleMatrix(), and SpeakerSetLayout().


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