Sonodeengine is the base class for coin node engines. node engines have the same functionality as normal engines, except that they inherit sonode, which makes it possible to insert node engines in the scene graph.
#include <Inventor/engines/SoNodeEngine.h>
Inherits SoNode.
Inherited by SoVRMLInterpolator, and SoVRMLTimeSensor.
void evaluateWrapper (void)
virtual int getOutputs (SoEngineOutputList &l) const
SoEngineOutput * getOutput (const SbName &outputname) const
SbBool getOutputName (const SoEngineOutput *output, SbName &outputname) const
virtual const SoEngineOutputData * getOutputData (void) const =0
SbBool isNotifying (void) const
virtual void notify (SoNotList *nl)
virtual void writeInstance (SoOutput *out)
static void initClass (void)
static SoType getClassTypeId (void)
SoNodeEngine (void)
virtual ~SoNodeEngine (void)
virtual void evaluate (void)=0
virtual SbBool readInstance (SoInput *in, unsigned short flags)
virtual void inputChanged (SoField *which)
void writeOutputTypes (SoOutput *out)
static const SoFieldData ** getFieldDataPtr (void)
static const SoEngineOutputData ** getOutputDataPtr (void)
SoNodeEngine is the base class for Coin node engines.
Node engines have the same functionality as normal engines, except that they inherit SoNode, which makes it possible to insert node engines in the scene graph.
The main rationale for this class is to simplify the implementation of VRML interpolator nodes, which are in a sense engines embedded in the shape of ordinary nodes.
This abstract superclass will likely be of no interest to the Coin application programmer, and you can safely ignore it.
Be aware that this class is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.
Default constructor.
Destructor.
Triggers an engine evaluation.
Adds all outputs to list. Returns the number of outputs added to the list.
Returns the output with name outputname, or NULL if no such output exists.
Sets to the name of output. Returns FALSE if no such output is contained within the engine instance.
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Implemented in SoVRMLTimeSensor, SoVRMLPositionInterpolator, SoVRMLColorInterpolator, SoVRMLOrientationInterpolator, SoVRMLCoordinateInterpolator, SoVRMLInterpolator, SoVRMLNormalInterpolator, and SoVRMLScalarInterpolator.
Returns whether we're in a notification process. This is needed to avoid double notification when an engine enables outputs during inputChanged().
Notifies all auditors for this instance when changes are made.
Reimplemented from SoNode.
Reimplemented in SoVRMLTimeSensor.
Writes all the fields contained in this instance to the output stream within out.
This method is solely called from the write methods of fields.
Either from SoField if the write is done because of a field-to-field connection, or from one of the fields which may actually write SoFieldContainer instances, i.e. SoSFNode, SoMFNode, SoSFEngine, SoMFEngine, SoSFPath and SoMFPath.
This method, in addition to the ordinary write() method of SoNode, needs to be present since the fields don't have a write action instance in their writeValue() method, and writeInstance() will create a new SoWriteAction and call continueToApply() on it.
Reimplemented from SoNode.
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
This method is mainly intended for internal use during file import operations.
It reads a definition of an instance from the input stream in. The input stream state points to the start of a serialized / persistant representation of an instance of this class type.
TRUE or FALSE is returned, depending on if the instantiation and configuration of the new object of this class type went ok or not. The import process should be robust and handle corrupted input streams by returning FALSE.
flags is used internally during binary import when reading user extension nodes, group nodes or engines.
Reimplemented from SoNode.
Called when an input is changed. The default method does nothing, but subclasses may override this method to do the The Right Thing when a specific field is changed.
Reimplemented in SoVRMLTimeSensor.
Returns the SoFieldData class which holds information about inputs in this engine.
Returns the SoEngineOutputData class which holds information about the outputs in this engine.
Writes the types of engine outputs for extension engines (i.e. engines not built in to Coin).
Generated automatically by Doxygen for Coin from the source code.