SOPICKEDPOINTLIST(3iv)

πŸ’– SoPickedPointList(3IV) πŸ’–

okay so bestie, welcome to section 3IV of the manual β€” this is literally the page for SoPickedPointList, and it's giving list-of-pointers energy, no cap.


🌸 NAME 🌸

SoPickedPointList β€” maintains a list of pointers to SoPickedPoint instances.


🧬 INHERITS FROM 🧬

SbPList > SoPickedPointList


✨ SYNOPSIS ✨

#include <Inventor/SoLists.h>

          Methods from class SoPickedPointList:

                         SoPickedPointList()
                         SoPickedPointList(int size)
                         SoPickedPointList(const SoPickedPointList &l)
                         ~SoPickedPointList()
     void                append(SoPickedPoint *ptr)
     void                insert(SoPickedPoint *ptr, int addBefore)
     void                truncate(int start)
     SoPickedPoint *     operator [](int i) const
     void                set(int i, SoPickedPoint *pickedPoint)

          Methods from class SbPList:

     int                 find(const void *ptr) const
     void                remove(int which)
     int                 getLength() const
     void                copy(const SbPList &pl)
     SbPList &           operator =(const SbPList &pl)
     int                 operator ==(const SbPList &pl) const
     int                 operator !=(const SbPList &pl) const

πŸ’… DESCRIPTION πŸ’…

This subclass of SbPList holds lists of pointers to instances of classes derived from SoPickedPoint. It is used primarily to return information from picking with the SoRayPickAction class. periodt.


πŸ”₯ METHODS πŸ”₯

  • SoPickedPointList() β€” Constructor. just constructor things πŸ’–
  • SoPickedPointList(int size) β€” Constructor that pre-allocates storage for size pointers.
  • SoPickedPointList(const SoPickedPointList &l) β€” Constructor that copies the contents of another list.
  • ~SoPickedPointList() β€” Destructor. bye bestie πŸ‘‹
  • void append(SoPickedPoint *ptr) β€” Adds a pointer to the end of the list.
  • void insert(SoPickedPoint *ptr, int addBefore) β€” Inserts given pointer in list before pointer with given index.
  • void truncate(int start) β€” Removes all pointers after one with given index, inclusive, deleting all instances removed from the list. and yes, it really deletes them, so be careful bestie 😭
  • SoPickedPoint * operator [](int i) const β€” Accesses an element of a list.
  • void set(int i, SoPickedPoint *pickedPoint) β€” Sets an element of a list.

🌈 SEE ALSO 🌈

SoPickedPoint, SoRayPickAction


and that's the tea 🍡 this whole page is signed off with SoPickedPointList(3IV)() β€” that's the source/version footer vibe, fr fr. stay iconic, bestie πŸ’…βœ¨