SOFA API  6dc60b15
Open source framework for multi-physics simuation
sofa::core::topology::TetrahedraAdded Class Reference

#include <TopologyChange.h>

Inheritance diagram for sofa::core::topology::TetrahedraAdded:

Detailed Description

indicates that some tetrahedra were added

Public Attributes

size_t nTetrahedra
 
sofa::helper::vector< Topology::TetrahedrontetrahedronArray
 
sofa::helper::vector< Topology::TetrahedronIDtetrahedronIndexArray
 
sofa::helper::vector< sofa::helper::vector< Topology::TetrahedronID > > ancestorsList
 
sofa::helper::vector< sofa::helper::vector< double > > coefs
 
sofa::helper::vector< TetrahedronAncestorElemancestorElems
 

Public Member Functions

 TetrahedraAdded (const size_t nT)
 
 TetrahedraAdded (const size_t nT, const sofa::helper::vector< Topology::Tetrahedron > &_tetrahedronArray, const sofa::helper::vector< Topology::TetrahedronID > &tetrahedraIndex)
 
 TetrahedraAdded (const size_t nT, const sofa::helper::vector< Topology::Tetrahedron > &_tetrahedronArray, const sofa::helper::vector< Topology::TetrahedronID > &tetrahedraIndex, const sofa::helper::vector< sofa::helper::vector< Topology::TetrahedronID > > &ancestors, const sofa::helper::vector< sofa::helper::vector< double > > &baryCoefs)
 
 TetrahedraAdded (const size_t nT, const sofa::helper::vector< Topology::Tetrahedron > &_tetrahedronArray, const sofa::helper::vector< Topology::TetrahedronID > &tetrahedraIndex, const sofa::helper::vector< TetrahedronAncestorElem > &srcElems, const sofa::helper::vector< sofa::helper::vector< Topology::TetrahedronID > > &ancestors, const sofa::helper::vector< sofa::helper::vector< double > > &baryCoefs)
 
 ~TetrahedraAdded () override
 
const sofa::helper::vector< Topology::TetrahedronID > & getArray () const
 
size_t getNbAddedTetrahedra () const
 
size_t getNbAddedElements () const
 
const sofa::helper::vector< Topology::TetrahedronID > & getIndexArray () const
 
const sofa::helper::vector< Topology::Tetrahedron > & getElementArray () const
 
- Public Member Functions inherited from sofa::core::topology::TopologyChange
virtual ~TopologyChange ()
 
TopologyChangeType getChangeType () const
 Returns the code of this TopologyChange. More...
 
virtual bool write (std::ostream &out) const
 
virtual bool read (std::istream &in)
 

Additional Inherited Members

- Protected Attributes inherited from sofa::core::topology::TopologyChange
TopologyChangeType m_changeType
 A code that tells the nature of the Topology modification event (could be an enum). More...
 
- Protected Member Functions inherited from sofa::core::topology::TopologyChange
 TopologyChange (TopologyChangeType changeType=BASE)
 

Attribute details

sofa::helper::vector< TetrahedronAncestorElem > sofa::core::topology::TetrahedraAdded::ancestorElems
sofa::helper::vector< sofa::helper::vector< Topology::TetrahedronID > > sofa::core::topology::TetrahedraAdded::ancestorsList
sofa::helper::vector< sofa::helper::vector< double > > sofa::core::topology::TetrahedraAdded::coefs
size_t sofa::core::topology::TetrahedraAdded::nTetrahedra
sofa::helper::vector< Topology::Tetrahedron > sofa::core::topology::TetrahedraAdded::tetrahedronArray
sofa::helper::vector< Topology::TetrahedronID > sofa::core::topology::TetrahedraAdded::tetrahedronIndexArray

Constructor details

sofa::core::topology::TetrahedraAdded::TetrahedraAdded ( const size_t  nT)
inline
sofa::core::topology::TetrahedraAdded::TetrahedraAdded ( const size_t  nT,
const sofa::helper::vector< Topology::Tetrahedron > &  _tetrahedronArray,
const sofa::helper::vector< Topology::TetrahedronID > &  tetrahedraIndex 
)
inline
sofa::core::topology::TetrahedraAdded::TetrahedraAdded ( const size_t  nT,
const sofa::helper::vector< Topology::Tetrahedron > &  _tetrahedronArray,
const sofa::helper::vector< Topology::TetrahedronID > &  tetrahedraIndex,
const sofa::helper::vector< sofa::helper::vector< Topology::TetrahedronID > > &  ancestors,
const sofa::helper::vector< sofa::helper::vector< double > > &  baryCoefs 
)
inline
sofa::core::topology::TetrahedraAdded::TetrahedraAdded ( const size_t  nT,
const sofa::helper::vector< Topology::Tetrahedron > &  _tetrahedronArray,
const sofa::helper::vector< Topology::TetrahedronID > &  tetrahedraIndex,
const sofa::helper::vector< TetrahedronAncestorElem > &  srcElems,
const sofa::helper::vector< sofa::helper::vector< Topology::TetrahedronID > > &  ancestors,
const sofa::helper::vector< sofa::helper::vector< double > > &  baryCoefs 
)
inline
sofa::core::topology::TetrahedraAdded::~TetrahedraAdded ( )
override

Function details

const sofa::helper::vector<Topology::TetrahedronID>& sofa::core::topology::TetrahedraAdded::getArray ( ) const
inline
const sofa::helper::vector< Topology::Tetrahedron >& sofa::core::topology::TetrahedraAdded::getElementArray ( ) const
inline
const sofa::helper::vector< Topology::TetrahedronID >& sofa::core::topology::TetrahedraAdded::getIndexArray ( ) const
inline
size_t sofa::core::topology::TetrahedraAdded::getNbAddedElements ( ) const
inline
size_t sofa::core::topology::TetrahedraAdded::getNbAddedTetrahedra ( ) const
inline