Back to index

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

Structure to temporarily store data read from EnSight geom file. More...

#include <MEDMEM_EnsightUtils.hxx>

Collaboration diagram for MEDMEM_ENSIGHT::_InterMed:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void addSubPart (const _SubPart &subPart)
 store subPart data
 ~_InterMed ()
 delete intermediate med data

Public Attributes

MESH * _medMesh
bool _isOwnMedMesh
 whether to delete _medMesh
int _nbUsers
 to know when to delete _medMesh
bool _needSubParts
 true if there are fields needing _SubPart data
map< _SubPartDesc, _SubPart_subPartDescribed
map< _SupportDesc, _Support_supportDescribed

Detailed Description

Structure to temporarily store data read from EnSight geom file.

Definition at line 529 of file MEDMEM_EnsightUtils.hxx.


Constructor & Destructor Documentation

delete intermediate med data

Definition at line 2263 of file MEDMEM_EnsightUtils.cxx.

{
  if ( _isOwnMedMesh )
  {
    // remove MEDMEM groups not belonging to _medMesh
    for (unsigned int i=0; i < _intermediateMED::groupes.size(); ++i)
    {
      _groupe& grp = _intermediateMED::groupes[i];
      if ( !grp.medGroup ) continue;
      vector<GROUP*> groups = _medMesh->getGroups( grp.medGroup->getEntity() );
      if ( find( groups.begin(), groups.end(), grp.medGroup ) == groups.end() )
        grp.medGroup->removeReference();
    }
    if(_medMesh) _medMesh->removeReference();
    _medMesh=0;
  }
}

Member Function Documentation

store subPart data

Definition at line 2246 of file MEDMEM_EnsightUtils.cxx.

{
  if ( _needSubParts ) {
    _SubPart & subPart = _subPartDescribed[ theSubPart.getDescriptor() ];
    subPart = theSubPart;
    if ( subPart.myCellGroupIndex > 0 ) {
      _groupe & groupe = this->groupes[ subPart.myCellGroupIndex-1 ];
      subPart.myFirstCell = groupe.mailles.begin();
    }
  }
}

Here is the call graph for this function:


Member Data Documentation

whether to delete _medMesh

Definition at line 532 of file MEDMEM_EnsightUtils.hxx.

Definition at line 531 of file MEDMEM_EnsightUtils.hxx.

to know when to delete _medMesh

Definition at line 533 of file MEDMEM_EnsightUtils.hxx.

true if there are fields needing _SubPart data

Definition at line 535 of file MEDMEM_EnsightUtils.hxx.

Definition at line 537 of file MEDMEM_EnsightUtils.hxx.

Definition at line 539 of file MEDMEM_EnsightUtils.hxx.


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