SoLightPath(3)
π NAME π
okay so bestie, meet SoLightPath β it's literally the light version of SoPath. that's the whole vibe. β¨
this page lives in the Coin manual, section 3 (the library-functions girlies, iykyk), and we're gonna go through every single bit of her. no skipping, no skimming, we eat the whole plate. π
β¨ SYNOPSIS β¨
first things first, you gotta pull her in:
#include <Inventor/misc/SoLightPath.h>
π Public Member Functions π
here's the full roster, bestie, every single one of them, exactly as she is:
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
πΈ Detailed Description πΈ
okay so the tea is: SoLightPath is a light version of SoPath. that's it, that's the headline. π
when do you use her? when you only need a temporary path and you do not want all the overhead that comes with an SoPath β and bestie, that overhead is a whole situationship: ref, unref, auditing, etc. SoLightPath said "not me being all that," and dipped. π
β οΈ but listen, this is the important part and I need you to actually read it: it is your responsibility to make sure the path is valid before using it. she is not gonna hold your hand. she is not gonna audit herself. that's the trade, and honestly? iconic of her. π
π¦ Constructor & Destructor Documentation π¦
SoLightPath::SoLightPath (SoNode * headnodeptr, const int approxlength)
a constructor, bestie. π you hand her the head node and the approximate length of the path. that's the whole ask.
SoLightPath::SoLightPath (const int approxlength)
a constructor, again. this time you just supply the approximate length of the path. no head node, she's chill like that. β¨
SoLightPath::~SoLightPath ()
destructor. she's gone, she served, we move on. π
π Member Function Documentation π
void SoLightPath::setHead (SoNode *const node)
sets the head of the path. and bestie β it truncates the path to length 1. so if you had a whole little journey going on, it's now just the one node. periodt. βοΈ
void SoLightPath::append (const int childindex)
appends a childindex to the path. adding to the girlies, one at a time. π«Ά
void SoLightPath::push (const int childindex)
same as append(). literally the same thing. she said "why have one name when two is cute." π
void SoLightPath::pop (void )
pops off the last child. bye bestie, you're done here. π
void SoLightPath::setTail (const int childindex)
sets the tail of the path. π
SoNode * SoLightPath::getTail (void ) const
returns the tail node of the path. and for the record β she uses getNode() to do it. passing the credit along, we love to see it. β¨
SoNode * SoLightPath::getHead (void ) const
returns the head node. the main character of this path, fr fr. π
SoNode * SoLightPath::getNode (const int index) const
returns the index'th node in the path. count carefully, bestie. π’
int SoLightPath::getIndex (const int index) const
returns the child index of the index'th node in the path. yes, two different "index"es, that's just how she is, and we respect it. π
int SoLightPath::getFullLength () const
returns the length of the path. the full length. she's giving you the whole thing, no crumbs. πΈ
void SoLightPath::truncate (const int startindex)
truncates the path from startindex. that's where the scissors go, and everything from there on is out. π
void SoLightPath::makeTempPath (SoTempPath * path) const
updates path to be the same path as this path. a little copy-paste moment between friends. π§
β Author β
generated automatically by Doxygen for Coin, straight from the source code. the robots wrote it, we just gave it the glow-up. π
and that's the whole page, bestie! π this was Coin Version 4.0.10, dated Thu Jun 25 2026 00:00:00, serving SoLightPath(3) realness. go forth, build your temp paths, and remember: valid path, or it's on you. no cap. πβ¨π¦
π¦ where this page comes from
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms