SoEngineOutput(3)
SoEngineOutput π
okay bestie, so this is the tea on SoEngineOutput(3) β it lives in the Library Functions Manual and it's the moment where Coin's engine outputs finally get their main character arc. β¨
πΈ NAME πΈ
SoEngineOutput β the output slots in SoEngine instances, fr fr. π
π¦ SYNOPSIS π¦
#include <Inventor/engines/SoEngine.h>
β¨ Public Member Functions β¨
SoEngineOutput(void)virtual ~SoEngineOutput()SoType getConnectionType(void) constint getForwardConnections(SoFieldList &fl) constvoid enable(const SbBool flag)SbBool isEnabled(void) constSoEngine * getContainer(void) constSoNodeEngine * getNodeContainer(void) constSbBool isNodeEngineOutput(void) constvoid setContainer(SoEngine *engine)void setNodeContainer(SoNodeEngine *nodeengine)void addConnection(SoField *f)void removeConnection(SoField *f)int getNumConnections(void) constSoField * operator[](int i) constvoid prepareToWrite(void) constvoid doneWriting(void) constvoid touchSlaves(SoNotList *nl, SbBool donotify)SoFieldContainer * getFieldContainer(void)
π Detailed Description π
The SoEngineOutput class is the output slots in SoEngine instances. no cap.
So SoEngineOutput has methods for convenient handling of the connections made from SoEngine objects to SoField objects. it's giving matchmaker but for fields π«Ά
See also
SoEngine,SoField
π Constructor & Destructor Documentation π
π« SoEngineOutput::SoEngineOutput(void)
Constructor. The SoEngineOutput will initially not be contained within an SoEngine, nor will it have any slave fields attached. baby output, fresh out the box πΌ
See also
setContainer()
Referenced by prepareToWrite().
π« SoEngineOutput::~SoEngineOutput() [virtual]
Destructor. rip boo, you did amazing πβ¨
References getForwardConnections(), and SoDebugError::postInfo().
π Member Function Documentation π
β SoType SoEngineOutput::getConnectionType(void) const
Returns the type of the engine output.
References getContainer(), getNodeContainer(), SoEngine::getOutputData(), SoNodeEngine::getOutputData(), and isNodeEngineOutput().
Referenced by SoField::connectFrom(), and SoDB::createRoute().
β int SoEngineOutput::getForwardConnections(SoFieldList &fl) const
Adds all slave fields connected to this output to fl. Returns the number of slaves. it's literally rounding up the whole group chat π₯°
See also
addConnection()removeConnection()
References SoFieldList::append(), SoField::getContainer(), SoFieldConverter::getForwardConnections(), and SoBase::isOfType().
Referenced by SoDB::createRoute(), SoField::disconnect(), and ~SoEngineOutput().
β void SoEngineOutput::enable(const SbBool flag)
Sets the enabled flag. If output is disabled, the fields connected to this output will not be changed when the engine is evaluated. so like, muted. on purpose. periodt. π
See also
isEnabled()
References touchSlaves().
β SbBool SoEngineOutput::isEnabled(void) const
Returns status of the enabled flag.
See also
enable()
Referenced by SoField::disconnect(), and touchSlaves().
β SoEngine * SoEngineOutput::getContainer(void) const
Returns the engine containing this output. If the engine containing this output is a NodeEngine, this method returns NULL. π
See also
setContainer(),getNodeContainer()
References isNodeEngineOutput(), and SoDebugError::postWarning().
Referenced by addConnection(), SoField::copyConnection(), SoField::evaluateConnection(), getConnectionType(), and SoField::referencesCopy().
β SoNodeEngine * SoEngineOutput::getNodeContainer(void) const
Returns the node engine containing this output. If the engine containing this output is not a NodeEgine, this method returns NULL. (yes bestie, the typo is in the original, we do not fix, we respect the artifact π
)
This function is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.
See also
setNodeContainer(),getContainer()
Since
- Coin 2.0
References isNodeEngineOutput(), and SoDebugError::postWarning().
Referenced by SoField::copyConnection(), SoField::evaluateConnection(), getConnectionType(), and SoField::referencesCopy().
β SbBool SoEngineOutput::isNodeEngineOutput(void) const
Returns TRUE if the container is a NodeEngine.
This function is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.
See also
getNodeContainer(),getContainer()
Since
- Coin 2.0
Referenced by addConnection(), SoField::copyConnection(), SoField::evaluateConnection(), getConnectionType(), getContainer(), getNodeContainer(), and SoField::referencesCopy().
β void SoEngineOutput::setContainer(SoEngine *engine)
Sets the engine containing this output.
See also
getContainer()
β void SoEngineOutput::setNodeContainer(SoNodeEngine *nodeengine)
Sets the NodeEngine containing this output.
This function is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.
See also
getNodeContainer()
Since
- Coin 2.0
β void SoEngineOutput::addConnection(SoField *f)
Adds f to the list of connections from this output. π
Adds 1 to the reference count of the container engine.
See also
removeConnection(),getForwardConnections()
References getContainer(), SoField::getContainer(), getFieldContainer(), isNodeEngineOutput(), SoBase::isOfType(), SoDebugError::postWarning(), and SoBase::ref().
Referenced by SoField::connectFrom(), and SoField::connectFrom().
β void SoEngineOutput::removeConnection(SoField *f)
Removes f from the list of connections from this output. π«
Subtracts 1 from the reference count of the container engine. If the reference count reaches zero (which will happen if this was the last connection and the application programmer did not explicitly ref the engine), the container engine will be deallocated. bestie, it's giving ghosted β poof, gone, deallocated π
See also
addConnection(),getForwardConnections()
References SoField::getContainer(), getFieldContainer(), SoBase::isOfType(), SoDebugError::postWarning(), and SoBase::unref().
Referenced by SoField::disconnect(), and SoField::disconnect().
β int SoEngineOutput::getNumConnections(void) const
Returns the number of fields in the list of connections. headcount check β
See also
operator[],addConnection()
Referenced by touchSlaves().
β SoField * SoEngineOutput::operator[](int i) const
Returns the field at index i in the list of connections.
Please note that this might not be the same field as the one the output was originally connected to, since a field converted might have been inserted to converted the output to match the field type. (again, the wording is the original's, we keep it exactly as-is, no edits, no cap π«Ά)
See also
getNumConnections()
Returns element at idx.
Will automatically expand the size of the internal array if idx is outside the current bounds of the list. The values of any additional pointers are then set to NULL. so it just grows, slay β¨
β void SoEngineOutput::prepareToWrite(void) const
Disables notifications on fields connected to this output. This is done before the engine is evaulated, since the fields we are going to write into have already been notified. π€«
See also
doneWriting()
References SbList< Type >::append(), SoField::enableNotify(), SoField::isNotifyEnabled(), SoEngineOutput(), and SbList< Type >::truncate().
β void SoEngineOutput::doneWriting(void) const
Restores the notification flags on fields connected to this output after evaluating.
See also
prepareToWrite()
β void SoEngineOutput::touchSlaves(SoNotList *nl, SbBool donotify)
Notify the fields attached to this engine output that the output value has changed. π£
If donotify is TRUE, propagate the notification to the fields. Otherwise just mark the fields "dirty" for re-evalution.
Note that this method is not part of the original Open Inventor API.
References getNumConnections(), isEnabled(), SoField::notify(), and SoField::setDirty().
Referenced by enable().
β SoFieldContainer * SoEngineOutput::getFieldContainer(void)
Convenience method that returns a field container. This method can be used both for NodeEngine and Engine outputs. one method, two vibes, obsessed π
This function is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.
Since
- Coin 2.0
Referenced by addConnection(), SoField::connectFrom(), SoField::countWriteRefs(), and removeConnection().
π Author π
Generated automatically by Doxygen for Coin from the source code. (the robots wrote it, not me, I just gave it β¨flavorβ¨)
okay that's the whole page bestie, you ate it, every option, every reference, every Since, all of it, still intact π
Coin β Version 2.5.0, and this was SoEngineOutput(3). mwah, bye, go connect some fields π
π
π¦ where this page comes from
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.fc44 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms