SOFA API  c76874b7
Open source framework for multi-physics simuation
sofa::component::collision::PointInfo Class Reference

#include <PointLocalMinDistanceFilter.h>

LocalMinDistance cone information class for a Point collision primitive. More...

Inheritance diagram for sofa::component::collision::PointInfo:

Detailed Description

LocalMinDistance cone information class for a Point collision primitive.

Protected Attributes

bool m_noLineModel
 Flag indicating if the Point CollisionModel is not associated to a Line CollisionModel. More...
 
TDataContainer m_computedData
 Cone stored data. More...
 
- Protected Attributes inherited from sofa::component::collision::InfoFilter
int m_revision
 Last filter update revision. More...
 
const LocalMinDistanceFilterm_lmdFilters
 The LocalMinDistanceFilters object that contains this InfoFilter. More...
 
core::topology::BaseMeshTopologybase_mesh_topology
 
const sofa::helper::vector< sofa::defaulttype::Vector3 > * position_filtering
 

Public Member Functions

 PointInfo (LocalMinDistanceFilter *lmdFilters=nullptr)
 Default constructor. More...
 
 ~PointInfo () override
 Default destructor. More...
 
bool validate (const unsigned int, const defaulttype::Vector3 &) override
 Returns the validity of a detected contact according to this PointInfo. More...
 
void buildFilter (unsigned int) override
 Computes the region of interest cone of the Point primitive. More...
 
- Public Member Functions inherited from sofa::component::collision::InfoFilter
 InfoFilter (LocalMinDistanceFilter *lmdFilters)
 Default constructor. More...
 
virtual ~InfoFilter ()
 Default destructor. More...
 
virtual bool isValid (void)
 Returns cone information validity (up to date or not?). More...
 
virtual void setValid ()
 Sets cone information validity. More...
 
const LocalMinDistanceFiltergetLMDFilters (void)
 Returns the LocalMinDistanceFilters object that contains this InfoFilter. More...
 
void setLMDFilters (const LocalMinDistanceFilter *lmdFilters)
 Sets the LocalMinDistanceFilters object that contains this InfoFilter. More...
 
void setBaseMeshTopology (core::topology::BaseMeshTopology *bmt)
 
void setPositionFiltering (const sofa::helper::vector< sofa::defaulttype::Vector3 > *x)
 

Friends

std::ostream & operator<< (std::ostream &os, const PointInfo &)
 Output stream. More...
 
std::istream & operator>> (std::istream &in, PointInfo &)
 Input stream. More...
 

Additional Inherited Members

Attribute details

TDataContainer sofa::component::collision::PointInfo::m_computedData
protected

Cone stored data.

bool sofa::component::collision::PointInfo::m_noLineModel
protected

Flag indicating if the Point CollisionModel is not associated to a Line CollisionModel.

Constructor details

sofa::component::collision::PointInfo::PointInfo ( LocalMinDistanceFilter lmdFilters = nullptr)

Default constructor.

sofa::component::collision::PointInfo::~PointInfo ( )
inlineoverride

Default destructor.

Function details

void sofa::component::collision::PointInfo::buildFilter ( unsigned int  p_index)
overridevirtual

Computes the region of interest cone of the Point primitive.

Implements sofa::component::collision::InfoFilter.

bool sofa::component::collision::PointInfo::validate ( const unsigned int  p,
const defaulttype::Vector3 &  PQ 
)
overridevirtual

Returns the validity of a detected contact according to this PointInfo.

Implements sofa::component::collision::InfoFilter.

Related details

std::ostream& operator<< ( std::ostream &  os,
const PointInfo  
)
friend

Output stream.

std::istream& operator>> ( std::istream &  in,
PointInfo  
)
friend

Input stream.