Tool converting SMESH engine calls into commands defined in smeshBuilder.py.
More...
#include <SMESH_PythonDump.hxx>
|
static void | ConvertScript (std::list< TCollection_AsciiString > &theScriptLines, Resource_DataMapOfAsciiStringAsciiString &theEntry2AccessorMethod, Resource_DataMapOfAsciiStringAsciiString &theObjectNames, std::set< TCollection_AsciiString > &theRemovedObjIDs, SALOMEDS::Study_ptr &theStudy, const bool theHistoricalDump) |
| Convert a python script using commands of smeshBuilder.py. More...
|
|
static const char * | SmeshpyName () |
| Return the name of the python file wrapping IDL API. More...
|
|
static const char * | GenName () |
|
Tool converting SMESH engine calls into commands defined in smeshBuilder.py.
Implementation is in SMESH_2smeshpy.cxx
void SMESH_2smeshpy::ConvertScript |
( |
std::list< TCollection_AsciiString > & |
theScriptLines, |
|
|
Resource_DataMapOfAsciiStringAsciiString & |
theEntry2AccessorMethod, |
|
|
Resource_DataMapOfAsciiStringAsciiString & |
theObjectNames, |
|
|
std::set< TCollection_AsciiString > & |
theRemovedObjIDs, |
|
|
SALOMEDS::Study_ptr & |
theStudy, |
|
|
const bool |
theToKeepAllCommands |
|
) |
| |
|
static |
Convert a python script using commands of smeshBuilder.py.
- Parameters
-
theScript | - the Input script to convert |
theEntry2AccessorMethod | - returns method names to access to objects wrapped with python class |
theObjectNames | - names of objects |
theRemovedObjIDs | - entries of objects whose created commands were removed |
theHistoricalDump | - true means to keep all commands, false means to exclude commands relating to objects removed from study |
- Return values
-
TCollection_AsciiString | - Conversion result |
- Parameters
-
theScriptLines | - Lines of the input script |
theEntry2AccessorMethod | - returns method names to access to objects wrapped with python class |
theObjectNames | - names of objects |
theRemovedObjIDs | - entries of objects whose created commands were removed |
theHistoricalDump | - true means to keep all commands, false means to exclude commands relating to objects removed from study |
- Return values
-
TCollection_AsciiString | - Conversion result |
References SMESH_NoteBook::AddCommand(), _pyGen::ClearCommands(), _pyGen::Flush(), _pyGen::Free(), _pyGen::GetCommands(), SMESH_NoteBook::GetResultLines(), and SMESH_NoteBook::ReplaceVariables().
Referenced by SMESH_Gen_i::DumpPython_impl().
static const char* SMESH_2smeshpy::GenName |
( |
| ) |
|
|
static |
static const char* SMESH_2smeshpy::SmeshpyName |
( |
| ) |
|
|
static |