Coin Logo http://www.sim.no
http://www.coin3d.org

SoListener.h
1 #ifndef COIN_SOLISTENER_H
2 #define COIN_SOLISTENER_H
3 
4 /**************************************************************************\
5  *
6  * This file is part of the Coin 3D visualization library.
7  * Copyright (C) 1998-2007 by Systems in Motion. All rights reserved.
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * ("GPL") version 2 as published by the Free Software Foundation.
12  * See the file LICENSE.GPL at the root directory of this source
13  * distribution for additional information about the GNU GPL.
14  *
15  * For using Coin with software that can not be combined with the GNU
16  * GPL, and for taking advantage of the additional benefits of our
17  * support services, please contact Systems in Motion about acquiring
18  * a Coin Professional Edition License.
19  *
20  * See http://www.coin3d.org/ for more information.
21  *
22  * Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY.
23  * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
24  *
25 \**************************************************************************/
26 
27 #include <Inventor/nodes/SoSubNode.h>
28 #include <Inventor/fields/SoSFVec3f.h>
29 #include <Inventor/fields/SoSFRotation.h>
30 #include <Inventor/fields/SoSFFloat.h>
31 
32 class SoListenerP;
33 
34 class COIN_DLL_API SoListener : public SoNode {
35  typedef SoNode inherited;
36 
37  SO_NODE_HEADER(SoListener);
38  friend class SoAudioRenderAction;
39 
40 public:
41  static void initClass();
42  SoListener();
43 
49 
50 protected:
51  virtual void audioRender(class SoAudioRenderAction *action);
52  virtual ~SoListener();
53 
54 private:
55  SoListenerP *pimpl;
56  friend class SoListenerP;
57 };
58 
59 #endif // COIN_SOLISTENER_H
SoSFVec3f
The SoSFVec3f class is a container for an SbVec3f vector.
Definition: SoSFVec3f.h:31
SbRotation
The SbRotation class represents a rotation in 3D space.
Definition: SbRotation.h:33
SoListenerDopplerElement::setDopplerVelocity
static void setDopplerVelocity(SoState *const state, SoNode *const node, const SbVec3f &velocity)
Definition: SoListenerDopplerElement.cpp:97
SoListenerGainElement::set
static void set(SoState *const state, SoNode *const node, const float gain)
Definition: SoListenerGainElement.cpp:72
SoState
The SoState class manages the Coin scenegraph traversal state data.
Definition: SoState.h:35
SoAudioRenderAction
The SoAudioRenderAction class renders the aural parts of the scene graph.
Definition: SoAudioRenderAction.h:30
SoSFRotation
The SoSFRotation class is a container for an SbRotation.
Definition: SoSFRotation.h:31
SoNode::audioRender
virtual void audioRender(SoAudioRenderAction *action)
Definition: SoNode.cpp:1255
SoListener::gain
SoSFFloat gain
Definition: SoListener.h:46
SoField::isIgnored
SbBool isIgnored(void) const
Definition: SoField.cpp:638
SoListenerGainElement
The SoListenerGainElement class stores the SoListener gain during a scene graph traversal.
Definition: SoListenerGainElement.h:29
SoListenerPositionElement::set
static void set(SoState *const state, SoNode *const node, const SbVec3f &position, SbBool setbylistener)
Definition: SoListenerPositionElement.cpp:95
SoListener::dopplerFactor
SoSFFloat dopplerFactor
Definition: SoListener.h:48
SoListenerDopplerElement::setDopplerFactor
static void setDopplerFactor(SoState *const state, SoNode *const node, float factor)
Definition: SoListenerDopplerElement.cpp:113
SoListener
The SoListener class defines listener attributes used when rendering sound.
Definition: SoListener.h:34
SoListener::audioRender
virtual void audioRender(class SoAudioRenderAction *action)
Definition: SoListener.cpp:159
SoListenerDopplerElement
The SoListenerDopplerElement holds the doppler velocity and factor of the current listener.
Definition: SoListenerDopplerElement.h:30
SoListenerOrientationElement
The SoListenerOrientationElement holds the orientation of the current listener.
Definition: SoListenerOrientationElement.h:30
SoDebugError::postInfo
static void postInfo(const char *const source, const char *const format,...)
Definition: SoDebugError.cpp:334
SoListenerPositionElement
The SoListenerPositionElement holds the position of the current listener.
Definition: SoListenerPositionElement.h:30
SoBase
The SoBase class is the top-level superclass for a number of class-hierarchies.
Definition: SoBase.h:41
SoAction::getState
SoState * getState(void) const
Definition: SoAction.cpp:1028
SoListener::position
SoSFVec3f position
Definition: SoListener.h:44
SbVec3f
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition: SbVec3f.h:37
SoListener::orientation
SoSFRotation orientation
Definition: SoListener.h:45
SoListener::~SoListener
virtual ~SoListener()
Definition: SoListener.cpp:153
SoListener::SoListener
SoListener()
Definition: SoListener.cpp:139
SoListenerOrientationElement::set
static void set(SoState *const state, SoNode *const node, const SbRotation &orientation, SbBool setbylistener)
Definition: SoListenerOrientationElement.cpp:96
SoSFFloat
The SoSFFloat class is a container for a floating point value.
Definition: SoSFFloat.h:30
SoNode
The SoNode class is the base class for nodes used in scene graphs.
Definition: SoNode.h:47
SoListener::dopplerVelocity
SoSFVec3f dopplerVelocity
Definition: SoListener.h:47
SbVec3f::getValue
const float * getValue(void) const
Definition: SbVec3f.cpp:334

Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.

Generated on Wed Jul 24 2019 for Coin by Doxygen. 1.8.17