SOFA API  7736d2b5
Open source framework for multi-physics simuation
sofa::core::collision::DetectionOutputVector Class Referenceabstract

#include <DetectionOutput.h>

Abstract description of a set of contact point. More...

Inheritance diagram for sofa::core::collision::DetectionOutputVector:

Detailed Description

Abstract description of a set of contact point.

Public Member Functions

virtual void clear ()=0
 Clear the content of this vector. More...
 
virtual unsigned int size () const =0
 Current size (number of detected contacts. More...
 
bool empty () const
 Test if the vector is empty. More...
 
virtual void release ()
 Delete this vector from memory once the contact pair is no longer active. More...
 
virtual type::Vec3 getFirstPosition (unsigned idx)=0
 Const iterator to iterate the detection pairs. More...
 
virtual type::Vec3 getSecondPosition (unsigned idx)=0
 Const iterator end to iterate the detection pairs. More...
 

Protected Member Functions

virtual ~DetectionOutputVector ()
 

Constructor details

◆ ~DetectionOutputVector()

virtual sofa::core::collision::DetectionOutputVector::~DetectionOutputVector ( )
inlineprotectedvirtual

Function details

◆ clear()

virtual void sofa::core::collision::DetectionOutputVector::clear ( )
pure virtual

Clear the content of this vector.

Implemented in sofa::core::collision::TDetectionOutputVector< CM1, CM2 >.

◆ empty()

bool sofa::core::collision::DetectionOutputVector::empty ( ) const
inline

Test if the vector is empty.

◆ getFirstPosition()

virtual type::Vec3 sofa::core::collision::DetectionOutputVector::getFirstPosition ( unsigned  idx)
pure virtual

Const iterator to iterate the detection pairs.

Implemented in sofa::core::collision::TDetectionOutputVector< CM1, CM2 >.

◆ getSecondPosition()

virtual type::Vec3 sofa::core::collision::DetectionOutputVector::getSecondPosition ( unsigned  idx)
pure virtual

Const iterator end to iterate the detection pairs.

Implemented in sofa::core::collision::TDetectionOutputVector< CM1, CM2 >.

◆ release()

virtual void sofa::core::collision::DetectionOutputVector::release ( )
inlinevirtual

Delete this vector from memory once the contact pair is no longer active.

◆ size()

virtual unsigned int sofa::core::collision::DetectionOutputVector::size ( ) const
pure virtual

Current size (number of detected contacts.

Implemented in sofa::core::collision::TDetectionOutputVector< CM1, CM2 >.