1#ifndef COIN_SOLISTENERDOPPLERELEMENT_H
2#define COIN_SOLISTENERDOPPLERELEMENT_H
36#include <Inventor/elements/SoReplacedElement.h>
37#include <Inventor/SbVec3f.h>
39class COIN_DLL_API SoListenerDopplerElement :
public SoReplacedElement {
40 typedef SoReplacedElement inherited;
42 SO_ELEMENT_HEADER(SoListenerDopplerElement);
46 virtual ~SoListenerDopplerElement();
49 virtual void init(SoState * state);
58 virtual void print(FILE * file)
const;
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition SbVec3f.h:51
SbVec3f dopplerVelocity
Definition SoListenerDopplerElement.h:61
static const SbVec3f & getDopplerVelocity(SoState *const state)
Returns the current listener's Doppler velocity.
Definition SoListenerDopplerElement.cpp:149
static float getDopplerFactor(SoState *const state)
Returns the current listener's Doppler factor.
Definition SoListenerDopplerElement.cpp:162
float dopplerFactor
Definition SoListenerDopplerElement.h:62
static void setDopplerVelocity(SoState *const state, SoNode *const node, const SbVec3f &velocity)
Definition SoListenerDopplerElement.cpp:112
static void setDopplerFactor(SoState *const state, SoNode *const node, float factor)
Definition SoListenerDopplerElement.cpp:132
The SoNode class is the base class for nodes used in scene graphs.
Definition SoNode.h:56
static void initClass(void)
Definition SoReplacedElement.cpp:77
virtual void init(SoState *state)
Definition SoReplacedElement.cpp:91
virtual void print(FILE *file) const
Definition SoReplacedElement.cpp:120