00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
#ifndef COIN_SOGATE_H
00021
#define COIN_SOGATE_H
00022
00023
#include <Inventor/engines/SoSubEngine.h>
00024
#include <Inventor/fields/SoMField.h>
00025
#include <Inventor/fields/SoSFBool.h>
00026
#include <Inventor/fields/SoSFTrigger.h>
00027
00028
class SoEngineOutput;
00029
00030
00031 class COIN_DLL_API SoGate :
public SoEngine {
00032
typedef SoEngine inherited;
00033
00034 SO_ENGINE_HEADER(SoGate);
00035
00036
public:
00037
static void initClass(
void);
00038 SoGate(
SoType type);
00039
00040
SoSFBool enable;
00041
SoSFTrigger trigger;
00042
SoMField * input;
00043
00044
SoEngineOutput * output;
00045
00046
protected:
00047
virtual void inputChanged(
SoField * which);
00048
00049
private:
00050 SoGate(
void);
00051 ~SoGate();
00052
00053
virtual void evaluate(
void);
00054
00055
virtual SbBool readInstance(
SoInput * in,
unsigned short flags);
00056
virtual void writeInstance(
SoOutput * out);
00057
00058 SbBool initialize(
const SoType inputfieldtype);
00059
00060
virtual void copyContents(
const SoFieldContainer * from,
00061 SbBool copyconnections);
00062
00063
00064
00065
00066
SoFieldData * dynamicinput;
00067 SoEngineOutputData * dynamicoutput;
00068
00069
00070
friend class dummy;
00071 };
00072
00073
#endif // !COIN_SOGATE_H