SODETAILLIST(3iv)
π SoDetailList β the whole vibe π
okay so bestie, this is SoDetailList(3IV), a page from the 3IV manual, and it's literally all about keeping a little list of detail instances. yes it's niche. yes it's iconic. let's get into it π«Ά
β¨ NAME β¨
SoDetailList β maintains a list of instances of details π
πΈ INHERITS FROM πΈ
SbPList > SoDetailList
so yeah, SoDetailList is a subclass of SbPList, meaning it inherited all the SbPList energy and then added its own β¨
π SYNOPSIS π
#include <Inventor/SoLists.h>
Methods from class SoDetailList:
SoDetailList()
SoDetailList(int size)
SoDetailList(const SoDetailList &l)
~SoDetailList()
void append(SoDetail *detail)
void insert(SoDetail *detail, int addBefore)
void truncate(int start)
void copy(const SoDetailList &l)
SoDetailList & operator =(const SoDetailList &l)
SoDetail * operator [](int i) const
void set(int i, SoDetail *detail)
Methods from class SbPList:
int find(const void *ptr) const
void remove(int which)
int getLength() const
int operator ==(const SbPList &pl) const
int operator !=(const SbPList &pl) const
π¦ DESCRIPTION π¦
okay so picture this: SbPList is the blueprint, right? and SoDetailList is the glow-up subclass that holds lists of instances of classes derived from SoDetail. that's it. that's the whole thing. it's giving "specialized list, but make it details" π
π METHODS π
SoDetailList()β constructor, bestie. makes a new one, freshly empty, main character energy πSoDetailList(int size)β a constructor that pre-allocates storage forsizepointers. yes, planning ahead. we love a girl who pre-allocates πSoDetailList(const SoDetailList &l)β constructor that copies the contents of another list. twin-making, no cap π~SoDetailList()β destructor. it's over, she's gone, cleanup time πvoid append(SoDetail *detail)β adds a detail to the end of the list. back of the line, sweetie, but make it cute β¨void insert(SoDetail *detail, int addBefore)β inserts the given detail in the list before the detail with the given index. cutting the line, but politely π«Άvoid truncate(int start)β removes all details after the one with the given index, inclusive. and heads up: removed detail instances are deleted. like, actually deleted. gone. so don't go holding onto pointers to them after this, okay? πvoid copy(const SoDetailList &l)β copies a list, and it makes a copy of each detail instance in the list. not sharing, copying. periodt.SoDetailList & operator =(const SoDetailList &l)β the assignment operator. same deal ascopy: copies a list, making a copy of each detail instance in the list. slay πSoDetail * operator [](int i) constβ accesses an element of a list. classic bracket moment, iykyk πvoid set(int i, SoDetail *detail)β sets an element of a list, deleting the old entry first. out with the old, in with the new, no drama (well, a little drama, the old one literally gets deleted) π
π SEE ALSO π
SoDetail
k that's the whole page, bestie!! it came from the SoDetailList(3IV)() manual, version 3IV, dated () β yeah the date slot is lowkey empty, we don't talk about it π β mwah, go build something iconic πβ¨π
π¦ where this page comes from
- debian bookworm: inventor-doc 2.1.5-10+dfsg-2 Β· LGPL-2.0-or-later
- debian trixie: inventor-doc 2.1.6+ds-2 Β· LGPL-2.0-or-later
- ubuntu jammy: inventor-doc 2.1.5-10-24
- ubuntu noble: inventor-doc 2.1.5-10+dfsg-2.1build2 Β· LGPL-2.0-or-later
- ubuntu questing: inventor-doc 2.1.6+ds-2
- ubuntu resolute: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- ubuntu stonking: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms