Version: 6.3.1
Public Member Functions | Protected Attributes

SMESH.Controls.FreeNodes Class Reference

#include <SMESH_ControlsDef.hxx>

Inheritance diagram for SMESH.Controls.FreeNodes:
Inheritance graph
[legend]

Public Member Functions

 FreeNodes ()
virtual void SetMesh (const SMDS_Mesh *theMesh)
virtual bool IsSatisfy (long theNodeId)
virtual SMDSAbs_ElementType GetType () const

Protected Attributes

const SMDS_MeshmyMesh

Detailed Description

Definition at line 479 of file SMESH_ControlsDef.hxx.


Constructor & Destructor Documentation

FreeNodes::FreeNodes ( )

Definition at line 2244 of file SMESH_Controls.cxx.

References SMESH.Controls.FreeEdges.myMesh.

{
  myMesh = 0;
}

Member Function Documentation

SMDSAbs_ElementType FreeNodes::GetType ( ) const [virtual]

Implements SMESH.Controls.Predicate.

Definition at line 2263 of file SMESH_Controls.cxx.

References SMDSAbs_Node.

{
  return SMDSAbs_Node;
}
bool FreeNodes::IsSatisfy ( long  theNodeId) [virtual]

Implements SMESH.Controls.Predicate.

Definition at line 2254 of file SMESH_Controls.cxx.

References SMDS_Mesh.FindNode(), SMESH.Controls.FreeEdges.myMesh, and SMDS_MeshNode.NbInverseElements().

{
  const SMDS_MeshNode* aNode = myMesh->FindNode( theNodeId );
  if (!aNode)
    return false;

  return (aNode->NbInverseElements() < 1);
}
void FreeNodes::SetMesh ( const SMDS_Mesh theMesh) [virtual]

Implements SMESH.Controls.Functor.

Definition at line 2249 of file SMESH_Controls.cxx.

References SMESH.Controls.FreeEdges.myMesh.

{
  myMesh = theMesh;
}

Field Documentation

Definition at line 487 of file SMESH_ControlsDef.hxx.

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