SOFA API  1e111313
Open source framework for multi-physics simuation
sofa::component::collision::LineInfo Class Reference

#include <LineLocalMinDistanceFilter.h>

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

Inheritance diagram for sofa::component::collision::LineInfo:

Detailed Description

LocalMinDistance cone information class for a Line collision primitive.

Protected Attributes

sofa::defaulttype::Vector3 m_nMean
 
sofa::defaulttype::Vector3 m_triangleRight
 
sofa::defaulttype::Vector3 m_triangleLeft
 
sofa::defaulttype::Vector3 m_lineVector
 
double m_computedRightAngleCone
 
double m_computedLeftAngleCone
 
bool m_twoTrianglesAroundEdge
 
- 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

 LineInfo (LocalMinDistanceFilter *lmdFilters=nullptr)
 Default constructor. More...
 
 ~LineInfo () override
 Default destructor. More...
 
bool validate (const Index edge_index, const defaulttype::Vector3 &PQ) override
 Returns the validity of a detected contact according to this LineInfo. More...
 
void buildFilter (Index) override
 Computes the region of interest cone of the Line 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 LineInfo &)
 Output stream. More...
 
std::istream & operator>> (std::istream &in, LineInfo &)
 Input stream. More...
 

Additional Inherited Members

Attribute details

double sofa::component::collision::LineInfo::m_computedLeftAngleCone
protected
double sofa::component::collision::LineInfo::m_computedRightAngleCone
protected
sofa::defaulttype::Vector3 sofa::component::collision::LineInfo::m_lineVector
protected
sofa::defaulttype::Vector3 sofa::component::collision::LineInfo::m_nMean
protected
sofa::defaulttype::Vector3 sofa::component::collision::LineInfo::m_triangleLeft
protected
sofa::defaulttype::Vector3 sofa::component::collision::LineInfo::m_triangleRight
protected
bool sofa::component::collision::LineInfo::m_twoTrianglesAroundEdge
protected

Constructor details

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

Default constructor.

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

Default destructor.

Function details

void sofa::component::collision::LineInfo::buildFilter ( Index  edge_index)
overridevirtual

Computes the region of interest cone of the Line primitive.

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

bool sofa::component::collision::LineInfo::validate ( const Index  edge_index,
const defaulttype::Vector3 &  PQ 
)
overridevirtual

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

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

Related details

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

Output stream.

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

Input stream.