SALOME - SMESH
SMDS_QuadraticEdge Class Reference

#include <SMDS_QuadraticEdge.hxx>

Inheritance diagram for SMDS_QuadraticEdge:
Inheritance graph
Collaboration diagram for SMDS_QuadraticEdge:
Collaboration graph

Public Member Functions

 SMDS_QuadraticEdge (const SMDS_MeshNode *node1, const SMDS_MeshNode *node2, const SMDS_MeshNode *node12)
 
bool ChangeNodes (const SMDS_MeshNode *node1, const SMDS_MeshNode *node2, const SMDS_MeshNode *node12)
 
void Print (std::ostream &OS) const
 
int NbNodes () const
 
virtual SMDSAbs_EntityType GetEntityType () const
 Return type of entity. More...
 
virtual bool IsQuadratic () const
 
virtual bool IsMediumNode (const SMDS_MeshNode *node) const
 
SMDS_NodeIteratorPtr interlacedNodesIterator () const
 
SMDS_ElemIteratorPtr interlacedNodesElemIterator () const
 
bool ChangeNodes (const SMDS_MeshNode *node1, const SMDS_MeshNode *node2)
 
virtual SMDSAbs_ElementType GetType () const
 Return the type of the current element. More...
 
int NbEdges () const
 
virtual const SMDS_MeshNodeGetNode (const int ind) const
 Return node by its index. More...
 
SMDS_ElemIteratorPtr nodesIterator () const
 
SMDS_ElemIteratorPtr edgesIterator () const
 
SMDS_ElemIteratorPtr facesIterator () const
 
virtual int NbFaces () 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

SMDS_ElemIteratorPtr elementsIterator (SMDSAbs_ElementType type) const
 

Protected Attributes

const SMDS_MeshNodemyNodes [3]
 

Detailed Description

Definition at line 34 of file SMDS_QuadraticEdge.hxx.

Constructor & Destructor Documentation

◆ SMDS_QuadraticEdge()

SMDS_QuadraticEdge::SMDS_QuadraticEdge ( const SMDS_MeshNode node1,
const SMDS_MeshNode node2,
const SMDS_MeshNode node12 
)

Member Function Documentation

◆ ChangeNodes() [1/2]

bool SMDS_QuadraticEdge::ChangeNodes ( const SMDS_MeshNode node1,
const SMDS_MeshNode node2,
const SMDS_MeshNode node12 
)

◆ Print()

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

Reimplemented from SMDS_MeshEdge.

◆ NbNodes()

int SMDS_QuadraticEdge::NbNodes ( ) const
virtual

Reimplemented from SMDS_MeshEdge.

◆ GetEntityType()

virtual SMDSAbs_EntityType SMDS_QuadraticEdge::GetEntityType ( ) const
virtual

Return type of entity.

Reimplemented from SMDS_MeshEdge.

Definition at line 50 of file SMDS_QuadraticEdge.hxx.

References SMDSEntity_Quad_Edge.

◆ IsQuadratic()

virtual bool SMDS_QuadraticEdge::IsQuadratic ( ) const
virtual

Reimplemented from SMDS_MeshElement.

Definition at line 52 of file SMDS_QuadraticEdge.hxx.

References SMDS_MeshEdge::elementsIterator(), and SMDS_MeshElement::IsMediumNode().

Here is the call graph for this function:

◆ IsMediumNode()

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

Reimplemented from SMDS_MeshElement.

◆ interlacedNodesIterator()

SMDS_NodeIteratorPtr SMDS_QuadraticEdge::interlacedNodesIterator ( ) const

◆ interlacedNodesElemIterator()

SMDS_ElemIteratorPtr SMDS_QuadraticEdge::interlacedNodesElemIterator ( ) const

◆ elementsIterator()

SMDS_ElemIteratorPtr SMDS_QuadraticEdge::elementsIterator ( SMDSAbs_ElementType  type) const
protectedvirtual

Reimplemented from SMDS_MeshEdge.

◆ ChangeNodes() [2/2]

bool SMDS_MeshEdge::ChangeNodes ( const SMDS_MeshNode node1,
const SMDS_MeshNode node2 
)
inherited

◆ GetType()

virtual SMDSAbs_ElementType SMDS_MeshEdge::GetType ( ) const
virtualinherited

Return the type of the current element.

Implements SMDS_MeshElement.

◆ NbEdges()

int SMDS_MeshEdge::NbEdges ( ) const
virtualinherited

Reimplemented from SMDS_MeshElement.

◆ GetNode()

virtual const SMDS_MeshNode* SMDS_MeshEdge::GetNode ( const int  ind) const
virtualinherited

Return node by its index.

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

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

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

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

const SMDS_MeshNode* SMDS_MeshEdge::myNodes[3]
protectedinherited

Definition at line 62 of file SMDS_MeshEdge.hxx.