#include <SMESH_NoteBook.hxx>
Public Member Functions | |
SMESH_NoteBook () | |
Constructor. More... | |
~SMESH_NoteBook () | |
Destructor. More... | |
void | ReplaceVariables () |
Replace parameters of the functions on the Salome NoteBook Variables. More... | |
void | AddCommand (const TCollection_AsciiString &theString) |
TCollection_AsciiString | GetResultScript () const |
Return result script. More... | |
void | GetResultLines (std::list< TCollection_AsciiString > &lines) const |
Return lines of the result script. More... | |
Private Types | |
typedef std::map < TCollection_AsciiString, SMESH_ObjectStates * > | TVariablesMap |
typedef std::map < TCollection_AsciiString, TCollection_AsciiString > | TMeshEditorMap |
typedef std::map < TCollection_AsciiString, std::vector< std::string > > | TEntry2VarVecMap |
Private Member Functions | |
void | InitObjectMap () |
Private method. More... | |
void | ProcessLayerDistribution () |
bool | GetReal (const TCollection_AsciiString &theVarName, double &theValue) |
Return value of the variable. More... | |
Private Attributes | |
TVariablesMap | _objectMap |
TEntry2VarVecMap | _entry2VarsMap |
std::vector< Handle(_pyCommand)> | _commands |
TMeshEditorMap | _meshEditors |
|
private |
|
private |
|
private |
SMESH_NoteBook::SMESH_NoteBook | ( | ) |
Constructor.
References InitObjectMap().
SMESH_NoteBook::~SMESH_NoteBook | ( | ) |
Destructor.
References _objectMap.
void SMESH_NoteBook::AddCommand | ( | const TCollection_AsciiString & | theString | ) |
References _commands, _meshEditors, and Handle().
Referenced by SMESH_2smeshpy::ConvertScript().
|
private |
Return value of the variable.
References SMESH_Gen_i::GetCurrentStudy(), and SMESH_Gen_i::GetSMESHGen().
void SMESH_NoteBook::GetResultLines | ( | std::list< TCollection_AsciiString > & | lines | ) | const |
Return lines of the result script.
References _commands.
Referenced by SMESH_2smeshpy::ConvertScript().
TCollection_AsciiString SMESH_NoteBook::GetResultScript | ( | ) | const |
Return result script.
References _commands, and MED::GetString().
|
private |
Private method.
References _entry2VarsMap, _objectMap, SMESH_ObjectStates::AddState(), SMESH_Gen_i::ComponentDataType(), SMESH_Gen_i::GetAllParameters(), SMESH_ObjectStates::GetAllStates(), SMESH_Gen_i::GetCurrentStudy(), SMESH_Gen_i::GetSMESHGen(), SMESH::TVar::Quote(), and SMESH_Gen_i::SObjectToObject().
Referenced by SMESH_NoteBook().
|
private |
References _commands, and _objectMap.
Referenced by ReplaceVariables().
void SMESH_NoteBook::ReplaceVariables | ( | ) |
Replace parameters of the functions on the Salome NoteBook Variables.
theString | - Input string |
TCollection_AsciiString | - Conversion result |
References _commands, _entry2VarsMap, _meshEditors, _objectMap, LayerDistributionStates::AddDistribution(), SMESH_ObjectStates::GetCurrectState(), SMESH_Gen_i::GetCurrentStudy(), SMESH_ObjectStates::GetObjectType(), SMESH_Gen_i::GetSMESHGen(), Handle(), SMESH_ObjectStates::IncrementState(), SMESH::TVar::ObjPrefix(), ProcessLayerDistribution(), SMESH::TVar::Quote(), SMESH_2smeshpy::SmeshpyName(), and SMESH_Gen_i::SObjectToObject().
Referenced by SMESH_2smeshpy::ConvertScript().
|
private |
Referenced by AddCommand(), GetResultLines(), GetResultScript(), ProcessLayerDistribution(), and ReplaceVariables().
|
private |
Referenced by InitObjectMap(), and ReplaceVariables().
|
private |
Referenced by AddCommand(), and ReplaceVariables().
|
private |
Referenced by InitObjectMap(), ProcessLayerDistribution(), ReplaceVariables(), and ~SMESH_NoteBook().