SALOME - SMESH
SMDS_MeshNode Class Reference

#include <SMDS_MeshNode.hxx>

Inheritance diagram for SMDS_MeshNode:
Inheritance graph
Collaboration diagram for SMDS_MeshNode:
Collaboration graph

Public Member Functions

 SMDS_MeshNode (double x, double y, double z)
 
void Print (std::ostream &OS) const
 
double X () const
 
double Y () const
 
double Z () const
 
void AddInverseElement (const SMDS_MeshElement *ME)
 
void RemoveInverseElement (const SMDS_MeshElement *parent)
 
void ClearInverseElements ()
 
bool emptyInverseElements ()
 
SMDS_ElemIteratorPtr GetInverseElementIterator (SMDSAbs_ElementType type=SMDSAbs_All) const
 
int NbInverseElements (SMDSAbs_ElementType type=SMDSAbs_All) const
 
void SetPosition (const SMDS_PositionPtr &aPos)
 
const SMDS_PositionPtrGetPosition () const
 
SMDSAbs_ElementType GetType () const
 Return the type of the current element. More...
 
SMDSAbs_EntityType GetEntityType () const
 Return type of entity. More...
 
int NbNodes () const
 
void setXYZ (double x, double y, double z)
 
virtual const SMDS_MeshNodeGetNode (const int) const
 Return node by its index. More...
 
SMDS_ElemIteratorPtr nodesIterator () const
 
SMDS_ElemIteratorPtr edgesIterator () const
 
SMDS_ElemIteratorPtr facesIterator () const
 
virtual int NbEdges () const
 
virtual int NbFaces () const
 
int GetID () const
 
virtual bool IsPoly () const
 
virtual bool IsQuadratic () const
 
virtual bool IsMediumNode (const SMDS_MeshNode *node) const
 
const SMDS_MeshNodeGetNodeWrap (const int ind) const
 Return node by its index. More...
 
virtual bool IsValidIndex (const int ind) const
 Return true if index of node is valid (0 <= ind < NbNodes()) More...
 
int WrappedIndex (const int ind) const
 Return a valid node index, fixing the given one if necessary. More...
 
int GetNodeIndex (const SMDS_MeshNode *node) const
 Check if a node belongs to the element. More...
 

Protected Member Functions

SMDS_ElemIteratorPtr elementsIterator (SMDSAbs_ElementType type) const
 

Private Attributes

double myX
 
double myY
 
double myZ
 
SMDS_PositionPtr myPosition
 
NCollection_List< const SMDS_MeshElement * > myInverseElements
 

Friends

bool operator< (const SMDS_MeshNode &e1, const SMDS_MeshNode &e2)
 

Detailed Description

Definition at line 35 of file SMDS_MeshNode.hxx.

Constructor & Destructor Documentation

◆ SMDS_MeshNode()

SMDS_MeshNode::SMDS_MeshNode ( double  x,
double  y,
double  z 
)

Member Function Documentation

◆ Print()

void SMDS_MeshNode::Print ( std::ostream &  OS) const
virtual

Reimplemented from SMDS_MeshElement.

◆ X()

double SMDS_MeshNode::X ( ) const

Referenced by TNode::GetCoords().

Here is the caller graph for this function:

◆ Y()

double SMDS_MeshNode::Y ( ) const

Referenced by TNode::GetCoords().

Here is the caller graph for this function:

◆ Z()

double SMDS_MeshNode::Z ( ) const

Referenced by TNode::GetCoords().

Here is the caller graph for this function:

◆ AddInverseElement()

void SMDS_MeshNode::AddInverseElement ( const SMDS_MeshElement ME)

◆ RemoveInverseElement()

void SMDS_MeshNode::RemoveInverseElement ( const SMDS_MeshElement parent)

◆ ClearInverseElements()

void SMDS_MeshNode::ClearInverseElements ( )

◆ emptyInverseElements()

bool SMDS_MeshNode::emptyInverseElements ( )

◆ GetInverseElementIterator()

SMDS_ElemIteratorPtr SMDS_MeshNode::GetInverseElementIterator ( SMDSAbs_ElementType  type = SMDSAbs_All) const

◆ NbInverseElements()

int SMDS_MeshNode::NbInverseElements ( SMDSAbs_ElementType  type = SMDSAbs_All) const

◆ SetPosition()

void SMDS_MeshNode::SetPosition ( const SMDS_PositionPtr aPos)

◆ GetPosition()

const SMDS_PositionPtr& SMDS_MeshNode::GetPosition ( ) const

Referenced by TNode::GetPositionType().

Here is the caller graph for this function:

◆ GetType()

SMDSAbs_ElementType SMDS_MeshNode::GetType ( ) const
virtual

Return the type of the current element.

Implements SMDS_MeshElement.

