Public Member Functions | |
bool | isEqual (const MEDFileMesh *other, double eps, std::string &what) const |
void | clearNonDiscrAttributes () const |
~MEDFileUMesh () | |
int | getMeshDimension () const throw (INTERP_KERNEL::Exception) |
int | getSpaceDimension () const throw (INTERP_KERNEL::Exception) |
std::string | simpleRepr () const |
std::string | advancedRepr () const |
int | getSizeAtLevel (int meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception) |
const DataArrayInt * | getFamilyFieldAtLevel (int meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception) |
const DataArrayInt * | getNumberFieldAtLevel (int meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception) |
const DataArrayInt * | getRevNumberFieldAtLevel (int meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception) |
std::vector< int > | getNonEmptyLevels () const |
std::vector< int > | getNonEmptyLevelsExt () const |
std::vector< int > | getGrpNonEmptyLevels (const char *grp) const throw (INTERP_KERNEL::Exception) |
std::vector< int > | getGrpNonEmptyLevelsExt (const char *grp) const throw (INTERP_KERNEL::Exception) |
std::vector< int > | getFamNonEmptyLevels (const char *fam) const throw (INTERP_KERNEL::Exception) |
std::vector< int > | getFamNonEmptyLevelsExt (const char *fam) const throw (INTERP_KERNEL::Exception) |
std::vector< int > | getGrpsNonEmptyLevels (const std::vector< std::string > &grps) const throw (INTERP_KERNEL::Exception) |
std::vector< int > | getGrpsNonEmptyLevelsExt (const std::vector< std::string > &grps) const throw (INTERP_KERNEL::Exception) |
std::vector< int > | getFamsNonEmptyLevels (const std::vector< std::string > &fams) const throw (INTERP_KERNEL::Exception) |
std::vector< int > | getFamsNonEmptyLevelsExt (const std::vector< std::string > &fams) const throw (INTERP_KERNEL::Exception) |
std::vector< std::string > | getGroupsOnSpecifiedLev (int meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | getCoords () const |
MEDCouplingUMesh * | getGroup (int meshDimRelToMaxExt, const char *grp, bool renum=false) const throw (INTERP_KERNEL::Exception) |
MEDCouplingUMesh * | getGroups (int meshDimRelToMaxExt, const std::vector< std::string > &grps, bool renum=false) const throw (INTERP_KERNEL::Exception) |
MEDCouplingUMesh * | getFamily (int meshDimRelToMaxExt, const char *fam, bool renum=false) const throw (INTERP_KERNEL::Exception) |
MEDCouplingUMesh * | getFamilies (int meshDimRelToMaxExt, const std::vector< std::string > &fams, bool renum=false) const throw (INTERP_KERNEL::Exception) |
DataArrayInt * | getFamiliesArr (int meshDimRelToMaxExt, const std::vector< std::string > &fams, bool renum=false) const throw (INTERP_KERNEL::Exception) |
MEDCouplingUMesh * | getMeshAtLevel (int meshDimRelToMaxExt, bool renum=false) const throw (INTERP_KERNEL::Exception) |
MEDCouplingMesh * | getGenMeshAtLevel (int meshDimRelToMax, bool renum=false) const throw (INTERP_KERNEL::Exception) |
MEDCouplingUMesh * | getLevel0Mesh (bool renum=false) const throw (INTERP_KERNEL::Exception) |
MEDCouplingUMesh * | getLevelM1Mesh (bool renum=false) const throw (INTERP_KERNEL::Exception) |
MEDCouplingUMesh * | getLevelM2Mesh (bool renum=false) const throw (INTERP_KERNEL::Exception) |
MEDCouplingUMesh * | getLevelM3Mesh (bool renum=false) const throw (INTERP_KERNEL::Exception) |
void | setFamilyNameAttachedOnId (int id, const std::string &newFamName) throw (INTERP_KERNEL::Exception) |
void | setCoords (DataArrayDouble *coords) throw (INTERP_KERNEL::Exception) |
void | eraseGroupsAtLevel (int meshDimRelToMaxExt) throw (INTERP_KERNEL::Exception) |
void | setFamilyFieldArr (int meshDimRelToMaxExt, DataArrayInt *famArr) throw (INTERP_KERNEL::Exception) |
void | setRenumFieldArr (int meshDimRelToMaxExt, DataArrayInt *renumArr) throw (INTERP_KERNEL::Exception) |
void | addNodeGroup (const std::string &name, const std::vector< int > &ids) throw (INTERP_KERNEL::Exception) |
void | removeMeshAtLevel (int meshDimRelToMax) throw (INTERP_KERNEL::Exception) |
void | setMeshAtLevel (int meshDimRelToMax, MEDCouplingUMesh *m, bool newOrOld=false) throw (INTERP_KERNEL::Exception) |
void | setMeshAtLevelGen (int meshDimRelToMax, MEDCouplingUMesh *m, bool newOrOld) throw (INTERP_KERNEL::Exception) |
void | setGroupsFromScratch (int meshDimRelToMax, const std::vector< const MEDCouplingUMesh * > &ms) throw (INTERP_KERNEL::Exception) |
void | setGroupsOnSetMesh (int meshDimRelToMax, const std::vector< const MEDCouplingUMesh * > &ms, bool renum) throw (INTERP_KERNEL::Exception) |
void | optimizeFamilies () throw (INTERP_KERNEL::Exception) |
![]() | |
void | setName (const char *name) |
const char * | getName () const |
void | setUnivName (const char *name) |
const char * | getUnivName () const |
void | setDescription (const char *name) |
const char * | getDescription () const |
void | setOrder (int order) |
int | getOrder () const |
void | setIteration (int it) |
int | getIteration () const |
void | setTimeValue (double time) |
void | setTime (double time, int dt, int it) |
double | getTime (int &dt, int &it) |
double | getTimeValue () const |
void | setTimeUnit (const char *unit) |
const char * | getTimeUnit () const |
virtual void | write (const char *fileName, int mode) const throw (INTERP_KERNEL::Exception) |
virtual void | write (med_idt fid) const throw (INTERP_KERNEL::Exception) |
bool | areFamsEqual (const MEDFileMesh *other, std::string &what) const |
bool | areGrpsEqual (const MEDFileMesh *other, std::string &what) const |
bool | existsGroup (const char *groupName) const |
bool | existsFamily (int famId) const |
bool | existsFamily (const char *familyName) const |
void | setFamilyId (const char *familyName, int id) |
virtual void | addFamily (const char *familyName, int id) throw (INTERP_KERNEL::Exception) |
virtual void | createGroupOnAll (int meshDimRelToMaxExt, const char *groupName) throw (INTERP_KERNEL::Exception) |
virtual bool | keepFamIdsOnlyOnLevs (const std::vector< int > &famIds, const std::vector< int > &levs) throw (INTERP_KERNEL::Exception) |
void | addFamilyOnGrp (const char *grpName, const char *famName) throw (INTERP_KERNEL::Exception) |
std::string | findOrCreateAndGiveFamilyWithId (int id, bool &created) throw (INTERP_KERNEL::Exception) |
void | setFamilyInfo (const std::map< std::string, int > &info) |
void | setGroupInfo (const std::map< std::string, std::vector< std::string > > &info) |
void | copyFamGrpMapsFrom (const MEDFileMesh &other) |
const std::map< std::string, int > & | getFamilyInfo () const |
const std::map< std::string, std::vector< std::string > > & | getGroupInfo () const |
std::vector< std::string > | getFamiliesOnGroup (const char *name) const throw (INTERP_KERNEL::Exception) |
std::vector< std::string > | getFamiliesOnGroups (const std::vector< std::string > &grps) const throw (INTERP_KERNEL::Exception) |
std::vector< int > | getFamiliesIdsOnGroup (const char *name) const throw (INTERP_KERNEL::Exception) |
void | setFamiliesOnGroup (const char *name, const std::vector< std::string > &fams) throw (INTERP_KERNEL::Exception) |
void | setFamiliesIdsOnGroup (const char *name, const std::vector< int > &famIds) throw (INTERP_KERNEL::Exception) |
std::vector< std::string > | getGroupsOnFamily (const char *name) const throw (INTERP_KERNEL::Exception) |
void | setGroupsOnFamily (const char *famName, const std::vector< std::string > &grps) throw (INTERP_KERNEL::Exception) |
std::vector< std::string > | getGroupsNames () const |
std::vector< std::string > | getFamiliesNames () const |
void | assignFamilyNameWithGroupName () throw (INTERP_KERNEL::Exception) |
void | removeGroup (const char *name) throw (INTERP_KERNEL::Exception) |
void | removeFamily (const char *name) throw (INTERP_KERNEL::Exception) |
void | changeGroupName (const char *oldName, const char *newName) throw (INTERP_KERNEL::Exception) |
void | changeFamilyName (const char *oldName, const char *newName) throw (INTERP_KERNEL::Exception) |
void | changeFamilyId (int oldId, int newId) throw (INTERP_KERNEL::Exception) |
int | getFamilyId (const char *name) const throw (INTERP_KERNEL::Exception) |
int | getMaxFamilyId () const throw (INTERP_KERNEL::Exception) |
std::vector< int > | getFamiliesIds (const std::vector< std::string > &famNames) const throw (INTERP_KERNEL::Exception) |
std::string | getFamilyNameGivenId (int id) const throw (INTERP_KERNEL::Exception) |
virtual void | setGroupsAtLevel (int meshDimRelToMaxExt, const std::vector< const DataArrayInt * > &grps, bool renum=false) throw (INTERP_KERNEL::Exception) |
virtual DataArrayInt * | getGroupsArr (int meshDimRelToMaxExt, const std::vector< std::string > &grps, bool renum=false) const throw (INTERP_KERNEL::Exception) |
virtual DataArrayInt * | getGroupArr (int meshDimRelToMaxExt, const char *grp, bool renum=false) const throw (INTERP_KERNEL::Exception) |
virtual DataArrayInt * | getFamilyArr (int meshDimRelToMaxExt, const char *fam, bool renum=false) const throw (INTERP_KERNEL::Exception) |
virtual DataArrayInt * | getNodeGroupArr (const char *grp, bool renum=false) const throw (INTERP_KERNEL::Exception) |
virtual DataArrayInt * | getNodeGroupsArr (const std::vector< std::string > &grps, bool renum=false) const throw (INTERP_KERNEL::Exception) |
virtual DataArrayInt * | getNodeFamilyArr (const char *fam, bool renum=false) const throw (INTERP_KERNEL::Exception) |
virtual DataArrayInt * | getNodeFamiliesArr (const std::vector< std::string > &fams, bool renum=false) const throw (INTERP_KERNEL::Exception) |
![]() | |
bool | decrRef () const |
void | incrRef () const |
Static Public Member Functions | |
static MEDFileUMesh * | New (const char *fileName, const char *mName, int dt=-1, int it=-1) throw (INTERP_KERNEL::Exception) |
static MEDFileUMesh * | New (const char *fileName) throw (INTERP_KERNEL::Exception) |
static MEDFileUMesh * | New () |
Friends | |
class | MEDFileMesh |
Additional Inherited Members | |
![]() | |
static const char | DFT_FAM_NAME [] = "FAMILLE_ZERO" |
![]() | |
MEDFileMesh () | |
void | addFamilyOnAllGroupsHaving (const char *famName, const char *otherFamName) throw (INTERP_KERNEL::Exception) |
virtual void | writeLL (med_idt fid) const =0 throw (INTERP_KERNEL::Exception) |
void | dealWithTinyInfo (const MEDCouplingMesh *m) throw (INTERP_KERNEL::Exception) |
virtual void | synchronizeTinyInfoOnLeaves () const =0 |
void | getFamilyRepr (std::ostream &oss) const |
virtual void | appendFamilyEntries (const std::set< int > &famIds, const std::vector< std::vector< int > > &fidsOfGrps, const std::vector< std::string > &grpNames) |
virtual void | changeFamilyIdArr (int oldId, int newId)=0 throw (INTERP_KERNEL::Exception) |
![]() | |
static void | TranslateFamilyIds (int offset, DataArrayInt *famArr, std::vector< std::vector< int > > &famIdsPerGrp) |
static std::string | CreateNameNotIn (const std::string &nameTry, const std::vector< std::string > &namesToAvoid) throw (INTERP_KERNEL::Exception) |
![]() | |
int | _order |
int | _iteration |
double | _time |
std::string | _dt_unit |
std::string | _name |
std::string | _univ_name |
std::string | _desc_name |
std::map< std::string, std::vector< std::string > > | _groups |
std::map< std::string, int > | _families |
MEDFileUMesh::~MEDFileUMesh | ( | ) |
|
static |
Reimplemented from ParaMEDMEM::MEDFileMesh.
|
static |
Reimplemented from ParaMEDMEM::MEDFileMesh.
References MEDLoader::GetMeshNames().
|
static |
Referenced by ParaMEDMEM::MEDFileMesh::New().
|
virtual |
Reimplemented from ParaMEDMEM::MEDFileMesh.
References clearNonDiscrAttributes(), ParaMEDMEM::MEDFileMesh::isEqual(), ParaMEDMEM::DataArrayDouble::isEqual(), and ParaMEDMEM::DataArrayInt::isEqual().
|
virtual |
Reimplemented from ParaMEDMEM::MEDFileMesh.
Referenced by isEqual().
|
virtual |
Implements ParaMEDMEM::MEDFileMesh.
int MEDFileUMesh::getSpaceDimension | ( | ) | const throw (INTERP_KERNEL::Exception) |
References ParaMEDMEM::DataArray::getNumberOfComponents().
|
virtual |
Reimplemented from ParaMEDMEM::MEDFileMesh.
References ParaMEDMEM::MEDFileMesh::_families, ParaMEDMEM::MEDFileMesh::getFamilyRepr(), ParaMEDMEM::DataArray::getNumberOfComponents(), ParaMEDMEM::DataArray::getUnitsOnComponent(), and ParaMEDMEM::DataArray::getVarsOnComponent().
Referenced by advancedRepr().
|
virtual |
Implements ParaMEDMEM::MEDFileMesh.
References simpleRepr().
|
virtual |
Implements ParaMEDMEM::MEDFileMesh.
|
virtual |
Implements ParaMEDMEM::MEDFileMesh.
Referenced by optimizeFamilies().
|
virtual |
Implements ParaMEDMEM::MEDFileMesh.
|
virtual |
Implements ParaMEDMEM::MEDFileMesh.
|
virtual |
Implements ParaMEDMEM::MEDFileMesh.
Referenced by getNonEmptyLevelsExt().
|
virtual |
Implements ParaMEDMEM::MEDFileMesh.
References getNonEmptyLevels().
Referenced by optimizeFamilies().
std::vector< int > MEDFileUMesh::getGrpNonEmptyLevels | ( | const char * | grp | ) | const throw (INTERP_KERNEL::Exception) |
This methods returns all relative mesh levels where group 'grp' is defined excluded nodes. To include nodes call MEDFileUMesh::getGrpNonEmptyLevelsExt method.
std::vector< int > MEDFileUMesh::getGrpNonEmptyLevelsExt | ( | const char * | grp | ) | const throw (INTERP_KERNEL::Exception) |
This method is a generalization of MEDFileUMesh::getGrpNonEmptyLevelsExt. It looks at the node level to state if the group 'grp' has a part lying on node.
std::vector< int > MEDFileUMesh::getFamNonEmptyLevels | ( | const char * | fam | ) | const throw (INTERP_KERNEL::Exception) |
This methods returns all relative mesh levels where family 'fam' is defined excluded nodes. To include nodes call MEDFileUMesh::getFamNonEmptyLevelsExt method.
std::vector< int > MEDFileUMesh::getFamNonEmptyLevelsExt | ( | const char * | fam | ) | const throw (INTERP_KERNEL::Exception) |
This method is a generalization of MEDFileUMesh::getFamNonEmptyLevels. It looks at the node level to state if the family 'fam' has a part lying on node.
std::vector< int > MEDFileUMesh::getGrpsNonEmptyLevels | ( | const std::vector< std::string > & | grps | ) | const throw (INTERP_KERNEL::Exception) |
This methods returns all relative mesh levels where groups 'grps' are defined excluded nodes. To include nodes call MEDFileUMesh::getGrpsNonEmptyLevelsExt method.
std::vector< int > MEDFileUMesh::getGrpsNonEmptyLevelsExt | ( | const std::vector< std::string > & | grps | ) | const throw (INTERP_KERNEL::Exception) |
This method is a generalization of MEDFileUMesh::getGrpsNonEmptyLevels. It looks at the node level to state if the families 'fams' has a part lying on node.
std::vector< int > MEDFileUMesh::getFamsNonEmptyLevels | ( | const std::vector< std::string > & | fams | ) | const throw (INTERP_KERNEL::Exception) |
This methods returns all relative mesh levels where families 'fams' are defined excluded nodes. To include nodes call MEDFileUMesh::getFamsNonEmptyLevelsExt method.
std::vector< int > MEDFileUMesh::getFamsNonEmptyLevelsExt | ( | const std::vector< std::string > & | fams | ) | const throw (INTERP_KERNEL::Exception) |
This method is a generalization of MEDFileUMesh::getFamsNonEmptyLevels. It looks at the node level to state if the families 'fams' has a part lying on node.
References ParaMEDMEM::DataArrayInt::presenceOfValue().
std::vector< std::string > MEDFileUMesh::getGroupsOnSpecifiedLev | ( | int | meshDimRelToMaxExt | ) | const throw (INTERP_KERNEL::Exception) |
This method retrives all groups that partly or fully appear on the level 'meshDimRelToMaxExt'.
DataArrayDouble * MEDFileUMesh::getCoords | ( | ) | const |
This method returns coordinates in 'this'. The returned array reference counter is not incremented by this method (as MEDCouplingPointSet::getCoords does).
MEDCouplingUMesh * MEDFileUMesh::getGroup | ( | int | meshDimRelToMaxExt, |
const char * | grp, | ||
bool | renum = false |
||
) | const throw (INTERP_KERNEL::Exception) |
References ParaMEDMEM::MEDCouplingMesh::setName().
MEDCouplingUMesh * MEDFileUMesh::getGroups | ( | int | meshDimRelToMaxExt, |
const std::vector< std::string > & | grps, | ||
bool | renum = false |
||
) | const throw (INTERP_KERNEL::Exception) |
MEDCouplingUMesh * MEDFileUMesh::getFamily | ( | int | meshDimRelToMaxExt, |
const char * | fam, | ||
bool | renum = false |
||
) | const throw (INTERP_KERNEL::Exception) |
References ParaMEDMEM::MEDCouplingMesh::setName().
MEDCouplingUMesh * MEDFileUMesh::getFamilies | ( | int | meshDimRelToMaxExt, |
const std::vector< std::string > & | fams, | ||
bool | renum = false |
||
) | const throw (INTERP_KERNEL::Exception) |
References ParaMEDMEM::MEDCouplingUMesh::New().
|
virtual |
Implements ParaMEDMEM::MEDFileMesh.
MEDCouplingUMesh * MEDFileUMesh::getMeshAtLevel | ( | int | meshDimRelToMaxExt, |
bool | renum = false |
||
) | const throw (INTERP_KERNEL::Exception) |
|
virtual |
Implements ParaMEDMEM::MEDFileMesh.
MEDCouplingUMesh * MEDFileUMesh::getLevel0Mesh | ( | bool | renum = false | ) | const throw (INTERP_KERNEL::Exception) |
MEDCouplingUMesh * MEDFileUMesh::getLevelM1Mesh | ( | bool | renum = false | ) | const throw (INTERP_KERNEL::Exception) |
MEDCouplingUMesh * MEDFileUMesh::getLevelM2Mesh | ( | bool | renum = false | ) | const throw (INTERP_KERNEL::Exception) |
MEDCouplingUMesh * MEDFileUMesh::getLevelM3Mesh | ( | bool | renum = false | ) | const throw (INTERP_KERNEL::Exception) |
void MEDFileUMesh::setFamilyNameAttachedOnId | ( | int | id, |
const std::string & | newFamName | ||
) | throw (INTERP_KERNEL::Exception) |
void MEDFileUMesh::setCoords | ( | DataArrayDouble * | coords | ) | throw (INTERP_KERNEL::Exception) |
References ParaMEDMEM::DataArrayInt::New().
void MEDFileUMesh::eraseGroupsAtLevel | ( | int | meshDimRelToMaxExt | ) | throw (INTERP_KERNEL::Exception) |
|
virtual |
Implements ParaMEDMEM::MEDFileMesh.
|
virtual |
Implements ParaMEDMEM::MEDFileMesh.
void MEDFileUMesh::addNodeGroup | ( | const std::string & | name, |
const std::vector< int > & | ids | ||
) | throw (INTERP_KERNEL::Exception) |
void MEDFileUMesh::removeMeshAtLevel | ( | int | meshDimRelToMax | ) | throw (INTERP_KERNEL::Exception) |
void MEDFileUMesh::setMeshAtLevel | ( | int | meshDimRelToMax, |
MEDCouplingUMesh * | m, | ||
bool | newOrOld = false |
||
) | throw (INTERP_KERNEL::Exception) |
void MEDFileUMesh::setMeshAtLevelGen | ( | int | meshDimRelToMax, |
MEDCouplingUMesh * | m, | ||
bool | newOrOld | ||
) | throw (INTERP_KERNEL::Exception) |
References ParaMEDMEM::RefCountObject::incrRef().
void MEDFileUMesh::setGroupsFromScratch | ( | int | meshDimRelToMax, |
const std::vector< const MEDCouplingUMesh * > & | ms | ||
) | throw (INTERP_KERNEL::Exception) |
void MEDFileUMesh::setGroupsOnSetMesh | ( | int | meshDimRelToMax, |
const std::vector< const MEDCouplingUMesh * > & | ms, | ||
bool | renum | ||
) | throw (INTERP_KERNEL::Exception) |
void MEDFileUMesh::optimizeFamilies | ( | ) | throw (INTERP_KERNEL::Exception) |
|
friend |