Version: 6.3.1
Public Member Functions | Static Public Member Functions | Private Member Functions

_pySubMesh Class Reference

SubMesh creation can be moved to the end of engine commands. More...

#include <SMESH_2smeshpy.hxx>

Inheritance diagram for _pySubMesh:
Inheritance graph
[legend]

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 _pyIDGetID ()
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

Detailed Description

SubMesh creation can be moved to the end of engine commands.

Definition at line 442 of file SMESH_2smeshpy.hxx.


Constructor & Destructor Documentation

_pySubMesh._pySubMesh ( const Handle(_pyCommand)&  theCreationCmd)

Definition at line 445 of file SMESH_2smeshpy.hxx.

:_pyObject(theCreationCmd) {}

Member Function Documentation

const char * _pyObject::AccessorMethod ( ) const [virtual, inherited]

Return method name giving access to an interaface object wrapped by python class.

Return values:
constchar* - method name

Reimplemented in _pyGen, _pyMesh, and _pyAlgorithm.

Definition at line 2484 of file SMESH_2smeshpy.cxx.

{
  return 0;
}
_pyID _pyObject::FatherID ( const _pyID childID) [static, inherited]

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]
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; }
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS