SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::component::topology::MultilevelModification Class Reference

#include <MultilevelHexahedronSetTopologyContainer.h>

Inheritance diagram for sofa::component::topology::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::helper::vector< index_type > &_tArray, const std::map< index_type, std::list< Vec3i > > &removedVoxels)
 
const sofa::helper::vector< index_type > & getArray () const
 
const std::list< Vec3i > & getRemovedVoxels (const index_type 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

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

Constructor details

sofa::component::topology::MultilevelModification::MultilevelModification ( const sofa::helper::vector< index_type > &  _tArray,
const std::map< index_type, std::list< Vec3i > > &  removedVoxels 
)
inline

Function details

const sofa::helper::vector<index_type>& sofa::component::topology::MultilevelModification::getArray ( ) const
inline
size_t sofa::component::topology::MultilevelModification::getNbModifiedHexahedra ( ) const
inline
const std::list<Vec3i>& sofa::component::topology::MultilevelModification::getRemovedVoxels ( const index_type  hexaId) const
inline