#include <builderBucketNode.h>
Public Member Functions | |
BuilderBucketNode (BuilderBucket *bucket) | |
BuilderBucketNode (const BuilderBucketNode ©) | |
void | operator= (const BuilderBucketNode ©) |
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. | |
BuilderBucket * | get_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 |
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.
|
Definition at line 77 of file builderBucketNode.h. |
|
Definition at line 76 of file builderBucketNode.h. |
|
Definition at line 32 of file builderBucketNode.I. References INLINE. |
|
Definition at line 44 of file builderBucketNode.I. |
|
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(). |
|
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=(). |
|
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. |
|
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. |
|
Returns the BuilderBucket object associated with this node.
Definition at line 96 of file builderBucketNode.I. |
|
Definition at line 144 of file builderBucketNode.I. |
|
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. |
|
Definition at line 57 of file builderBucketNode.I. References _bucket, add_prim(), INLINE, and BuilderPrim::nonindexed_copy(). |
|
Returns true if the two buckets are equivalent, based on the ordering operator, above.
Definition at line 131 of file builderBucketNode.I. |
|
Definition at line 79 of file builderBucketNode.h. Referenced by add_prim(), add_prim_nonindexed(), BuilderBucketNode(), get_bucket(), and operator=(). |
|
Definition at line 81 of file builderBucketNode.h. Referenced by add_prim(), and BuilderBucketNode(). |
|
Definition at line 80 of file builderBucketNode.h. Referenced by add_prim(), and BuilderBucketNode(). |