#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>
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 |
| Handle | ( | _pyCommand | ) | & |
Call _pyFilter.AddUser() if a filter is used as a command arg.
Set command be last in list of commands
| theCmd | - Command to be last |
| Handle | ( | _pyCommand | ) |
Convert a command using a specific converter.
| theCommand | - the command to convert |
References _pyGen::AddMeshAccessorMethod(), _pyGen::AddObject(), _pyGen::CheckObjectIsReCreated(), SMESH::Entity_Last, SMESH::FunctorTypeToString(), SMESH_2smeshpy::GenName(), SMESH::Geom_LAST, _pyCommand::GetArg(), _pyObject::GetID(), _pyCommand::GetNbArgs(), _pyCommand::GetString(), _pyGen::Handle(), _pyStringFamily::IsInArgs(), MESSAGE, _pyGen::myCommands, _pyGen::myKeepAgrCmdsIDs, _pyGen::myMeshEditors, _pyGen::myMeshes, _pyGen::myNbCommands, _pyGen::myNbFilters, _pyGen::myObjects, _pyGen::Process(), and _pyCommand::SetArg().
|
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 | ( | _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.
| theHypID | - The hypothesis ID |
| Handle(_pyHypothesis) | - The found hypothesis |
| 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 |
| Handle(_pyHypothesis) | - The found algo |
| theCreationCmd | - The engine command creating a hypothesis |
| Handle(_pyHypothesis) | - Result _pyHypothesis |
Adds an object ID to some family of IDs with a common prefix
| [in] | str | - the object ID |
false if str does not have the same prefix as this family (for internal usage) References _pyGen::Handle(), and _pyGen::myHypos.
| Handle | ( | _pyHypothesisReader | ) |
Return reader of hypotheses of plugins.
Mesh created by SMESH_Gen
| 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
| [in] | theObjID | - entry of the object whose creation command was eliminated |
References _pyGen::Handle(), _pyGen::myMeshes, and _pyGen::myObjects.
| Handle | ( | _pySubMesh | ) |
Find subMesh by ID (entry)
| theSubMeshID | - The subMesh ID |
| Handle(_pySubMesh) | - The found subMesh |
References SMESH::DownCast(), _pyGen::Handle(), and _pyGen::myObjects.
Check if char is a word part.
| c | - The character to check |
| bool | - The check result |
Referenced by _pyCommand::GetWord().
|
static |
Referenced by _pyCommand::GetArg(), _pyCommand::GetResultValue(), and _pyCommand::GetWord().