|
CSL
6.0
|
#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 |
| 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.
| void ShoeBox::setSourceLocation | ( | float | x, |
| float | y, | ||
| float | z | ||
| ) |
Definition at line 103 of file ShoeBox.cpp.
References checkPositionValues(), csl::logMsg(), mSource, csl::CPoint::x, csl::CPoint::y, and csl::CPoint::z.
| void ShoeBox::setListenerLocation | ( | float | x, |
| float | y, | ||
| float | z | ||
| ) |
Definition at line 114 of file ShoeBox.cpp.
References checkPositionValues(), mListenerPosition, csl::CPoint::x, csl::CPoint::y, and csl::CPoint::z.
| void ShoeBox::setRoomSize | ( | float | x, |
| float | y, | ||
| float | z | ||
| ) |
Definition at line 123 of file ShoeBox.cpp.
References checkPositionValues(), mRoomSize, csl::CPoint::x, csl::CPoint::y, and csl::CPoint::z.
|
inline |
|
inline |
Definition at line 39 of file ShoeBox.h.
References mListenerPosition.
| void ShoeBox::setWallMaterialsDamp | ( | int | dampX, |
| int | dampY, | ||
| int | dampZ | ||
| ) |
Definition at line 47 of file ShoeBox.cpp.
References csl::kBrick, kBrockCoefficient, csl::kConcrete, kConcreteCoefficient, csl::kGlass, kGlassCoefficient, csl::kMarble, kMarbleCoefficient, csl::kWood, kWoodCoefficient, mDampX, mDampY, and mDampZ.
| 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::calculateReflections | ( | ) |
Definition at line 211 of file ShoeBox.cpp.
References findNumReflectionsFromTime(), csl::logMsg(), mAnglesArray, mDampX, mDampY, mDampZ, mGainsArray, mListenerPosition, mMaxBouncesX, mMaxBouncesY, mMaxBouncesZ, mNumReflections, mReflectionsArray, mRoomSize, mSource, shellSort(), SPEED_OF_SOUND, csl::CPoint::x, csl::CPoint::y, and csl::CPoint::z.
| void ShoeBox::findNumReflectionsFromTime | ( | ) |
Definition at line 182 of file ShoeBox.cpp.
References csl::logMsg(), mAnglesArray, mDuration, mGainsArray, mMaxBouncesX, mMaxBouncesY, mMaxBouncesZ, mNumReflections, mReflectionsArray, mRoomSize, SPEED_OF_SOUND, csl::CPoint::x, csl::CPoint::y, and csl::CPoint::z.
Referenced by calculateReflections().
|
private |
Definition at line 144 of file ShoeBox.cpp.
References mAnglesArray, mGainsArray, mNumReflections, and mReflectionsArray.
Referenced by calculateReflections().
|
private |
Definition at line 132 of file ShoeBox.cpp.
References mListenerPosition, mRoomSize, mSource, csl::CPoint::x, csl::CPoint::y, and csl::CPoint::z.
Referenced by setListenerLocation(), setRoomSize(), and setSourceLocation().
|
private |
Definition at line 48 of file ShoeBox.h.
Referenced by calculateReflections(), checkPositionValues(), findNumReflectionsFromTime(), roomSize(), and setRoomSize().
|
private |
Definition at line 48 of file ShoeBox.h.
Referenced by calculateReflections(), checkPositionValues(), setSourceLocation(), and source().
|
private |
Definition at line 48 of file ShoeBox.h.
Referenced by calculateReflections(), checkPositionValues(), listener(), and setListenerLocation().
|
private |
Definition at line 49 of file ShoeBox.h.
Referenced by calculateReflections(), setWallMaterialsDamp(), and ShoeBox().
|
private |
Definition at line 49 of file ShoeBox.h.
Referenced by calculateReflections(), setWallMaterialsDamp(), and ShoeBox().
|
private |
Definition at line 49 of file ShoeBox.h.
Referenced by calculateReflections(), setWallMaterialsDamp(), and ShoeBox().
|
private |
Definition at line 50 of file ShoeBox.h.
Referenced by calculateReflections(), findNumReflectionsFromTime(), getReflections(), and shellSort().
|
private |
Definition at line 50 of file ShoeBox.h.
Referenced by calculateReflections(), findNumReflectionsFromTime(), getReflections(), and shellSort().
|
private |
Definition at line 50 of file ShoeBox.h.
Referenced by calculateReflections(), findNumReflectionsFromTime(), getReflections(), and shellSort().
|
private |
Definition at line 51 of file ShoeBox.h.
Referenced by findNumReflectionsFromTime(), setDuration(), and ShoeBox().
|
private |
Definition at line 51 of file ShoeBox.h.
Referenced by calculateReflections(), findNumReflectionsFromTime(), and shellSort().
|
private |
Definition at line 51 of file ShoeBox.h.
Referenced by calculateReflections(), and findNumReflectionsFromTime().
|
private |
Definition at line 51 of file ShoeBox.h.
Referenced by calculateReflections(), and findNumReflectionsFromTime().
|
private |
Definition at line 51 of file ShoeBox.h.
Referenced by calculateReflections(), and findNumReflectionsFromTime().