Skyscraper 2.0
SBS::Reverb Class Reference

#include <reverb.h>

Inheritance diagram for SBS::Reverb:
Collaboration diagram for SBS::Reverb:

Public Member Functions

 Reverb (Object *parent, const std::string &name, std::string type, const Vector3 &position, Real min_distance, Real max_distance, bool permanent)
 
 ~Reverb ()
 
Real GetMinimumDistance ()
 
Real GetMaximumDistance ()
 
void Report (const std::string &message)
 
bool ReportError (const std::string &message)
 
void OnMove (bool parent)
 
void Enable (bool value)
 
- Public Member Functions inherited from SBS::Object
 Object (Object *parent)
 
virtual ~Object ()
 
void SetValues (const std::string &type, const std::string &name, bool is_permanent, bool is_movable=true)
 
bool IsPermanent ()
 
bool IsMovable ()
 
const std::string & GetType ()
 
int GetNumber ()
 
void AddChild (Object *object)
 
ObjectGetChild (int index)
 
int GetChildrenCount ()
 
void RemoveChild (Object *object)
 
SceneNodeGetSceneNode ()
 
void ShowBoundingBox (bool value)
 
virtual void Move (const Vector3 &vector, Real speed=1.0)
 
virtual void Move (Real X, Real Y, Real Z, Real speed=1.0)
 
virtual void SetPosition (const Vector3 &position)
 
void SetPositionRelative (const Vector3 &position)
 
virtual void SetPosition (Real X, Real Y, Real Z)
 
void SetPositionRelative (Real X, Real Y, Real Z)
 
virtual void SetPositionY (Real value)
 
virtual Vector3 GetPosition (bool relative=false)
 
virtual void Rotate (const Vector3 &vector, Real speed=1.0)
 
virtual void Rotate (Real X, Real Y, Real Z, Real speed=1.0)
 
virtual void SetRotation (const Vector3 &rotation)
 
virtual void SetRotation (Real X, Real Y, Real Z)
 
virtual Vector3 GetRotation ()
 
Quaternion GetOrientation (bool relative=false)
 
void SetOrientation (const Quaternion &q, bool relative=false)
 
virtual void OnRotate (bool parent)
 
virtual void OnClick (Vector3 &position, bool shift, bool ctrl, bool alt, bool right)
 
virtual void OnUnclick (bool right)
 
virtual void OnHit ()
 
void NotifyMove (bool parent=false)
 
void NotifyRotate (bool parent=false)
 
virtual void ResetState ()
 
void ChangeParent (Object *new_parent)
 
bool IsGlobal ()
 
void Init (bool children=true)
 
virtual void OnInit ()
 
virtual void Loop ()
 
void RegisterLoop (Object *object)
 
void UnregisterLoop (Object *object)
 
virtual void Enabled (bool value)
 
std::string GetNameBase ()
 
template<typename T >
bool IsType ()
 
template<typename T >
T * ConvertTo ()
 
- Public Member Functions inherited from SBS::ObjectBase
 ObjectBase (Object *parent)
 
virtual ~ObjectBase ()
 
ObjectGetParent ()
 
SBSGetRoot ()
 
void SetName (const std::string &name)
 
const std::string & GetName ()
 
std::string GetNameBase ()
 

Private Attributes

SoundSystemsoundsys
 
FMOD::Reverb3D * reverb
 
float MinDistance
 
float MaxDistance
 

Additional Inherited Members

- Public Attributes inherited from SBS::Object
std::string command
 
std::string command_processed
 
std::string context
 
int linenum
 
std::string includefile
 
bool parent_deleting
 
- Protected Member Functions inherited from SBS::Object
void EnableLoop (bool value)
 
void LoopChildren ()
 
bool SelfDestruct ()
 
- Protected Attributes inherited from SBS::ObjectBase
SBSsbs
 

Detailed Description

Definition at line 34 of file reverb.h.

Constructor & Destructor Documentation

◆ Reverb()

SBS::Reverb::Reverb ( Object * parent,
const std::string & name,
std::string type,
const Vector3 & position,
Real min_distance,
Real max_distance,
bool permanent )

◆ ~Reverb()

SBS::Reverb::~Reverb ( )

Member Function Documentation

◆ Enable()

void SBS::Reverb::Enable ( bool value)

Definition at line 209 of file reverb.cpp.

References reverb.

◆ GetMaximumDistance()

Real SBS::Reverb::GetMaximumDistance ( )

Definition at line 194 of file reverb.cpp.

References MaxDistance.

◆ GetMinimumDistance()

Real SBS::Reverb::GetMinimumDistance ( )

Definition at line 189 of file reverb.cpp.

References MinDistance.

◆ OnMove()

void SBS::Reverb::OnMove ( bool parent)
virtual

Reimplemented from SBS::Object.

Definition at line 167 of file reverb.cpp.

References SBS::Object::GetPosition(), MaxDistance, MinDistance, ReportError(), reverb, SBS::ObjectBase::sbs, and SBS::SBS::ToGlobal().

Here is the call graph for this function:

◆ Report()

void SBS::Reverb::Report ( const std::string & message)
virtual

Reimplemented from SBS::ObjectBase.

Definition at line 199 of file reverb.cpp.

References SBS::ObjectBase::GetName(), SBS::ObjectBase::GetParent(), and SBS::ObjectBase::Report().

Referenced by Reverb().

Here is the call graph for this function:

◆ ReportError()

bool SBS::Reverb::ReportError ( const std::string & message)
virtual

Reimplemented from SBS::ObjectBase.

Definition at line 204 of file reverb.cpp.

References SBS::ObjectBase::GetName(), SBS::ObjectBase::GetParent(), and SBS::ObjectBase::ReportError().

Referenced by OnMove(), and Reverb().

Here is the call graph for this function:

Member Data Documentation

◆ MaxDistance

float SBS::Reverb::MaxDistance
private

Definition at line 54 of file reverb.h.

Referenced by GetMaximumDistance(), OnMove(), and Reverb().

◆ MinDistance

float SBS::Reverb::MinDistance
private

Definition at line 53 of file reverb.h.

Referenced by GetMinimumDistance(), OnMove(), and Reverb().

◆ reverb

FMOD::Reverb3D* SBS::Reverb::reverb
private

Definition at line 52 of file reverb.h.

Referenced by Enable(), OnMove(), Reverb(), and ~Reverb().

◆ soundsys

SoundSystem* SBS::Reverb::soundsys
private

Definition at line 50 of file reverb.h.

Referenced by Reverb().


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