1 #ifndef COIN_SOLISTENERDOPPLERELEMENT_H
2 #define COIN_SOLISTENERDOPPLERELEMENT_H
27 #include <Inventor/elements/SoReplacedElement.h>
28 #include <Inventor/SbVec3f.h>
35 static void initClass(
void);
41 static void setDopplerVelocity(
SoState *
const state,
SoNode *
const node,
43 static void setDopplerFactor(
SoState *
const state,
SoNode *
const node,
47 static float getDopplerFactor(
SoState *
const state);
49 virtual void print(FILE * file)
const;
56 #endif // !COIN_SOLISTENERDOPPLERELEMENT_H
static void setDopplerVelocity(SoState *const state, SoNode *const node, const SbVec3f &velocity)
Definition: SoListenerDopplerElement.cpp:97
float dopplerFactor
Definition: SoListenerDopplerElement.h:53
The SoState class manages the Coin scenegraph traversal state data.
Definition: SoState.h:35
static const SbVec3f & getDopplerVelocity(SoState *const state)
Returns the current listener's doppler velocity.
Definition: SoListenerDopplerElement.cpp:127
virtual void print(FILE *file) const
Prints the contents of the element (unimplemented)
Definition: SoListenerDopplerElement.cpp:147
virtual void init(SoState *state)
Definition: SoReplacedElement.cpp:76
static const SoElement * getConstElement(SoState *const state, const int stackIndex)
Definition: SoElement.h:114
SbVec3f dopplerVelocity
Definition: SoListenerDopplerElement.h:52
static void setDopplerFactor(SoState *const state, SoNode *const node, float factor)
Definition: SoListenerDopplerElement.cpp:113
The SoListenerDopplerElement holds the doppler velocity and factor of the current listener.
Definition: SoListenerDopplerElement.h:30
static float getDopplerFactor(SoState *const state)
Returns the current listener's doppler factor.
Definition: SoListenerDopplerElement.cpp:137
SoElement is the abstract base class for all elements.
Definition: SoElement.h:34
static SoElement * getElement(SoState *const state, const int stackIndex)
Definition: SoElement.h:101
static void initClass(void)
Definition: SoListenerDopplerElement.cpp:66
virtual void print(FILE *file) const
Definition: SoReplacedElement.cpp:105
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition: SbVec3f.h:37
The SoReplacedElement class is an abstract element superclass.
Definition: SoReplacedElement.h:30
virtual void init(SoState *state)
Definition: SoListenerDopplerElement.cpp:85
The SoNode class is the base class for nodes used in scene graphs.
Definition: SoNode.h:47
virtual ~SoListenerDopplerElement()
Definition: SoListenerDopplerElement.cpp:75
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Wed Jul 24 2019 for Coin by Doxygen. 1.8.17