Open Inventor Reference
|
Selectively copies its input to its output. More...
#include <Inventor/engines/SoGate.h>
Public Member Functions | |
SoGate (SoType mfInputType) | |
Constructor. The argument specifies the type of the input field. | |
Static Public Member Functions | |
static void | initClass () |
Initializes base engine class. | |
Public Attributes | |
SoSFBool | enable |
enable continuous flow-through | |
SoSFTrigger | trigger |
copy a single value | |
SoMField * | input |
Note that unlike most engines the input field is a pointer. | |
SoEngineOutput * | output |
Note that unlike most engines the output is a pointer. | |
Protected Member Functions | |
virtual void | inputChanged (SoField *whichInput) |
This is called whenever the value of an input is changed. | |
virtual SoFieldContainer * | copyThroughConnection () const |
Copies an instance that is encountered through a field connection. |
This engine selectively copies its input to its output. The type of the input field can be any subclass of SoMField. The type is specified when an instance of the class is created. For example, SoGate(SoMFFloat::getClassTypeId()) creates an engine that copies floating-point values.
The enable input controls continous flow-through of values. While enable is TRUE, the input will be copied to the output. Alternatively, by touching the trigger input, you can copy a single value from the input to the output.
Note that unlike most other engine fields, input and output are pointers. Note also that by default input does not contain any values.
SoGate::SoGate | ( | SoType | mfInputType | ) |
virtual SoFieldContainer* SoGate::copyThroughConnection | ( | ) | const [protected, virtual] |
Reimplemented from SoEngine.
static void SoGate::initClass | ( | ) | [static] |
Reimplemented from SoEngine.
virtual void SoGate::inputChanged | ( | SoField * | whichField | ) | [protected, virtual] |
The default method does nothing. Subclasses can override this to detect when a specific field is changed.
Reimplemented from SoEngine.