Version: 8.3.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

typedef std::map<TCollection_AsciiString,std::vector< std::string > > SMESH_NoteBook::TEntry2VarVecMap
private
typedef std::map<TCollection_AsciiString,TCollection_AsciiString> SMESH_NoteBook::TMeshEditorMap
private
typedef std::map<TCollection_AsciiString,SMESH_ObjectStates*> SMESH_NoteBook::TVariablesMap
private

Constructor & Destructor Documentation

SMESH_NoteBook::SMESH_NoteBook ( )

Constructor.

References InitObjectMap().

SMESH_NoteBook::~SMESH_NoteBook ( )

Destructor.

References _objectMap.

Member Function Documentation

void SMESH_NoteBook::AddCommand ( const TCollection_AsciiString &  theString)
bool SMESH_NoteBook::GetReal ( const TCollection_AsciiString &  theVarName,
double &  theValue 
)
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().

void SMESH_NoteBook::ProcessLayerDistribution ( )
private

References _commands, and _objectMap.

Referenced by ReplaceVariables().

Field Documentation

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

Referenced by InitObjectMap(), and ReplaceVariables().

TMeshEditorMap SMESH_NoteBook::_meshEditors
private

Referenced by AddCommand(), and ReplaceVariables().

TVariablesMap SMESH_NoteBook::_objectMap
private