SOFA API  73d8bb95
Open source framework for multi-physics simuation
sofa::core::topology::QuadsAdded Class Reference

#include <TopologyChange.h>

Inheritance diagram for sofa::core::topology::QuadsAdded:

Detailed Description

indicates that some quads were added

Public Attributes

size_t nQuads
 
sofa::helper::vector< Topology::QuadquadArray
 
sofa::helper::vector< Topology::QuadIDquadIndexArray
 
sofa::helper::vector< sofa::helper::vector< Topology::QuadID > > ancestorsList
 
sofa::helper::vector< sofa::helper::vector< double > > coefs
 
sofa::helper::vector< QuadAncestorElemancestorElems
 

Public Member Functions

 QuadsAdded (const size_t nT)
 
 QuadsAdded (const size_t nT, const sofa::helper::vector< Topology::Quad > &_quadArray, const sofa::helper::vector< Topology::QuadID > &quadsIndex)
 
 QuadsAdded (const size_t nT, const sofa::helper::vector< Topology::Quad > &_quadArray, const sofa::helper::vector< Topology::QuadID > &quadsIndex, const sofa::helper::vector< sofa::helper::vector< Topology::QuadID > > &ancestors, const sofa::helper::vector< sofa::helper::vector< double > > &baryCoefs)
 
 QuadsAdded (const size_t nT, const sofa::helper::vector< Topology::Quad > &_quadArray, const sofa::helper::vector< Topology::QuadID > &quadsIndex, const sofa::helper::vector< QuadAncestorElem > &srcElems, const sofa::helper::vector< sofa::helper::vector< Topology::QuadID > > &ancestors, const sofa::helper::vector< sofa::helper::vector< double > > &baryCoefs)
 
 ~QuadsAdded () override
 
size_t getNbAddedQuads () const
 
const sofa::helper::vector< Topology::QuadID > & getArray () const
 
const Topology::QuadgetQuad (const Topology::QuadID i) const
 
size_t getNbAddedElements () const
 
const sofa::helper::vector< Topology::QuadID > & getIndexArray () const
 
const sofa::helper::vector< Topology::Quad > & 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< QuadAncestorElem > sofa::core::topology::QuadsAdded::ancestorElems
sofa::helper::vector< sofa::helper::vector< Topology::QuadID > > sofa::core::topology::QuadsAdded::ancestorsList
sofa::helper::vector< sofa::helper::vector< double > > sofa::core::topology::QuadsAdded::coefs
size_t sofa::core::topology::QuadsAdded::nQuads
sofa::helper::vector< Topology::Quad > sofa::core::topology::QuadsAdded::quadArray
sofa::helper::vector< Topology::QuadID > sofa::core::topology::QuadsAdded::quadIndexArray

Constructor details

sofa::core::topology::QuadsAdded::QuadsAdded ( const size_t  nT)
inline
sofa::core::topology::QuadsAdded::QuadsAdded ( const size_t  nT,
const sofa::helper::vector< Topology::Quad > &  _quadArray,
const sofa::helper::vector< Topology::QuadID > &  quadsIndex 
)
inline
sofa::core::topology::QuadsAdded::QuadsAdded ( const size_t  nT,
const sofa::helper::vector< Topology::Quad > &  _quadArray,
const sofa::helper::vector< Topology::QuadID > &  quadsIndex,
const sofa::helper::vector< sofa::helper::vector< Topology::QuadID > > &  ancestors,
const sofa::helper::vector< sofa::helper::vector< double > > &  baryCoefs 
)
inline
sofa::core::topology::QuadsAdded::QuadsAdded ( const size_t  nT,
const sofa::helper::vector< Topology::Quad > &  _quadArray,
const sofa::helper::vector< Topology::QuadID > &  quadsIndex,
const sofa::helper::vector< QuadAncestorElem > &  srcElems,
const sofa::helper::vector< sofa::helper::vector< Topology::QuadID > > &  ancestors,
const sofa::helper::vector< sofa::helper::vector< double > > &  baryCoefs 
)
inline
sofa::core::topology::QuadsAdded::~QuadsAdded ( )
override

Function details

const sofa::helper::vector<Topology::QuadID>& sofa::core::topology::QuadsAdded::getArray ( ) const
inline
const sofa::helper::vector< Topology::Quad >& sofa::core::topology::QuadsAdded::getElementArray ( ) const
inline
const sofa::helper::vector< Topology::QuadID >& sofa::core::topology::QuadsAdded::getIndexArray ( ) const
inline
size_t sofa::core::topology::QuadsAdded::getNbAddedElements ( ) const
inline
size_t sofa::core::topology::QuadsAdded::getNbAddedQuads ( ) const
inline
const Topology::Quad& sofa::core::topology::QuadsAdded::getQuad ( const Topology::QuadID  i) const
inline