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

BuilderAttribI Class Reference

#include <builderAttrib.h>

Inheritance diagram for BuilderAttribI:

BuilderAttribTempl< ushort, ushort, ushort, ushort > BuilderPrimTempl< BuilderVertex > BuilderPrimTempl< BuilderVertexI > BuilderPrim BuilderPrimI polygon polygon List of all members.

Public Types

typedef ushort VType
typedef ushort NType
typedef ushort TType
typedef ushort CType

Public Member Functions

 BuilderAttribI ()
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 ushort BuilderAttribTempl< ushort, ushort, ushort, ushort >::CType [inherited]
 

Reimplemented in BuilderPrimTempl< BuilderVertexI >, BuilderPrimTempl< BuilderVertex >, and BuilderVertexTempl< ushort, ushort, ushort, ushort >.

Definition at line 52 of file builderAttribTempl.h.

typedef ushort BuilderAttribTempl< ushort, ushort, ushort, ushort >::NType [inherited]
 

Reimplemented in BuilderPrimTempl< BuilderVertexI >, BuilderPrimTempl< BuilderVertex >, and BuilderVertexTempl< ushort, ushort, ushort, ushort >.

Definition at line 50 of file builderAttribTempl.h.

typedef ushort BuilderAttribTempl< ushort, ushort, ushort, ushort >::TType [inherited]
 

Reimplemented in BuilderPrimTempl< BuilderVertexI >, BuilderPrimTempl< BuilderVertex >, and BuilderVertexTempl< ushort, ushort, ushort, ushort >.

Definition at line 51 of file builderAttribTempl.h.

typedef ushort BuilderAttribTempl< ushort, ushort, ushort, ushort >::VType [inherited]
 

Reimplemented in BuilderPrimTempl< BuilderVertexI >, BuilderPrimTempl< BuilderVertex >, and BuilderVertexTempl< ushort, ushort, ushort, ushort >.

Definition at line 49 of file builderAttribTempl.h.


Constructor & Destructor Documentation

BuilderAttribI::BuilderAttribI  )  [inline]
 

Definition at line 64 of file builderAttrib.h.


Member Function Documentation

BuilderAttribTempl& BuilderAttribTempl< ushort, ushort, ushort, ushort >::clear void   )  [inline, inherited]
 

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

Reimplemented in BuilderPrimTempl< BuilderVertexI >, BuilderPrimTempl< BuilderVertex >, and BuilderVertexTempl< ushort, ushort, ushort, ushort >.

BuilderAttribTempl& BuilderAttribTempl< ushort, ushort, ushort, ushort >::clear_color  )  [inline, inherited]
 

Removes the attribute's color.

Reimplemented in BuilderVertexTempl< ushort, ushort, ushort, ushort >.

BuilderAttribTempl& BuilderAttribTempl< ushort, ushort, ushort, ushort >::clear_normal  )  [inline, inherited]
 

Removes the attribute's normal.

Reimplemented in BuilderVertexTempl< ushort, ushort, ushort, ushort >.

BuilderAttribTempl& BuilderAttribTempl< ushort, ushort, ushort, ushort >::clear_pixel_size  )  [inline, inherited]
 

Removes the attribute's pixel_size.

Reimplemented in BuilderVertexTempl< ushort, ushort, ushort, ushort >.

int BuilderAttribTempl< ushort, ushort, ushort, ushort >::compare_to const BuilderAttribTempl< ushort, ushort, ushort, ushort > &  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< ushort, ushort, ushort, ushort >::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.

Reimplemented in BuilderPrimTempl< BuilderVertexI >, and BuilderPrimTempl< BuilderVertex >.

NType BuilderAttribTempl< ushort, ushort, ushort, ushort >::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.

Reimplemented in BuilderPrimTempl< BuilderVertexI >, and BuilderPrimTempl< BuilderVertex >.

Referenced by BuilderVertexI::set_coord_value().

float BuilderAttribTempl< ushort, ushort, ushort, ushort >::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.

Reimplemented in BuilderPrimTempl< BuilderVertexI >, and BuilderPrimTempl< BuilderVertex >.

bool BuilderAttribTempl< ushort, ushort, ushort, ushort >::has_color  )  const [inline, inherited]
 

Returns true if the attribute has a color.

Reimplemented in BuilderPrimTempl< BuilderVertexI >, and BuilderPrimTempl< BuilderVertex >.

bool BuilderAttribTempl< ushort, ushort, ushort, ushort >::has_normal  )  const [inline, inherited]
 

Returns true if the attribute has a normal.

Reimplemented in BuilderPrimTempl< BuilderVertexI >, and BuilderPrimTempl< BuilderVertex >.

bool BuilderAttribTempl< ushort, ushort, ushort, ushort >::has_pixel_size  )  const [inline, inherited]
 

Returns true if the attribute has a pixel_size.

Reimplemented in BuilderPrimTempl< BuilderVertexI >, and BuilderPrimTempl< BuilderVertex >.

bool BuilderAttribTempl< ushort, ushort, ushort, ushort >::operator!= const BuilderAttribTempl< ushort, ushort, ushort, ushort > &  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< ushort, ushort, ushort, ushort >::operator< const BuilderAttribTempl< ushort, ushort, ushort, ushort > &  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< ushort, ushort, ushort, ushort >::operator== const BuilderAttribTempl< ushort, ushort, ushort, ushort > &  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< ushort, ushort, ushort, ushort >::output ostream &  out  )  const [inherited]
 

Formats the attribs for output in some sensible way.

Reimplemented in BuilderPrimTempl< BuilderVertexI >, BuilderPrimTempl< BuilderVertex >, and BuilderVertexTempl< ushort, ushort, ushort, ushort >.

BuilderAttribTempl& BuilderAttribTempl< ushort, ushort, ushort, ushort >::set_color const CType c  )  [inline, inherited]
 

Resets the attribute's color.

Reimplemented in BuilderPrimTempl< BuilderVertexI >, BuilderPrimTempl< BuilderVertex >, and BuilderVertexTempl< ushort, ushort, ushort, ushort >.

void BuilderAttribI::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 115 of file builderAttrib.I.

BuilderAttribTempl& BuilderAttribTempl< ushort, ushort, ushort, ushort >::set_normal const NType n  )  [inline, inherited]
 

Resets the attribute's normal.

Reimplemented in BuilderPrimTempl< BuilderVertexI >, BuilderPrimTempl< BuilderVertex >, and BuilderVertexTempl< ushort, ushort, ushort, ushort >.

void BuilderAttribI::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 91 of file builderAttrib.I.

BuilderAttribTempl& BuilderAttribTempl< ushort, ushort, ushort, ushort >::set_pixel_size float  s  )  [inline, inherited]
 

Resets the attribute's pixel_size.

Reimplemented in BuilderPrimTempl< BuilderVertexI >, BuilderPrimTempl< BuilderVertex >, and BuilderVertexTempl< ushort, ushort, ushort, ushort >.


Member Data Documentation

CType BuilderAttribTempl< ushort, ushort, ushort, ushort >::_color [protected, inherited]
 

Definition at line 84 of file builderAttribTempl.h.

int BuilderAttribTempl< ushort, ushort, ushort, ushort >::_flags [protected, inherited]
 

Definition at line 86 of file builderAttribTempl.h.

NType BuilderAttribTempl< ushort, ushort, ushort, ushort >::_normal [protected, inherited]
 

Definition at line 83 of file builderAttribTempl.h.

float BuilderAttribTempl< ushort, ushort, ushort, ushort >::_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