SoLightPath(3)

πŸ“¦
version 4.0.10 Β· 4 versions
, in fedora 43, fedora 44

πŸ’– 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