SOFA API  b3f2f2a4
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::type::vector< Topology::TetrahedrontetrahedronArray
 
sofa::type::vector< Topology::TetrahedronIDtetrahedronIndexArray
 
sofa::type::vector< sofa::type::vector< Topology::TetrahedronID > > ancestorsList
 
sofa::type::vector< sofa::type::vector< SReal > > coefs
 
sofa::type::vector< TetrahedronAncestorElemancestorElems
 

Public Member Functions

 TetrahedraAdded (const size_t nT)
 
 TetrahedraAdded (const size_t nT, const sofa::type::vector< Topology::Tetrahedron > &_tetrahedronArray, const sofa::type::vector< Topology::TetrahedronID > &tetrahedraIndex)
 
 TetrahedraAdded (const size_t nT, const sofa::type::vector< Topology::Tetrahedron > &_tetrahedronArray, const sofa::type::vector< Topology::TetrahedronID > &tetrahedraIndex, const sofa::type::vector< sofa::type::vector< Topology::TetrahedronID > > &ancestors, const sofa::type::vector< sofa::type::vector< SReal > > &baryCoefs)
 
 TetrahedraAdded (const size_t nT, const sofa::type::vector< Topology::Tetrahedron > &_tetrahedronArray, const sofa::type::vector< Topology::TetrahedronID > &tetrahedraIndex, const sofa::type::vector< TetrahedronAncestorElem > &srcElems, const sofa::type::vector< sofa::type::vector< Topology::TetrahedronID > > &ancestors, const sofa::type::vector< sofa::type::vector< SReal > > &baryCoefs)
 
 ~TetrahedraAdded () override
 
const sofa::type::vector< Topology::TetrahedronID > & getArray () const
 
size_t getNbAddedTetrahedra () const
 
size_t getNbAddedElements () const
 
const sofa::type::vector< Topology::TetrahedronID > & getIndexArray () const
 
const sofa::type::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

◆ ancestorElems

sofa::type::vector< TetrahedronAncestorElem > sofa::core::topology::TetrahedraAdded::ancestorElems

◆ ancestorsList

sofa::type::vector< sofa::type::vector< Topology::TetrahedronID > > sofa::core::topology::TetrahedraAdded::ancestorsList

◆ coefs

sofa::type::vector< sofa::type::vector< SReal > > sofa::core::topology::TetrahedraAdded::coefs

◆ nTetrahedra

size_t sofa::core::topology::TetrahedraAdded::nTetrahedra

◆ tetrahedronArray

sofa::type::vector< Topology::Tetrahedron > sofa::core::topology::TetrahedraAdded::tetrahedronArray

◆ tetrahedronIndexArray

sofa::type::vector< Topology::TetrahedronID > sofa::core::topology::TetrahedraAdded::tetrahedronIndexArray

Constructor details

◆ TetrahedraAdded() [1/4]

sofa::core::topology::TetrahedraAdded::TetrahedraAdded ( const size_t  nT)
inline

◆ TetrahedraAdded() [2/4]

sofa::core::topology::TetrahedraAdded::TetrahedraAdded ( const size_t  nT,
const sofa::type::vector< Topology::Tetrahedron > &  _tetrahedronArray,
const sofa::type::vector< Topology::TetrahedronID > &  tetrahedraIndex 
)
inline

◆ TetrahedraAdded() [3/4]

sofa::core::topology::TetrahedraAdded::TetrahedraAdded ( const size_t  nT,
const sofa::type::vector< Topology::Tetrahedron > &  _tetrahedronArray,
const sofa::type::vector< Topology::TetrahedronID > &  tetrahedraIndex,
const sofa::type::vector< sofa::type::vector< Topology::TetrahedronID > > &  ancestors,
const sofa::type::vector< sofa::type::vector< SReal > > &  baryCoefs 
)
inline

◆ TetrahedraAdded() [4/4]

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

◆ ~TetrahedraAdded()

sofa::core::topology::TetrahedraAdded::~TetrahedraAdded ( )
override

Function details

◆ getArray()

const sofa::type::vector<Topology::TetrahedronID>& sofa::core::topology::TetrahedraAdded::getArray ( ) const
inline

◆ getElementArray()

const sofa::type::vector< Topology::Tetrahedron >& sofa::core::topology::TetrahedraAdded::getElementArray ( ) const
inline

◆ getIndexArray()

const sofa::type::vector< Topology::TetrahedronID >& sofa::core::topology::TetrahedraAdded::getIndexArray ( ) const
inline

◆ getNbAddedElements()

size_t sofa::core::topology::TetrahedraAdded::getNbAddedElements ( ) const
inline

◆ getNbAddedTetrahedra()

size_t sofa::core::topology::TetrahedraAdded::getNbAddedTetrahedra ( ) const
inline