Polymorph package
polymorph::PSound Class Reference

#include <PSound.h>

Inheritance diagram for polymorph::PSound:
Collaboration diagram for polymorph::PSound:

Public Member Functions

 PSound ()
 
 PSound (Ogre::SceneManager *sceneMgr, libpd::PdEngine *pde, const PSoundData *src)
 
virtual ~PSound ()
 
bool point (Ogre::SceneManager *sceneMgr, libpd::PdEngine *pde, Ogre::String name="")
 
bool ambient (Ogre::SceneManager *sceneMgr, libpd::PdEngine *pde, Ogre::String name="")
 
void visible (bool enable)
 
void debug (bool enable)
 
void play ()
 
void stop ()
 
void togglePlay ()
 
bool isPlaying ()
 
void clear ()
 
void disable ()
 
void enable ()
 
- Public Member Functions inherited from polymorph::PObject< libpd::PdSource * >
 PObject ()
 
virtual ~PObject ()
 
virtual void naming ()
 
virtual bool physics (BT_Type type, std::string meshgroup="", std::string meshname="")
 
virtual void restless (bool enabled)
 
virtual void bulletTransform (const btTransform &trans)
 
virtual void constraint (PObjectAbstract *other)
 
virtual void unconstraint (PObjectAbstract *other)
 
virtual void mass (btScalar m)
 
virtual bool parent (Ogre::SceneNode *ogrenode)
 
virtual bool attach (PObjectAbstract *child)
 
virtual bool detach ()
 
virtual void release (PObjectAbstract *child)
 
virtual void clearChildren ()
 
virtual void translate (Ogre::Real x, Ogre::Real y, Ogre::Real z)
 
virtual void translate (const Ogre::Vector3 &t)
 
virtual void move (Ogre::Real x, Ogre::Real y, Ogre::Real z, bool local=false)
 
virtual void move (const Ogre::Vector3 &p, bool local=false)
 
virtual void scale (Ogre::Real s, bool local=false)
 
virtual void scale (Ogre::Real x, Ogre::Real y, Ogre::Real z, bool local=false)
 
virtual void scale (const Ogre::Vector3 &s, bool local=false)
 
virtual void orientation (const Ogre::Vector3 &o, bool local=false)
 
virtual void orientation (const Ogre::Quaternion &q, bool local=false)
 
virtual void pitch (const Ogre::Radian &angle, bool local=false)
 
virtual void yaw (const Ogre::Radian &angle, bool local=false)
 
virtual void roll (const Ogre::Radian &angle, bool local=false)
 
virtual void slerp (Ogre::Vector3 p, Ogre::Quaternion q, Ogre::Real pc)
 
virtual Ogre::uint32 getUID ()
 
virtual Ogre::String getName ()
 
virtual PObjectAbstractgetParent ()
 
virtual Ogre::MovableObject * movable ()
 
virtual Ogre::SceneNode * origin ()
 
virtual Ogre::IdObject * idobject ()
 
virtual libpd::PdSourceobject ()
 
virtual Ogre::Vector3 getScale ()
 
virtual Ogre::Vector3 getTrans ()
 
virtual Ogre::Quaternion getOrientation ()
 
virtual Ogre::Vector3 getWorldTrans ()
 
virtual Ogre::Vector3 getWorldScale ()
 
virtual Ogre::Matrix4 getWorldMatrix ()
 
virtual PBulletExchangegetBulletExchange ()
 
virtual bool isStatic ()
 
virtual bool isDynamic ()
 
virtual bool isVisible ()
 
virtual bool isDebug ()
 
virtual void showAxis (bool enabled)
 
virtual bool isAxisVisible ()
 
- Public Member Functions inherited from polymorph::PObjectAbstract
virtual ~PObjectAbstract ()
 

Protected Member Functions

void local_position (Ogre::Vector3 v)
 
void local_scale (Ogre::Vector3 v)
 
void local_orientation (Ogre::Quaternion q)
 
void local_pitch (const Ogre::Radian &angle)
 
void local_yaw (const Ogre::Radian &angle)
 
void local_roll (const Ogre::Radian &angle)
 
Ogre::Vector3 getLocalDerivedPositionUpdated ()
 
void createSound (Ogre::String name="")
 
void clearDebug ()
 
void updateDebug ()
 
- Protected Member Functions inherited from polymorph::PObject< libpd::PdSource * >
virtual bool detach (bool to_root)
 
virtual void move (const Ogre::Vector3 &p, bool local, bool externalCall)
 
virtual void scale (const Ogre::Vector3 &s, bool local, bool externalCall)
 
virtual void orientation (const Ogre::Quaternion &q, bool local, bool externalCall)
 
virtual void backupTransform (void)
 
virtual void project (PObjectAbstract *parent)
 
virtual void addSpring (btGeneric6DofSpringConstraint *spring, PObjectAbstract *other, bool call_other=true)
 
virtual void removeSpring (PObjectAbstract *other, bool call_other=true)
 

Private Attributes

libpd::PdEngine_pde
 
Ogre::SceneNode * _pivot
 
Ogre::SceneNode * _debug_node
 
Ogre::Entity * _debug_entity
 
Ogre::SceneNode * _debug_node_dir
 
