SALOME - SMESH
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SMDS_VolumeOfFaces Class Reference

#include <SMDS_VolumeOfFaces.hxx>

Inheritance diagram for SMDS_VolumeOfFaces:
Inheritance graph
Collaboration diagram for SMDS_VolumeOfFaces:
Collaboration graph

Public Member Functions

 SMDS_VolumeOfFaces (const SMDS_MeshFace *face1, const SMDS_MeshFace *face2, const SMDS_MeshFace *face3, const SMDS_MeshFace *face4)
 
 SMDS_VolumeOfFaces (const SMDS_MeshFace *face1, const SMDS_MeshFace *face2, const SMDS_MeshFace *face3, const SMDS_MeshFace *face4, const SMDS_MeshFace *face5)
 
 SMDS_VolumeOfFaces (const SMDS_MeshFace *face1, const SMDS_MeshFace *face2, const SMDS_MeshFace *face3, const SMDS_MeshFace *face4, const SMDS_MeshFace *face5, const SMDS_MeshFace *face6)
 
void Print (std::ostream &OS) const
 
int NbFaces () const
 
SMDSAbs_ElementType GetType () const
 Return the type of the current element. More...
 
SMDS_ElemIteratorPtr nodesIterator () const
 
SMDS_ElemIteratorPtr edgesIterator () const
 
SMDS_ElemIteratorPtr facesIterator () const
 
virtual int NbNodes () const
 
virtual int NbEdges () const
 
int GetID () const
 
virtual bool IsPoly () const
 
virtual bool IsQuadratic () const
 
virtual bool IsMediumNode (const SMDS_MeshNode *node) const
 
virtual const SMDS_MeshNodeGetNode (const int ind) const
 Return node by its index. More...
 
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_MeshFacemyFaces [6]
 
int myNbFaces
 

Detailed Description

Definition at line 37 of file SMDS_VolumeOfFaces.hxx.

Constructor & Destructor Documentation

SMDS_VolumeOfFaces::SMDS_VolumeOfFaces ( const SMDS_MeshFace face1,
const SMDS_MeshFace face2,
const SMDS_MeshFace face3,
const SMDS_MeshFace face4 
)
SMDS_VolumeOfFaces::SMDS_VolumeOfFaces ( const SMDS_MeshFace face1,
const SMDS_MeshFace face2,
const SMDS_MeshFace face3,
const SMDS_MeshFace face4,
const SMDS_MeshFace face5 
)
SMDS_VolumeOfFaces::SMDS_VolumeOfFaces ( const SMDS_MeshFace face1,
const SMDS_MeshFace face2,
const SMDS_MeshFace face3,
const SMDS_MeshFace face4,
const SMDS_MeshFace face5,
const SMDS_MeshFace face6 
)

Member Function Documentation

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

Reimplemented from SMDS_MeshElement.

int SMDS_VolumeOfFaces::NbFaces ( ) const
virtual

Reimplemented from SMDS_MeshElement.

SMDS_ElemIteratorPtr SMDS_VolumeOfFaces::elementsIterator ( SMDSAbs_ElementType  type) const
protectedvirtual

Reimplemented from SMDS_MeshElement.

SMDSAbs_ElementType SMDS_MeshVolume::GetType ( ) const
virtualinherited

Return the type of the current element.

Implements SMDS_MeshElement.

Reimplemented in SMDS_VolumeOfNodes, and SMDS_PolyhedralVolumeOfNodes.

SMDS_ElemIteratorPtr SMDS_MeshElement::nodesIterator ( ) const
inherited
SMDS_ElemIteratorPtr SMDS_MeshElement::edgesIterator ( ) const
inherited
SMDS_ElemIteratorPtr SMDS_MeshElement::facesIterator ( ) const
inherited
virtual int SMDS_MeshElement::NbNodes ( ) const
virtualinherited
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
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:

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:

virtual bool SMDS_MeshElement::IsMediumNode ( const SMDS_MeshNode node) const
virtualinherited
virtual const SMDS_MeshNode* SMDS_MeshElement::GetNode ( const int  ind) const
virtualinherited

Return node by its index.

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

Reimplemented in SMDS_QuadraticVolumeOfNodes, SMDS_VolumeOfNodes, SMDS_QuadraticFaceOfNodes, SMDS_PolyhedralVolumeOfNodes, SMDS_MeshNode, SMDS_PolygonalFaceOfNodes, SMDS_FaceOfEdges, SMDS_FaceOfNodes, and SMDS_MeshEdge.

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 90 of file SMDS_MeshElement.hxx.

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
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 104 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

Field Documentation

const SMDS_MeshFace* SMDS_VolumeOfFaces::myFaces[6]
protected

Definition at line 64 of file SMDS_VolumeOfFaces.hxx.

int SMDS_VolumeOfFaces::myNbFaces
protected

Definition at line 65 of file SMDS_VolumeOfFaces.hxx.