SALOME - SMESH
SMDS_QuadraticFaceOfNodes Class Reference

#include <SMDS_QuadraticFaceOfNodes.hxx>

Inheritance diagram for SMDS_QuadraticFaceOfNodes:
Inheritance graph
Collaboration diagram for SMDS_QuadraticFaceOfNodes:
Collaboration graph

Public Member Functions

 SMDS_QuadraticFaceOfNodes (const SMDS_MeshNode *n1, const SMDS_MeshNode *n2, const SMDS_MeshNode *n3, const SMDS_MeshNode *n12, const SMDS_MeshNode *n23, const SMDS_MeshNode *n31)
 
 SMDS_QuadraticFaceOfNodes (const SMDS_MeshNode *n1, const SMDS_MeshNode *n2, const SMDS_MeshNode *n3, const SMDS_MeshNode *n4, const SMDS_MeshNode *n12, const SMDS_MeshNode *n23, const SMDS_MeshNode *n34, const SMDS_MeshNode *n41)
 
virtual SMDSAbs_EntityType GetEntityType () const
 Return type of entity. More...
 
virtual bool IsQuadratic () const
 
virtual bool IsMediumNode (const SMDS_MeshNode *node) const
 
bool ChangeNodes (const SMDS_MeshNode *nodes[], const int nbNodes)
 
virtual int NbNodes () const
 
virtual int NbEdges () const
 
virtual int NbFaces () const
 
virtual void Print (std::ostream &OS) const
 
SMDS_NodeIteratorPtr interlacedNodesIterator () const
 
SMDS_ElemIteratorPtr interlacedNodesElemIterator () const
 
virtual const SMDS_MeshNodeGetNode (const int ind) const
 Return node by its index. More...
 
SMDSAbs_ElementType GetType () const
 Return the type of the current element. More...
 
SMDS_ElemIteratorPtr nodesIterator () const
 
SMDS_ElemIteratorPtr edgesIterator () const
 
SMDS_ElemIteratorPtr facesIterator () const
 
int GetID () const
 
virtual bool IsPoly () 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

virtual SMDS_ElemIteratorPtr elementsIterator (SMDSAbs_ElementType type) const
 

Private Attributes

std::vector< const SMDS_MeshNode * > myNodes
 

Detailed Description

Definition at line 33 of file SMDS_QuadraticFaceOfNodes.hxx.

Constructor & Destructor Documentation

◆ SMDS_QuadraticFaceOfNodes() [1/2]

SMDS_QuadraticFaceOfNodes::SMDS_QuadraticFaceOfNodes ( const SMDS_MeshNode n1,
const SMDS_MeshNode n2,
const SMDS_MeshNode n3,
const SMDS_MeshNode n12,
const SMDS_MeshNode n23,
const SMDS_MeshNode n31 
)

◆ SMDS_QuadraticFaceOfNodes() [2/2]

SMDS_QuadraticFaceOfNodes::SMDS_QuadraticFaceOfNodes ( const SMDS_MeshNode n1,
const SMDS_MeshNode n2,
const SMDS_MeshNode n3,
const SMDS_MeshNode n4,
const SMDS_MeshNode n12,
const SMDS_MeshNode n23,
const SMDS_MeshNode n34,
const SMDS_MeshNode n41 
)

Member Function Documentation

◆ GetEntityType()

virtual SMDSAbs_EntityType SMDS_QuadraticFaceOfNodes::GetEntityType ( ) const
virtual

Return type of entity.

Implements SMDS_MeshElement.

◆ IsQuadratic()

virtual bool SMDS_QuadraticFaceOfNodes::IsQuadratic ( ) const
virtual

◆ IsMediumNode()

virtual bool SMDS_QuadraticFaceOfNodes::IsMediumNode ( const SMDS_MeshNode node) const
virtual

Reimplemented from SMDS_MeshElement.

◆ ChangeNodes()

bool SMDS_QuadraticFaceOfNodes::ChangeNodes ( const SMDS_MeshNode nodes[],
const int  nbNodes 
)

◆ NbNodes()

virtual int SMDS_QuadraticFaceOfNodes::NbNodes ( ) const
virtual

Reimplemented from SMDS_MeshElement.

◆ NbEdges()

virtual int SMDS_QuadraticFaceOfNodes::NbEdges ( ) const
virtual

Reimplemented from SMDS_MeshElement.

◆ NbFaces()

virtual int SMDS_QuadraticFaceOfNodes::NbFaces ( ) const
virtual

Reimplemented from SMDS_MeshElement.

◆ Print()

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

Reimplemented from SMDS_MeshElement.

◆ interlacedNodesIterator()

SMDS_NodeIteratorPtr SMDS_QuadraticFaceOfNodes::interlacedNodesIterator ( ) const

◆ interlacedNodesElemIterator()

SMDS_ElemIteratorPtr SMDS_QuadraticFaceOfNodes::interlacedNodesElemIterator ( ) const

◆ GetNode()

virtual const SMDS_MeshNode* SMDS_QuadraticFaceOfNodes::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.

◆ elementsIterator()

virtual SMDS_ElemIteratorPtr SMDS_QuadraticFaceOfNodes::elementsIterator ( SMDSAbs_ElementType  type) const
protectedvirtual

Reimplemented from SMDS_MeshElement.

◆ GetType()

SMDSAbs_ElementType SMDS_MeshFace::GetType ( ) const
virtualinherited

Return the type of the current element.

Implements SMDS_MeshElement.

Reimplemented in SMDS_PolygonalFaceOfNodes.

◆ nodesIterator()

SMDS_ElemIteratorPtr SMDS_MeshElement::nodesIterator ( ) const
inherited

◆ edgesIterator()

SMDS_ElemIteratorPtr SMDS_MeshElement::edgesIterator ( ) const
inherited

◆ facesIterator()

SMDS_ElemIteratorPtr SMDS_MeshElement::facesIterator ( ) const
inherited

◆ 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.

References SMDS_MeshElementIDFactory::BindID(), and SMDS_EXPORT.

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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

Field Documentation

◆ myNodes

std::vector<const SMDS_MeshNode *> SMDS_QuadraticFaceOfNodes::myNodes
private

Definition at line 81 of file SMDS_QuadraticFaceOfNodes.hxx.