Back to index

salome-smesh  6.5.0
Public Member Functions | Private Member Functions | Private Attributes
LinkID_Gen Class Reference

List of all members.

Public Member Functions

 LinkID_Gen (const SMESHDS_Mesh *theMesh)
long GetLinkID (const SMDS_MeshNode *n1, const SMDS_MeshNode *n2) const
bool GetNodes (const long theLinkID, const SMDS_MeshNode *&theNode1, const SMDS_MeshNode *&theNode2) const

Private Member Functions

 LinkID_Gen ()

Private Attributes

const SMESHDS_Mesh * myMesh
long myMaxID

Detailed Description

Definition at line 2127 of file SMESH_MeshEditor.cxx.

Constructor & Destructor Documentation

LinkID_Gen::LinkID_Gen ( const SMESHDS_Mesh *  theMesh) [inline]

Definition at line 2130 of file SMESH_MeshEditor.cxx.

    :myMesh( theMesh ), myMaxID( theMesh->MaxNodeID() + 1)
LinkID_Gen::LinkID_Gen ( ) [private]

Member Function Documentation

long LinkID_Gen::GetLinkID ( const SMDS_MeshNode *  n1,
const SMDS_MeshNode *  n2 
) const [inline]

Definition at line 2134 of file SMESH_MeshEditor.cxx.

    return ( Min(n1->GetID(),n2->GetID()) * myMaxID + Max(n1->GetID(),n2->GetID()));

Here is the call graph for this function:

Here is the caller graph for this function:

bool LinkID_Gen::GetNodes ( const long  theLinkID,
const SMDS_MeshNode *&  theNode1,
const SMDS_MeshNode *&  theNode2 
) const [inline]

Definition at line 2140 of file SMESH_MeshEditor.cxx.

    theNode1 = myMesh->FindNode( theLinkID / myMaxID );
    if ( !theNode1 ) return false;
    theNode2 = myMesh->FindNode( theLinkID % myMaxID );
    if ( !theNode2 ) return false;
    return true;

Member Data Documentation

long LinkID_Gen::myMaxID [private]

Definition at line 2154 of file SMESH_MeshEditor.cxx.

const SMESHDS_Mesh* LinkID_Gen::myMesh [private]

Definition at line 2153 of file SMESH_MeshEditor.cxx.

The documentation for this class was generated from the following file: