SubMesh creation can be moved to the end of engine commands. More...
#include <SMESH_2smeshpy.hxx>

Public Member Functions | |
| _pySubMesh (const Handle(_pyCommand)&theCreationCmd) | |
| void | Process (const Handle(_pyCommand)&theCommand) |
| count invoked commands | |
| virtual void | Flush () |
| Clear creation command if no commands invoked. | |
| void | SetCreator (const Handle(_pyObject)&theCreator) |
| const | Handle (_pyCommand)&GetCreationCmd() |
| const _pyID & | GetID () |
| int | GetNbCalls () const |
| void | SetCreationCmd (Handle(_pyCommand) cmd) |
| int | GetCommandNb () |
| virtual const char * | AccessorMethod () const |
| Return method name giving access to an interaface object wrapped by python class. | |
Static Public Member Functions | |
| static _pyID | FatherID (const _pyID &childID) |
| Return ID of a father. | |
Private Member Functions | |
| Handle (_pyObject) myCreator | |
SubMesh creation can be moved to the end of engine commands.
Definition at line 442 of file SMESH_2smeshpy.hxx.
| _pySubMesh._pySubMesh | ( | const Handle(_pyCommand)& | theCreationCmd | ) |
Definition at line 445 of file SMESH_2smeshpy.hxx.
:_pyObject(theCreationCmd) {}
| const char * _pyObject::AccessorMethod | ( | ) | const [virtual, inherited] |
Return method name giving access to an interaface object wrapped by python class.
| const | char* - method name |
Reimplemented in _pyGen, _pyMesh, and _pyAlgorithm.
Definition at line 2484 of file SMESH_2smeshpy.cxx.
{
return 0;
}
Return ID of a father.
Definition at line 2494 of file SMESH_2smeshpy.cxx.
Referenced by _pySegmentLengthAroundVertexHyp.Addition2Creation().
{
int colPos = childID.SearchFromEnd(':');
if ( colPos > 0 )
return childID.SubString( 1, colPos-1 );
return "";
}
| void _pySubMesh::Flush | ( | ) | [virtual] |
Clear creation command if no commands invoked.
Implements _pyObject.
Definition at line 2532 of file SMESH_2smeshpy.cxx.
References _pyObject.GetNbCalls().
{
if ( GetNbCalls() == 0 ) // move to the end of all commands
theGen->GetLastCommand()->AddDependantCmd( GetCreationCmd() );
else if ( !myCreator.IsNull() )
// move to be just after creator
myCreator->GetCreationCmd()->AddDependantCmd( GetCreationCmd() );
}
| int _pyObject.GetCommandNb | ( | ) | [inherited] |
Definition at line 167 of file SMESH_2smeshpy.hxx.
{ return myCreationCmd->GetOrderNb(); }
| const _pyID& _pyObject.GetID | ( | ) | [inherited] |
Definition at line 162 of file SMESH_2smeshpy.hxx.
Referenced by _pyMesh._pyMesh(), _pyAlgorithm.Addition2Creation(), _pyLayerDistributionHypo.Addition2Creation(), _pyHypothesis.Addition2Creation(), and _pyMesh.Flush().
{ return myCreationCmd->GetResultValue(); }
| int _pyObject.GetNbCalls | ( | ) | const [inherited] |
Definition at line 165 of file SMESH_2smeshpy.hxx.
References _pyObject.myNbCalls.
Referenced by Flush(), and _pySelfEraser.Flush().
{ return myNbCalls; }
| _pySubMesh.Handle | ( | _pyObject | ) | [private] |
| const _pyObject.Handle | ( | _pyCommand | ) | [inherited] |
Reimplemented in _pyGen, and _pyGen.
Definition at line 164 of file SMESH_2smeshpy.hxx.
{ return myCreationCmd; }
| void _pySubMesh::Process | ( | const Handle(_pyCommand)& | theCommand | ) | [virtual] |
count invoked commands
Reimplemented from _pyObject.
Definition at line 2520 of file SMESH_2smeshpy.cxx.
{
_pyObject::Process(theCommand); // count calls of Process()
GetCreationCmd()->AddDependantCmd( theCommand );
}
| void _pyObject.SetCreationCmd | ( | Handle(_pyCommand) | cmd | ) | [inherited] |
Definition at line 166 of file SMESH_2smeshpy.hxx.
Referenced by _pyHypothesis.Addition2Creation().
{ myCreationCmd = cmd; }
| void _pySubMesh.SetCreator | ( | const Handle(_pyObject)& | theCreator | ) |
Definition at line 448 of file SMESH_2smeshpy.hxx.
{ myCreator = theCreator; }