Version: 8.3.0
_pyObject Class Referenceabstract

Root of all objects. More...

#include <SMESH_2smeshpy.hxx>

Inheritance diagram for _pyObject:

Public Member Functions

 _pyObject (const Handle(_pyCommand)&theCreationCmd, const _pyID &theID=_pyID())
 Creates pyObject. More...
 
const _pyIDGetID ()
 
const Handle (_pyCommand)&GetCreationCmd()
 
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 void Flush ()=0
 
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...
 
virtual void Free ()
 

Static Public Member Functions

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
 

Detailed Description

Root of all objects.

It counts calls of Process()

Constructor & Destructor Documentation

_pyObject::_pyObject ( const Handle(_pyCommand)&  theCreationCmd,
const _pyID theID = _pyID() 
)

Creates pyObject.

References setID().

Member Function Documentation

const char * _pyObject::AccessorMethod ( ) const
virtual

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

Return values
constchar* - method name

Reimplemented in _pyAlgorithm, _pyMesh, and _pyGen.

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

References myArgCmds.

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

References myProcessedCmds.

Referenced by Process().

bool _pyObject::CanClear ( )
virtual

Return true if all my users can be cleared.

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

References Handle(), myArgCmds, and myIsPublished.

Referenced by ClearCommands(), and _pySelfEraser::IsAliveCmd().

void _pyObject::ClearCommands ( )
virtual

Clear myCreationCmd and myProcessedCmds.

Reimplemented in _pyHypothesis, _pyMesh, and _pyGen.

References CanClear(), and myProcessedCmds.

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

_pyID _pyObject::FatherID ( const _pyID childID)
static

Return ID of a father.

Referenced by _pySegmentLengthAroundVertexHyp::Addition2Creation().

virtual void _pyObject::Free ( )
virtual
int _pyObject::GetCommandNb ( )
int _pyObject::GetNbCalls ( ) const

References myProcessedCmds.

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

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

References myProcessedCmds.

Referenced by _pySelfEraser::CanClear().

const _pyObject::Handle ( _pyCommand  )
virtual void _pyObject::Process ( const Handle(_pyCommand)&  cmd)
virtual
void _pyObject::SetCreationCmd ( Handle(_pyCommand cmd)
void _pyObject::setID ( const _pyID theID)
protected

Set up myID and myIsPublished.

References GetID(), _pyGen::IsNotPublished(), myID, and myIsPublished.

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

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

Reimplemented in _pyMesh.

References myIsPublished.

Referenced by _pyMesh::SetRemovedFromStudy().

Field Documentation

std::list< Handle(_pyCommand) > _pyObject::myArgCmds
protected
_pyID _pyObject::myID
protected

Referenced by GetID(), and setID().

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