HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_BVLeafIterator Class Reference

#include <GU_BVLeafIterator.h>

+ Inheritance diagram for GU_BVLeafIterator:

Public Types

typedef BV_LeafIterator BaseClass
 

Public Member Functions

 GU_BVLeafIterator (const GU_ConstDetailHandle &gdh, const GA_PrimitiveGroup *group=0)
 
 GU_BVLeafIterator (const GU_ConstDetailHandle &gdh, const UT_DMatrix4 &transform, const GA_PrimitiveGroup *group=0)
 
 GU_BVLeafIterator (const GU_Detail &gdp, const GA_PrimitiveGroup *group=0)
 
 GU_BVLeafIterator (const GU_Detail &gdp, const UT_DMatrix4 &transform, const GA_PrimitiveGroup *group=0)
 
virtual ~GU_BVLeafIterator ()
 
- Public Member Functions inherited from BV_LeafIterator
 BV_LeafIterator ()
 
virtual ~BV_LeafIterator ()
 
void advance ()
 Advance iterator to next leaf. More...
 
void jump (int leafId)
 Random access: jump to given leaf id. More...
 
bool atEnd () const
 
void rewind ()
 Reset to first leaf. More...
 
int getLeafId () const
 Get id of current leaf. More...
 
UT_Vector3 calcBarycenter () const
 Get barycenter of current leaf. More...
 
bool isDisabled () const
 Test if the current leaf is disabled. More...
 
void advanceVertex ()
 Get number of vertices bounding current leaf. More...
 
bool atEndVertex () const
 
void rewindVertex ()
 
UT_Vector4 getVertex () const
 Get given bounding vertex of current leaf. More...
 
virtual fpreal getVertexRadius () const
 
void setSkipDupVerts (bool flag)
 
bool getSkipDupVerts () const
 

Protected Member Functions

virtual void advanceSubclass ()
 
virtual void jumpSubclass (int leafId)
 
virtual bool atEndSubclass () const
 
virtual void rewindSubclass ()
 
virtual int getLeafIdSubclass () const
 
virtual UT_Vector3 calcBarycenterSubclass () const
 
virtual void advanceVertexSubclass ()
 
virtual bool atEndVertexSubclass () const
 
virtual void rewindVertexSubclass ()
 
virtual UT_Vector4 getVertexSubclass () const
 
virtual void setSkipDupVertsSubclass (bool flag)
 
- Protected Member Functions inherited from BV_LeafIterator
virtual bool isDisabledSubclass () const
 

Detailed Description

Iterator for leaves to be enclosed by bounding volume. This iterator fills each leaf with a single primitive. Iterator retrieves info about each leaf:

  • a set of vertices forming a bounding volume for the leaf
  • barycenter (centroid) of primitive

Definition at line 26 of file GU_BVLeafIterator.h.

Member Typedef Documentation

Constructor & Destructor Documentation

GU_BVLeafIterator::GU_BVLeafIterator ( const GU_ConstDetailHandle gdh,
const GA_PrimitiveGroup group = 0 
)
explicit
GU_BVLeafIterator::GU_BVLeafIterator ( const GU_ConstDetailHandle gdh,
const UT_DMatrix4 transform,
const GA_PrimitiveGroup group = 0 
)
explicit
GU_BVLeafIterator::GU_BVLeafIterator ( const GU_Detail gdp,
const GA_PrimitiveGroup group = 0 
)
explicit
GU_BVLeafIterator::GU_BVLeafIterator ( const GU_Detail gdp,
const UT_DMatrix4 transform,
const GA_PrimitiveGroup group = 0 
)
explicit
virtual GU_BVLeafIterator::~GU_BVLeafIterator ( )
virtual

Member Function Documentation

virtual void GU_BVLeafIterator::advanceSubclass ( )
protectedvirtual

Implements BV_LeafIterator.

virtual void GU_BVLeafIterator::advanceVertexSubclass ( )
protectedvirtual

Implements BV_LeafIterator.

virtual bool GU_BVLeafIterator::atEndSubclass ( ) const
protectedvirtual

Implements BV_LeafIterator.

virtual bool GU_BVLeafIterator::atEndVertexSubclass ( ) const
protectedvirtual

Implements BV_LeafIterator.

virtual UT_Vector3 GU_BVLeafIterator::calcBarycenterSubclass ( ) const
protectedvirtual

Implements BV_LeafIterator.

virtual int GU_BVLeafIterator::getLeafIdSubclass ( ) const
protectedvirtual

Implements BV_LeafIterator.

virtual UT_Vector4 GU_BVLeafIterator::getVertexSubclass ( ) const
protectedvirtual

Implements BV_LeafIterator.

virtual void GU_BVLeafIterator::jumpSubclass ( int  leafId)
protectedvirtual

Implements BV_LeafIterator.

virtual void GU_BVLeafIterator::rewindSubclass ( )
protectedvirtual

Implements BV_LeafIterator.

virtual void GU_BVLeafIterator::rewindVertexSubclass ( )
protectedvirtual

Implements BV_LeafIterator.

virtual void GU_BVLeafIterator::setSkipDupVertsSubclass ( bool  flag)
protectedvirtual

Implements BV_LeafIterator.


The documentation for this class was generated from the following file: