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)
 
 ~GU_BVLeafIterator () override
 
- 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

void advanceSubclass () override
 
void jumpSubclass (int leafId) override
 
bool atEndSubclass () const override
 
void rewindSubclass () override
 
int getLeafIdSubclass () const override
 
UT_Vector3 calcBarycenterSubclass () const override
 
void advanceVertexSubclass () override
 
bool atEndVertexSubclass () const override
 
void rewindVertexSubclass () override
 
UT_Vector4 getVertexSubclass () const override
 
void setSkipDupVertsSubclass (bool flag) override
 
- 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
GU_BVLeafIterator::~GU_BVLeafIterator ( )
override

Member Function Documentation

void GU_BVLeafIterator::advanceSubclass ( )
overrideprotectedvirtual

Implements BV_LeafIterator.

void GU_BVLeafIterator::advanceVertexSubclass ( )
overrideprotectedvirtual

Implements BV_LeafIterator.

bool GU_BVLeafIterator::atEndSubclass ( ) const
overrideprotectedvirtual

Implements BV_LeafIterator.

bool GU_BVLeafIterator::atEndVertexSubclass ( ) const
overrideprotectedvirtual

Implements BV_LeafIterator.

UT_Vector3 GU_BVLeafIterator::calcBarycenterSubclass ( ) const
overrideprotectedvirtual

Implements BV_LeafIterator.

int GU_BVLeafIterator::getLeafIdSubclass ( ) const
overrideprotectedvirtual

Implements BV_LeafIterator.

UT_Vector4 GU_BVLeafIterator::getVertexSubclass ( ) const
overrideprotectedvirtual

Implements BV_LeafIterator.

void GU_BVLeafIterator::jumpSubclass ( int  leafId)
overrideprotectedvirtual

Implements BV_LeafIterator.

void GU_BVLeafIterator::rewindSubclass ( )
overrideprotectedvirtual

Implements BV_LeafIterator.

void GU_BVLeafIterator::rewindVertexSubclass ( )
overrideprotectedvirtual

Implements BV_LeafIterator.

void GU_BVLeafIterator::setSkipDupVertsSubclass ( bool  flag)
overrideprotectedvirtual

Implements BV_LeafIterator.


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