#include <builderVertexTempl.h>
Inheritance diagram for BuilderVertexTempl< VT, NT, TT, CT >:
Public Types | |
typedef VT | VType |
typedef NT | NType |
typedef TT | TType |
typedef CT | CType |
Public Member Functions | |
BuilderVertexTempl () | |
BuilderVertexTempl (const VType &c) | |
Initializes the vertex coordinate with an initial value. | |
BuilderVertexTempl (const BuilderVertexTempl ©) | |
BuilderVertexTempl & | operator= (const BuilderVertexTempl ©) |
bool | is_valid () const |
Returns true if the vertex is valid, i.e. | |
BuilderVertexTempl & | clear () |
Resets the vertex to its initial, empty state. | |
bool | has_coord () const |
Returns true if the vertex has a vertex coordinate. | |
VType | get_coord () const |
Returns the vertex's coordinate. | |
BuilderVertexTempl & | set_coord (const VType &c) |
Resets the vertex's coordinate. | |
BuilderVertexTempl & | set_normal (const NType &c) |
Resets the vertex's normal. | |
BuilderVertexTempl & | clear_normal () |
Removes the vertex's normal. | |
bool | has_texcoord () const |
Returns true if the vertex has a texture coordinate. | |
TType | get_texcoord () const |
Returns the vertex's texture coordinate. | |
BuilderVertexTempl & | set_texcoord (const TType &t) |
Resets the vertex's texture coordinate. | |
BuilderVertexTempl & | clear_texcoord () |
Removes the vertex's texcoord. | |
BuilderVertexTempl & | set_color (const CType &c) |
Resets the vertex's color. | |
BuilderVertexTempl & | clear_color () |
Removes the vertex's color. | |
BuilderVertexTempl & | set_pixel_size (float s) |
Resets the vertex's pixel_size. | |
BuilderVertexTempl & | clear_pixel_size () |
Removes the vertex's pixel_size. | |
bool | operator== (const BuilderVertexTempl &other) const |
Assigns an ordering to the vertices. | |
bool | operator!= (const BuilderVertexTempl &other) const |
Assigns an ordering to the vertices. | |
bool | operator< (const BuilderVertexTempl &other) const |
Assigns an ordering to the vertices. | |
int | compare_to (const BuilderVertexTempl &other) const |
Returns a number less than zero if this vertex sorts before the indicated vertex, greater than zero if it sorts after, and zero if the vertices are equivalent. | |
ostream & | output (ostream &out) const |
Formats the vertex for output in some sensible way. | |
bool | has_normal () const |
Returns true if the attribute has a normal. | |
NType | get_normal () const |
Returns the attribute's normal. | |
bool | has_color () const |
Returns true if the attribute has a color. | |
CType | get_color () const |
Returns the attribute's color. | |
bool | has_pixel_size () const |
Returns true if the attribute has a pixel_size. | |
float | get_pixel_size () const |
Returns the attribute's pixel_size. | |
bool | operator== (const BuilderAttribTempl &other) const |
Assigns an ordering to the vertices. | |
bool | operator!= (const BuilderAttribTempl &other) const |
Assigns an ordering to the vertices. | |
bool | operator< (const BuilderAttribTempl &other) const |
Assigns an ordering to the vertices. | |
int | compare_to (const BuilderAttribTempl &other) const |
Returns a number less than zero if this object sorts before the indicated object, greater than zero if it sorts after, and zero if the objects are equivalent. | |
Protected Attributes | |
VType | _coord |
TType | _texcoord |
NType | _normal |
CType | _color |
float | _pixel_size |
int | _flags |
This is a template class on each of the four attribute types: vertex coordinates, normal, texture coordinates, and color. See builderVertex.h.
Definition at line 48 of file builderVertexTempl.h.
|
Reimplemented from BuilderAttribTempl< VT, NT, TT, CT >. Definition at line 53 of file builderVertexTempl.h. |
|
Reimplemented from BuilderAttribTempl< VT, NT, TT, CT >. Definition at line 51 of file builderVertexTempl.h. |
|
Reimplemented from BuilderAttribTempl< VT, NT, TT, CT >. Definition at line 52 of file builderVertexTempl.h. |
|
Reimplemented from BuilderAttribTempl< VT, NT, TT, CT >. Definition at line 50 of file builderVertexTempl.h. |
|
Definition at line 32 of file builderVertexTempl.I. References INLINE, and BuilderVertexTempl< VT, NT, TT, CT >::set_coord(). |
|
Initializes the vertex coordinate with an initial value. A handy constructor. Definition at line 47 of file builderVertexTempl.I. References INLINE. |
|
|
Resets the vertex to its initial, empty state.
Reimplemented from BuilderAttribTempl< VT, NT, TT, CT >. Definition at line 110 of file builderVertexTempl.I. References BuilderVertexTempl< VT, NT, TT, CT >::_coord, BuilderVertexTempl< VT, NT, TT, CT >::has_coord(), INLINE, nassertr, and TYPENAME. |
|
Removes the vertex's color.
Reimplemented from BuilderAttribTempl< VT, NT, TT, CT >. Definition at line 307 of file builderVertexTempl.I. References BuilderVertexTempl< VT, NT, TT, CT >::compare_to(), and INLINE. |
|
Removes the vertex's normal.
Reimplemented from BuilderAttribTempl< VT, NT, TT, CT >. Definition at line 201 of file builderVertexTempl.I. |
|
Removes the vertex's pixel_size.
Reimplemented from BuilderAttribTempl< VT, NT, TT, CT >. Definition at line 346 of file builderVertexTempl.I. |
|
Removes the vertex's texcoord.
Definition at line 248 of file builderVertexTempl.I. References INLINE, and BuilderAttribTempl< VT, NT, TT, CT >::set_pixel_size(). |
|
Returns a number less than zero if this object sorts before the indicated object, greater than zero if it sorts after, and zero if the objects are equivalent.
Definition at line 368 of file builderAttribTempl.I. Referenced by BuilderAttribTempl< VT, NT, TT, CT >::has_pixel_size(), and BuilderAttribTempl< VT, NT, TT, CT >::set_pixel_size(). |
|
Returns a number less than zero if this vertex sorts before the indicated vertex, greater than zero if it sorts after, and zero if the vertices are equivalent.
Definition at line 432 of file builderVertexTempl.I. Referenced by BuilderVertexTempl< VT, NT, TT, CT >::clear_color(). |
|
Returns the attribute's color. It is an error to call this without first verifying that has_color() is true. Reimplemented in BuilderPrimTempl< BuilderVertexI >, and BuilderPrimTempl< BuilderVertex >. Definition at line 184 of file builderAttribTempl.I. References BuilderAttribTempl< VT, NT, TT, CT >::_flags, BAF_pixel_size, and INLINE. Referenced by BuilderVertexTempl< VT, NT, TT, CT >::operator==(), and BuilderAttribTempl< VT, NT, TT, CT >::operator==(). |
|
Returns the vertex's coordinate. It is an error to call this without first verifying that has_coord() is true. Definition at line 145 of file builderVertexTempl.I. References INLINE, and BuilderAttribTempl< VT, NT, TT, CT >::set_normal(). |
|
Returns the attribute's normal. It is an error to call this without first verifying that has_normal() is true. Reimplemented in BuilderPrimTempl< BuilderVertexI >, and BuilderPrimTempl< BuilderVertex >. Definition at line 117 of file builderAttribTempl.I. References BuilderAttribTempl< VT, NT, TT, CT >::_flags, BAF_normal, and INLINE. Referenced by BuilderAttribTempl< VT, NT, TT, CT >::operator==(). |
|
Returns the attribute's pixel_size. It is an error to call this without first verifying that has_pixel_size() is true. Reimplemented in BuilderPrimTempl< BuilderVertexI >, and BuilderPrimTempl< BuilderVertex >. Definition at line 251 of file builderAttribTempl.I. References INLINE, and BuilderAttribTempl< VT, NT, TT, CT >::operator==(). |
|
Returns the vertex's texture coordinate. It is an error to call this without first verifying that has_texcoord() is true. Definition at line 268 of file builderVertexTempl.I. References BuilderAttribTempl< VT, NT, TT, CT >::clear_pixel_size(), and INLINE. |
|
Returns true if the attribute has a color.
Reimplemented in BuilderPrimTempl< BuilderVertexI >, and BuilderPrimTempl< BuilderVertex >. Definition at line 165 of file builderAttribTempl.I. Referenced by BuilderAttribTempl< VT, NT, TT, CT >::clear_normal(), BuilderAttribTempl< VT, NT, TT, CT >::clear_pixel_size(), and BuilderAttribTempl< VT, NT, TT, CT >::operator==(). |
|
Returns true if the vertex has a vertex coordinate.
Definition at line 126 of file builderVertexTempl.I. References BuilderVertexTempl< VT, NT, TT, CT >::_coord, BuilderAttribTempl< VT, NT, TT, CT >::_flags, BAF_coord, and INLINE. Referenced by BuilderVertexTempl< VT, NT, TT, CT >::clear(), BuilderVertexTempl< VT, NT, TT, CT >::operator=(), and BuilderVertexTempl< VT, NT, TT, CT >::set_pixel_size(). |
|
Returns true if the attribute has a normal.
Reimplemented in BuilderPrimTempl< BuilderVertexI >, and BuilderPrimTempl< BuilderVertex >. Definition at line 98 of file builderAttribTempl.I. References BuilderAttribTempl< VT, NT, TT, CT >::_normal. Referenced by BuilderAttribTempl< VT, NT, TT, CT >::clear_pixel_size(), and BuilderAttribTempl< VT, NT, TT, CT >::operator==(). |
|
Returns true if the attribute has a pixel_size.
Reimplemented in BuilderPrimTempl< BuilderVertexI >, and BuilderPrimTempl< BuilderVertex >. Definition at line 232 of file builderAttribTempl.I. References BuilderAttribTempl< VT, NT, TT, CT >::compare_to(), and INLINE. Referenced by BuilderAttribTempl< VT, NT, TT, CT >::set_color(). |
|
Returns true if the vertex has a texture coordinate.
Definition at line 217 of file builderVertexTempl.I. References INLINE, and BuilderAttribTempl< VT, NT, TT, CT >::set_color(). Referenced by BuilderVertexTempl< VT, NT, TT, CT >::set_pixel_size(). |
|
Returns true if the vertex is valid, i.e. if it has a vertex coordinate. Definition at line 95 of file builderVertexTempl.I. References BuilderAttribTempl< VT, NT, TT, CT >::_flags, BAF_coord, and INLINE. |
|
Assigns an ordering to the vertices. This is used by the Mesher to group identical vertices. This assumes that all vertices in the locus of consideration will share the same state: with or without normals, texcoords, etc. Definition at line 328 of file builderAttribTempl.I. |
|
Assigns an ordering to the vertices. This is used by the Mesher to group identical vertices. This assumes that all vertices in the locus of consideration will share the same state: with or without normals, texcoords, etc. Definition at line 392 of file builderVertexTempl.I. |
|
Assigns an ordering to the vertices. This is used by the Mesher to group identical vertices. This assumes that all vertices in the locus of consideration will share the same state: with or without normals, texcoords, etc. Definition at line 350 of file builderAttribTempl.I. |
|
Assigns an ordering to the vertices. This is used by the Mesher to group identical vertices. This assumes that all vertices to be meshed together must share the same state: with or without normals, texcoords, etc. Definition at line 414 of file builderVertexTempl.I. |
|
Definition at line 73 of file builderVertexTempl.I. References BuilderVertexTempl< VT, NT, TT, CT >::has_coord(), and INLINE. |
|
Assigns an ordering to the vertices. This is used by the Mesher to group identical vertices. This assumes that all vertices in the locus of consideration will share the same state: with or without normals, texcoords, etc. Definition at line 306 of file builderAttribTempl.I. References BuilderAttribTempl< VT, NT, TT, CT >::get_color(), BuilderAttribTempl< VT, NT, TT, CT >::get_normal(), BuilderAttribTempl< VT, NT, TT, CT >::has_color(), BuilderAttribTempl< VT, NT, TT, CT >::has_normal(), and NULL. Referenced by BuilderAttribTempl< VT, NT, TT, CT >::get_pixel_size(). |
|
Assigns an ordering to the vertices. This is used by the Mesher to group identical vertices. This assumes that all vertices in the locus of consideration will share the same state: with or without normals, texcoords, etc. Definition at line 370 of file builderVertexTempl.I. References BuilderAttribTempl< VT, NT, TT, CT >::get_color(). Referenced by BuilderVertexTempl< VT, NT, TT, CT >::set_color(). |
|
Formats the vertex for output in some sensible way.
Reimplemented from BuilderAttribTempl< VT, NT, TT, CT >. Definition at line 460 of file builderVertexTempl.I. |
|
Resets the vertex's color. This is overridden from BuilderAttrib just so we can typecast the return value to BuilderVertex. The other functions, has_color() and get_color(), are inherited untouched from BuilderAttrib. Reimplemented from BuilderAttribTempl< VT, NT, TT, CT >. Definition at line 292 of file builderVertexTempl.I. References INLINE, and BuilderVertexTempl< VT, NT, TT, CT >::operator==(). |
|
Resets the vertex's coordinate.
Definition at line 161 of file builderVertexTempl.I. Referenced by BuilderVertexTempl< VT, NT, TT, CT >::BuilderVertexTempl(). |
|
Resets the vertex's normal. This is overridden from BuilderAttrib just so we can typecast the return value to BuilderVertex. The other functions, has_normal() and get_normal(), are inherited untouched from BuilderAttrib. Reimplemented from BuilderAttribTempl< VT, NT, TT, CT >. Definition at line 186 of file builderVertexTempl.I. References BuilderAttribTempl< VT, NT, TT, CT >::_flags, BuilderVertexTempl< VT, NT, TT, CT >::_texcoord, BAF_texcoord, and t. |
|
Resets the vertex's pixel_size. This is overridden from BuilderAttrib just so we can typecast the return value to BuilderVertex. The other functions, has_pixel_size() and get_pixel_size(), are inherited untouched from BuilderAttrib. Reimplemented from BuilderAttribTempl< VT, NT, TT, CT >. Definition at line 331 of file builderVertexTempl.I. References BuilderVertexTempl< VT, NT, TT, CT >::_coord, BuilderVertexTempl< VT, NT, TT, CT >::_texcoord, builder_compare(), BuilderVertexTempl< VT, NT, TT, CT >::has_coord(), and BuilderVertexTempl< VT, NT, TT, CT >::has_texcoord(). |
|
Resets the vertex's texture coordinate.
Definition at line 232 of file builderVertexTempl.I. |
|
Definition at line 84 of file builderAttribTempl.h. Referenced by BuilderAttribTempl< VT, NT, TT, CT >::BuilderAttribTempl(), BuilderAttribTempl< VT, NT, TT, CT >::clear_normal(), and BuilderAttribTempl< VT, NT, TT, CT >::clear_pixel_size(). |
|
|
|
Definition at line 83 of file builderAttribTempl.h. Referenced by BuilderAttribTempl< VT, NT, TT, CT >::BuilderAttribTempl(), BuilderAttribTempl< VT, NT, TT, CT >::clear_pixel_size(), and BuilderAttribTempl< VT, NT, TT, CT >::has_normal(). |
|
|
Definition at line 90 of file builderVertexTempl.h. Referenced by BuilderVertexTempl< VT, NT, TT, CT >::BuilderVertexTempl(), BuilderVertexTempl< VT, NT, TT, CT >::set_normal(), and BuilderVertexTempl< VT, NT, TT, CT >::set_pixel_size(). |