Version: 9.12.0
SMESH_NoteBook Class Reference

#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
 

Member Typedef Documentation

◆ TEntry2VarVecMap

typedef std::map<TCollection_AsciiString,std::vector< std::string > > SMESH_NoteBook::TEntry2VarVecMap
private

◆ TMeshEditorMap

typedef std::map<TCollection_AsciiString,TCollection_AsciiString> SMESH_NoteBook::TMeshEditorMap
private

◆ TVariablesMap

typedef std::map<TCollection_AsciiString,SMESH_ObjectStates*> SMESH_NoteBook::TVariablesMap
private

Constructor & Destructor Documentation

◆ SMESH_NoteBook()

SMESH_NoteBook::SMESH_NoteBook ( )

Constructor.

References InitObjectMap().

◆ ~SMESH_NoteBook()

SMESH_NoteBook::~SMESH_NoteBook ( )

Destructor.

References _objectMap.

Member Function Documentation

◆ AddCommand()

void SMESH_NoteBook::AddCommand ( const TCollection_AsciiString &  theString)

◆ GetReal()

bool SMESH_NoteBook::GetReal ( const TCollection_AsciiString &  theVarName,
double &  theValue 
)
private

Return value of the variable.

References SMESH_Gen_i::GetSMESHGen(), and SMESH_Gen_i::getStudyServant().

◆ GetResultLines()

void SMESH_NoteBook::GetResultLines ( std::list< TCollection_AsciiString > &  lines) const

Return lines of the result script.

References _commands.

Referenced by SMESH_2smeshpy::ConvertScript().

◆ GetResultScript()

TCollection_AsciiString SMESH_NoteBook::GetResultScript ( ) const

Return result script.

References _commands, and MED::GetString().

◆ InitObjectMap()

◆ ProcessLayerDistribution()

void SMESH_NoteBook::ProcessLayerDistribution ( )
private

References _commands, and _objectMap.

Referenced by ReplaceVariables().

◆ ReplaceVariables()

Field Documentation

◆ _commands

std::vector<Handle(_pyCommand)> SMESH_NoteBook::_commands
private

◆ _entry2VarsMap

TEntry2VarVecMap SMESH_NoteBook::_entry2VarsMap
private

Referenced by InitObjectMap(), and ReplaceVariables().

◆ _meshEditors

TMeshEditorMap SMESH_NoteBook::_meshEditors
private

Referenced by AddCommand(), and ReplaceVariables().

◆ _objectMap

TVariablesMap SMESH_NoteBook::_objectMap
private