Root of all objects. More...
#include <SMESH_2smeshpy.hxx>
Public Member Functions | |
_pyObject (const Handle(_pyCommand)&theCreationCmd, const _pyID &theID=_pyID()) | |
Creates pyObject. More... | |
const _pyID & | GetID () |
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 |
Root of all objects.
It counts calls of Process()
_pyObject::_pyObject | ( | const Handle(_pyCommand)& | theCreationCmd, |
const _pyID & | theID = _pyID() |
||
) |
Creates pyObject.
References setID().
|
virtual |
Return method name giving access to an interaface object wrapped by python class.
const | char* - 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().
|
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().
|
virtual |
Clear myCreationCmd and myProcessedCmds.
Reimplemented in _pyHypothesis, _pyMesh, and _pyGen.
References CanClear(), and myProcessedCmds.
Referenced by _pyMesh::ClearCommands(), _pyHypothesis::ClearCommands(), and _pySelfEraser::Flush().
Return ID of a father.
Referenced by _pySegmentLengthAroundVertexHyp::Addition2Creation().
|
pure virtual |
Implemented in _pyGroup, _pyFilter, _pySubMesh, _pySelfEraser, _pyNumberOfSegmentsHyp, _pyLayerDistributionHypo, _pyComplexParamHypo, _pyHypothesis, _pyMeshEditor, _pyMesh, and _pyGen.
|
virtual |
Reimplemented in _pyGroup, _pySubMesh, _pyLayerDistributionHypo, _pyHypothesis, _pyMesh, and _pyGen.
int _pyObject::GetCommandNb | ( | ) |
const _pyID& _pyObject::GetID | ( | ) |
References _pyCommand::GetResultValue(), and myID.
Referenced by _pyFilter::_pyFilter(), _pyMesh::_pyMesh(), _pySelfEraser::_pySelfEraser(), _pySubMesh::_pySubMesh(), _pyMesh::addFatherMesh(), _pyHypothesis::Addition2Creation(), _pyAlgorithm::Addition2Creation(), _pyLayerDistributionHypo::Addition2Creation(), _pyGen::AddObject(), _pySelfEraser::CanClear(), _pyGroup::CanClear(), _pyGen::CheckObjectIsReCreated(), _pyMesh::Flush(), _pyFilter::Flush(), _pyFilter::Process(), and setID().
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().
|
protected |
Referenced by _pyMeshEditor::_pyMeshEditor(), CanClear(), _pyMeshEditor::CanClear(), and _pySelfEraser::IsAliveCmd().
const _pyObject::Handle | ( | _pyCommand | ) |
bool _pyObject::IsInStudy | ( | ) | const |
|
virtual |
Reimplemented in _pyGroup, _pyFilter, _pySubMesh, _pyLayerDistributionHypo, _pyComplexParamHypo, _pyHypothesis, _pyMeshEditor, _pyMesh, and _pyGen.
References AddProcessedCmd().
Referenced by _pySubMesh::Process(), and _pyFilter::Process().
void _pyObject::SetCreationCmd | ( | Handle(_pyCommand) | cmd | ) |
Referenced by _pyHypothesis::Addition2Creation().
|
protected |
Set up myID and myIsPublished.
References GetID(), _pyGen::IsNotPublished(), myID, and myIsPublished.
Referenced by _pyGroup::_pyGroup(), and _pyObject().
|
virtual |
|
protected |
Referenced by AddArgCmd(), CanClear(), _pySelfEraser::CanClear(), _pySubMesh::Flush(), and _pyFilter::Flush().
|
protected |
Referenced by _pySelfEraser::_pySelfEraser(), CanClear(), _pySelfEraser::Flush(), IsInStudy(), setID(), and SetRemovedFromStudy().
|
protected |
Referenced by AddProcessedCmd(), ClearCommands(), GetNbCalls(), and GetProcessedCmds().