#include <Inventor/engines/SoEngine.h>
Inheritance diagram for SoEngine::
Public Methods | |
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) |
SoEngine * | copy (void) const |
virtual SoFieldContainer * | copyThroughConnection (void) const |
SbBool | shouldCopy (void) const |
virtual void | writeInstance (SoOutput *out) |
Static Public Methods | |
void | initClass (void) |
void | initClasses (void) |
SoType | getClassTypeId (void) |
SoEngine * | getByName (const SbName &name) |
int | getByName (const SbName &name, SoEngineList &el) |
Protected Methods | |
SoEngine (void) | |
virtual | ~SoEngine () |
virtual void | evaluate (void)=0 |
virtual SbBool | readInstance (SoInput *in, unsigned short flags) |
virtual void | inputChanged (SoField *which) |
void | writeOutputTypes (SoOutput *out) |
Static Protected Methods | |
const SoFieldData ** | getInputDataPtr (void) |
const SoEngineOutputData ** | getOutputDataPtr (void) |
Engines enables the application programmers to make complex connections between fields.
The most common cases where you use engines are: 1) to constrain the values of a field with regard to the contents of one or more other fields in the scene graph, 2) as a convenient way to animate parts of the scene graph.
The reference count of an engine will be increased by 1 for each connection made to one of its engine outputs, and decreased by one for a disconnect. See SoEngineOutput::addConnection() and SoEngineOutput::removeConnection(). When the reference count goes down to zero, the engine will automatically be destroyed, and subsequent attempts at using the engine will lead to a crash.
If you want complete control over when an engine gets destructed, use SoBase::ref() and SoBase::unref() for explicit referencing/dereferencing.
|
Default constructor. |
|
Destructor. |
|
Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. Reimplemented from SoFieldContainer. Reimplemented in SoBoolOperation, SoCalculator, SoComputeBoundingBox, SoConcatenate, SoCounter, SoElapsedTime, SoFieldConverter, SoGate, SoInterpolate, SoOnOff, SoOneShot, SoSelectOne, SoTimeCounter, SoTransformVec3f, and SoTriggerAny. |
|
Initializes all engines. Automatically called from SoEngine::initClass() upon initialization of Coin. Reimplemented in SoFieldConverter, and SoInterpolate. |
|
This static method returns the SoType object associated with objects of this class. Reimplemented from SoFieldContainer. |
|
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 |
|
Sets \outputname to the name of output. Returns |
|
For internal use only. |
|
Returns the engine named name, or |
|
Finds all engines named name. Returns the number of engines added to the el list. |
|
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 SoFieldContainer. |
|
Make a duplicate of this engine and return a pointer to the duplicate. Connections are shallow copied, ie the node or engine instance at the other end of the connection is not cloned. We just let the connection reference from the cloned engine refer to the same instance as the engine we've cloned ourselves from. Note that this is not the function the application programmer should override if she needs some special behavior during a copy operation (like copying the value of internal data not exposed as fields). For that purpose, override the copyContents() method. Your overridden copyContents() method should then both copy internal data aswell as calling the parent superclass' copyContents() method for automatically handling of fields and other common data. |
|
Return copy of this instance.
Note: default implementation just returns Reimplemented from SoFieldContainer. |
|
Returns whether this engine should be copied or simply referenced in a copy operation. Engines which are not really part of the scenegraph should not be copied. |
|
Writes all the fields contained in this instance to the output stream within out. Reimplemented from SoFieldContainer. Reimplemented in SoElapsedTime, and SoTimeCounter. |
|
For internal use only. |
|
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.
flags is used internally during binary import when reading user extension nodes, group nodes or engines. Reimplemented from SoFieldContainer. |
|
Called when an input is changed. The default method does nothing, but subclasses may overload this method to do the The Right Thing when a specific field is changed. Reimplemented in SoCalculator, SoGate, and SoTimeCounter. |
|
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). |