SoPathList(3)
π SoPathList β a Coin joint, bestie π
okay so we're doing SoPathList(3) today and honestly? she's giving container core. this is the Coin library's little holder for pointers to SoPath objects and she is SO organized. let's get into it π¦
β¨ NAME β¨
SoPathList β the class that's literally just a container for pointers to SoPath objects. that's the whole vibe. no notes. π
πΈ SYNOPSIS πΈ
#include <Inventor/lists/SoPathList.h>
Inherits SoBaseList. so yes, she's got a whole family tree and we're meeting the whole family, sorry not sorry π
π Public Member Functions π
SoPathList(void)SoPathList(const int size)SoPathList(const SoPathList &pl)~SoPathList()void append(SoPath *const path)SoPath * operator[](const int i) constSoPathList & operator=(const SoPathList &pl)int findPath(const SoPath &path) constvoid sort(void)void uniquify(void)
π Public Member Functions inherited from SoBaseList π
SoBaseList(void)SoBaseList(const int size)SoBaseList(const SoBaseList &l)~SoBaseList()void append(SoBase *ptr)void insert(SoBase *ptr, const int addbefore)void remove(const int index)void removeItem(SoBase *item)void truncate(const int length)void copy(const SoBaseList &l)SoBaseList & operator=(const SoBaseList &l)SoBase * operator[](const int i) constvoid set(const int i, SoBase *const ptr)void addReferences(const SbBool flag)SbBool isReferencing(void) const
π Public Member Functions inherited from SbPList π
SbPList(const int sizehint=DEFAULTSIZE)SbPList(const SbPList &l)~SbPList()void copy(const SbPList &l)SbPList & operator=(const SbPList &l)void fit(void)void append(void *item)int find(const void *item) constvoid insert(void *item, const int insertbefore)void removeItem(void *item)void remove(const int index)void removeFast(const int index)int getLength(void) constvoid truncate(const int length, const int fit=0)void ** getArrayPtr(const int start=0) constvoid *& operator[](const int index) constint operator==(const SbPList &l) constint operator!=(const SbPList &l) constvoid * get(const int index) constvoid set(const int index, void *item)
β Additional Inherited Members β
Protected Member Functions inherited from SbPList
void expand(const int size)int getArraySize(void) const
π§ Detailed Description π§
ok so the SoPathList class is a container for pointers to SoPath objects. literally that's her whole job and she does it flawlessly, we stan π
and because she inherits from SoBaseList, the referencing and dereferencing is by default handled on the objects at append(), remove(), insert() etc. so you don't gotta babysit that yourself. no cap. π«Ά
π Constructor & Destructor Documentation π
SoPathList::SoPathList(void)
Default constructor. the classic. she just shows up π
SoPathList::SoPathList(const int size)
Constructor with a hint about the number of elements the list will hold. it's a hint, not a promise, bestie β she's just getting ready β¨
See also: SoBaseList::SoBaseList(const int)
SoPathList::SoPathList(const SoPathList &pl)
Copy constructor π¦
Does a shallow copy of the SoPath pointer values, but updates the reference count. so like, same pointers, but the ref count gets its little update. important detail, don't skip it π
See also: SoBaseList::SoBaseList(const SoBaseList &)
SoPathList::~SoPathList()
Destructor. she's leaving, say bye π
See also: SoBaseList::~SoBaseList()
π Member Function Documentation π
void SoPathList::append(SoPath *const path)
Append ptr to the list. adding to the end, putting her at the back of the line, iconic behavior β¨
See also: SoBaseList::append()
SoPath * SoPathList::operator[](const int i) const
Return node pointer at index i. that's it, that's the function πΈ
See also: SoBaseList::operator[]()
SoPathList & SoPathList::operator=(const SoPathList &pl)
Shallow copy of contents of list pl to this list. giving copy-paste energy but make it shallow π
See also: SoBaseList::operator=()
int SoPathList::findPath(const SoPath &path) const
Find and return the index of the first item equal to path. first match only, she's not doing a whole scavenger hunt π
void SoPathList::sort(void)
Sort paths in the list according to how early they are run into when traversing the scene graph. so like, whichever one you bump into first in the traversal wins the front seat π
void SoPathList::uniquify(void)
Removes identical paths and paths that go through the tail of another path. cleaning house, we love a declutter era π§Ή
Note that this method assumes the list to be in a sorted order. so like, if you didn't sort() first, that's on you bestie, she said what she said π
See also: sort()
π Author π
Generated automatically by Doxygen for Coin from the source code. so technically a robot wrote this but I'm the one translating it into feelings π
and that's the whole page, periodt π this was SoPathList(3) from the Coin manual, Version 4.0.10, dated Thu Jun 25 2026 00:00:00 β mwah, go build something cute π¦β¨
π¦ 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