Back to index

salome-smesh  6.5.0
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
MESHDRIVERMED_EXPORT Protocol Reference

#include <DriverMED_Family.h>

Collaboration diagram for MESHDRIVERMED_EXPORT:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DriverMED_Family ()
MED::PFamilyInfo GetFamilyInfo (const MED::PWrapper &theWrapper, const MED::PMeshInfo &theMeshInfo) const
 Create TFamilyInfo for this family.
const ElementsSetGetElements () const
 Returns elements of this family.
int GetId () const
 Returns a family ID.
void SetId (const int theId)
 Sets a family ID.
void AddElement (const SMDS_MeshElement *theElement)
const MED::TStringSet & GetGroupNames () const
void AddGroupName (std::string theGroupName)
void SetType (const SMDSAbs_ElementType theType)
SMDSAbs_ElementType GetType ()
const std::set
< SMDSAbs_ElementType > & 
GetTypes () const
bool MemberOf (std::string theGroupName) const
int GetGroupAttributVal () const
void SetGroupAttributVal (int theValue)
virtual Status Perform ()
std::list< TNameAndTypeGetGroupNamesAndTypes ()
void GetGroup (SMESHDS_Group *theGroup)
void CreateAllSubMeshes ()
void GetSubMesh (SMESHDS_SubMesh *theSubMesh, const int theId)
std::list< std::string > GetMeshNames (Status &theStatus)
void SetMeshName (std::string theMeshName)
 DriverMED_W_SMESHDS_Mesh ()
virtual void SetFile (const std::string &theFileName)
void SetFile (const std::string &theFileName, MED::EVersion theId)
void AddGroupOfNodes ()
 sets file name; only for usage with Add(), not Write()
void AddGroupOfEdges ()
void AddGroupOfFaces ()
void AddGroupOfVolumes ()
void AddGroup (SMESHDS_GroupBase *theGroup)
 functions to prepare adding one mesh
void AddAllSubMeshes ()
void AddSubMesh (SMESHDS_SubMesh *theSubMesh, int theID)
virtual Status Perform ()
 add one mesh

Static Public Member Functions

static DriverMED_FamilyPtrList MakeFamilies (const SMESHDS_SubMeshPtrMap &theSubMeshes, const SMESHDS_GroupBasePtrList &theGroups, const bool doGroupOfNodes, const bool doGroupOfEdges, const bool doGroupOfFaces, const bool doGroupOfVolumes)
 Methods for groups storing to MED.
static std::string GetVersionString (const MED::EVersion theVersion, int theNbDigits=2)

Private Member Functions

void Init (SMESHDS_GroupBase *group)
 Initialize the tool by SMESHDS_GroupBase.
void Split (DriverMED_FamilyPtr by, DriverMED_FamilyPtr common)
 Remove from <Elements> elements, common with <by>, Remove from <by> elements, common with <Elements>, Create family <common> from common elements, with combined groups list.
bool IsEmpty () const
 Check, if this family has empty list of elements.
bool checkFamilyID (DriverMED_FamilyPtr &aFamily, int anID) const
 Ensure aFamily has required ID.
bool buildMeshGrille (const MED::PWrapper &theWrapper, const MED::PMeshInfo &theMeshInfo)

Static Private Member Functions

static DriverMED_FamilyPtrList SplitByType (SMESHDS_SubMesh *theSubMesh, const int theId)
 Split <theSubMesh> on some parts (families) on the basis of the elements type.

Private Attributes

int myId
SMDSAbs_ElementType myType
ElementsSet myElements
MED::TStringSet myGroupNames
int myGroupAttributVal
std::set< SMDSAbs_ElementTypemyTypes
std::string myMeshName
std::map< int,
DriverMED_FamilyPtr
myFamilies
MED::PWrapper myMed
std::list< SMESHDS_GroupBase * > myGroups
bool myAllSubMeshes
std::map< int, SMESHDS_SubMesh * > mySubMeshes
bool myDoGroupOfNodes
bool myDoGroupOfEdges
bool myDoGroupOfFaces
bool myDoGroupOfVolumes

Detailed Description

Definition at line 56 of file DriverMED_Family.h.


Member Function Documentation

void MESHDRIVERMED_EXPORT::AddElement ( const SMDS_MeshElement *  theElement)
void MESHDRIVERMED_EXPORT::AddGroup ( SMESHDS_GroupBase *  theGroup)

functions to prepare adding one mesh

void MESHDRIVERMED_EXPORT::AddGroupName ( std::string  theGroupName)

sets file name; only for usage with Add(), not Write()

void MESHDRIVERMED_EXPORT::AddSubMesh ( SMESHDS_SubMesh *  theSubMesh,
int  theID 
)
bool MESHDRIVERMED_EXPORT::buildMeshGrille ( const MED::PWrapper &  theWrapper,
const MED::PMeshInfo &  theMeshInfo 
) [private]
bool MESHDRIVERMED_EXPORT::checkFamilyID ( DriverMED_FamilyPtr aFamily,
int  anID 
) const [private]

