Version: 9.12.0
_pyGroup Class Reference

To convert creation of a group by filter. More...

#include <SMESH_2smeshpy.hxx>

Inheritance diagram for _pyGroup:

Public Member Functions

 _pyGroup (const Handle(_pyCommand)&theCreationCmd, const _pyID &id=_pyID())
 Creates _pyGroup. More...
 
virtual void Process (const Handle(_pyCommand)&theCommand)
 To convert creation of a group by filter. More...
 
virtual void Flush ()
 Prevent clearing "DoubleNode...() command if a group created by it is removed. More...
 
virtual void Free ()
 
virtual bool CanClear ()
 Check if "[ group1, group2 ] = mesh.GetGroups()" creation command can be cleared. More...
 
void RemovedWithContents ()
 set myCanClearCreationCmd = true if the main action of the creation command is discarded More...
 
virtual Handle (_pyMesh) GetMesh()
 
const Handle (_pyCommand) &GetCreationCmd()
 
virtual void Process (const Handle(_pyCommand) &cmd)
 
void SetCreator (const Handle(_pyObject)&theCreator)
 
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 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...
 

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 (_pyFilter) myFilter
 

Private Attributes

bool myCanClearCreationCmd
 

Detailed Description

To convert creation of a group by filter.

Constructor & Destructor Documentation

◆ _pyGroup()

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)
staticinherited

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

◆ CanClear()

bool _pyGroup::CanClear ( )
virtual

Check if "[ group1, group2 ] = mesh.GetGroups()" creation command can be cleared.

Reimplemented from _pyObject.

References SMESH::DownCast(), _pyObject::GetID(), Handle(), _pyObject::IsInStudy(), and myCanClearCreationCmd.

◆ 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 _pyGroup::Flush ( )
virtual

Prevent clearing "DoubleNode...() command if a group created by it is removed.

Reimplemented from _pySubMesh.

References myCanClearCreationCmd.

◆ Free()

virtual void _pyGroup::Free ( )
virtual

Reimplemented from _pySubMesh.

◆ GetCommandNb()

int _pyObject::GetCommandNb ( )
inherited

◆ GetID()

◆ GetNbCalls()

int _pyObject::GetNbCalls ( ) const
inherited

◆ GetProcessedCmds()

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

◆ Handle() [1/4]

const _pyObject::Handle ( _pyCommand  ) &
inherited

◆ Handle() [2/4]

◆ Handle() [3/4]

_pyGroup::Handle ( _pyFilter  )
private

Referenced by _pyGroup(), CanClear(), and Process().

◆ Handle() [4/4]

virtual _pySubMesh::Handle ( _pyMesh  )
virtualinherited

◆ IsInStudy()

◆ Process() [1/2]

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

◆ Process() [2/2]

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

◆ RemovedWithContents()

void _pyGroup::RemovedWithContents ( )

set myCanClearCreationCmd = true if the main action of the creation command is discarded

◆ SetCreationCmd()

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

◆ SetCreator()

void _pySubMesh::SetCreator ( const Handle(_pyObject)&  theCreator)
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(), 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

◆ myCanClearCreationCmd

bool _pyGroup::myCanClearCreationCmd
private

Referenced by _pyGroup(), CanClear(), and Flush().

◆ myID

_pyID _pyObject::myID
protectedinherited

◆ myIsPublished

◆ myProcessedCmds

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