Version: 6.3.1
Public Member Functions | Data Fields

SMESH.Controls.ManifoldPart.Link Class Reference

#include <SMESH_ControlsDef.hxx>

Public Member Functions

 Link (SMDS_MeshNode *theNode1, SMDS_MeshNode *theNode2)
 ~Link ()
bool IsEqual (const ManifoldPart::Link &theLink) const
bool operator< (const ManifoldPart::Link &x) const

Data Fields

SMDS_MeshNodemyNode1
SMDS_MeshNodemyNode2

Detailed Description

Definition at line 651 of file SMESH_ControlsDef.hxx.


Constructor & Destructor Documentation

ManifoldPart::Link::Link ( SMDS_MeshNode theNode1,
SMDS_MeshNode theNode2 
)

Definition at line 3079 of file SMESH_Controls.cxx.

References SMESH.Controls.ManifoldPart.Link.myNode1, and SMESH.Controls.ManifoldPart.Link.myNode2.

{
  myNode1 = theNode1;
  myNode2 = theNode2;
}
ManifoldPart::Link::~Link ( )

Definition at line 3086 of file SMESH_Controls.cxx.

{
  myNode1 = 0;
  myNode2 = 0;
}

Member Function Documentation

bool ManifoldPart::Link::IsEqual ( const ManifoldPart::Link theLink) const

Definition at line 3092 of file SMESH_Controls.cxx.

References SMESH.Controls.ManifoldPart.Link.myNode1, and SMESH.Controls.ManifoldPart.Link.myNode2.

Referenced by SMESH.Controls.ManifoldPart.expandBoundary(), and SMESH.Controls.ManifoldPart.IsEqual().

{
  if ( myNode1 == theLink.myNode1 &&
       myNode2 == theLink.myNode2 )
    return true;
  else if ( myNode1 == theLink.myNode2 &&
            myNode2 == theLink.myNode1 )
    return true;
  else
    return false;
}
bool ManifoldPart::Link::operator< ( const ManifoldPart::Link x) const

Definition at line 3104 of file SMESH_Controls.cxx.

References SMESH.Controls.ManifoldPart.Link.myNode1, and SMESH.Controls.ManifoldPart.Link.myNode2.

{
  if(myNode1 < x.myNode1) return true;
  if(myNode1 == x.myNode1)
    if(myNode2 < x.myNode2) return true;
  return false;
}

Field Documentation

Copyright © 2007-2011 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