Open CASCADE Technology 7.8.0
|
Set of transformation persistent OpenGl_Structure for building BVH tree. Provides built-in mechanism to invalidate tree when world view projection state changes. Due to frequent invalidation of BVH tree the choice of BVH tree builder is made in favor of BVH linear builder (quick rebuild). More...
#include <Graphic3d_BvhCStructureSetTrsfPers.hxx>
Additional Inherited Members | |
Public Types inherited from BVH_Set< Standard_Real, 3 > | |
typedef BVH_Box< Standard_Real, N > | BVH_BoxNt |
Set of transformation persistent OpenGl_Structure for building BVH tree. Provides built-in mechanism to invalidate tree when world view projection state changes. Due to frequent invalidation of BVH tree the choice of BVH tree builder is made in favor of BVH linear builder (quick rebuild).
Graphic3d_BvhCStructureSetTrsfPers::Graphic3d_BvhCStructureSetTrsfPers | ( | const Handle< Select3D_BVHBuilder3d > & | theBuilder | ) |
Creates an empty primitive set for BVH clipping.
Standard_Boolean Graphic3d_BvhCStructureSetTrsfPers::Add | ( | const Graphic3d_CStructure * | theStruct | ) |
Adds structure to the set.
|
overridevirtual |
Returns AABB of the structure.
Implements BVH_Set< Standard_Real, 3 >.
|
inline |
Returns builder for bottom-level BVH.
const opencascade::handle< BVH_Tree< Standard_Real, 3 > > & Graphic3d_BvhCStructureSetTrsfPers::BVH | ( | const Handle< Graphic3d_Camera > & | theCamera, |
const Graphic3d_Mat4d & | theProjectionMatrix, | ||
const Graphic3d_Mat4d & | theWorldViewMatrix, | ||
const Standard_Integer | theViewportWidth, | ||
const Standard_Integer | theViewportHeight, | ||
const Graphic3d_WorldViewProjState & | theWVPState | ||
) |
Returns BVH tree for the given world view projection (builds it if necessary).
|
overridevirtual |
Calculates center of the AABB along given axis.
Implements BVH_Set< Standard_Real, 3 >.
void Graphic3d_BvhCStructureSetTrsfPers::Clear | ( | ) |
Cleans the whole primitive set.
const Graphic3d_CStructure * Graphic3d_BvhCStructureSetTrsfPers::GetStructureById | ( | Standard_Integer | theId | ) |
Returns the structure corresponding to the given ID.
|
inline |
Marks object state as outdated (needs BVH rebuilding).
Standard_Boolean Graphic3d_BvhCStructureSetTrsfPers::Remove | ( | const Graphic3d_CStructure * | theStruct | ) |
Removes the given structure from the set.
|
inline |
Assigns builder for bottom-level BVH.
|
overridevirtual |
Returns total number of structures.
Implements BVH_Set< Standard_Real, 3 >.
|
inline |
Access directly a collection of structures.
|
overridevirtual |
Swaps structures with the given indices.
Implements BVH_Set< Standard_Real, 3 >.