Version: 8.3.0
SMESH_MeshEditor::ElemFeatures Struct Reference

< Features of element to create More...

#include <SMESH_MeshEditor.hxx>

Public Member Functions

 ElemFeatures (SMDSAbs_ElementType type=SMDSAbs_All, bool isPoly=false, bool isQuad=false)
 
ElemFeaturesInit (SMDSAbs_ElementType type, bool isPoly=false, bool isQuad=false)
 
ElemFeaturesInit (const SMDS_MeshElement *elem, bool basicOnly=true)
 Initializes members by an existing element. More...
 
ElemFeaturesInit (double diameter)
 
ElemFeaturesInit (std::vector< int > &quanities, bool isQuad=false)
 
ElemFeaturesInit (const std::vector< int > &quanities, bool isQuad=false)
 
ElemFeaturesSetPoly (bool isPoly)
 
ElemFeaturesSetQuad (bool isQuad)
 
ElemFeaturesSetID (int ID)
 

Data Fields

SMDSAbs_ElementType myType
 
bool myIsPoly
 
bool myIsQuad
 
int myID
 
double myBallDiameter
 
std::vector< intmyPolyhedQuantities
 
std::vector< const
SMDS_MeshNode * > 
myNodes
 

Detailed Description

< Features of element to create

Constructor & Destructor Documentation

SMESH_MeshEditor::ElemFeatures::ElemFeatures ( SMDSAbs_ElementType  type = SMDSAbs_All,
bool  isPoly = false,
bool  isQuad = false 
)

Member Function Documentation

SMESH_MeshEditor::ElemFeatures & SMESH_MeshEditor::ElemFeatures::Init ( const SMDS_MeshElement elem,
bool  basicOnly = true 
)

Initializes members by an existing element.

Parameters
[in]elem- the source element
[in]basicOnly- if true, does not set additional data of Ball and Polyhedron

References SMDS_MeshElement::GetType(), SMDS_MeshElement::IsPoly(), SMDS_MeshElement::IsQuadratic(), myBallDiameter, myIsPoly, myIsQuad, myPolyhedQuantities, myType, SMDSAbs_Ball, SMDSAbs_Face, and SMDSAbs_Volume.

ElemFeatures& SMESH_MeshEditor::ElemFeatures::Init ( double  diameter)

References SMDSAbs_Ball.

ElemFeatures& SMESH_MeshEditor::ElemFeatures::Init ( std::vector< int > &  quanities,
bool  isQuad = false 
)

References SMDSAbs_Volume.

ElemFeatures& SMESH_MeshEditor::ElemFeatures::Init ( const std::vector< int > &  quanities,
bool  isQuad = false 
)

References SMDSAbs_Volume.

ElemFeatures& SMESH_MeshEditor::ElemFeatures::SetID ( int  ID)
ElemFeatures& SMESH_MeshEditor::ElemFeatures::SetPoly ( bool  isPoly)
ElemFeatures& SMESH_MeshEditor::ElemFeatures::SetQuad ( bool  isQuad)

Field Documentation

double SMESH_MeshEditor::ElemFeatures::myBallDiameter

Referenced by Init().

int SMESH_MeshEditor::ElemFeatures::myID
bool SMESH_MeshEditor::ElemFeatures::myIsPoly

Referenced by Init().

bool SMESH_MeshEditor::ElemFeatures::myIsQuad
std::vector<const SMDS_MeshNode*> SMESH_MeshEditor::ElemFeatures::myNodes
std::vector<int> SMESH_MeshEditor::ElemFeatures::myPolyhedQuantities

Referenced by Init().

SMDSAbs_ElementType SMESH_MeshEditor::ElemFeatures::myType

Referenced by Init().