SoLightPath(3)
β¨ SoLightPath β¨
okay bestie, welcome to the Coin library functions manual, where we're talking about SoLightPath π
π NAME π
SoLightPath β the SoLightPath class is a light version of SoPath. that's it, that's the whole vibe. diet SoPath. SoPath's cool younger sibling who doesn't need all the baggage π
πΈ SYNOPSIS πΈ
#include <Inventor/misc/SoLightPath.h>
π«Ά Public Member Functions π«Ά
SoLightPath (SoNode *node, const int approxlength)
SoLightPath (const int approxlength)
~SoLightPath ()
void setHead (SoNode *const node)
void append (const int childindex)
void push (const int childindex)
void pop (void)
void setTail (const int childindex)
SoNode * getTail (void) const
SoNode * getHead (void) const
SoNode * getNode (const int index) const
int getIndex (const int index) const
int getFullLength () const
void truncate (const int startindex)
void makeTempPath (SoTempPath *path) const
like look at all of them. every single one. no skips, no cuts, we ate π
π Detailed Description π
so the SoLightPath class is a light version of SoPath. (we said it in NAME too but it bears repeating, it's literally the whole point β¨)
reach for SoLightPath when you only need a temporary path and you do NOT want all the overhead that comes with an SoPath β and by overhead we mean the ref, unref, auditing etc. all of that. no cap, it's a whole lot. π
β οΈ bestie listen. it is YOUR responsibility to make sure the path is valid before using it. nobody else is checking. there is no audit fairy coming to save you. the vibe check is on you π
π¦ Constructor & Destructor Documentation π¦
π SoLightPath::SoLightPath (SoNode * headnodeptr, const int approxlength) π
a constructor β¨ hand it the head node, and also hand it the approximate length of the path. that's it, that's the deal.
π SoLightPath::SoLightPath (const int approxlength) π
another constructor β¨ this one just wants the appriximate length of the path. (yes, "appriximate", the original said it like that, we don't fix what's iconic π)
π SoLightPath::~SoLightPath () π
Destructor. bye bye π the end of an era, she's done.
π Member Function Documentation π
β void SoLightPath::setHead (SoNode *const node) β
Sets the head of the path. also truncates the path to length 1 β so yeah, it doesn't just set the head, it clears the whole rest of the lineup. main character energy honestly π
β void SoLightPath::append (const int childindex) β
Appends a childindex to the path. adding to the group chat, one by one π«Ά
β void SoLightPath::push (const int childindex) β
Same as append(). literally the same thing. two names, one function, we love a versatile icon π
β void SoLightPath::pop (void ) β
Pops off the last child. leaving the chat. no hard feelings πΈ
β void SoLightPath::setTail (const int childindex) β
Sets the tail of the path. the end of the line, the final girl β¨
β SoNode * SoLightPath::getTail (void ) const β
Returns the tail node of the path. (it uses getNode() internally, iykyk π)
β SoNode * SoLightPath::getHead (void ) const β
Returns the head node. the beginning. the origin story π
β SoNode * SoLightPath::getNode (const int index) const β
Returns the *index*th node in the path. go get your girl π₯
β int SoLightPath::getIndex (const int index) const β
Returns the child index of the *index*th node in the path. slightly different from the one above bestie, don't mix them up π
β int SoLightPath::getFullLength () const β
Returns the length of the path. how long is she. π
β void SoLightPath::truncate (const int startindex) β
Truncates the path from startindex. βοΈ chopped. sorry to everyone after that point.
β void SoLightPath::makeTempPath (SoTempPath * path) const β
Updates path to be the same path as this path. twin making, but temporary π§
π Author π
Generated automatically by Doxygen for Coin from the source code. (not a human, not a bestie, just a robot doing its little best π€π)
and that's the whole page, periodt. π
β¨ this was Coin, Version 3.1.3, dated SoLightPath(3) β mwah, slay, go build something iconic, love u bye ππ¦πΈ
π¦ 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