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

A single node in a BV_OBBTree. More...

#include <BV_OBBTree.h>

Public Member Functions

 BV_OBB (int startLeaf, int numLeaves)
 
 BV_OBB (const BV_OBB &)
 
 ~BV_OBB ()
 
bool isLeaf () const
 
void save (std::ostream &os, bool onlyStructure) const
 
int64 getMemoryUsage () const
 
bool isDisabled () const
 Hackish way of determining if a leaf is disabled or not. More...
 

Static Public Member Functions

static BV_OBBload (UT_IStream &is, bool onlyStructure)
 

Public Attributes

UT_Matrix3 myRot
 Orientation of the bounding box, relative to parent. More...
 
UT_Vector3 myTrans
 Center, relative to parent. More...
 
UT_Vector3 myRadii
 Radii in each axis (half of the dimension) More...
 
fpreal mySize
 
int myStartLeaf
 Index of first leaf. More...
 
int myNumLeaves
 How many leaves I own. More...
 
BV_OBBmyLeft
 
BV_OBBmyRight
 
BV_OBB_ExtramyExtra
 
voidmyUserData
 

Detailed Description

A single node in a BV_OBBTree.

Definition at line 210 of file BV_OBBTree.h.

Constructor & Destructor Documentation

BV_OBB::BV_OBB ( int  startLeaf,
int  numLeaves 
)
BV_OBB::BV_OBB ( const BV_OBB )
BV_OBB::~BV_OBB ( )

Member Function Documentation

int64 BV_OBB::getMemoryUsage ( ) const
bool BV_OBB::isDisabled ( ) const
inline

Hackish way of determining if a leaf is disabled or not.

Definition at line 225 of file BV_OBBTree.h.

bool BV_OBB::isLeaf ( ) const
static BV_OBB* BV_OBB::load ( UT_IStream is,
bool  onlyStructure 
)
static
void BV_OBB::save ( std::ostream &  os,
bool  onlyStructure 
) const

Member Data Documentation

BV_OBB_Extra* BV_OBB::myExtra

Definition at line 247 of file BV_OBBTree.h.

BV_OBB* BV_OBB::myLeft

Definition at line 245 of file BV_OBBTree.h.

int BV_OBB::myNumLeaves

How many leaves I own.

Definition at line 243 of file BV_OBBTree.h.

UT_Vector3 BV_OBB::myRadii

Radii in each axis (half of the dimension)

Definition at line 235 of file BV_OBBTree.h.

BV_OBB * BV_OBB::myRight

Definition at line 245 of file BV_OBBTree.h.

UT_Matrix3 BV_OBB::myRot

Orientation of the bounding box, relative to parent.

Definition at line 230 of file BV_OBBTree.h.

fpreal BV_OBB::mySize

Length of myRadii. Special value of "-1" is used to signal that a node is disabled.

Definition at line 238 of file BV_OBBTree.h.

int BV_OBB::myStartLeaf

Index of first leaf.

Definition at line 241 of file BV_OBBTree.h.

UT_Vector3 BV_OBB::myTrans

Center, relative to parent.

Definition at line 232 of file BV_OBBTree.h.

void* BV_OBB::myUserData

Definition at line 249 of file BV_OBBTree.h.


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