Version: 6.5.0
Public Member Functions | Static Public Member Functions | Friends | List of all members
ParaMEDMEM::MEDFileCMesh Class Reference
Inheritance diagram for ParaMEDMEM::MEDFileCMesh:
Inheritance graph
[legend]
Collaboration diagram for ParaMEDMEM::MEDFileCMesh:
Collaboration graph
[legend]

Public Member Functions

bool isEqual (const MEDFileMesh *other, double eps, std::string &what) const
int getMeshDimension () const throw (INTERP_KERNEL::Exception)
std::string simpleRepr () const
std::string advancedRepr () const
void clearNonDiscrAttributes () const
const MEDCouplingCMeshgetMesh () const
MEDCouplingMeshgetGenMeshAtLevel (int meshDimRelToMax, bool renum=false) const throw (INTERP_KERNEL::Exception)
void setMesh (MEDCouplingCMesh *m) throw (INTERP_KERNEL::Exception)
int getSizeAtLevel (int meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception)
DataArrayIntgetFamiliesArr (int meshDimRelToMaxExt, const std::vector< std::string > &fams, bool renum=false) const throw (INTERP_KERNEL::Exception)
void setFamilyFieldArr (int meshDimRelToMaxExt, DataArrayInt *famArr) throw (INTERP_KERNEL::Exception)
void setRenumFieldArr (int meshDimRelToMaxExt, DataArrayInt *renumArr) throw (INTERP_KERNEL::Exception)
std::vector< int > getNonEmptyLevels () const
std::vector< int > getNonEmptyLevelsExt () const
const DataArrayIntgetFamilyFieldAtLevel (int meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception)
const DataArrayIntgetNumberFieldAtLevel (int meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception)
const DataArrayIntgetRevNumberFieldAtLevel (int meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception)
- Public Member Functions inherited from ParaMEDMEM::MEDFileMesh
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 DataArrayIntgetGroupsArr (int meshDimRelToMaxExt, const std::vector< std::string > &grps, bool renum=false) const throw (INTERP_KERNEL::Exception)
virtual DataArrayIntgetGroupArr (int meshDimRelToMaxExt, const char *grp, bool renum=false) const throw (INTERP_KERNEL::Exception)
virtual DataArrayIntgetFamilyArr (int meshDimRelToMaxExt, const char *fam, bool renum=false) const throw (INTERP_KERNEL::Exception)
virtual DataArrayIntgetNodeGroupArr (const char *grp, bool renum=false) const throw (INTERP_KERNEL::Exception)
virtual DataArrayIntgetNodeGroupsArr (const std::vector< std::string > &grps, bool renum=false) const throw (INTERP_KERNEL::Exception)
virtual DataArrayIntgetNodeFamilyArr (const char *fam, bool renum=false) const throw (INTERP_KERNEL::Exception)
virtual DataArrayIntgetNodeFamiliesArr (const std::vector< std::string > &fams, bool renum=false) const throw (INTERP_KERNEL::Exception)
- Public Member Functions inherited from ParaMEDMEM::RefCountObject
bool decrRef () const
void incrRef () const

Static Public Member Functions

static MEDFileCMeshNew ()
static MEDFileCMeshNew (const char *fileName) throw (INTERP_KERNEL::Exception)
static MEDFileCMeshNew (const char *fileName, const char *mName, int dt=-1, int it=-1) throw (INTERP_KERNEL::Exception)

Friends

class MEDFileMesh

Additional Inherited Members

- Static Public Attributes inherited from ParaMEDMEM::MEDFileMesh
static const char DFT_FAM_NAME [] = "FAMILLE_ZERO"
- Protected Member Functions inherited from ParaMEDMEM::MEDFileMesh
 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 Protected Member Functions inherited from ParaMEDMEM::MEDFileMesh
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)
- Protected Attributes inherited from ParaMEDMEM::MEDFileMesh
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

Member Function Documentation

MEDFileCMesh * MEDFileCMesh::New ( )
static
MEDFileCMesh * MEDFileCMesh::New ( const char *  fileName) throw (INTERP_KERNEL::Exception)
static

Reimplemented from ParaMEDMEM::MEDFileMesh.

References MEDLoader::GetMeshNames().

MEDFileCMesh * MEDFileCMesh::New ( const char *  fileName,
const char *  mName,
int  dt = -1,
int  it = -1 
) throw (INTERP_KERNEL::Exception)
static

Reimplemented from ParaMEDMEM::MEDFileMesh.

bool MEDFileCMesh::isEqual ( const MEDFileMesh other,
double  eps,
std::string &  what 
) const
virtual
int MEDFileCMesh::getMeshDimension ( ) const throw (INTERP_KERNEL::Exception)
virtual
std::string MEDFileCMesh::simpleRepr ( ) const
virtual

Reimplemented from ParaMEDMEM::MEDFileMesh.

Referenced by advancedRepr().

std::string MEDFileCMesh::advancedRepr ( ) const
virtual

Implements ParaMEDMEM::MEDFileMesh.

References simpleRepr().

void MEDFileCMesh::clearNonDiscrAttributes ( ) const
virtual

Reimplemented from ParaMEDMEM::MEDFileMesh.

Referenced by isEqual().

const MEDCouplingCMesh * MEDFileCMesh::getMesh ( ) const
MEDCouplingMesh * MEDFileCMesh::getGenMeshAtLevel ( int  meshDimRelToMax,
bool  renum = false 
) const throw (INTERP_KERNEL::Exception)
virtual
void MEDFileCMesh::setMesh ( MEDCouplingCMesh m) throw (INTERP_KERNEL::Exception)
int MEDFileCMesh::getSizeAtLevel ( int  meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception)
virtual
DataArrayInt * MEDFileCMesh::getFamiliesArr ( int  meshDimRelToMaxExt,
const std::vector< std::string > &  fams,
bool  renum = false 
) const throw (INTERP_KERNEL::Exception)
virtual
void MEDFileCMesh::setFamilyFieldArr ( int  meshDimRelToMaxExt,
DataArrayInt famArr 
) throw (INTERP_KERNEL::Exception)
virtual
void MEDFileCMesh::setRenumFieldArr ( int  meshDimRelToMaxExt,
DataArrayInt renumArr 
) throw (INTERP_KERNEL::Exception)
virtual
std::vector< int > MEDFileCMesh::getNonEmptyLevels ( ) const
virtual
std::vector< int > MEDFileCMesh::getNonEmptyLevelsExt ( ) const
virtual
const DataArrayInt * MEDFileCMesh::getFamilyFieldAtLevel ( int  meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception)
virtual
const DataArrayInt * MEDFileCMesh::getNumberFieldAtLevel ( int  meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception)
virtual
const DataArrayInt * MEDFileCMesh::getRevNumberFieldAtLevel ( int  meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception)
virtual

Friends And Related Function Documentation

friend class MEDFileMesh
friend
Copyright © 2007-2012 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