Version: 8.3.0
SMESH_MeshEditor::ExtrusParam Class Reference

Generator of nodes for extrusion functionality. More...

#include <SMESH_MeshEditor.hxx>

Inheritance diagram for SMESH_MeshEditor::ExtrusParam:

Public Member Functions

 ExtrusParam (const gp_Vec &theStep, const int theNbSteps, const std::list< double > &theScales, const gp_XYZ *theBaseP, const int theFlags=0, const double theTolerance=1e-6)
 
 ExtrusParam (const gp_Dir &theDir, Handle(TColStd_HSequenceOfReal) theSteps, const int theFlags=0, const double theTolerance=1e-6)
 
 ExtrusParam (const double theStep, const int theNbSteps, const int theFlags, const int theDim)
 
SMESH_SequenceOfNode & ChangeNodes ()
 
intFlags ()
 
bool ToMakeBoundary () const
 
bool ToMakeGroups () const
 
bool ToUseInpElemsOnly () const
 
bool IsLinearVariation () const
 
int NbSteps () const
 
void SetElementsToUse (const TIDSortedElemSet &elems, const TIDSortedElemSet &nodes)
 
int MakeNodes (SMESHDS_Mesh *mesh, const SMDS_MeshNode *srcNode, std::list< const SMDS_MeshNode * > &newNodes, const bool makeMediumNodes)
 

Private Member Functions

 Handle (TColStd_HSequenceOfReal) mySteps
 
int makeNodesByDir (SMESHDS_Mesh *mesh, const SMDS_MeshNode *srcNode, std::list< const SMDS_MeshNode * > &newNodes, const bool makeMediumNodes)
 
int makeNodesByDirAndSew (SMESHDS_Mesh *mesh, const SMDS_MeshNode *srcNode, std::list< const SMDS_MeshNode * > &newNodes, const bool makeMediumNodes)
 
int makeNodesByNormal2D (SMESHDS_Mesh *mesh, const SMDS_MeshNode *srcNode, std::list< const SMDS_MeshNode * > &newNodes, const bool makeMediumNodes)
 
int makeNodesByNormal1D (SMESHDS_Mesh *mesh, const SMDS_MeshNode *srcNode, std::list< const SMDS_MeshNode * > &newNodes, const bool makeMediumNodes)
 
void beginStepIter (bool withMediumNodes)
 
bool moreSteps ()
 
double nextStep ()
 

Private Attributes

gp_Dir myDir
 
std::vector< double > myScales
 
std::vector< double > myMediumScales
 
gp_XYZ myBaseP
 
SMESH_SequenceOfNode myNodes
 
int myFlags
 
double myTolerance
 
const TIDSortedElemSetmyElemsToUse
 
int(ExtrusParam::* myMakeNodesFun )(SMESHDS_Mesh *mesh, const SMDS_MeshNode *srcNode, std::list< const SMDS_MeshNode * > &newNodes, const bool makeMediumNodes)
 
std::vector< double > myCurSteps
 
bool myWithMediumNodes
 
int myNextStep
 

Detailed Description

Generator of nodes for extrusion functionality.

Constructor & Destructor Documentation

SMESH_MeshEditor::ExtrusParam::ExtrusParam ( const gp_Vec &  theStep,
const int  theNbSteps,
const std::list< double > &  theScales,
const gp_XYZ *  theBaseP,
const int  theFlags = 0,
const double  theTolerance = 1e-6 
)
SMESH_MeshEditor::ExtrusParam::ExtrusParam ( const gp_Dir &  theDir,
Handle(TColStd_HSequenceOfReal)  theSteps,
const int  theFlags = 0,
const double  theTolerance = 1e-6 
)
SMESH_MeshEditor::ExtrusParam::ExtrusParam ( const double  theStep,
const int  theNbSteps,
const int  theFlags,
const int  theDim 
)

Member Function Documentation

