SALOME - SMESH
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
SMDS_FaceOfNodes Class Reference

#include <SMDS_FaceOfNodes.hxx>

Inheritance diagram for SMDS_FaceOfNodes:
Inheritance graph
Collaboration diagram for SMDS_FaceOfNodes:
Collaboration graph

Public Member Functions

void Print (std::ostream &OS) const
 SMDS_FaceOfNodes (const SMDS_MeshNode *node1, const SMDS_MeshNode *node2, const SMDS_MeshNode *node3)
 SMDS_FaceOfNodes (const SMDS_MeshNode *node1, const SMDS_MeshNode *node2, const SMDS_MeshNode *node3, const SMDS_MeshNode *node4)
bool ChangeNodes (const SMDS_MeshNode *nodes[], const int nbNodes)
int NbEdges () const
int NbFaces () const
int NbNodes () const
virtual const SMDS_MeshNodeGetNode (const int ind) const
 Return node by its index.
virtual SMDSAbs_EntityType GetEntityType () const
 Return type of entity.
SMDSAbs_ElementType GetType () const
 Return the type of the current element.
SMDS_ElemIteratorPtr nodesIterator () const
SMDS_ElemIteratorPtr edgesIterator () const
SMDS_ElemIteratorPtr facesIterator () 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.
virtual bool IsValidIndex (const int ind) const
 Return true if index of node is valid (0 <= ind < NbNodes())
int WrappedIndex (const int ind) const
 Return a valid node index, fixing the given one if necessary.
int GetNodeIndex (const SMDS_MeshNode *node) const
 Check if a node belongs to the element.

Protected Member Functions

SMDS_ElemIteratorPtr elementsIterator (SMDSAbs_ElementType type) const

Private Attributes

const SMDS_MeshNodemyNodes [4]
int myNbNodes

Friends

std::ostream & operator<< (std::ostream &OS, const SMDS_MeshElement *)
bool SMDS_MeshElementIDFactory::BindID (int ID, SMDS_MeshElement *elem)

Detailed Description

Definition at line 35 of file SMDS_FaceOfNodes.hxx.


Constructor & Destructor Documentation

SMDS_FaceOfNodes::SMDS_FaceOfNodes ( const SMDS_MeshNode node1,
const SMDS_MeshNode node2,
const SMDS_MeshNode node3 
)
SMDS_FaceOfNodes::SMDS_FaceOfNodes ( const SMDS_MeshNode node1,
const SMDS_MeshNode node2,
const SMDS_MeshNode node3,
const SMDS_MeshNode node4 
)

Member Function Documentation

void SMDS_FaceOfNodes::Print ( std::ostream &  OS) const [virtual]

Reimplemented from SMDS_MeshElement.

bool SMDS_FaceOfNodes::ChangeNodes ( const SMDS_MeshNode nodes[],
const int  nbNodes 
)
int SMDS_FaceOfNodes::NbEdges ( ) const [virtual]

Reimplemented from SMDS_MeshElement.

int SMDS_FaceOfNodes::NbFaces ( ) const [virtual]

Reimplemented from SMDS_MeshElement.

int SMDS_FaceOfNodes::NbNodes ( ) const [virtual]

Reimplemented from SMDS_MeshElement.

virtual const SMDS_MeshNode* SMDS_FaceOfNodes::GetNode ( const int  ind) const [virtual]

Return node by its index.

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

Reimplemented from SMDS_MeshElement.

Return type of entity.

Implements SMDS_MeshElement.

Reimplemented from SMDS_MeshElement.

SMDSAbs_ElementType SMDS_MeshFace::GetType ( ) const [virtual, inherited]

Return the type of the current element.

Implements SMDS_MeshElement.

Reimplemented in SMDS_FaceOfEdges, and SMDS_PolygonalFaceOfNodes.

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:

virtual bool SMDS_MeshElement::IsPoly ( ) const [virtual, inherited]

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:

virtual bool SMDS_MeshElement::IsQuadratic ( ) const [virtual, inherited]

Reimplemented in SMDS_QuadraticVolumeOfNodes, SMDS_QuadraticFaceOfNodes, and SMDS_QuadraticEdge.

Referenced by SMDS_MeshInfo::RemoveEdge().

Here is the caller graph for this function:

virtual bool SMDS_MeshElement::IsMediumNode ( const SMDS_MeshNode node) const [virtual, inherited]
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.

virtual bool SMDS_MeshElement::IsValidIndex ( const int  ind) const [virtual, inherited]

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

Parameters:
ind- node index
Return values:
bool- index check result
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.

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

std::ostream& operator<< ( std::ostream &  OS,
const SMDS_MeshElement  
) [friend, inherited]
bool SMDS_MeshElementIDFactory::BindID ( int  ID,
SMDS_MeshElement elem 
) [friend, inherited]

Field Documentation

Definition at line 66 of file SMDS_FaceOfNodes.hxx.

Definition at line 67 of file SMDS_FaceOfNodes.hxx.