◆ GetEntityType()

SMDSAbs_EntityType SMDS_MeshNode::GetEntityType ( ) const
virtual

Return type of entity.

Implements SMDS_MeshElement.

Definition at line 53 of file SMDS_MeshNode.hxx.

References SMDSEntity_Node.

◆ NbNodes()

int SMDS_MeshNode::NbNodes ( ) const
virtual

Reimplemented from SMDS_MeshElement.

◆ setXYZ()

void SMDS_MeshNode::setXYZ ( double  x,
double  y,
double  z 
)

◆ GetNode()

virtual const SMDS_MeshNode* SMDS_MeshNode::GetNode ( const int  ) const
virtual

Return node by its index.

Parameters
ind- node index
Return values
constSMDS_MeshNode* - the node

Reimplemented from SMDS_MeshElement.

Definition at line 63 of file SMDS_MeshNode.hxx.

◆ elementsIterator()

SMDS_ElemIteratorPtr SMDS_MeshNode::elementsIterator ( SMDSAbs_ElementType  type) const
protectedvirtual

Reimplemented from SMDS_MeshElement.

◆ nodesIterator()

SMDS_ElemIteratorPtr SMDS_MeshElement::nodesIterator ( ) const
inherited

◆ edgesIterator()

SMDS_ElemIteratorPtr SMDS_MeshElement::edgesIterator ( ) const
inherited

◆ facesIterator()

SMDS_ElemIteratorPtr SMDS_MeshElement::facesIterator ( ) const
inherited

◆ NbEdges()

◆ NbFaces()

◆ GetID()

int SMDS_MeshElement::GetID ( ) const
inherited

Referenced by TIDCompare::operator()(), TNode::operator<(), and SMESH_TLink::SMESH_TLink().

Here is the caller graph for this function:

◆ IsPoly()

virtual bool SMDS_MeshElement::IsPoly ( ) const
virtualinherited

Reimplemented in SMDS_PolygonalFaceOfNodes, and SMDS_PolyhedralVolumeOfNodes.

Definition at line 65 of file SMDS_MeshElement.hxx.

Referenced by SMDS_MeshInfo::RemoveFace(), and SMDS_MeshInfo::RemoveVolume().

Here is the caller graph for this function:

◆ IsQuadratic()

virtual bool SMDS_MeshElement::IsQuadratic ( ) const
virtualinherited

Reimplemented in SMDS_QuadraticVolumeOfNodes, SMDS_QuadraticFaceOfNodes, and SMDS_QuadraticEdge.

Referenced by SMDS_MeshInfo::RemoveEdge().

Here is the caller graph for this function:

◆ IsMediumNode()

virtual bool SMDS_MeshElement::IsMediumNode ( const SMDS_MeshNode node) const
virtualinherited

◆ GetNodeWrap()

const SMDS_MeshNode* SMDS_MeshElement::GetNodeWrap ( const int  ind) const
inherited

Return node by its index.

Parameters
ind- node index
Return values
constSMDS_MeshNode* - the node

Index is wrapped if it is out of a valid range

Definition at line 92 of file SMDS_MeshElement.hxx.

◆ IsValidIndex()

virtual bool SMDS_MeshElement::IsValidIndex ( const int  ind) const
virtualinherited

Return true if index of node is valid (0 <= ind < NbNodes())

Parameters
ind- node index
Return values
bool- index check result

◆ WrappedIndex()

int SMDS_MeshElement::WrappedIndex ( const int  ind) const
inherited

Return a valid node index, fixing the given one if necessary.

Parameters
ind- node index
Return values
int- valid node index

Definition at line 106 of file SMDS_MeshElement.hxx.

◆ GetNodeIndex()

int SMDS_MeshElement::GetNodeIndex ( const SMDS_MeshNode node) const
inherited

Check if a node belongs to the element.

Parameters
node- the node to check
Return values
int- node index within the element, -1 if not found

Friends And Related Function Documentation

◆ operator<

bool operator< ( const SMDS_MeshNode e1,
const SMDS_MeshNode e2 
)
friend

Field Documentation

◆ myX

double SMDS_MeshNode::myX
private

Definition at line 70 of file SMDS_MeshNode.hxx.

◆ myY

double SMDS_MeshNode::myY
private

Definition at line 70 of file SMDS_MeshNode.hxx.

◆ myZ

double SMDS_MeshNode::myZ
private

Definition at line 70 of file SMDS_MeshNode.hxx.

◆ myPosition

SMDS_PositionPtr SMDS_MeshNode::myPosition
private

Definition at line 71 of file SMDS_MeshNode.hxx.

◆ myInverseElements

NCollection_List<const SMDS_MeshElement*> SMDS_MeshNode::myInverseElements
private

Definition at line 72 of file SMDS_MeshNode.hxx.