Version: 6.3.1
Public Member Functions | Private Member Functions | Private Attributes

INTERP_KERNEL.MeshRegion< ConnType > Class Template Reference

Class representing a set of elements in a mesh together with their bounding box. More...

#include <MeshRegion.hxx>

Public Member Functions

 MeshRegion ()
 ~MeshRegion ()
template<class MyMeshType >
void addElement (MeshElement< ConnType > *const element, const MyMeshType &mesh)
template<class MyMeshType >
void split (MeshRegion< ConnType > &region1, MeshRegion< ConnType > &region2, BoundingBox::BoxCoord coord, const MyMeshType &mesh)
bool isDisjointWithElementBoundingBox (const MeshElement< ConnType > &elem) const
std::vector< MeshElement
< ConnType >
* >::const_iterator 
getBeginElements () const
 Accessor to beginning of elements vector.
std::vector< MeshElement
< ConnType >
* >::const_iterator 
getEndElements () const
 Accessor to end of elements vector.
unsigned getNumberOfElements () const
 Gives information on how many elements are contained in the region.

Private Member Functions

 MeshRegion (const MeshRegion &m)
 disallow copying
MeshRegion< ConnType > & operator= (const MeshRegion< ConnType > &m)
 disallow assignment

Private Attributes

std::vector< MeshElement
< ConnType > * > 
_elements
 Vector of pointers to contained MeshElements.
BoundingBox_box
 BoundingBox containing all the nodes of all the elements in the region.

Detailed Description

template<class ConnType>
class INTERP_KERNEL::MeshRegion< ConnType >

Class representing a set of elements in a mesh together with their bounding box.

It permits to split itself in two, which is used in the depth-first search filtering process.


Constructor & Destructor Documentation

template<class ConnType>
INTERP_KERNEL.MeshRegion< ConnType >.MeshRegion ( )
template<class ConnType>
INTERP_KERNEL.MeshRegion< ConnType >.~MeshRegion ( )
template<class ConnType>
INTERP_KERNEL.MeshRegion< ConnType >.MeshRegion ( const MeshRegion< ConnType > &  m) [private]

disallow copying


Member Function Documentation

template<class ConnType>
template<class MyMeshType >
void INTERP_KERNEL.MeshRegion< ConnType >.addElement ( MeshElement< ConnType > *const  element,
const MyMeshType &  mesh 
)
template<class ConnType>
template<class MyMeshType >
void INTERP_KERNEL.MeshRegion< ConnType >.split ( MeshRegion< ConnType > &  region1,
MeshRegion< ConnType > &  region2,
BoundingBox::BoxCoord  coord,
const MyMeshType &  mesh 
)
template<class ConnType>
bool INTERP_KERNEL.MeshRegion< ConnType >.isDisjointWithElementBoundingBox ( const MeshElement< ConnType > &  elem) const
template<class ConnType>
std::vector< MeshElement<ConnType>* >::const_iterator INTERP_KERNEL.MeshRegion< ConnType >.getBeginElements ( ) const

Accessor to beginning of elements vector.

Returns:
constant iterator pointing at the beginning of the vector or elements

References INTERP_KERNEL.MeshRegion< ConnType >._elements.

template<class ConnType>
std::vector< MeshElement<ConnType>* >::const_iterator INTERP_KERNEL.MeshRegion< ConnType >.getEndElements ( ) const

Accessor to end of elements vector.

Returns:
constant iterator pointing at the end of the vector or elements

References INTERP_KERNEL.MeshRegion< ConnType >._elements.

template<class ConnType>
unsigned INTERP_KERNEL.MeshRegion< ConnType >.getNumberOfElements ( ) const

Gives information on how many elements are contained in the region.

Returns:
the number of elements contained in the region

References INTERP_KERNEL.MeshRegion< ConnType >._elements.

template<class ConnType>
MeshRegion<ConnType>& INTERP_KERNEL.MeshRegion< ConnType >.operator= ( const MeshRegion< ConnType > &  m) [private]

disallow assignment


Field Documentation

template<class ConnType>
std::vector< MeshElement<ConnType>* > INTERP_KERNEL.MeshRegion< ConnType >._elements [private]

Vector of pointers to contained MeshElements.

NB : these pointers are not owned by the region object, and are thus neither allocated or liberated in this class. The elements must therefore be allocated and liberated outside the class.

template<class ConnType>
BoundingBox* INTERP_KERNEL.MeshRegion< ConnType >._box [private]

BoundingBox containing all the nodes of all the elements in the region.

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS