SOFA API  1a4bb3e7
Open source framework for multi-physics simuation
sofa::component::topology::container::dynamic::MultilevelModification Class Reference

#include <MultilevelHexahedronSetTopologyContainer.h>

Inheritance diagram for sofa::component::topology::container::dynamic::MultilevelModification:

Detailed Description

notifies change in the multilevel structure other than adding or removing coarse hexahedra

Static Public Attributes

static const int MULTILEVEL_MODIFICATION = core::topology::TOPOLOGYCHANGE_LASTID + 1
 

Public Member Functions

 MultilevelModification (const sofa::type::vector< Index > &_tArray, const std::map< Index, std::list< Vec3i > > &removedVoxels)
 
const sofa::type::vector< Index > & getArray () const
 
const std::list< Vec3i > & getRemovedVoxels (const Index hexaId) const
 
size_t getNbModifiedHexahedra () 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

◆ MULTILEVEL_MODIFICATION

const int sofa::component::topology::container::dynamic::MultilevelModification::MULTILEVEL_MODIFICATION = core::topology::TOPOLOGYCHANGE_LASTID + 1
static

Constructor details

◆ MultilevelModification()

sofa::component::topology::container::dynamic::MultilevelModification::MultilevelModification ( const sofa::type::vector< Index > &  _tArray,
const std::map< Index, std::list< Vec3i > > &  removedVoxels 
)
inline

Function details

◆ getArray()

const sofa::type::vector<Index>& sofa::component::topology::container::dynamic::MultilevelModification::getArray ( ) const
inline

◆ getNbModifiedHexahedra()

size_t sofa::component::topology::container::dynamic::MultilevelModification::getNbModifiedHexahedra ( ) const
inline

◆ getRemovedVoxels()

const std::list<Vec3i>& sofa::component::topology::container::dynamic::MultilevelModification::getRemovedVoxels ( const Index  hexaId) const
inline