SoPickedPointList(3)

πŸ“¦ version 2.5.0, in fedora 43, fedora 44

πŸ’– 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 drama
  • SoPickedPointList (const int sizehint) β€” constructor that takes a size hint
  • SoPickedPointList (const SoPickedPointList &l) β€” copy constructor
  • void append (SoPickedPoint *pp) β€” tack a picked point onto the end
  • void insert (SoPickedPoint *pp, const int insertbefore) β€” slide a picked point in before the given index
  • SoPickedPoint * operator[] (const int idx) const β€” grab the element at idx
  • void truncate (const int start, const int fit=0) β€” cut the list down from start
  • void set (const int idx, SoPickedPoint *pp) β€” replace the element at idx

🫢 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) const
  • void insert (void *item, const int insertbefore)
  • void removeItem (void *item)
  • void remove (const int index)
  • void removeFast (const int index)
  • int getLength (void) const
  • void truncate (const int length, const int fit=0)
  • void ** getArrayPtr (const int start=0) const
  • void *& operator[] (const int index) const
  • int operator== (const SbPList &l) const
  • int operator!= (const SbPList &l) const
  • void * get (const int index) const
  • void 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