Ogre::Entity * _debug_entity_dir
 

Additional Inherited Members

- Protected Attributes inherited from polymorph::PObject< libpd::PdSource * >
Ogre::uint32 UID
 
Ogre::String _name
 
PObjectAbstract_parent
 
PObjectList children
 
Ogre::SceneManager * _sceneMgr
 
Ogre::SceneNode * _origin
 
Ogre::IdObject * _idobject
 
libpd::PdSource_object
 
Ogre::Aabb _initial_box
 
Ogre::Aabb _bounding_box
 
Ogre::Matrix4 _world_mat
 
Ogre::Vector3 _world_scale
 
PBulletExchangebt_exchange
 
SpringMap _springs
 
XYZaxis _axis
 
bool _debugging
 
bool _visible
 

Detailed Description

Definition at line 70 of file PSound.h.

Constructor & Destructor Documentation

PSound::PSound ( )

Definition at line 59 of file PSound.cpp.

PSound::~PSound ( )
virtual

Definition at line 114 of file PSound.cpp.

References clear().

Here is the call graph for this function:

Member Function Documentation

bool PSound::ambient ( Ogre::SceneManager *  sceneMgr,
libpd::PdEngine pde,
Ogre::String  name = "" 
)
void PSound::clearDebug ( )
protected
void polymorph::PSound::disable ( )
inline

Definition at line 112 of file PSound.h.

References polymorph::PObject< libpd::PdSource * >::_object, and libpd::PdSource::disable().

Here is the call graph for this function:

void polymorph::PSound::enable ( )
inline

Definition at line 117 of file PSound.h.

References polymorph::PObject< libpd::PdSource * >::_object, and libpd::PdSource::enable().

Referenced by debug(), and visible().

Here is the call graph for this function:

Ogre::Vector3 polymorph::PSound::getLocalDerivedPositionUpdated ( )
inlineprotectedvirtual

Implements polymorph::PObjectAbstract.

Definition at line 148 of file PSound.h.

References _pivot, clearDebug(), createSound(), and updateDebug().

Here is the call graph for this function:

bool polymorph::PSound::isPlaying ( )
inline

Definition at line 103 of file PSound.h.

References polymorph::PObject< libpd::PdSource * >::_object, clear(), and libpd::PdSource::isPlaying().

Referenced by togglePlay().

Here is the call graph for this function:

void polymorph::PSound::local_orientation ( Ogre::Quaternion  q)
inlineprotectedvirtual

Implements polymorph::PObjectAbstract.

Definition at line 132 of file PSound.h.

References _pivot.

void polymorph::PSound::local_pitch ( const Ogre::Radian &  angle)
inlineprotectedvirtual

Implements polymorph::PObjectAbstract.

Definition at line 136 of file PSound.h.

References _pivot.

void polymorph::PSound::local_position ( Ogre::Vector3  v)
inlineprotectedvirtual

Implements polymorph::PObjectAbstract.

Definition at line 124 of file PSound.h.

References _pivot.

void polymorph::PSound::local_roll ( const Ogre::Radian &  angle)
inlineprotectedvirtual

Implements polymorph::PObjectAbstract.

Definition at line 144 of file PSound.h.

References _pivot.

void polymorph::PSound::local_scale ( Ogre::Vector3  v)
inlineprotectedvirtual

Implements polymorph::PObjectAbstract.

Definition at line 128 of file PSound.h.

References _pivot.

void polymorph::PSound::local_yaw ( const Ogre::Radian &  angle)
inlineprotectedvirtual

Implements polymorph::PObjectAbstract.

Definition at line 140 of file PSound.h.

References _pivot.

bool PSound::point ( Ogre::SceneManager *  sceneMgr,
libpd::PdEngine pde,
Ogre::String  name = "" 
)
void PSound::stop ( )

Definition at line 277 of file PSound.cpp.

References polymorph::PObject< libpd::PdSource * >::_debugging, polymorph::PObject< libpd::PdSource * >::_object, libpd::PdSource::stop(), and updateDebug().

Referenced by togglePlay().

Here is the call graph for this function:

void polymorph::PSound::togglePlay ( )
inline

Definition at line 97 of file PSound.h.

References polymorph::PObject< libpd::PdSource * >::_object, isPlaying(), play(), and stop().

Here is the call graph for this function:

Member Data Documentation

Ogre::Entity* polymorph::PSound::_debug_entity
private

Definition at line 161 of file PSound.h.

Referenced by clearDebug(), debug(), and updateDebug().

Ogre::Entity* polymorph::PSound::_debug_entity_dir
private

Definition at line 163 of file PSound.h.

Referenced by clearDebug().

Ogre::SceneNode* polymorph::PSound::_debug_node
private

Definition at line 160 of file PSound.h.

Referenced by clearDebug(), and debug().

Ogre::SceneNode* polymorph::PSound::_debug_node_dir
private

Definition at line 162 of file PSound.h.

Referenced by clearDebug().

libpd::PdEngine* polymorph::PSound::_pde
private

Definition at line 158 of file PSound.h.

Referenced by ambient(), clear(), createSound(), and point().

Ogre::SceneNode* polymorph::PSound::_pivot
private

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