Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

BuilderAttrib Class Reference

#include <builderAttrib.h>

Inheritance diagram for BuilderAttrib:

BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC > List of all members.

Public Types

typedef BuilderV VType
typedef BuilderN NType
typedef BuilderTC TType
typedef BuilderC CType

Public Member Functions

 BuilderAttrib ()
void set_normal_value (const BuilderN *array, ushort index)
 Reassigns the normal, without knowing whether the attribute is indexed or nonindexed.

void set_color_value (const BuilderC *array, ushort index)
 Reassigns the color, without knowing whether the attribute is indexed or nonindexed.

BuilderAttribTemplclear ()
bool has_normal () const
NType get_normal () const
BuilderAttribTemplset_normal (const NType &n)
BuilderAttribTemplclear_normal ()
bool has_color () const
CType get_color () const
BuilderAttribTemplset_color (const CType &c)
BuilderAttribTemplclear_color ()
bool has_pixel_size () const
float get_pixel_size () const
BuilderAttribTemplset_pixel_size (float s)
BuilderAttribTemplclear_pixel_size ()
bool operator== (const BuilderAttribTempl &other) const
bool operator!= (const BuilderAttribTempl &other) const
bool operator< (const BuilderAttribTempl &other) const
int compare_to (const BuilderAttribTempl &other) const
ostream & output (ostream &out) const

Protected Attributes

NType _normal
CType _color
float _pixel_size
int _flags

Member Typedef Documentation

typedef BuilderC BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::CType [inherited]
 

Reimplemented in BuilderVertexTempl< BuilderV, BuilderN, BuilderTC, BuilderC >.

Definition at line 52 of file builderAttribTempl.h.

typedef BuilderN BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::NType [inherited]
 

Reimplemented in BuilderVertexTempl< BuilderV, BuilderN, BuilderTC, BuilderC >.

Definition at line 50 of file builderAttribTempl.h.

typedef BuilderTC BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::TType [inherited]
 

Reimplemented in BuilderVertexTempl< BuilderV, BuilderN, BuilderTC, BuilderC >.

Definition at line 51 of file builderAttribTempl.h.

typedef BuilderV BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::VType [inherited]
 

Reimplemented in BuilderVertexTempl< BuilderV, BuilderN, BuilderTC, BuilderC >.

Definition at line 49 of file builderAttribTempl.h.


Constructor & Destructor Documentation

BuilderAttrib::BuilderAttrib  )  [inline]
 

Definition at line 55 of file builderAttrib.h.

References EXPCL_PANDAEGG.


Member Function Documentation

BuilderAttribTempl& BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::clear void   )  [inline, inherited]
 

Resets the attribute flags to their original, empty state--where no attributes have been applied.

Reimplemented in BuilderVertexTempl< BuilderV, BuilderN, BuilderTC, BuilderC >.

BuilderAttribTempl& BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::clear_color  )  [inline, inherited]
 

Removes the attribute's color.

Reimplemented in BuilderVertexTempl< BuilderV, BuilderN, BuilderTC, BuilderC >.

BuilderAttribTempl& BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::clear_normal  )  [inline, inherited]
 

Removes the attribute's normal.

Reimplemented in BuilderVertexTempl< BuilderV, BuilderN, BuilderTC, BuilderC >.

BuilderAttribTempl& BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::clear_pixel_size  )  [inline, inherited]
 

Removes the attribute's pixel_size.

Reimplemented in BuilderVertexTempl< BuilderV, BuilderN, BuilderTC, BuilderC >.

int BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::compare_to const BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC > &  other  )  const [inherited]
 

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.

CType BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::get_color void   )  const [inline, inherited]
 

Returns the attribute's color.

It is an error to call this without first verifying that has_color() is true.

NType BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::get_normal  )  const [inline, inherited]
 

Returns the attribute's normal.

It is an error to call this without first verifying that has_normal() is true.

Referenced by BuilderVertex::set_color_value().

float BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::get_pixel_size  )  const [inline, inherited]
 

Returns the attribute's pixel_size.

It is an error to call this without first verifying that has_pixel_size() is true.

bool BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::has_color  )  const [inline, inherited]
 

Returns true if the attribute has a color.

bool BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::has_normal  )  const [inline, inherited]
 

Returns true if the attribute has a normal.

bool BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::has_pixel_size  )  const [inline, inherited]
 

Returns true if the attribute has a pixel_size.

bool BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::operator!= const BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC > &  other  )  const [inline, inherited]
 

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.

bool BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::operator< const BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC > &  other  )  const [inline, inherited]
 

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.

bool BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::operator== const BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC > &  other  )  const [inline, inherited]
 

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.

ostream& BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::output ostream &  out  )  const [inherited]
 

Formats the attribs for output in some sensible way.

Reimplemented in BuilderVertexTempl< BuilderV, BuilderN, BuilderTC, BuilderC >.

BuilderAttribTempl& BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::set_color const CType c  )  [inline, inherited]
 

Resets the attribute's color.

Reimplemented in BuilderVertexTempl< BuilderV, BuilderN, BuilderTC, BuilderC >.

Referenced by set_color_value(), and set_normal_value().

void BuilderAttrib::set_color_value const BuilderC array,
ushort  index
[inline]
 

Reassigns the color, without knowing whether the attribute is indexed or nonindexed.

A nonindexed attribute will look up the index in the array and store the resulting value, while an indexed attribute will just store the index number (which assumes the array is the same one it's indexing on).

Definition at line 67 of file builderAttrib.I.

References INLINE, and BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::set_color().

BuilderAttribTempl& BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::set_normal const NType n  )  [inline, inherited]
 

Resets the attribute's normal.

Reimplemented in BuilderVertexTempl< BuilderV, BuilderN, BuilderTC, BuilderC >.

void BuilderAttrib::set_normal_value const BuilderN array,
ushort  index
[inline]
 

Reassigns the normal, without knowing whether the attribute is indexed or nonindexed.

A nonindexed attribute will look up the index in the array and store the resulting value, while an indexed attribute will just store the index number (which assumes the array is the same one it's indexing on).

Definition at line 43 of file builderAttrib.I.

References INLINE, and BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::set_color().

BuilderAttribTempl& BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::set_pixel_size float  s  )  [inline, inherited]
 

Resets the attribute's pixel_size.

Reimplemented in BuilderVertexTempl< BuilderV, BuilderN, BuilderTC, BuilderC >.


Member Data Documentation

CType BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::_color [protected, inherited]
 

Definition at line 84 of file builderAttribTempl.h.

int BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::_flags [protected, inherited]
 

Definition at line 86 of file builderAttribTempl.h.

NType BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::_normal [protected, inherited]
 

Definition at line 83 of file builderAttribTempl.h.

float BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::_pixel_size [protected, inherited]
 

Definition at line 85 of file builderAttribTempl.h.


The documentation for this class was generated from the following files:
Generated on Fri May 2 00:47:53 2003 for Panda by doxygen1.3