Panda3D
Public Types | Public Member Functions
EggMorphList< MorphType > Class Template Reference

A collection of <Dxyz>'s or <Duv>'s or some such. More...

#include "eggMorphList.h"

List of all members.

Public Types

typedef Morphs::const_iterator const_iterator
typedef Morphs::iterator iterator
typedef Morphs::size_type size_type

Public Member Functions

 EggMorphList (const EggMorphList< MorphType > &copy)
iterator begin ()
const_iterator begin () const
void clear ()
 Empties the list of morphs.
int compare_to (const EggMorphList< MorphType > &other, double threshold) const
 compare_to() compares a different space than the operator methods, which only check the morph's name.
bool empty () const
iterator end ()
const_iterator end () const
pair< iterator, bool > insert (const MorphType &value)
 This is similar to the insert() interface for sets, except it does not guarantee that the resulting list is sorted.
bool operator!= (const EggMorphList< MorphType > &other) const
bool operator< (const EggMorphList< MorphType > &other) const
void operator= (const EggMorphList< MorphType > &copy)
bool operator== (const EggMorphList< MorphType > &other) const
size_type size () const
void write (ostream &out, int indent_level, const string &tag, int num_dimensions) const

Detailed Description

template<class MorphType>
class EggMorphList< MorphType >

A collection of <Dxyz>'s or <Duv>'s or some such.

Definition at line 31 of file eggMorphList.h.


Member Function Documentation

template<class MorphType >
void EggMorphList< MorphType >::clear ( ) [inline]

Empties the list of morphs.

Definition at line 219 of file eggMorphList.I.

template<class MorphType>
int EggMorphList< MorphType >::compare_to ( const EggMorphList< MorphType > &  other,
double  threshold 
) const

compare_to() compares a different space than the operator methods, which only check the morph's name.

compare_to() compares the name and the value as well.

Definition at line 101 of file eggMorphList.I.

Referenced by EggAttributes::compare_to(), EggVertex::compare_to(), EggAttributes::matches_color(), and EggAttributes::matches_normal().

template<class MorphType>
pair< typename EggMorphList< MorphType >::iterator, bool > EggMorphList< MorphType >::insert ( const MorphType &  value)

This is similar to the insert() interface for sets, except it does not guarantee that the resulting list is sorted.

We have this member function so the EggMorphList resembles a set. It used to *be* a set, but we cannot export STL sets from a Windows DLL.

Definition at line 193 of file eggMorphList.I.

Referenced by SoftNodeDesc::make_vertex_offsets().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations