SoEngineOutput(3)
π SoEngineOutput(3) π
okay bestie, so this is a page from the Library Functions Manual β it's all about SoEngineOutput, which (spoiler) is the output slots in SoEngine instances. yes that's the whole vibe. let's get into it π«Ά
β¨ NAME β¨
SoEngineOutput β the class that's literally the output slots inside SoEngine instances. that's it. that's the name. iconic.
πΈ SYNOPSIS πΈ
#include <Inventor/engines/SoEngine.h>
π Public Member Functions
SoEngineOutput (void)virtual ~SoEngineOutput (void)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 π¦
okay so, SoEngineOutput is the class that is the output slots in SoEngine instances. no cap.
the way that it works is: SoEngineOutput has methods for convenient handling of the connections made from SoEngine objects to SoField objects. like, it's the little matchmaker between engines and fields π
See also SoEngine, SoField
π Constructor & Destructor Documentation π
π SoEngineOutput::SoEngineOutput (void )
Constructor!! β¨ so here's the tea: the SoEngineOutput will initially not be contained within an SoEngine, and it also won't have any slave fields attached. it's just a lil baby output, free and unbothered, main character energy before the plot kicks in π
See also setContainer()
π SoEngineOutput::~SoEngineOutput (void ) [virtual]
Destructor. bye bestie π«Ά
π₯ Member Function Documentation π₯
β SoType SoEngineOutput::getConnectionType (void ) const
Returns the type of the engine output. just tells you what it is. slay.
β int SoEngineOutput::getForwardConnections (SoFieldList & fl) const
Adds all slave fields connected to this output into fl. and then it returns the number of slaves. so you get the list AND the count. double whammy π
See also addConnection()
removeConnection()
β void SoEngineOutput::enable (const SbBool flag)
Sets the enabled flag. here's the important part: if the output is disabled, the fields connected to this output will not be changed when the engine is evaluated. so like, flip it off and nothing updates. noted fr fr.
See also isEnabled().
β SbBool SoEngineOutput::isEnabled (void ) const
Returns the status of the enabled flag. is it on? is it off? find out β¨
See also enable().
β SoEngine * SoEngineOutput::getContainer (void ) const
Returns the engine containing this output. and this is the lil plot twist: if the engine containing this output is a NodeEngine, this method returns NULL. so heads up.
See also setContainer(), getNodeContainer()
β SoNodeEngine * SoEngineOutput::getNodeContainer (void ) const
Returns the node engine containing this output. but again β if the engine containing this output is not a NodeEgine, this method returns NULL. (yes, "NodeEgine", that's how it's written in the source, we don't fix it, we respect it π)
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
β SbBool SoEngineOutput::isNodeEngineOutput (void ) const
Returns TRUE if the container is a NodeEngine. simple as that π
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
β void SoEngineOutput::setContainer (SoEngine * engine)
Sets the engine containing this output. like, assign it a home π
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.
and β important β it adds 1 to the reference count of the container engine. so the engine knows somebody's holding onto it π«Ά
See also removeConnection(), getForwardConnections()
β void SoEngineOutput::removeConnection (SoField * f)
Removes f from the list of connections from this output.
and here's the big deal: it 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 β then the container engine will be deallocated. π so like, be aware of what you're un-connecting, bestie.
See also addConnection(), getForwardConnections()
β int SoEngineOutput::getNumConnections (void ) const
Returns the number of fields in the list of connections. count 'em π’
See also operator[], addConnection()
β 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. (yes, "converted... to converted", the original says it like that, we keep it exactly π)
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.
β void SoEngineOutput::prepareToWrite (void ) const
Disables notifications on fields connected to this output. this happens before the engine is evaulated, since the fields we are going to write into have already been notified. (again, "evaulated" β verbatim, we don't touch it πΈ)
See also doneWriting()
β void SoEngineOutput::doneWriting (void ) const
Restores the notification flags on fields connected to this output after evaluating. the cleanup era β¨
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.
β SoFieldContainer * SoEngineOutput::getFieldContainer (void )
Convenience method that returns a field container. this one is flexible bestie β it can be used both for NodeEngine and Engine outputs π
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
π Author π
Generated automatically by Doxygen for Coin from the source code. the robots wrote it, we just made it cute π
okay and that's the whole page!! π this was Coin, Version 3.1.3, SoEngineOutput(3) β thanks for reading bestie, go connect some fields responsibly, and remember: every output deserves its moment β¨ π¦πΈπ
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.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