00001 #ifndef COIN_SOLISTENERDOPPLERELEMENT_H
00002 #define COIN_SOLISTENERDOPPLERELEMENT_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include <Inventor/elements/SoReplacedElement.h>
00028 #include <Inventor/SbVec3f.h>
00029
00030 class COIN_DLL_API SoListenerDopplerElement : public SoReplacedElement {
00031 typedef SoReplacedElement inherited;
00032
00033 SO_ELEMENT_HEADER(SoListenerDopplerElement);
00034 public:
00035 static void initClass(void);
00036 protected:
00037 virtual ~SoListenerDopplerElement();
00038
00039 public:
00040 virtual void init(SoState * state);
00041 static void setDopplerVelocity(SoState * const state, SoNode * const node,
00042 const SbVec3f & velocity);
00043 static void setDopplerFactor(SoState * const state, SoNode * const node,
00044 float factor);
00045
00046 static const SbVec3f & getDopplerVelocity(SoState * const state);
00047 static float getDopplerFactor(SoState * const state);
00048
00049 virtual void print(FILE * file) const;
00050
00051 protected:
00052 SbVec3f dopplerVelocity;
00053 float dopplerFactor;
00054 };
00055
00056 #endif // !COIN_SOLISTENERDOPPLERELEMENT_H