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)
 
virtual ~SIM_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 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
virtual SIM_BVLeafIterator::~SIM_BVLeafIterator ( )
virtual

Member Function Documentation

virtual void SIM_BVLeafIterator::advanceSubclass ( )
protectedvirtual

Implements BV_LeafIterator.

virtual void SIM_BVLeafIterator::advanceVertexSubclass ( )
protectedvirtual

Implements BV_LeafIterator.

virtual bool SIM_BVLeafIterator::atEndSubclass ( ) const
protectedvirtual

Implements BV_LeafIterator.

virtual bool SIM_BVLeafIterator::atEndVertexSubclass ( ) const
protectedvirtual

Implements BV_LeafIterator.

virtual UT_Vector3 SIM_BVLeafIterator::calcBarycenterSubclass ( ) const
protectedvirtual

Implements BV_LeafIterator.

virtual int SIM_BVLeafIterator::getLeafIdSubclass ( ) const
protectedvirtual

Implements BV_LeafIterator.

virtual UT_Vector4 SIM_BVLeafIterator::getVertexSubclass ( ) const
protectedvirtual

Implements BV_LeafIterator.

virtual void SIM_BVLeafIterator::jumpSubclass ( int  leafId)
protectedvirtual

Implements BV_LeafIterator.

virtual void SIM_BVLeafIterator::rewindSubclass ( )
protectedvirtual

Implements BV_LeafIterator.

virtual void SIM_BVLeafIterator::rewindVertexSubclass ( )
protectedvirtual

Implements BV_LeafIterator.

virtual void SIM_BVLeafIterator::setSkipDupVertsSubclass ( bool  flag)
protectedvirtual

Implements BV_LeafIterator.


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