Back to index

salome-smesh  6.5.0
Public Member Functions | Public Attributes
TNode Struct Reference

Structure containing node relative data. More...

#include <StdMeshers_Prism_3D.hxx>

List of all members.

Public Member Functions

gp_XYZ GetCoords () const
gp_XYZ GetParams () const
gp_XYZ & ChangeParams () const
bool HasParams () const
SMDS_TypeOfPosition GetPositionType () const
bool IsNeighbor (const TNode &other) const
 Return true if this node and other one belong to one face.
 TNode (const SMDS_MeshNode *node=0)
bool operator< (const TNode &other) const

Public Attributes

const SMDS_MeshNode * myNode
gp_XYZ myParams

Detailed Description

Structure containing node relative data.

Definition at line 75 of file StdMeshers_Prism_3D.hxx.


Constructor & Destructor Documentation

TNode::TNode ( const SMDS_MeshNode *  node = 0) [inline]

Definition at line 88 of file StdMeshers_Prism_3D.hxx.

: myNode(node), myParams(-1,-1,-1) {}

Member Function Documentation

gp_XYZ& TNode::ChangeParams ( ) const [inline]

Definition at line 82 of file StdMeshers_Prism_3D.hxx.

{ return myParams; }
gp_XYZ TNode::GetCoords ( ) const [inline]

Definition at line 80 of file StdMeshers_Prism_3D.hxx.

{ return gp_XYZ( myNode->X(), myNode->Y(), myNode->Z() ); }
gp_XYZ TNode::GetParams ( ) const [inline]

Definition at line 81 of file StdMeshers_Prism_3D.hxx.

{ return myParams; }

Definition at line 84 of file StdMeshers_Prism_3D.hxx.

  { return myNode ? myNode->GetPosition()->GetTypeOfPosition() : SMDS_TOP_UNSPEC; }
bool TNode::HasParams ( ) const [inline]

Definition at line 83 of file StdMeshers_Prism_3D.hxx.

{ return myParams.X() >= 0.0; }
bool TNode::IsNeighbor ( const TNode other) const

Return true if this node and other one belong to one face.

Definition at line 1028 of file StdMeshers_Prism_3D.cxx.

{
  if ( !other.myNode || !myNode ) return false;

  SMDS_ElemIteratorPtr fIt = other.myNode->GetInverseElementIterator(SMDSAbs_Face);
  while ( fIt->more() )
    if ( fIt->next()->GetNodeIndex( myNode ) >= 0 )
      return true;
  return false;
}
bool TNode::operator< ( const TNode other) const [inline]

Definition at line 89 of file StdMeshers_Prism_3D.hxx.

{ return myNode->GetID() < other.myNode->GetID(); }

Member Data Documentation

const SMDS_MeshNode* TNode::myNode

Definition at line 77 of file StdMeshers_Prism_3D.hxx.

gp_XYZ TNode::myParams [mutable]

Definition at line 78 of file StdMeshers_Prism_3D.hxx.


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