CSL  6.0
csl::ShoeBox Class Reference

#include <ShoeBox.h>

Public Member Functions

 ShoeBox ()
 
 ~ShoeBox ()
 
void setSourceLocation (float x, float y, float z)
 
void setListenerLocation (float x, float y, float z)
 
void setRoomSize (float x, float y, float z)
 
CPoint roomSize ()
 
CPoint source ()
 
CPoint listener ()
 
void setWallMaterialsDamp (int dampX, int dampY, int dampZ)
 
void setDuration (int ms)
 
void getReflections (float *ref, float *gains, float *angles, int num)
 
void calculateReflections ()
 
void findNumReflectionsFromTime ()
 

Private Member Functions

void shellSort ()
 
bool checkPositionValues ()
 

Private Attributes

CPoint mRoomSize
 
CPoint mSource
 
CPoint mListenerPosition
 
float mDampX
 
float mDampY
 
float mDampZ
 
float * mReflectionsArray
 
float * mGainsArray
 
float * mAnglesArray
 
int mDuration
 
int mNumReflections
 
int mMaxBouncesX
 
int mMaxBouncesY
 
int mMaxBouncesZ
 

Detailed Description

Definition at line 28 of file ShoeBox.h.

Constructor & Destructor Documentation

ShoeBox::ShoeBox ( )

Definition at line 31 of file ShoeBox.cpp.

References kBrockCoefficient, mDampX, mDampY, mDampZ, and mDuration.

ShoeBox::~ShoeBox ( )

Definition at line 42 of file ShoeBox.cpp.

Member Function Documentation

void ShoeBox::setSourceLocation ( float  x,
float  y,
float  z 
)
void ShoeBox::setListenerLocation ( float  x,
float  y,
float  z 
)
void ShoeBox::setRoomSize ( float  x,
float  y,
float  z 
)
CPoint csl::ShoeBox::roomSize ( )
inline

Definition at line 37 of file ShoeBox.h.

References mRoomSize.

CPoint csl::ShoeBox::source ( )
inline

Definition at line 38 of file ShoeBox.h.

References mSource.

CPoint csl::ShoeBox::listener ( )
inline

Definition at line 39 of file ShoeBox.h.

References mListenerPosition.

void ShoeBox::setWallMaterialsDamp ( int  dampX,
int  dampY,
int  dampZ 
)
void ShoeBox::setDuration ( int  ms)

Definition at line 179 of file ShoeBox.cpp.

References mDuration.

void ShoeBox::getReflections ( float *  ref,
float *  gains,
float *  angles,
int  num 
)

Definition at line 357 of file ShoeBox.cpp.

References mAnglesArray, mGainsArray, and mReflectionsArray.

void ShoeBox::shellSort ( )
private

Definition at line 144 of file ShoeBox.cpp.

References mAnglesArray, mGainsArray, mNumReflections, and mReflectionsArray.

Referenced by calculateReflections().

bool ShoeBox::checkPositionValues ( )
private

Member Data Documentation

CPoint csl::ShoeBox::mRoomSize
private
CPoint csl::ShoeBox::mSource
private

Definition at line 48 of file ShoeBox.h.

Referenced by calculateReflections(), checkPositionValues(), setSourceLocation(), and source().

CPoint csl::ShoeBox::mListenerPosition
private

Definition at line 48 of file ShoeBox.h.

Referenced by calculateReflections(), checkPositionValues(), listener(), and setListenerLocation().

float csl::ShoeBox::mDampX
private

Definition at line 49 of file ShoeBox.h.

Referenced by calculateReflections(), setWallMaterialsDamp(), and ShoeBox().

float csl::ShoeBox::mDampY
private

Definition at line 49 of file ShoeBox.h.

Referenced by calculateReflections(), setWallMaterialsDamp(), and ShoeBox().

float csl::ShoeBox::mDampZ
private

Definition at line 49 of file ShoeBox.h.

Referenced by calculateReflections(), setWallMaterialsDamp(), and ShoeBox().

float* csl::ShoeBox::mReflectionsArray
private
float * csl::ShoeBox::mGainsArray
private
float * csl::ShoeBox::mAnglesArray
private
int csl::ShoeBox::mDuration
private

Definition at line 51 of file ShoeBox.h.

Referenced by findNumReflectionsFromTime(), setDuration(), and ShoeBox().

int csl::ShoeBox::mNumReflections
private

Definition at line 51 of file ShoeBox.h.

Referenced by calculateReflections(), findNumReflectionsFromTime(), and shellSort().

int csl::ShoeBox::mMaxBouncesX
private

Definition at line 51 of file ShoeBox.h.

Referenced by calculateReflections(), and findNumReflectionsFromTime().

int csl::ShoeBox::mMaxBouncesY
private

Definition at line 51 of file ShoeBox.h.

Referenced by calculateReflections(), and findNumReflectionsFromTime().

int csl::ShoeBox::mMaxBouncesZ
private

Definition at line 51 of file ShoeBox.h.

Referenced by calculateReflections(), and findNumReflectionsFromTime().


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