SoPickedPointList(3)
π SoPickedPointList β the NAME section, bestie π
okay so welcome to the manual page for SoPickedPointList(3) β she lives in the Library Functions Manual, section 3, and she is the container for pointers to SoPickedPoint objects. π
β¨ SYNOPSIS β¨
#include <Inventor/lists/SoPickedPointList.h>
She Inherits SbPlist. π
(yes, the whole glow-up comes from her parent, more on that below)
πΈ Public Member Functions πΈ
SoPickedPointList (void)β the default constructor, no args, no dramaSoPickedPointList (const int sizehint)β constructor that takes a size hintSoPickedPointList (const SoPickedPointList &l)β copy constructorvoid append (SoPickedPoint *pp)β tack a picked point onto the endvoid insert (SoPickedPoint *pp, const int insertbefore)β slide a picked point in before the given indexSoPickedPoint * operator[] (const int idx) constβ grab the element atidxvoid truncate (const int start, const int fit=0)β cut the list down fromstartvoid set (const int idx, SoPickedPoint *pp)β replace the element atidx
π«Ά 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 (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 π
The SoPickedPointList class is a container for pointers to SoPickedPoint objects. π
This list class will delete the picked points when destructed/truncated, or when a picked point in the list is replaced by another picked point. The caller is responsible for allocating the picked points passed to the list, but should not deallocate them since this will be handled by the list. π«£
bestie this is the important part: you allocate, she deallocates. do not double-dip. π
See also
SbPList
π§ Constructor & Destructor Documentation π§
SoPickedPointList::SoPickedPointList (void ) [inline]
Default constructor. π
References SbPList::SbPList().
Referenced by SoPickedPointList().
SoPickedPointList::SoPickedPointList (const int sizehint) [inline]
This constructor initializes the internal allocated size for the list to sizehint. Note that the list will still initially contain zero items. β¨ (she's got room, but she's empty, it's giving freshly-cleaned bedroom)
See also
SbList::SbList(const int sizehint)
References SbPList::SbPList().
SoPickedPointList::SoPickedPointList (const SoPickedPointList & l)
Copy constructor. Will copy picked points, not just pointers. π₯ (yes literally, not just the pointers, the actual points β she's thorough)
See also
SbList::SbList(const SbList<Type> & l)
References SbPList::copy(), SbPList::getLength(), SbPList::SbPList(), and SoPickedPointList().
π Member Function Documentation π
SoPickedPoint * SoPickedPointList::operator[] (const int idx) const [inline]
Returns element at idx.
Will automatically expand the size of the internal array if idx is outside the current bounds of the list. The values of any additional pointers are then set to NULL. π (she grows for you, no cap)
References SbPList::operator[]().
void SoPickedPointList::truncate (const int start, const int fit = 0)
Overridden to delete truncated items. ποΈ
References SbPList::fit(), SbPList::getLength(), and SbPList::truncate().
void SoPickedPointList::set (const int idx, SoPickedPoint * pp)
Overridden to destruct the replaced item. π (out with the old, she handles it)
References SbPList::getLength(), and SbPList::operator[]().
β Author β
Generated automatically by Doxygen for Coin from the source code. π¦
and that's the whole page, bestie!! π₯³ this one came straight out of Coin, Version 2.5.0 β so when you're citing her, that's the source and the version, periodt. πβ¨ππ«Ά
π¦ where this page comes from
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.fc44 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.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