Version: 8.3.0
SMESH_2smeshpy.cxx File Reference
#include "SMESH_2smeshpy.hxx"
#include "SMESH_PythonDump.hxx"
#include "SMESH_NoteBook.hxx"
#include "SMESH_Filter_i.hxx"
#include <SALOMEDS_wrap.hxx>
#include <utilities.h>
#include <Resource_DataMapOfAsciiStringAsciiString.hxx>
#include <Resource_DataMapIteratorOfDataMapOfAsciiStringAsciiString.hxx>
#include "SMESH_Gen_i.hxx"
#include <LDOMParser.hxx>
#include <unistd.h>
Include dependency graph for SMESH_2smeshpy.cxx:

Functions

 OCCT_IMPLEMENT_STANDARD_RTTIEXT (_pyObject, Standard_Transient)
 
 OCCT_IMPLEMENT_STANDARD_RTTIEXT (_pyCommand, Standard_Transient)
 
 OCCT_IMPLEMENT_STANDARD_RTTIEXT (_pyHypothesisReader, Standard_Transient)
 
 OCCT_IMPLEMENT_STANDARD_RTTIEXT (_pyGen, _pyObject)
 
 OCCT_IMPLEMENT_STANDARD_RTTIEXT (_pyMesh, _pyObject)
 
 OCCT_IMPLEMENT_STANDARD_RTTIEXT (_pySubMesh, _pyObject)
 
 OCCT_IMPLEMENT_STANDARD_RTTIEXT (_pyMeshEditor, _pyObject)
 
 OCCT_IMPLEMENT_STANDARD_RTTIEXT (_pyHypothesis, _pyObject)
 
 OCCT_IMPLEMENT_STANDARD_RTTIEXT (_pySelfEraser, _pyObject)
 
 OCCT_IMPLEMENT_STANDARD_RTTIEXT (_pyGroup, _pyObject)
 
 OCCT_IMPLEMENT_STANDARD_RTTIEXT (_pyFilter, _pyObject)
 
 OCCT_IMPLEMENT_STANDARD_RTTIEXT (_pyAlgorithm, _pyHypothesis)
 
 OCCT_IMPLEMENT_STANDARD_RTTIEXT (_pyComplexParamHypo, _pyHypothesis)
 
 OCCT_IMPLEMENT_STANDARD_RTTIEXT (_pyNumberOfSegmentsHyp, _pyHypothesis)
 
 OCCT_IMPLEMENT_STANDARD_RTTIEXT (_pyLayerDistributionHypo, _pyHypothesis)
 
 OCCT_IMPLEMENT_STANDARD_RTTIEXT (_pySegmentLengthAroundVertexHyp, _pyHypothesis)
 
static Handle (_pyGen) theGen
 Container of commands into which the initial script is split. More...
 
 Handle (_pyCommand) _pyGen
 Convert a command using a specific converter. More...
 
 Handle (_pyHypothesis) _pyGen
 Find hypothesis by ID (entry) More...
 
 Handle (_pySubMesh) _pyGen
 Find subMesh by ID (entry) More...
 
 Handle (_pyObject) _pyGen
 Finds a _pyObject by ID. More...
 
 if (id_obj!=myMeshes.end()) return id_obj-> second
 
return Handle() _pyObject ()
 
static bool isWord (const char c, const bool dotIsWord)
 Check if char is a word part. More...
 
 if (type2hyp!=myType2Hyp.end()) sampleHyp
 
 if (sampleHyp.IsNull())
 
resHyp Assign (sampleHyp, _pyID())
 

Variables

static TCollection_AsciiString theEmptyString
 
_pyGenme = const_cast< _pyGen* >( this )
 
map< _pyID, Handle(_pyMesh) >
::iterator 
id_obj = me->myMeshes.find( theObjID )
 
Handle(_pyHypothesisReader)
_pyGen return 
myHypReader
 Return reader of hypotheses of plugins. More...
 
Handle(_pyHypothesis)
_pyHypothesisReader map
< _AString, Handle(_pyHypothesis)>
::const_iterator 
type2hyp = myType2Hyp.find( hypType )
 Returns a new hypothesis initialized according to the read information. More...
 
 else
 
else resHyp = new _pyHypothesis(creationCmd)
 

Function Documentation

return Handle() _pyObject ( )
resHyp Assign ( sampleHyp  ,
_pyID()   
)
static Handle ( _pyGen  )
static

Container of commands into which the initial script is split.

It also contains data coresponding to SMESH_Gen contents

Handle ( _pyCommand  )

Convert a command using a specific converter.

Call _pyFilter.AddUser() if a filter is used as a command arg.

Parameters
theCommand- the command to convert

Set command be last in list of commands

