#include "SMESH_2smeshpy.hxx"#include "SMESH_NoteBook.hxx"#include "SMESH_Gen_i.hxx"#include "SMESH_PythonDump.hxx"#include <Resource_DataMapOfAsciiStringAsciiString.hxx>#include <TColStd_SequenceOfAsciiString.hxx>#include <TColStd_HSequenceOfInteger.hxx>#include <vector>#include <string>
Go to the source code of this file.
Functions | |
| void | SetVariable (Handle(_pyCommand) theCommand, const SMESH_ObjectStates *theStates, int position, int theArgNb) |
| Set variable of the SMESH_ObjectStates from position to the _pyCommand method as nbArg argument. | |
Variables | |
| static int | MYDEBUG = 0 |
| void SetVariable | ( | Handle(_pyCommand) | theCommand, |
| const SMESH_ObjectStates * | theStates, | ||
| int | position, | ||
| int | theArgNb | ||
| ) |
Set variable of the SMESH_ObjectStates from position to the _pyCommand method as nbArg argument.
Definition at line 856 of file SMESH_NoteBook.cxx.
References SMESH_ObjectStates.GetCurrectState(), and _pyCommand.SetArg().
Referenced by SMESH_NoteBook.ProcessLayerDistribution().
{
if(theStates->GetCurrectState().size() > position)
if(!theStates->GetCurrectState().at(position).IsEmpty())
theCommand->SetArg(theArgNb,theStates->GetCurrectState().at(position));
}
Definition at line 38 of file SMESH_NoteBook.cxx.