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

BuilderBucketNode Class Reference

This is a wrapper class around BuilderBucket, used by the Builder class. More...

#include <builderBucketNode.h>

List of all members.

Public Member Functions

 BuilderBucketNode (BuilderBucket *bucket)
 BuilderBucketNode (const BuilderBucketNode &copy)
void operator= (const BuilderBucketNode &copy)
bool add_prim (BuilderPrim prim)
 Adds the indicated indexed primitive to the bucket, and returns true if the primitive was valid.

bool add_prim (const BuilderPrimI &prim)
 Adds the indicated nonindexed primitive to the bucket, and returns true if the primitive was valid.

bool add_prim_nonindexed (const BuilderPrimI &prim)
 Adds the indicated indexed primitive to the bucket as if it were nonindexed, and returns true if the primitive was valid.

BuilderBucketget_bucket () const
 Returns the BuilderBucket object associated with this node.

bool operator< (const BuilderBucketNode &other) const
 Returns true if this bucket precedes the indicated one in ordering.

bool operator== (const BuilderBucketNode &other) const
 Returns true if the two buckets are equivalent, based on the ordering operator, above.

bool operator!= (const BuilderBucketNode &other) const
int build (GeomNode *geom_node) const
 Builds all the geometry assigned to this particular bucket, and assigns it to the indicated GeomNode.


Protected Types

typedef pmultiset< BuilderPrim,
less< BuilderPrim > > 
Prims
typedef pmultiset< BuilderPrimI,
less< BuilderPrimI > > 
IPrims

Protected Attributes

BuilderBucket_bucket
Prims _prims
IPrims _iprims


Detailed Description

This is a wrapper class around BuilderBucket, used by the Builder class.

It stores a pointer to a BuilderBucket object, as well as lists of the primitives that have been added to it.

There are no functions in this class that are intended to be called directly by user code; instead, use the interface provided by Builder.

Definition at line 57 of file builderBucketNode.h.


Member Typedef Documentation

typedef pmultiset<BuilderPrimI, less<BuilderPrimI> > BuilderBucketNode::IPrims [protected]
 

Definition at line 77 of file builderBucketNode.h.

typedef pmultiset<BuilderPrim, less<BuilderPrim> > BuilderBucketNode::Prims [protected]
 

Definition at line 76 of file builderBucketNode.h.


Constructor & Destructor Documentation

BuilderBucketNode::BuilderBucketNode BuilderBucket bucket  )  [inline]
 

Definition at line 32 of file builderBucketNode.I.

References INLINE.

BuilderBucketNode::BuilderBucketNode const BuilderBucketNode &  copy  )  [inline]
 

Definition at line 44 of file builderBucketNode.I.

References _bucket, _iprims, _prims, and INLINE.


Member Function Documentation

bool BuilderBucketNode::add_prim const BuilderPrimI prim  ) 
 

Adds the indicated nonindexed primitive to the bucket, and returns true if the primitive was valid.

Intended to be called from Builder::add_prim().

Definition at line 60 of file builderBucketNode.cxx.

References _bucket, _prims, and mesh_and_build().

bool BuilderBucketNode::add_prim BuilderPrim  prim  ) 
 

Adds the indicated indexed primitive to the bucket, and returns true if the primitive was valid.

Intended to be called from Builder::add_prim().

Definition at line 40 of file builderBucketNode.cxx.

References _bucket, _iprims, and expand().

Referenced by operator=().

bool BuilderBucketNode::add_prim_nonindexed const BuilderPrimI prim  )  [inline]
 

Adds the indicated indexed primitive to the bucket as if it were nonindexed, and returns true if the primitive was valid.

Intended to be called from Builder::add_prim_nonindexed().

Definition at line 78 of file builderBucketNode.I.

References _bucket.

int BuilderBucketNode::build GeomNode geom_node  )  const
 

Builds all the geometry assigned to this particular bucket, and assigns it to the indicated GeomNode.

Returns the number of Geoms created.

Definition at line 79 of file builderBucketNode.cxx.

BuilderBucket * BuilderBucketNode::get_bucket  )  const [inline]
 

Returns the BuilderBucket object associated with this node.

Definition at line 96 of file builderBucketNode.I.

References _bucket, and INLINE.

bool BuilderBucketNode::operator!= const BuilderBucketNode &  other  )  const [inline]
 

Definition at line 144 of file builderBucketNode.I.

bool BuilderBucketNode::operator< const BuilderBucketNode &  other  )  const [inline]
 

Returns true if this bucket precedes the indicated one in ordering.

This function is used by the STL set in the Builder object to sort buckets into order, and to collect similar buckets together.

Definition at line 115 of file builderBucketNode.I.

void BuilderBucketNode::operator= const BuilderBucketNode &  copy  )  [inline]
 

Definition at line 57 of file builderBucketNode.I.

References _bucket, add_prim(), INLINE, and BuilderPrim::nonindexed_copy().

bool BuilderBucketNode::operator== const BuilderBucketNode &  other  )  const [inline]
 

Returns true if the two buckets are equivalent, based on the ordering operator, above.

Definition at line 131 of file builderBucketNode.I.


Member Data Documentation

BuilderBucket* BuilderBucketNode::_bucket [protected]
 

Definition at line 79 of file builderBucketNode.h.

Referenced by add_prim(), add_prim_nonindexed(), BuilderBucketNode(), get_bucket(), and operator=().

IPrims BuilderBucketNode::_iprims [protected]
 

Definition at line 81 of file builderBucketNode.h.

Referenced by add_prim(), and BuilderBucketNode().

Prims BuilderBucketNode::_prims [protected]
 

Definition at line 80 of file builderBucketNode.h.

Referenced by add_prim(), and BuilderBucketNode().


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