Parameters
theCmd- Command to be last

References SMESH::Entity_Last, SMESH::FunctorTypeToString(), SMESH_2smeshpy::GenName(), SMESH::Geom_LAST, _pyCommand::GetArg(), _pyCommand::GetNbArgs(), _pyCommand::GetString(), Handle(), id_obj, MESSAGE, and _pyCommand::SetArg().

Handle ( _pyHypothesis  )

Find hypothesis by ID (entry)

Creates algorithm or hypothesis.

Find algorithm able to create a hypothesis.

Parameters
theHypID- The hypothesis ID
Return values
Handle(_pyHypothesis)- The found hypothesis
Parameters
theGeom- The shape ID the algorithm was created on
theMesh- The mesh ID that created the algorithm
theHypothesis- The hypothesis the algorithm should be able to create
Return values
Handle(_pyHypothesis)- The found algo
Parameters
theCreationCmd- The engine command creating a hypothesis
Return values
Handle(_pyHypothesis)- Result _pyHypothesis

References Handle().

Handle ( _pySubMesh  )

Find subMesh by ID (entry)

Parameters
theSubMeshID- The subMesh ID
Return values
Handle(_pySubMesh)- The found subMesh

References SMESH::DownCast(), and Handle().

Handle ( _pyObject  )

Finds a _pyObject by ID.

References id_obj.

if ( id_obj!  = myMeshes.end()) -> second
if ( type2hyp!  = myType2Hyp.end())
if ( sampleHyp.  IsNull())
static bool isWord ( const char  c,
const bool  dotIsWord 
)
static

Check if char is a word part.

Parameters
c- The character to check
Return values
bool- The check result

Referenced by _pyCommand::GetWord().

OCCT_IMPLEMENT_STANDARD_RTTIEXT ( _pyObject  ,
Standard_Transient   
)
OCCT_IMPLEMENT_STANDARD_RTTIEXT ( _pyCommand  ,
Standard_Transient   
)
OCCT_IMPLEMENT_STANDARD_RTTIEXT ( _pyHypothesisReader  ,
Standard_Transient   
)
OCCT_IMPLEMENT_STANDARD_RTTIEXT ( _pyGen  ,
_pyObject   
)
OCCT_IMPLEMENT_STANDARD_RTTIEXT ( _pyMesh  ,
_pyObject   
)
OCCT_IMPLEMENT_STANDARD_RTTIEXT ( _pySubMesh  ,
_pyObject   
)
OCCT_IMPLEMENT_STANDARD_RTTIEXT ( _pyMeshEditor  ,
_pyObject   
)
OCCT_IMPLEMENT_STANDARD_RTTIEXT ( _pyHypothesis  ,
_pyObject   
)
OCCT_IMPLEMENT_STANDARD_RTTIEXT ( _pySelfEraser  ,
_pyObject   
)
OCCT_IMPLEMENT_STANDARD_RTTIEXT ( _pyGroup  ,
_pyObject   
)
OCCT_IMPLEMENT_STANDARD_RTTIEXT ( _pyFilter  ,
_pyObject   
)
OCCT_IMPLEMENT_STANDARD_RTTIEXT ( _pyAlgorithm  ,
_pyHypothesis   
)
OCCT_IMPLEMENT_STANDARD_RTTIEXT ( _pyComplexParamHypo  ,
_pyHypothesis   
)
OCCT_IMPLEMENT_STANDARD_RTTIEXT ( _pyNumberOfSegmentsHyp  ,
_pyHypothesis   
)
OCCT_IMPLEMENT_STANDARD_RTTIEXT ( _pyLayerDistributionHypo  ,
_pyHypothesis   
)
OCCT_IMPLEMENT_STANDARD_RTTIEXT ( _pySegmentLengthAroundVertexHyp  ,
_pyHypothesis   
)

Variable Documentation

else
Initial value:
{
if ( sampleHyp->IsAlgo() )
resHyp = new _pyAlgorithm( creationCmd )

Referenced by GetHypothesisCreator().

map< _pyID, Handle(_pyMesh) >::iterator id_obj = me->myMeshes.find( theObjID )

Referenced by _pyGen::Flush(), _pyGen::Free(), and Handle().

Handle ( _pyHypothesisReader ) _pyGen return myHypReader

Return reader of hypotheses of plugins.

return resHyp = new _pyHypothesis(creationCmd)
TCollection_AsciiString theEmptyString
static
Handle (_pyHypothesis) _pyHypothesisReader map<_AString, Handle(_pyHypothesis)>::const_iterator type2hyp = myType2Hyp.find( hypType )

Returns a new hypothesis initialized according to the read information.

Referenced by _pyHypothesisReader::_pyHypothesisReader().