SOFA API  b3f2f2a4
Open source framework for multi-physics simuation
sofa::core::topology::HexahedraAdded Class Reference

#include <TopologyChange.h>

Inheritance diagram for sofa::core::topology::HexahedraAdded:

Detailed Description

indicates that some hexahedra were added

Public Attributes

size_t nHexahedra
 
sofa::type::vector< Topology::HexahedronhexahedronArray
 
sofa::type::vector< Topology::HexahedronIDhexahedronIndexArray
 
sofa::type::vector< sofa::type::vector< Topology::HexahedronID > > ancestorsList
 
sofa::type::vector< sofa::type::vector< SReal > > coefs
 
sofa::type::vector< HexahedronAncestorElemancestorElems
 

Public Member Functions

 HexahedraAdded (const size_t nT)
 
 HexahedraAdded (const size_t nT, const sofa::type::vector< Topology::Hexahedron > &_hexahedronArray, const sofa::type::vector< Topology::HexahedronID > &hexahedraIndex)
 
 HexahedraAdded (const size_t nT, const sofa::type::vector< Topology::Hexahedron > &_hexahedronArray, const sofa::type::vector< Topology::HexahedronID > &hexahedraIndex, const sofa::type::vector< sofa::type::vector< Topology::HexahedronID > > &ancestors, const sofa::type::vector< sofa::type::vector< SReal > > &baryCoefs)
 
 HexahedraAdded (const size_t nT, const sofa::type::vector< Topology::Hexahedron > &_hexahedronArray, const sofa::type::vector< Topology::HexahedronID > &hexahedraIndex, const sofa::type::vector< HexahedronAncestorElem > &srcElems, const sofa::type::vector< sofa::type::vector< Topology::HexahedronID > > &ancestors, const sofa::type::vector< sofa::type::vector< SReal > > &baryCoefs)
 
 ~HexahedraAdded () override
 
size_t getNbAddedHexahedra () const
 
size_t getNbAddedElements () const
 
const sofa::type::vector< Topology::HexahedronID > & getIndexArray () const
 
const sofa::type::vector< Topology::Hexahedron > & 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< HexahedronAncestorElem > sofa::core::topology::HexahedraAdded::ancestorElems

◆ ancestorsList

sofa::type::vector< sofa::type::vector< Topology::HexahedronID > > sofa::core::topology::HexahedraAdded::ancestorsList

◆ coefs

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

◆ hexahedronArray

sofa::type::vector< Topology::Hexahedron > sofa::core::topology::HexahedraAdded::hexahedronArray

◆ hexahedronIndexArray

sofa::type::vector< Topology::HexahedronID > sofa::core::topology::HexahedraAdded::hexahedronIndexArray

◆ nHexahedra

size_t sofa::core::topology::HexahedraAdded::nHexahedra

Constructor details

◆ HexahedraAdded() [1/4]

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

◆ HexahedraAdded() [2/4]

sofa::core::topology::HexahedraAdded::HexahedraAdded ( const size_t  nT,
const sofa::type::vector< Topology::Hexahedron > &  _hexahedronArray,
const sofa::type::vector< Topology::HexahedronID > &  hexahedraIndex 
)
inline

◆ HexahedraAdded() [3/4]

sofa::core::topology::HexahedraAdded::HexahedraAdded ( const size_t  nT,
const sofa::type::vector< Topology::Hexahedron > &  _hexahedronArray,
const sofa::type::vector< Topology::HexahedronID > &  hexahedraIndex,
const sofa::type::vector< sofa::type::vector< Topology::HexahedronID > > &  ancestors,
const sofa::type::vector< sofa::type::vector< SReal > > &  baryCoefs 
)
inline

◆ HexahedraAdded() [4/4]

sofa::core::topology::HexahedraAdded::HexahedraAdded ( const size_t  nT,
const sofa::type::vector< Topology::Hexahedron > &  _hexahedronArray,
const sofa::type::vector< Topology::HexahedronID > &  hexahedraIndex,
const sofa::type::vector< HexahedronAncestorElem > &  srcElems,
const sofa::type::vector< sofa::type::vector< Topology::HexahedronID > > &  ancestors,
const sofa::type::vector< sofa::type::vector< SReal > > &  baryCoefs 
)
inline

◆ ~HexahedraAdded()

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

Function details

◆ getElementArray()

const sofa::type::vector< Topology::Hexahedron >& sofa::core::topology::HexahedraAdded::getElementArray ( ) const
inline

◆ getIndexArray()

const sofa::type::vector< Topology::HexahedronID >& sofa::core::topology::HexahedraAdded::getIndexArray ( ) const
inline

◆ getNbAddedElements()

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

◆ getNbAddedHexahedra()

size_t sofa::core::topology::HexahedraAdded::getNbAddedHexahedra ( ) const
inline