00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
#ifndef COIN_SOONOFF_H
00021
#define COIN_SOONOFF_H
00022
00023
#include <Inventor/engines/SoSubEngine.h>
00024
#include <Inventor/engines/SoEngineOutput.h>
00025
#include <Inventor/fields/SoSFTrigger.h>
00026
00027
00028 class COIN_DLL_API SoOnOff :
public SoEngine {
00029
typedef SoEngine inherited;
00030
00031 SO_ENGINE_HEADER(SoOnOff);
00032
00033
public:
00034
static void initClass(
void);
00035 SoOnOff(
void);
00036
00037
SoSFTrigger on;
00038
SoSFTrigger off;
00039
SoSFTrigger toggle;
00040
00041
SoEngineOutput isOn;
00042
SoEngineOutput isOff;
00043
00044
protected:
00045 ~SoOnOff();
00046
00047
private:
00048
virtual void evaluate(
void);
00049
virtual void inputChanged(
SoField * which);
00050
00051 SbBool state;
00052 };
00053
00054
#endif // !COIN_SOONOFF_H