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

#include <TopologyChange.h>

Inheritance diagram for sofa::core::topology::TrianglesAdded:

Detailed Description

indicates that some triangles were added

Public Attributes

size_t nTriangles
 
sofa::helper::vector< Topology::TriangletriangleArray
 
sofa::helper::vector< Topology::TriangleIDtriangleIndexArray
 
sofa::helper::vector< sofa::helper::vector< Topology::TriangleID > > ancestorsList
 
sofa::helper::vector< sofa::helper::vector< double > > coefs
 
sofa::helper::vector< TriangleAncestorElemancestorElems
 

Public Member Functions

 TrianglesAdded (const size_t nT)
 
 TrianglesAdded (const size_t nT, const sofa::helper::vector< Topology::Triangle > &_triangleArray, const sofa::helper::vector< Topology::TriangleID > &trianglesIndex)
 
 TrianglesAdded (const size_t nT, const sofa::helper::vector< Topology::Triangle > &_triangleArray, const sofa::helper::vector< Topology::TriangleID > &trianglesIndex, const sofa::helper::vector< sofa::helper::vector< Topology::TriangleID > > &ancestors, const sofa::helper::vector< sofa::helper::vector< double > > &baryCoefs)
 
 TrianglesAdded (const size_t nT, const sofa::helper::vector< Topology::Triangle > &_triangleArray, const sofa::helper::vector< Topology::TriangleID > &trianglesIndex, const sofa::helper::vector< TriangleAncestorElem > &srcElems, const sofa::helper::vector< sofa::helper::vector< Topology::TriangleID > > &ancestors, const sofa::helper::vector< sofa::helper::vector< double > > &baryCoefs)
 
 ~TrianglesAdded () override
 
size_t getNbAddedTriangles () const
 
const sofa::helper::vector< Topology::TriangleID > & getArray () const
 
const Topology::TrianglegetTriangle (const Topology::TriangleID i)
 
size_t getNbAddedElements () const
 
const sofa::helper::vector< Topology::TriangleID > & getIndexArray () const
 
const sofa::helper::vector< Topology::Triangle > & 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< TriangleAncestorElem > sofa::core::topology::TrianglesAdded::ancestorElems
sofa::helper::vector< sofa::helper::vector< Topology::TriangleID > > sofa::core::topology::TrianglesAdded::ancestorsList
sofa::helper::vector< sofa::helper::vector< double > > sofa::core::topology::TrianglesAdded::coefs
size_t sofa::core::topology::TrianglesAdded::nTriangles
sofa::helper::vector< Topology::Triangle > sofa::core::topology::TrianglesAdded::triangleArray
sofa::helper::vector< Topology::TriangleID > sofa::core::topology::TrianglesAdded::triangleIndexArray

Constructor details

sofa::core::topology::TrianglesAdded::TrianglesAdded ( const size_t  nT)
inline
sofa::core::topology::TrianglesAdded::TrianglesAdded ( const size_t  nT,
const sofa::helper::vector< Topology::Triangle > &  _triangleArray,
const sofa::helper::vector< Topology::TriangleID > &  trianglesIndex 
)
inline
sofa::core::topology::TrianglesAdded::TrianglesAdded ( const size_t  nT,
const sofa::helper::vector< Topology::Triangle > &  _triangleArray,
const sofa::helper::vector< Topology::TriangleID > &  trianglesIndex,
const sofa::helper::vector< sofa::helper::vector< Topology::TriangleID > > &  ancestors,
const sofa::helper::vector< sofa::helper::vector< double > > &  baryCoefs 
)
inline
sofa::core::topology::TrianglesAdded::TrianglesAdded ( const size_t  nT,
const sofa::helper::vector< Topology::Triangle > &  _triangleArray,
const sofa::helper::vector< Topology::TriangleID > &  trianglesIndex,
const sofa::helper::vector< TriangleAncestorElem > &  srcElems,
const sofa::helper::vector< sofa::helper::vector< Topology::TriangleID > > &  ancestors,
const sofa::helper::vector< sofa::helper::vector< double > > &  baryCoefs 
)
inline
sofa::core::topology::TrianglesAdded::~TrianglesAdded ( )
override

Function details

const sofa::helper::vector<Topology::TriangleID>& sofa::core::topology::TrianglesAdded::getArray ( ) const
inline
const sofa::helper::vector< Topology::Triangle >& sofa::core::topology::TrianglesAdded::getElementArray ( ) const
inline
const sofa::helper::vector< Topology::TriangleID >& sofa::core::topology::TrianglesAdded::getIndexArray ( ) const
inline
size_t sofa::core::topology::TrianglesAdded::getNbAddedElements ( ) const
inline
size_t sofa::core::topology::TrianglesAdded::getNbAddedTriangles ( ) const
inline
const Topology::Triangle& sofa::core::topology::TrianglesAdded::getTriangle ( const Topology::TriangleID  i)
inline