void SMESH_MeshEditor::ExtrusParam::beginStepIter ( bool  withMediumNodes)
private
SMESH_SequenceOfNode& SMESH_MeshEditor::ExtrusParam::ChangeNodes ( )
int& SMESH_MeshEditor::ExtrusParam::Flags ( )
SMESH_MeshEditor::ExtrusParam::Handle ( TColStd_HSequenceOfReal  )
private
bool SMESH_MeshEditor::ExtrusParam::IsLinearVariation ( ) const

Referenced by ExtrusParam().

int SMESH_MeshEditor::ExtrusParam::MakeNodes ( SMESHDS_Mesh mesh,
const SMDS_MeshNode srcNode,
std::list< const SMDS_MeshNode * > &  newNodes,
const bool  makeMediumNodes 
)
int SMESH_MeshEditor::ExtrusParam::makeNodesByDir ( SMESHDS_Mesh mesh,
const SMDS_MeshNode srcNode,
std::list< const SMDS_MeshNode * > &  newNodes,
const bool  makeMediumNodes 
)
private
int SMESH_MeshEditor::ExtrusParam::makeNodesByDirAndSew ( SMESHDS_Mesh mesh,
const SMDS_MeshNode srcNode,
std::list< const SMDS_MeshNode * > &  newNodes,
const bool  makeMediumNodes 
)
private
int SMESH_MeshEditor::ExtrusParam::makeNodesByNormal1D ( SMESHDS_Mesh mesh,
const SMDS_MeshNode srcNode,
std::list< const SMDS_MeshNode * > &  newNodes,
const bool  makeMediumNodes 
)
private

Referenced by ExtrusParam().

int SMESH_MeshEditor::ExtrusParam::makeNodesByNormal2D ( SMESHDS_Mesh mesh,
const SMDS_MeshNode srcNode,
std::list< const SMDS_MeshNode * > &  newNodes,
const bool  makeMediumNodes 
)
private
bool SMESH_MeshEditor::ExtrusParam::moreSteps ( )
private
int SMESH_MeshEditor::ExtrusParam::NbSteps ( ) const
double SMESH_MeshEditor::ExtrusParam::nextStep ( )
private
void SMESH_MeshEditor::ExtrusParam::SetElementsToUse ( const TIDSortedElemSet elems,
const TIDSortedElemSet nodes 
)
bool SMESH_MeshEditor::ExtrusParam::ToMakeBoundary ( ) const
bool SMESH_MeshEditor::ExtrusParam::ToMakeGroups ( ) const
bool SMESH_MeshEditor::ExtrusParam::ToUseInpElemsOnly ( ) const

Field Documentation

gp_XYZ SMESH_MeshEditor::ExtrusParam::myBaseP
private

Referenced by ExtrusParam().

std::vector< double > SMESH_MeshEditor::ExtrusParam::myCurSteps
private
gp_Dir SMESH_MeshEditor::ExtrusParam::myDir
private
const TIDSortedElemSet* SMESH_MeshEditor::ExtrusParam::myElemsToUse
private
int SMESH_MeshEditor::ExtrusParam::myFlags
private
int(ExtrusParam::* SMESH_MeshEditor::ExtrusParam::myMakeNodesFun)(SMESHDS_Mesh *mesh, const SMDS_MeshNode *srcNode, std::list< const SMDS_MeshNode * > &newNodes, const bool makeMediumNodes)
private

Referenced by ExtrusParam().

std::vector<double> SMESH_MeshEditor::ExtrusParam::myMediumScales
private
int SMESH_MeshEditor::ExtrusParam::myNextStep
private
SMESH_SequenceOfNode SMESH_MeshEditor::ExtrusParam::myNodes
private
std::vector<double> SMESH_MeshEditor::ExtrusParam::myScales
private

Referenced by ExtrusParam().

double SMESH_MeshEditor::ExtrusParam::myTolerance
private
bool SMESH_MeshEditor::ExtrusParam::myWithMediumNodes
private