Version: 9.16.0
_pySelfEraser Class Reference

SelfEraser erases creation command if no more it's commands invoked. More...

#include <SMESH_2smeshpy.hxx>

Inheritance diagram for _pySelfEraser:

Public Member Functions

 _pySelfEraser (const Handle(_pyCommand)&theCreationCmd)
 SelfEraser erases creation command if none of it's commands invoked (e.g. More...
 
void IgnoreOwnCalls ()
 
virtual void Flush ()
 SelfEraser erases creation command if none of it's commands invoked (e.g. More...
 
virtual bool CanClear ()
 SelfEraser erases creation command if none of it's commands invoked (e.g. More...
 
const Handle (_pyCommand) &GetCreationCmd()
 
const _pyIDGetID ()
 
int GetNbCalls () const
 
bool IsInStudy () const
 
virtual void SetRemovedFromStudy (const bool isRemoved)
 
void SetCreationCmd (Handle(_pyCommand) cmd)
 
int GetCommandNb ()
 
void AddProcessedCmd (const Handle(_pyCommand) &cmd)
 
std::list< Handle(_pyCommand) > & GetProcessedCmds ()
 
void AddArgCmd (const Handle(_pyCommand) &cmd)
 
virtual void Process (const Handle(_pyCommand) &cmd)
 
virtual const char * AccessorMethod () const
 Return method name giving access to an interaface object wrapped by python class. More...
 
virtual void ClearCommands ()
 Clear myCreationCmd and myProcessedCmds. More...
 
virtual void Free ()
 

Static Public Member Functions

static bool IsAliveCmd (const Handle(_pyCommand)&theCmd)
 Check if a command is or can be cleared. More...
 
static _pyID FatherID (const _pyID &childID)
 Return ID of a father. More...
 

Protected Member Functions

 Handle (_pyCommand) myCreationCmd
 
void setID (const _pyID &theID)
 Set up myID and myIsPublished. More...
 

Protected Attributes

_pyID myID
 
std::list< Handle(_pyCommand) > myProcessedCmds
 
std::list< Handle(_pyCommand) > myArgCmds
 
bool myIsPublished
 

Private Attributes

bool myIgnoreOwnCalls
 

Detailed Description

SelfEraser erases creation command if no more it's commands invoked.

Constructor & Destructor Documentation

◆ _pySelfEraser()

_pySelfEraser::_pySelfEraser ( const Handle(_pyCommand)&  theCreationCmd)

SelfEraser erases creation command if none of it's commands invoked (e.g.

filterManager) or it's not used as a command argument (e.g. a filter)

References _pyObject::GetID(), and _pyObject::myIsPublished.

Member Function Documentation

◆ AccessorMethod()

const char * _pyObject::AccessorMethod ( ) const
virtualinherited

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

Return values
constchar* - method name

Reimplemented in _pyGen, _pyMesh, and _pyAlgorithm.

◆ AddArgCmd()

void _pyObject::AddArgCmd ( const Handle(_pyCommand) &  cmd)
inherited

References _pyObject::myArgCmds.

◆ AddProcessedCmd()

void _pyObject::AddProcessedCmd ( const Handle(_pyCommand) &  cmd)
inherited

◆ CanClear()

bool _pySelfEraser::CanClear ( )
virtual

SelfEraser erases creation command if none of it's commands invoked (e.g.

filterManager) or it's not used as a command argument (e.g. a filter)

Reimplemented from _pyObject.

References _pyObject::GetID(), _pyObject::GetProcessedCmds(), _pyObject::Handle(), IsAliveCmd(), _pyObject::myArgCmds, and myIgnoreOwnCalls.

Referenced by Flush().

◆ ClearCommands()

void _pyObject::ClearCommands ( )
virtualinherited

Clear myCreationCmd and myProcessedCmds.

Reimplemented in _pyGen, _pyMesh, and _pyHypothesis.

References _pyObject::CanClear(), _pyObject::Handle(), and _pyObject::myProcessedCmds.

Referenced by _pyMesh::ClearCommands(), _pyHypothesis::ClearCommands(), and Flush().

◆ FatherID()

_pyID _pyObject::FatherID ( const _pyID childID)
staticinherited

Return ID of a father.

Referenced by _pySegmentLengthAroundVertexHyp::Addition2Creation().

◆ Flush()

void _pySelfEraser::Flush ( )
virtual

SelfEraser erases creation command if none of it's commands invoked (e.g.

filterManager) or it's not used as a command argument (e.g. a filter)

Implements _pyObject.

References CanClear(), _pyObject::ClearCommands(), and _pyObject::myIsPublished.

◆ Free()

virtual void _pyObject::Free ( )
virtualinherited

◆ GetCommandNb()

int _pyObject::GetCommandNb ( )
inherited

◆ GetID()

◆ GetNbCalls()

int _pyObject::GetNbCalls ( ) const
inherited

◆ GetProcessedCmds()

std::list< Handle(_pyCommand) > & _pyObject::GetProcessedCmds ( )
inherited

References _pyObject::myProcessedCmds.

Referenced by CanClear().

◆ Handle() [1/2]

const _pyObject::Handle ( _pyCommand  ) &
inherited

◆ Handle() [2/2]

◆ IgnoreOwnCalls()

void _pySelfEraser::IgnoreOwnCalls ( )

◆ IsAliveCmd()

bool _pySelfEraser::IsAliveCmd ( const Handle(_pyCommand)&  theCmd)
static

Check if a command is or can be cleared.

References _pyCommand::GetObject(), _pyObject::Handle(), and _pyCommand::IsEmpty().

Referenced by CanClear().

◆ IsInStudy()

◆ Process()

virtual void _pyObject::Process ( const Handle(_pyCommand) &  cmd)
virtualinherited

◆ SetCreationCmd()

void _pyObject::SetCreationCmd ( Handle(_pyCommand cmd)
inherited

◆ setID()

void _pyObject::setID ( const _pyID theID)
protectedinherited

Set up myID and myIsPublished.

References _pyObject::GetID(), _pyObject::myID, and _pyObject::myIsPublished.

Referenced by _pyGroup::_pyGroup(), and _pyObject::_pyObject().

◆ SetRemovedFromStudy()

virtual void _pyObject::SetRemovedFromStudy ( const bool  isRemoved)
virtualinherited

Reimplemented in _pyMesh.

References _pyObject::myIsPublished.

Referenced by _pyMesh::SetRemovedFromStudy().

Field Documentation

◆ myArgCmds

std::list< Handle(_pyCommand) > _pyObject::myArgCmds
protectedinherited

◆ myID

_pyID _pyObject::myID
protectedinherited

◆ myIgnoreOwnCalls

bool _pySelfEraser::myIgnoreOwnCalls
private

Referenced by CanClear().

◆ myIsPublished

◆ myProcessedCmds

std::list< Handle(_pyCommand) > _pyObject::myProcessedCmds
protectedinherited