Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
VolumeCollider Class Referenceabstract

#include <OPC_VolumeCollider.h>

Inheritance diagram for VolumeCollider:
Inheritance graph
[legend]

Public Member Functions

inline_ udword GetNbTouchedPrimitives () const
 
inline_ udword GetNbVolumeBVTests () const
 
inline_ udword GetNbVolumePrimTests () const
 
const inline_ udwordGetTouchedPrimitives () const
 
 override (Collider) const char *ValidateSettings()
 
 VolumeCollider ()
 
virtual ~VolumeCollider ()=0
 
- Public Member Functions inherited from Collider
 Collider ()
 
inline_ BOOL ContactFound () const
 
inline_ BOOL FirstContactEnabled () const
 
inline_ BOOL GetContactStatus () const
 
inline_ void SetFirstContact (bool flag)
 
inline_ void SetPrimitiveTests (bool flag)
 
inline_ void SetTemporalCoherence (bool flag)
 
inline_ BOOL SkipPrimitiveTests () const
 
inline_ BOOL TemporalCoherenceEnabled () const
 
inline_ BOOL TemporalHit () const
 
virtual const char * ValidateSettings ()=0
 
virtual ~Collider ()
 

Protected Member Functions

void _Dump (const AABBCollisionNode *node)
 
void _Dump (const AABBNoLeafNode *node)
 
void _Dump (const AABBQuantizedNode *node)
 
void _Dump (const AABBQuantizedNoLeafNode *node)
 
inline_ BOOL IsCacheValid (VolumeCache &cache)
 
 override (Collider) inline_ void InitQuery()
 
- Protected Member Functions inherited from Collider
virtual inline_ void InitQuery ()
 
inline_ BOOL Setup (const BaseModel *model)
 

Protected Attributes

Point mCenterCoeff
 
Point mExtentsCoeff
 
udword mNbVolumeBVTests
 Number of Volume-BV tests. More...
 
udword mNbVolumePrimTests
 Number of Volume-Primitive tests. More...
 
ContainermTouchedPrimitives
 List of touched primitives. More...
 
- Protected Attributes inherited from Collider
const BaseModelmCurrentModel
 Current model for collision query (owner of touched faces) More...
 
udword mFlags
 Bit flags. More...
 
const MeshInterfacemIMesh
 User-defined mesh interface. More...
 

Detailed Description

Contains the abstract class for volume colliders.

Author
Pierre Terdiman
Version
1.3
Date
June, 2, 2001

Definition at line 32 of file OPC_VolumeCollider.h.

Constructor & Destructor Documentation

◆ VolumeCollider()

VolumeCollider::VolumeCollider ( )

Constructor.

Definition at line 40 of file OPC_VolumeCollider.cpp.

◆ ~VolumeCollider()

VolumeCollider::~VolumeCollider ( )
pure virtual

Destructor.

Definition at line 52 of file OPC_VolumeCollider.cpp.

Member Function Documentation

◆ _Dump() [1/4]

void VolumeCollider::_Dump ( const AABBCollisionNode node)
protected

◆ _Dump() [2/4]

void VolumeCollider::_Dump ( const AABBNoLeafNode node)
protected

◆ _Dump() [3/4]

void VolumeCollider::_Dump ( const AABBQuantizedNode node)
protected

◆ _Dump() [4/4]

void VolumeCollider::_Dump ( const AABBQuantizedNoLeafNode node)
protected

◆ GetNbTouchedPrimitives()

inline_ udword VolumeCollider::GetNbTouchedPrimitives ( ) const
inline

Gets the number of touched primitives after a collision query.

See also
GetContactStatus()
GetTouchedPrimitives()
Returns
the number of touched primitives

Definition at line 49 of file OPC_VolumeCollider.h.

◆ GetNbVolumeBVTests()

inline_ udword VolumeCollider::GetNbVolumeBVTests ( ) const
inline

Stats: gets the number of Volume-BV overlap tests after a collision query.

See also
GetNbVolumePrimTests()
Returns
the number of Volume-BV tests performed during last query

Definition at line 70 of file OPC_VolumeCollider.h.

◆ GetNbVolumePrimTests()

inline_ udword VolumeCollider::GetNbVolumePrimTests ( ) const
inline

Stats: gets the number of Volume-Triangle overlap tests after a collision query.

See also
GetNbVolumeBVTests()
Returns
the number of Volume-Triangle tests performed during last query

Definition at line 79 of file OPC_VolumeCollider.h.

◆ GetTouchedPrimitives()

const inline_ udword* VolumeCollider::GetTouchedPrimitives ( ) const
inline

Gets the list of touched primitives after a collision query.

See also
GetContactStatus()
GetNbTouchedPrimitives()
Returns
the list of touched primitives (primitive indices)

Definition at line 59 of file OPC_VolumeCollider.h.

◆ IsCacheValid()

inline_ BOOL VolumeCollider::IsCacheValid ( VolumeCache cache)
inlineprotected

Definition at line 120 of file OPC_VolumeCollider.h.

◆ override() [1/2]

VolumeCollider::override ( Collider  ) const

Validates current settings. You should call this method after all the settings / callbacks have been defined for a collider.

Returns
null if everything is ok, else a string describing the problem

◆ override() [2/2]

VolumeCollider::override ( Collider  )
inlineprotected

Initializes a query

Definition at line 112 of file OPC_VolumeCollider.h.

Member Data Documentation

◆ mCenterCoeff

Point VolumeCollider::mCenterCoeff
protected

Definition at line 96 of file OPC_VolumeCollider.h.

◆ mExtentsCoeff

Point VolumeCollider::mExtentsCoeff
protected

Definition at line 97 of file OPC_VolumeCollider.h.

◆ mNbVolumeBVTests

udword VolumeCollider::mNbVolumeBVTests
protected

Number of Volume-BV tests.

Definition at line 99 of file OPC_VolumeCollider.h.

◆ mNbVolumePrimTests

udword VolumeCollider::mNbVolumePrimTests
protected

Number of Volume-Primitive tests.

Definition at line 100 of file OPC_VolumeCollider.h.

◆ mTouchedPrimitives

Container* VolumeCollider::mTouchedPrimitives
protected

List of touched primitives.

Definition at line 93 of file OPC_VolumeCollider.h.


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


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Wed Sep 7 2022 02:51:05