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

#include <SIM_BVLeafIterator.h>

+ Inheritance diagram for SIM_BVLeafIterator:

Public Types

typedef BV_LeafIterator BaseClass
 

Public Member Functions

 SIM_BVLeafIterator (const SIM_TriangulatedGeometry *tgeo, const UT_DMatrix4 &begxform, const UT_DMatrix4 &endxform, bool startPosOnly=false)
 
 SIM_BVLeafIterator (const SIM_TriangulatedGeometry *tgeo, const UT_DMatrix4 &endxform, bool startPosOnly=false)
 
 ~SIM_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 22 of file SIM_BVLeafIterator.h.

Member Typedef Documentation

Constructor & Destructor Documentation

SIM_BVLeafIterator::SIM_BVLeafIterator ( const SIM_TriangulatedGeometry tgeo,
const UT_DMatrix4 begxform,
const UT_DMatrix4 endxform,
bool  startPosOnly = false 
)
explicit
SIM_BVLeafIterator::SIM_BVLeafIterator ( const SIM_TriangulatedGeometry tgeo,
const UT_DMatrix4 endxform,
bool  startPosOnly = false 
)
explicit
SIM_BVLeafIterator::~SIM_BVLeafIterator ( )
override

Member Function Documentation

void SIM_BVLeafIterator::advanceSubclass ( )
overrideprotectedvirtual

Implements BV_LeafIterator.

void SIM_BVLeafIterator::advanceVertexSubclass ( )
overrideprotectedvirtual

Implements BV_LeafIterator.

bool SIM_BVLeafIterator::atEndSubclass ( ) const
overrideprotectedvirtual

Implements BV_LeafIterator.

bool SIM_BVLeafIterator::atEndVertexSubclass ( ) const
overrideprotectedvirtual

Implements BV_LeafIterator.

UT_Vector3 SIM_BVLeafIterator::calcBarycenterSubclass ( ) const
overrideprotectedvirtual

Implements BV_LeafIterator.

int SIM_BVLeafIterator::getLeafIdSubclass ( ) const
overrideprotectedvirtual

Implements BV_LeafIterator.

UT_Vector4 SIM_BVLeafIterator::getVertexSubclass ( ) const
overrideprotectedvirtual

Implements BV_LeafIterator.

void SIM_BVLeafIterator::jumpSubclass ( int  leafId)
overrideprotectedvirtual

Implements BV_LeafIterator.

void SIM_BVLeafIterator::rewindSubclass ( )
overrideprotectedvirtual

Implements BV_LeafIterator.

void SIM_BVLeafIterator::rewindVertexSubclass ( )
overrideprotectedvirtual

Implements BV_LeafIterator.

void SIM_BVLeafIterator::setSkipDupVertsSubclass ( bool  flag)
overrideprotectedvirtual

Implements BV_LeafIterator.


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