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

#include <TopologyChange.h>

Inheritance diagram for sofa::core::topology::PointsAdded:

Detailed Description

indicates that some points were added

Public Attributes

size_t nVertices
 
sofa::helper::vector< Topology::PointIDpointIndexArray
 
sofa::helper::vector< sofa::helper::vector< Topology::PointID > > ancestorsList
 
sofa::helper::vector< sofa::helper::vector< double > > coefs
 
sofa::helper::vector< PointAncestorElemancestorElems
 

Public Member Functions

 PointsAdded (const size_t nV)
 
 PointsAdded (const size_t nV, const sofa::helper::vector< Topology::PointID > &indices)
 
 PointsAdded (const size_t nV, const sofa::helper::vector< sofa::helper::vector< Topology::PointID > > &ancestors, const sofa::helper::vector< sofa::helper::vector< double > > &baryCoefs)
 
 PointsAdded (const size_t nV, const sofa::helper::vector< Topology::PointID > &indices, const sofa::helper::vector< sofa::helper::vector< Topology::PointID > > &ancestors, const sofa::helper::vector< sofa::helper::vector< double > > &baryCoefs)
 
 PointsAdded (const size_t nV, const sofa::helper::vector< Topology::PointID > &indices, const sofa::helper::vector< PointAncestorElem > &srcElems, const sofa::helper::vector< sofa::helper::vector< Topology::PointID > > &ancestors, const sofa::helper::vector< sofa::helper::vector< double > > &baryCoefs)
 
 ~PointsAdded () override
 
size_t getNbAddedVertices () const
 
size_t getNbAddedElements () const
 
const sofa::helper::vector< Topology::PointID > & getIndexArray () const
 
const sofa::helper::vector< Topology::Point > & 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< PointAncestorElem > sofa::core::topology::PointsAdded::ancestorElems
sofa::helper::vector< sofa::helper::vector< Topology::PointID > > sofa::core::topology::PointsAdded::ancestorsList
sofa::helper::vector< sofa::helper::vector< double > > sofa::core::topology::PointsAdded::coefs
size_t sofa::core::topology::PointsAdded::nVertices
sofa::helper::vector< Topology::PointID > sofa::core::topology::PointsAdded::pointIndexArray

Constructor details

sofa::core::topology::PointsAdded::PointsAdded ( const size_t  nV)
inline
sofa::core::topology::PointsAdded::PointsAdded ( const size_t  nV,
const sofa::helper::vector< Topology::PointID > &  indices 
)
inline
sofa::core::topology::PointsAdded::PointsAdded ( const size_t  nV,
const sofa::helper::vector< sofa::helper::vector< Topology::PointID > > &  ancestors,
const sofa::helper::vector< sofa::helper::vector< double > > &  baryCoefs 
)
inline
sofa::core::topology::PointsAdded::PointsAdded ( const size_t  nV,
const sofa::helper::vector< Topology::PointID > &  indices,
const sofa::helper::vector< sofa::helper::vector< Topology::PointID > > &  ancestors,
const sofa::helper::vector< sofa::helper::vector< double > > &  baryCoefs 
)
inline
sofa::core::topology::PointsAdded::PointsAdded ( const size_t  nV,
const sofa::helper::vector< Topology::PointID > &  indices,
const sofa::helper::vector< PointAncestorElem > &  srcElems,
const sofa::helper::vector< sofa::helper::vector< Topology::PointID > > &  ancestors,
const sofa::helper::vector< sofa::helper::vector< double > > &  baryCoefs 
)
inline
sofa::core::topology::PointsAdded::~PointsAdded ( )
override

Function details

const sofa::helper::vector< Topology::Point >& sofa::core::topology::PointsAdded::getElementArray ( ) const
inline
const sofa::helper::vector< Topology::PointID >& sofa::core::topology::PointsAdded::getIndexArray ( ) const
inline
size_t sofa::core::topology::PointsAdded::getNbAddedElements ( ) const
inline
size_t sofa::core::topology::PointsAdded::getNbAddedVertices ( ) const
inline