Back to index

salome-med  6.5.0
Public Member Functions | Public Attributes
MEDMEM_ENSIGHT::_Support Struct Reference

EnSight variable support composed of _SubPart's. More...

#include <MEDMEM_EnsightUtils.hxx>

List of all members.

Public Member Functions

 _Support ()
void setGroup (_groupe *g)
 Return med geom type for a subPart element.
SUPPORT * medSupport (medEntityMesh entity)
 Return med group correspoding to entity.
int getIndex (const pair< const int, _noeud > &node)
 For a node, find its index in the supporting GROUP.
int getIndex (const _groupe::TMaille &cell)
 For a cell, return its index in the supporting GROUP.

Public Attributes

_groupe * myCellGroup
 cell group in _InterMed
_groupe * myNodeGroup
 node group in _InterMed

Detailed Description

EnSight variable support composed of _SubPart's.

Definition at line 506 of file MEDMEM_EnsightUtils.hxx.


Constructor & Destructor Documentation

Definition at line 511 of file MEDMEM_EnsightUtils.hxx.


Member Function Documentation

int MEDMEM_ENSIGHT::_Support::getIndex ( const pair< const int, _noeud > &  node)

For a node, find its index in the supporting GROUP.

Definition at line 2286 of file MEDMEM_EnsightUtils.cxx.

{
  if ( myNodeGroup->relocMap.empty() ) // on all and not self intersecting support
    return abs( inode.second.number );

  map<unsigned,int>::iterator ordreIndex = myNodeGroup->relocMap.find( abs( inode.second.number ));
  if ( ordreIndex == myNodeGroup->relocMap.end() )
    throw MEDEXCEPTION(LOCALIZED(STRING("No index found for ") << inode.second));
//   map < int, int >::iterator numIndex = myNodeRelocMap.find( node->number );
//   if ( numIndex == myNodeRelocMap.end() )
//     throw MEDEXCEPTION(STRING("No index found for node ") << node->number);

  return ordreIndex->second;
}
int MEDMEM_ENSIGHT::_Support::getIndex ( const _groupe::TMaille &  cell)

For a cell, return its index in the supporting GROUP.

Definition at line 2307 of file MEDMEM_EnsightUtils.cxx.

{
  if ( myCellGroup->relocMap.empty() ) // on all and not self intersecting support
    return cell->ordre();

  map<unsigned,int>::iterator ordreIndex = myCellGroup->relocMap.find( cell->ordre() );
  if ( ordreIndex == myCellGroup->relocMap.end() )
    throw MEDEXCEPTION(LOCALIZED(STRING("No index found for ") << *cell));

  return ordreIndex->second;
}

Return med group correspoding to entity.

Definition at line 2366 of file MEDMEM_EnsightUtils.cxx.

{
  if ( entity == MED_NODE )
    return myNodeGroup ? myNodeGroup->medGroup : 0;
  else
    return myCellGroup ? myCellGroup->medGroup : 0;
}
void MEDMEM_ENSIGHT::_Support::setGroup ( _groupe *  group)

Return med geom type for a subPart element.

Return med geom type for a subPart element

Set med support

Definition at line 2347 of file MEDMEM_EnsightUtils.cxx.

{
  if ( group->medGroup ) {
    if ( group->medGroup->getEntity() == MED_NODE )
      myNodeGroup = group;
    else
      myCellGroup = group;
  }
  else {
    throw MEDEXCEPTION(LOCALIZED("_Support::setGroup(): med GROUP is NULL"));
  }
}

Member Data Documentation

cell group in _InterMed

Definition at line 508 of file MEDMEM_EnsightUtils.hxx.

node group in _InterMed

Definition at line 509 of file MEDMEM_EnsightUtils.hxx.


The documentation for this struct was generated from the following files: