Version: 9.12.0
_pySubMesh Class Reference

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

#include <SMESH_2smeshpy.hxx>

Inheritance diagram for _pySubMesh:

Public Member Functions

 _pySubMesh (const Handle(_pyCommand)&theCreationCmd, bool toKeepAgrCmds=true)
 _pySubMesh constructor More...
 
virtual void Process (const Handle(_pyCommand)&theCommand)
 count invoked commands More...
 
virtual void Flush ()
 Move creation command depending on invoked commands. More...
 
virtual Handle (_pyMesh) GetMesh()
 
virtual void Free ()
 
void SetCreator (const Handle(_pyObject)&theCreator)
 
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 bool CanClear ()
 Return true if all my users can be cleared. More...
 
virtual void ClearCommands ()
 Clear myCreationCmd and myProcessedCmds. More...
 

Static Public Member Functions

static bool CanBeArgOfMethod (const _AString &theMethodName)
 Return true if a sub-mesh can be used as argument of the given method. 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 Member Functions

 Handle (_pyObject) myCreator
 
 Handle (_pyMesh) myMesh
 

Detailed Description

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

Constructor & Destructor Documentation

◆ _pySubMesh()

_pySubMesh::_pySubMesh ( const Handle(_pyCommand)&  theCreationCmd,
bool  toKeepAgrCmds = true 
)

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 _pyAlgorithm, _pyMesh, and _pyGen.

◆ AddArgCmd()

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

References _pyObject::myArgCmds.

◆ AddProcessedCmd()

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

◆ CanBeArgOfMethod()

bool _pySubMesh::CanBeArgOfMethod ( const _AString theMethodName)
static

Return true if a sub-mesh can be used as argument of the given method.

◆ CanClear()

bool _pyObject::CanClear ( )
virtualinherited

Return true if all my users can be cleared.

Reimplemented in _pyGroup, _pySelfEraser, _pyHypothesis, _pyMeshEditor, and _pyMesh.

References _pyObject::Handle(), _pyObject::myArgCmds, and _pyObject::myIsPublished.

Referenced by _pyObject::ClearCommands().

◆ ClearCommands()

void _pyObject::ClearCommands ( )
virtualinherited

Clear myCreationCmd and myProcessedCmds.

Reimplemented in _pyHypothesis, _pyMesh, and _pyGen.

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

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

◆ FatherID()

_pyID _pyObject::FatherID ( const _pyID childID)
staticinherited

Return ID of a father.

Referenced by _pySegmentLengthAroundVertexHyp::Addition2Creation().

◆ Flush()

void _pySubMesh::Flush ( )
virtual

Move creation command depending on invoked commands.

Implements _pyObject.

Reimplemented in _pyGroup.

References _pyObject::GetNbCalls(), Handle(), and _pyObject::myArgCmds.

◆ Free()

virtual void _pySubMesh::Free ( )
virtual

Reimplemented from _pyObject.

Reimplemented in _pyGroup.

◆ GetCommandNb()

int _pyObject::GetCommandNb ( )
inherited

◆ GetID()

◆ GetNbCalls()

int _pyObject::GetNbCalls ( ) const
inherited

References _pyObject::myProcessedCmds.

Referenced by Flush(), and _pyFilter::Process().

◆ GetProcessedCmds()

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

◆ Handle() [1/5]

const _pyObject::Handle ( _pyCommand  ) &
inherited

◆ Handle() [2/5]

◆ Handle() [3/5]

virtual _pySubMesh::Handle ( _pyMesh  )
virtual

◆ Handle() [4/5]

_pySubMesh::Handle ( _pyMesh  )
private

◆ Handle() [5/5]

_pySubMesh::Handle ( _pyObject  )
private

Referenced by Flush().

◆ IsInStudy()

◆ Process() [1/2]

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

◆ Process() [2/2]

void _pySubMesh::Process ( const Handle(_pyCommand)&  theCommand)
virtual

count invoked commands

Reimplemented in _pyGroup.

References _pyObject::Process().

◆ SetCreationCmd()

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

◆ SetCreator()

void _pySubMesh::SetCreator ( const Handle(_pyObject)&  theCreator)

◆ 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

◆ myIsPublished

◆ myProcessedCmds

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