Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
SoDialogWidgetList Class Reference

#include <DialogViz/SoDialogWidgetList.h>

+ Inheritance diagram for SoDialogWidgetList:

Public Member Functions

 SoDialogWidgetList ()
 Constructor.
 
 SoDialogWidgetList (int size)
 Constructor that pre-allocates storage for size pointers.
 
 SoDialogWidgetList (const SoDialogWidgetList &l)
 Constructor that copies the contents of another list.
 
 ~SoDialogWidgetList ()
 Destructor.
 
void append (SoWidget ptr)
 Adds a pointer to the end of the list.
 
void insert (SoWidget ptr, int addBefore)
 Inserts given pointer in list before pointer with given index.
 
int find (const SoWidget ptr) const
 Returns index of given widget in list, or -1 if not found.
 
SoDialogWidgetListoperator= (const SoDialogWidgetList &l)
 Copies a list.
 
SoWidgetoperator[] (int i) const
 Returns pointer with given index.
 
void set (int i, SoWidget &ptr)
 Sets an element of a list.
 
- Public Member Functions inherited from SbPList
 SbPList ()
 Default constructor.
 
 SbPList (int initSize)
 Constructor.
 
 SbPList (const SbPList &pl)
 Constructor.
 
virtual ~SbPList ()
 Destructor.
 
void append (void *ptr)
 Adds given pointer to end of list.
 
int find (const void *ptr) const
 Returns index of given pointer in list, or -1 if not found.
 
void insert (void *ptr, int addBefore)
 Inserts given pointer in list before pointer with given index.
 
virtual void remove (int which)
 Removes pointer with given index.
 
int getLength () const
 Returns number of pointers in list.
 
virtual void truncate (int start)
 Removes all pointers after one with given index, inclusive.
 
void copy (const SbPList &pl)
 Copies a list.
 
SbPListoperator= (const SbPList &pl)
 Assignment operator: copies list into this list.
 
void *& operator[] (const int index) const
 Returns pointer with given index.
 
int operator== (const SbPList &pl) const
 Equality operator.
 
int operator!= (const SbPList &pl) const
 Inequality operator.
 
void swap (int index1, int index2)
 Swaps element having index1 with the one having index2.
 

Detailed Description

Definition at line 29 of file SoDialogWidgetList.h.

Constructor & Destructor Documentation

◆ SoDialogWidgetList() [1/3]

SoDialogWidgetList::SoDialogWidgetList ( )

Constructor.

◆ SoDialogWidgetList() [2/3]

SoDialogWidgetList::SoDialogWidgetList ( int  size)

Constructor that pre-allocates storage for size pointers.

◆ SoDialogWidgetList() [3/3]

SoDialogWidgetList::SoDialogWidgetList ( const SoDialogWidgetList l)

Constructor that copies the contents of another list.

◆ ~SoDialogWidgetList()

SoDialogWidgetList::~SoDialogWidgetList ( )

Destructor.

Member Function Documentation

◆ append()

void SoDialogWidgetList::append ( SoWidget  ptr)

Adds a pointer to the end of the list.

◆ find()

int SoDialogWidgetList::find ( const SoWidget  ptr) const

Returns index of given widget in list, or -1 if not found.

◆ insert()

void SoDialogWidgetList::insert ( SoWidget  ptr,
int  addBefore 
)

Inserts given pointer in list before pointer with given index.

◆ operator=()

SoDialogWidgetList & SoDialogWidgetList::operator= ( const SoDialogWidgetList l)

Copies a list.

◆ operator[]()

SoWidget & SoDialogWidgetList::operator[] ( int  i) const

Returns pointer with given index.

If requested index does not exists, list is grown to return a valid pointer.

◆ set()

void SoDialogWidgetList::set ( int  i,
SoWidget ptr 
)

Sets an element of a list.


The documentation for this class was generated from the following file: