Any one-, two-, three-, or four-component vertex, possibly with attributes such as a normal.
More...
Public Types |
typedef
second_of_pair_iterator
< AuxMap::const_iterator > | aux_iterator |
|
typedef AuxMap::size_type | aux_size_type |
|
typedef pmap< string, PT(EggVertexAux) > | AuxMap |
|
typedef aux_iterator | const_aux_iterator |
|
typedef uv_iterator | const_uv_iterator |
|
typedef pset< EggGroup * > | GroupRef |
|
typedef pmultiset< EggPrimitive * > | PrimitiveRef |
typedef
second_of_pair_iterator
< UVMap::const_iterator > | uv_iterator |
|
typedef UVMap::size_type | uv_size_type |
|
typedef pmap< string, PT(EggVertexUV) > | UVMap |
Public Member Functions |
| | EggVertex (const EggVertex ©) |
| | Copies all properties of the vertex except its vertex pool, index number, and group membership.
|
| const_aux_iterator | aux_begin () const |
| | Returns an iterator that allows walking through the complete set of auxiliary data on the vertex.
|
| const_aux_iterator | aux_end () const |
| | Returns an iterator that allows walking through the complete set of auxiliary data on the vertex.
|
| aux_size_type | aux_size () const |
| | Returns the number of auxiliary datas on the vertex.
|
| void | clear_aux () |
| | Removes all auxiliary data from the vertex.
|
| void | clear_aux (const string &name) |
| | Removes the named auxiliary data from the vertex.
|
| void | clear_grefs () |
| | Removes all group references from the vertex, so that it is not assigned to any group.
|
| void | clear_uv () |
| | Removes all UV coordinate pairs from the vertex.
|
| void | clear_uv (const string &name) |
| | Removes the named UV coordinate pair from the vertex, along with any UV morphs.
|
| int | compare_to (const EggVertex &other) const |
| | An ordering operator to compare two vertices for sorting order.
|
| void | copy_grefs_from (const EggVertex &other) |
| | Copies all the group references from the other vertex onto this one.
|
|
virtual TypeHandle | force_init_type () |
| const LVecBase4d & | get_aux (const string &name) const |
| | Returns the named auxiliary data quadruple on the vertex.
|
| const EggVertexAux * | get_aux_obj (const string &name) const |
| | Returns the named EggVertexAux object, which defines the auxiliary data for this name.
|
| int | get_external_index () const |
| | Returns the number set by set_external_index().
|
| int | get_external_index2 () const |
| | Returns the number set by set_external_index2().
|
| int | get_index () const |
| | Returns the index number of the vertex within its pool.
|
| int | get_num_dimensions () const |
| | Returns the number of dimensions the vertex uses.
|
| int | get_num_global_coord () const |
| | Returns the number of primitives that own this vertex whose vertices are interpreted in the global coordinate system.
|
| int | get_num_local_coord () const |
| | Returns the number of primitives that own this vertex whose vertices are interpreted to be in a local coordinate system.
|
| EggVertexPool * | get_pool () const |
| | Returns the vertex pool this vertex belongs in.
|
| double | get_pos1 () const |
| | Only valid if get_num_dimensions() returns 1.
|
| LPoint2d | get_pos2 () const |
| | Only valid if get_num_dimensions() returns 2.
|
| LVertexd | get_pos3 () const |
| | Valid if get_num_dimensions() returns 3 or 4.
|
| LPoint4d | get_pos4 () const |
| | This is always valid, regardless of the value of get_num_dimensions.
|
|
virtual TypeHandle | get_type () const |
| LTexCoordd | get_uv () const |
| | Returns the unnamed UV coordinate pair on the vertex.
|
| LTexCoordd | get_uv (const string &name) const |
| | Returns the named UV coordinate pair on the vertex.
|
| const EggVertexUV * | get_uv_obj (const string &name) const |
| | Returns the named EggVertexUV object, which defines both the UV coordinate pair for this name and the UV morphs.
|
| const LTexCoord3d & | get_uvw (const string &name) const |
| | Returns the named UV coordinate triple on the vertex.
|
| GroupRef::const_iterator | gref_begin () const |
| | Returns an iterator that can, in conjunction with gref_end(), be used to traverse the entire set of groups that reference this vertex.
|
| GroupRef::const_iterator | gref_end () const |
| | Returns an iterator that can, in conjunction with gref_begin(), be used to traverse the entire set of groups that reference this vertex.
|
| GroupRef::size_type | gref_size () const |
| | Returns the number of elements between gref_begin() and gref_end().
|
| bool | has_aux () const |
| | Returns true if the vertex has any auxiliary data, false otherwise.
|
| bool | has_aux (const string &name) const |
| | Returns true if the vertex has the named auxiliary data quadruple.
|
| bool | has_gref (const EggGroup *group) const |
| | Returns true if the indicated group references this vertex, false otherwise.
|
| int | has_pref (const EggPrimitive *prim) const |
| | Returns the number of times the vertex appears in the indicated primitive, or 0 if it does not appear.
|
| bool | has_uv () const |
| | Returns true if the vertex has an unnamed UV coordinate pair, false otherwise.
|
| bool | has_uv (const string &name) const |
| | Returns true if the vertex has the named UV coordinate pair, and the named UV coordinate pair is 2-d, false otherwise.
|
| bool | has_uvw (const string &name) const |
| | Returns true if the vertex has the named UV coordinate triple, and the named UV coordinate triple is 3-d, false otherwise.
|
| bool | is_forward_reference () const |
| | Returns true if the vertex is a forward reference to some vertex that hasn't been defined yet.
|
| EggVertexAux * | modify_aux_obj (const string &name) |
| | Returns a modifiable pointer to the named EggVertexAux object, which defines the auxiliary data for this name.
|
| EggVertexUV * | modify_uv_obj (const string &name) |
| | Returns a modifiable pointer to the named EggVertexUV object, which defines both the UV coordinate pair for this name and the UV morphs.
|
| EggVertex & | operator= (const EggVertex ©) |
| | Copies all properties of the vertex except its vertex pool, index number, and group membership.
|
|
void | output (ostream &out) const |
| PrimitiveRef::const_iterator | pref_begin () const |
| | Returns an iterator that can, in conjunction with pref_end(), be used to traverse the entire set of primitives that reference this vertex.
|
| PrimitiveRef::const_iterator | pref_end () const |
| | Returns an iterator that can, in conjunction with pref_begin(), be used to traverse the entire set of primitives that reference this vertex.
|
| PrimitiveRef::size_type | pref_size () const |
| | Returns the number of elements between pref_begin() and pref_end().
|
| void | set_aux (const string &name, const LVecBase4d &aux) |
| | Sets the indicated auxiliary data quadruple on the vertex.
|
| void | set_aux_obj (EggVertexAux *vertex_aux) |
| | Sets the indicated EggVertexAux on the vertex.
|
| void | set_external_index (int external_index) |
| | Sets a special index number that is associated with the EggVertex (but is not written to the egg file).
|
| void | set_external_index2 (int external_index2) |
| | Similar to set_external_index(), but this is a different number which may be used for a different purpose by the calling code.
|
| void | set_pos (double pos) |
| | Sets the vertex position.
|
| void | set_pos (const LPoint2d &pos) |
| | Sets the vertex position.
|
| void | set_pos (const LPoint3d &pos) |
| | Sets the vertex position.
|
| void | set_pos (const LPoint4d &pos) |
| | Sets the vertex position.
|
| void | set_pos4 (const LPoint4d &pos) |
| | This special flavor of set_pos() sets the vertex as a four-component value, but does not change the set number of dimensions.
|
| void | set_uv (const LTexCoordd &texCoord) |
| | Replaces the unnamed UV coordinate pair on the vertex with the indicated value.
|
| void | set_uv (const string &name, const LTexCoordd &texCoord) |
| | Sets the indicated UV coordinate pair on the vertex.
|
| void | set_uv_obj (EggVertexUV *vertex_uv) |
| | Sets the indicated EggVertexUV on the vertex.
|
| void | set_uvw (const string &name, const LTexCoord3d &texCoord) |
| | Sets the indicated UV coordinate triple on the vertex.
|
| bool | sorts_less_than (const EggVertex &other) const |
| | An ordering operator to compare two vertices for sorting order.
|
|
void | test_gref_integrity () const |
|
void | test_pref_integrity () const |
| void | transform (const LMatrix4d &mat) |
| | Applies the indicated transformation matrix to the vertex.
|
| const_uv_iterator | uv_begin () const |
| | Returns an iterator that allows walking through the complete set of named UV's on the vertex.
|
| const_uv_iterator | uv_end () const |
| | Returns an iterator that allows walking through the complete set of named UV's on the vertex.
|
| uv_size_type | uv_size () const |
| | Returns the number of named UV's on the vertex.
|
| void | write (ostream &out, int indent_level) const |
| | Writes the vertex to the indicated output stream in Egg format.
|
Static Public Member Functions |
|
static TypeHandle | get_class_type () |
|
static void | init_type () |
Public Attributes |
|
EggMorphVertexList | _dxyzs |
Friends |
|
class | EggGroup |
|
class | EggPrimitive |
|
class | EggVertexPool |
Any one-, two-, three-, or four-component vertex, possibly with attributes such as a normal.
Definition at line 41 of file eggVertex.h.