Version: 9.16.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 <Basics_OCCTVersion.hxx>
#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

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 (_pyCommand) &_pyGen
 Call _pyFilter.AddUser() if a filter is used as a command arg. More...
 
 Handle (_pyObject) _pyGen
 Finds a _pyObject by ID. More...
 
 Handle (_pyHypothesisReader) _pyGen
 Return reader of hypotheses of plugins. More...
 
static bool isWord (const char c, const bool dotIsWord)
 Check if char is a word part. More...
 

Variables

static TCollection_AsciiString theEmptyString
 

Function Documentation

◆ Handle() [1/7]

Handle ( _pyCommand  ) &

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

Set command be last in list of commands

Parameters
theCmd- Command to be last

◆ Handle() [2/7]

◆ Handle() [3/7]

static Handle ( _pyGen  )
static

Container of commands into which the initial script is split.

It also contains data corresponding to SMESH_Gen contents

Referenced by SMESH_2smeshpy::ConvertScript(), and _pyCommand::SetDependentCmdsAfter().

◆ Handle() [4/7]

Handle ( _pyHypothesis  )

Find hypothesis by ID (entry)

Returns a new hypothesis initialized according to the read information.

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

Adds an object ID to some family of IDs with a common prefix

Parameters
[in]str- the object ID
Returns
bool - false if str does not have the same prefix as this family (for internal usage)

References _pyGen::Handle(), and _pyGen::myHypos.

◆ Handle() [5/7]

Handle ( _pyHypothesisReader  )

Return reader of hypotheses of plugins.

Mesh created by SMESH_Gen

◆ Handle() [6/7]

Handle ( _pyObject  )

Finds a _pyObject by ID.

Check if a study entry is under GEOM component

Returns true if an object is not present in a study

Add an object to myRemovedObjIDs that leads to that SetName() for this object is not dumped

Parameters
[in]theObjID- entry of the object whose creation command was eliminated

References _pyGen::Handle(), _pyGen::myMeshes, and _pyGen::myObjects.

◆ Handle() [7/7]

Handle ( _pySubMesh  )

Find subMesh by ID (entry)

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

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

◆ isWord()

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().

Variable Documentation

◆ theEmptyString

TCollection_AsciiString theEmptyString
static