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

BuilderProperties Class Reference

A class which defines several parameters used to control specific behavior of the builder and mesher. More...

#include <builderProperties.h>

Inheritance diagram for BuilderProperties:

BuilderBucket List of all members.

Public Member Functions

bool operator< (const BuilderProperties &other) const
 Defines an arbitrary ordering among different properties, and groups identical sets of properties together.

void output (ostream &out) const
 Outputs the properties meaningfully.


Public Attributes

bool _mesh
bool _retesselate_coplanar
bool _unroll_fans
bool _show_tstrips
bool _show_qsheets
bool _show_quads
bool _show_normals
double _normal_scale
BuilderC _normal_color
bool _subdivide_polys
double _coplanar_threshold
bool _consider_fans
double _max_tfan_angle
int _min_tfan_tris

Protected Member Functions

int sort_value () const
 Returns a number for grouping properties.


Detailed Description

A class which defines several parameters used to control specific behavior of the builder and mesher.

BuilderBucket inherits from this class, so each of these properties may be set directly on a BuilderBucket to control the geometry made with just that bucket. There may in this way be several different sets of properties in effect at a given time.

The initial values for these are set in the private constructor to BuilderBucket, at the bottom of builderBucket.cxx.

Definition at line 65 of file builderProperties.h.


Member Function Documentation

bool BuilderProperties::operator< const BuilderProperties &  other  )  const
 

Defines an arbitrary ordering among different properties, and groups identical sets of properties together.

This operator is used for the more important task of grouping BuilderBuckets together; see the comments for the similar function in builderBucket.cxx.

Definition at line 43 of file builderProperties.cxx.

References _max_tfan_angle.

void BuilderProperties::output ostream &  out  )  const
 

Outputs the properties meaningfully.

Reimplemented in BuilderBucket.

Definition at line 85 of file builderProperties.cxx.

int BuilderProperties::sort_value  )  const [protected]
 

Returns a number for grouping properties.

This is used as a helper function to the ordering operator, above. It simply collects all the booleans together into a single number.

Definition at line 137 of file builderProperties.cxx.


Member Data Documentation

bool BuilderProperties::_consider_fans
 

Definition at line 124 of file builderProperties.h.

Referenced by BuilderBucket::output().

double BuilderProperties::_coplanar_threshold
 

Definition at line 119 of file builderProperties.h.

Referenced by MesherStrip< PrimType >::mate(), and BuilderBucket::output().

double BuilderProperties::_max_tfan_angle
 

Definition at line 129 of file builderProperties.h.

Referenced by operator<(), and BuilderBucket::output().

bool BuilderProperties::_mesh
 

Definition at line 72 of file builderProperties.h.

Referenced by expand_lines(), and BuilderBucket::output().

int BuilderProperties::_min_tfan_tris
 

Definition at line 136 of file builderProperties.h.

Referenced by BuilderBucket::output().

BuilderC BuilderProperties::_normal_color
 

Definition at line 109 of file builderProperties.h.

Referenced by BuilderBucket::output().

double BuilderProperties::_normal_scale
 

Definition at line 108 of file builderProperties.h.

Referenced by BuilderBucket::output().

bool BuilderProperties::_retesselate_coplanar
 

Definition at line 78 of file builderProperties.h.

Referenced by MesherStrip< PrimType >::mate(), and BuilderBucket::output().

bool BuilderProperties::_show_normals
 

Definition at line 107 of file builderProperties.h.

Referenced by BuilderBucket::output().

bool BuilderProperties::_show_qsheets
 

Definition at line 97 of file builderProperties.h.

Referenced by BuilderBucket::output().

bool BuilderProperties::_show_quads
 

Definition at line 103 of file builderProperties.h.

Referenced by BuilderBucket::output().

bool BuilderProperties::_show_tstrips
 

Definition at line 92 of file builderProperties.h.

Referenced by BuilderBucket::output().

bool BuilderProperties::_subdivide_polys
 

Definition at line 113 of file builderProperties.h.

Referenced by expand_lines(), and BuilderBucket::output().

bool BuilderProperties::_unroll_fans
 

Definition at line 84 of file builderProperties.h.

Referenced by BuilderBucket::output().


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