SOFA API  ea7f52a9
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::type::vector< Topology::PointIDpointIndexArray
 
sofa::type::vector< sofa::type::vector< Topology::PointID > > ancestorsList
 
sofa::type::vector< sofa::type::vector< SReal > > coefs
 
sofa::type::vector< PointAncestorElemancestorElems
 

Public Member Functions

 PointsAdded (const size_t nV)
 
 PointsAdded (const size_t nV, const sofa::type::vector< Topology::PointID > &indices)
 
 PointsAdded (const size_t nV, const sofa::type::vector< sofa::type::vector< Topology::PointID > > &ancestors, const sofa::type::vector< sofa::type::vector< SReal > > &baryCoefs)
 
 PointsAdded (const size_t nV, const sofa::type::vector< Topology::PointID > &indices, const sofa::type::vector< sofa::type::vector< Topology::PointID > > &ancestors, const sofa::type::vector< sofa::type::vector< SReal > > &baryCoefs)
 
 PointsAdded (const size_t nV, const sofa::type::vector< Topology::PointID > &indices, const sofa::type::vector< PointAncestorElem > &srcElems, const sofa::type::vector< sofa::type::vector< Topology::PointID > > &ancestors, const sofa::type::vector< sofa::type::vector< SReal > > &baryCoefs)
 
 ~PointsAdded () override
 
size_t getNbAddedVertices () const
 
size_t getNbAddedElements () const
 
const sofa::type::vector< Topology::PointID > & getIndexArray () const
 
const sofa::type::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

◆ ancestorElems

sofa::type::vector< PointAncestorElem > sofa::core::topology::PointsAdded::ancestorElems

◆ ancestorsList

sofa::type::vector< sofa::type::vector< Topology::PointID > > sofa::core::topology::PointsAdded::ancestorsList

◆ coefs

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

◆ nVertices

size_t sofa::core::topology::PointsAdded::nVertices

◆ pointIndexArray

sofa::type::vector< Topology::PointID > sofa::core::topology::PointsAdded::pointIndexArray

Constructor details

◆ PointsAdded() [1/5]

sofa::core::topology::PointsAdded::PointsAdded ( const size_t  nV)
inline

◆ PointsAdded() [2/5]

sofa::core::topology::PointsAdded::PointsAdded ( const size_t  nV,
const sofa::type::vector< Topology::PointID > &  indices 
)
inline

◆ PointsAdded() [3/5]

sofa::core::topology::PointsAdded::PointsAdded ( const size_t  nV,
const sofa::type::vector< sofa::type::vector< Topology::PointID > > &  ancestors,
const sofa::type::vector< sofa::type::vector< SReal > > &  baryCoefs 
)
inline

◆ PointsAdded() [4/5]

sofa::core::topology::PointsAdded::PointsAdded ( const size_t  nV,
const sofa::type::vector< Topology::PointID > &  indices,
const sofa::type::vector< sofa::type::vector< Topology::PointID > > &  ancestors,
const sofa::type::vector< sofa::type::vector< SReal > > &  baryCoefs 
)
inline

◆ PointsAdded() [5/5]

sofa::core::topology::PointsAdded::PointsAdded ( const size_t  nV,
const sofa::type::vector< Topology::PointID > &  indices,
const sofa::type::vector< PointAncestorElem > &  srcElems,
const sofa::type::vector< sofa::type::vector< Topology::PointID > > &  ancestors,
const sofa::type::vector< sofa::type::vector< SReal > > &  baryCoefs 
)
inline

◆ ~PointsAdded()

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

Function details

◆ getElementArray()

const sofa::type::vector< Topology::Point >& sofa::core::topology::PointsAdded::getElementArray ( ) const
inline

◆ getIndexArray()

const sofa::type::vector< Topology::PointID >& sofa::core::topology::PointsAdded::getIndexArray ( ) const
inline

◆ getNbAddedElements()

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

◆ getNbAddedVertices()

size_t sofa::core::topology::PointsAdded::getNbAddedVertices ( ) const
inline