Ensure aFamily has required ID.

Parameters:
aFamily- a family to check
anID- an ID aFamily should have
Return values:
bool- true if successful

Returns elements of this family.

MED::PFamilyInfo MESHDRIVERMED_EXPORT::GetFamilyInfo ( const MED::PWrapper &  theWrapper,
const MED::PMeshInfo &  theMeshInfo 
) const

Create TFamilyInfo for this family.

void MESHDRIVERMED_EXPORT::GetGroup ( SMESHDS_Group *  theGroup)
const MED::TStringSet& MESHDRIVERMED_EXPORT::GetGroupNames ( ) const

Returns a family ID.

std::list<std::string> MESHDRIVERMED_EXPORT::GetMeshNames ( Status &  theStatus)
void MESHDRIVERMED_EXPORT::GetSubMesh ( SMESHDS_SubMesh *  theSubMesh,
const int  theId 
)
static std::string MESHDRIVERMED_EXPORT::GetVersionString ( const MED::EVersion  theVersion,
int  theNbDigits = 2 
) [static]
void MESHDRIVERMED_EXPORT::Init ( SMESHDS_GroupBase *  group) [private]

Initialize the tool by SMESHDS_GroupBase.

bool MESHDRIVERMED_EXPORT::IsEmpty ( ) const [private]

Check, if this family has empty list of elements.

static DriverMED_FamilyPtrList MESHDRIVERMED_EXPORT::MakeFamilies ( const SMESHDS_SubMeshPtrMap theSubMeshes,
const SMESHDS_GroupBasePtrList theGroups,
const bool  doGroupOfNodes,
const bool  doGroupOfEdges,
const bool  doGroupOfFaces,
const bool  doGroupOfVolumes 
) [static]

Methods for groups storing to MED.

Split each group from list <theGroups> and each sub-mesh from list <theSubMeshes> on some parts (families) on the basis of the elements membership in other groups from <theGroups> and other sub-meshes from <theSubMeshes>. Resulting families have no common elements.

bool MESHDRIVERMED_EXPORT::MemberOf ( std::string  theGroupName) const
virtual Status MESHDRIVERMED_EXPORT::Perform ( ) [virtual]
virtual Status MESHDRIVERMED_EXPORT::Perform ( ) [virtual]

add one mesh

virtual void MESHDRIVERMED_EXPORT::SetFile ( const std::string &  theFileName) [virtual]
void MESHDRIVERMED_EXPORT::SetFile ( const std::string &  theFileName,
MED::EVersion  theId 
)
void MESHDRIVERMED_EXPORT::SetId ( const int  theId)

Sets a family ID.

void MESHDRIVERMED_EXPORT::SetMeshName ( std::string  theMeshName)

Remove from <Elements> elements, common with <by>, Remove from <by> elements, common with <Elements>, Create family <common> from common elements, with combined groups list.

static DriverMED_FamilyPtrList MESHDRIVERMED_EXPORT::SplitByType ( SMESHDS_SubMesh *  theSubMesh,
const int  theId 
) [static, private]

Split <theSubMesh> on some parts (families) on the basis of the elements type.


Member Data Documentation

Definition at line 74 of file DriverMED_W_SMESHDS_Mesh.h.

Definition at line 77 of file DriverMED_W_SMESHDS_Mesh.h.

Definition at line 78 of file DriverMED_W_SMESHDS_Mesh.h.

Definition at line 76 of file DriverMED_W_SMESHDS_Mesh.h.

Definition at line 79 of file DriverMED_W_SMESHDS_Mesh.h.

Definition at line 135 of file DriverMED_Family.h.

Definition at line 70 of file DriverMED_R_SMESHDS_Mesh.h.

Definition at line 137 of file DriverMED_Family.h.

MED::TStringSet MESHDRIVERMED_EXPORT::myGroupNames [private]

Definition at line 136 of file DriverMED_Family.h.

std::list<SMESHDS_GroupBase*> MESHDRIVERMED_EXPORT::myGroups [private]

Definition at line 73 of file DriverMED_W_SMESHDS_Mesh.h.

Definition at line 133 of file DriverMED_Family.h.

MED::PWrapper MESHDRIVERMED_EXPORT::myMed [private]

Definition at line 72 of file DriverMED_W_SMESHDS_Mesh.h.

std::string MESHDRIVERMED_EXPORT::myMeshName [private]

Definition at line 69 of file DriverMED_R_SMESHDS_Mesh.h.

std::map<int,SMESHDS_SubMesh*> MESHDRIVERMED_EXPORT::mySubMeshes [private]

Definition at line 75 of file DriverMED_W_SMESHDS_Mesh.h.

Definition at line 134 of file DriverMED_Family.h.

Definition at line 138 of file DriverMED_Family.h.


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