00001 #ifndef COIN_SOLISTENERORIENTATIONELEMENT_H
00002 #define COIN_SOLISTENERORIENTATIONELEMENT_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/SbRotation.h>
00029
00030 class COIN_DLL_API SoListenerOrientationElement : public SoReplacedElement {
00031 typedef SoReplacedElement inherited;
00032
00033 SO_ELEMENT_HEADER(SoListenerOrientationElement);
00034 public:
00035 static void initClass(void);
00036 protected:
00037 virtual ~SoListenerOrientationElement();
00038
00039 public:
00040 virtual void init(SoState * state);
00041 static void set(SoState * const state, SoNode * const node,
00042 const SbRotation & orientation, SbBool setbylistener);
00043
00044 static const SbRotation & get(SoState * const state);
00045 static SbBool isSetByListener(SoState * const state);
00046
00047 virtual void print(FILE * file) const;
00048
00049 protected:
00050 SbRotation orientation;
00051 SbBool setbylistener;
00052 };
00053
00054 #endif // !COIN_SOLISTENERORIENTATIONELEMENT_H