Class corresponding to SMESH_Gen. More...
#include <SMESH_2smeshpy.hxx>

Public Member Functions | |
| _pyGen (Resource_DataMapOfAsciiStringAsciiString &theEntry2AccessorMethod, Resource_DataMapOfAsciiStringAsciiString &theObjectNames, std::set< TCollection_AsciiString > &theRemovedObjIDs, const bool theToKeepAllCommands) | |
| _pyGen constructor More... | |
| Handle (_pyCommand) AddCommand(const _AString &theCommand) | |
| void | ExchangeCommands (Handle(_pyCommand) theCmd1, Handle(_pyCommand) theCmd2) |
| Change order of commands in the script. More... | |
| void | SetCommandAfter (Handle(_pyCommand) theCmd, Handle(_pyCommand) theAfterCmd) |
| Set one command after the other. More... | |
| void | SetCommandBefore (Handle(_pyCommand) theCmd, Handle(_pyCommand) theBeforeCmd) |
| Set one command before the other. More... | |
| Handle (_pyCommand) &GetLastCommand() | |
| std::list< Handle(_pyCommand) > & | GetCommands () |
| void | PlaceSubmeshAfterItsCreation (Handle(_pyCommand) theCmdUsingSubmesh) const |
| Prevent moving a command creating a sub-mesh to the end of the script if the sub-mesh is used in theCmdUsingSubmesh as argument. More... | |
| _pyID | GenerateNewID (const _pyID &theID) |
| Generated new ID for object and assign with existing name. More... | |
| bool | AddObject (Handle(_pyObject)&theObj) |
| Stores theObj in myObjects. More... | |
| void | CheckObjectIsReCreated (Handle(_pyObject)&theObj) |
| Erases an existing object with the same ID. More... | |
| void | SetProxyObject (const _pyID &theID, Handle(_pyObject)&theObj) |
| Re-register an object with other ID to make it Process() commands of other object having this ID. More... | |
| Handle (_pyObject) FindObject(const _pyID &theObjID) const | |
| Handle (_pySubMesh) FindSubMesh(const _pyID &theSubMeshID) | |
| Handle (_pyHypothesis) FindHyp(const _pyID &theHypID) | |
| Handle (_pyHypothesis) FindAlgo(const _pyID &theGeom | |
| const _pyID const | Handle (_pyHypothesis) &theHypothesis) |
| void | SetAccessorMethod (const _pyID &theID, const char *theMethod) |
| Set method to access to object wrapped with python class. More... | |
| bool | AddMeshAccessorMethod (Handle(_pyCommand) theCmd) const |
| Add access method to mesh that is an argument. More... | |
| bool | AddAlgoAccessorMethod (Handle(_pyCommand) theCmd) const |
| Add access method to algo that is an object or an argument. More... | |
| virtual const char * | AccessorMethod () const |
| name of SMESH_Gen in smeshBuilder.py More... | |
| bool | IsGeomObject (const _pyID &theObjID) const |
| bool | IsNotPublished (const _pyID &theObjID) const |
| void | ObjectCreationRemoved (const _pyID &theObjID) |
| void | KeepAgrCmds (const _pyID &theObjID) |
| bool | IsToKeepAllCommands () const |
| void | AddExportedMesh (const _AString &file, const ExportedMeshData &mesh) |
| ExportedMeshData & | FindExportedMesh (const _AString &file) |
| virtual void | Process (const Handle(_pyCommand)&theCommand) |
| Convert the command or remember it for later conversion. More... | |
| virtual void | Flush () |
| Convert the remembered commands. More... | |
| virtual void | ClearCommands () |
| Clean commands of removed objects depending on myIsPublished flag. More... | |
| virtual void | Free () |
| Release mutual handles of objects. More... | |
| Handle (_pyHypothesisReader) GetHypothesisReader() const | |
| const _pyID & | GetID () |
| 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 bool | CanClear () |
| Return true if all my users can be cleared. More... | |
Static Public Member Functions | |
| static _pyID | FatherID (const _pyID &childID) |
| Return ID of a father. More... | |
Data Fields | |
| const _pyID & | theMesh |
Protected Member Functions | |
| 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 | |
| void | setNeighbourCommand (Handle(_pyCommand)&theCmd, Handle(_pyCommand)&theOtherCmd, const bool theIsAfter) |
| Set one command before or after the other. More... | |
| Handle (_pyCommand) myLastCommand | |
| Handle (_pyHypothesisReader) myHypReader | |
Private Attributes | |
| std::map< _pyID, Handle(_pyMesh) > | myMeshes |
| std::map< _pyID, Handle(_pyMeshEditor) > | myMeshEditors |
| std::map< _pyID, Handle(_pyHypothesis) > | myHypos |
| std::map< _pyID, Handle(_pyObject) > | myObjects |
| std::list< Handle(_pyObject) > | myOrderedObjects |
| _pyStringFamily | myKeepAgrCmdsIDs |
| std::list< Handle(_pyCommand) > | myCommands |
| int | myNbCommands |
| Resource_DataMapOfAsciiStringAsciiString & | myID2AccessorMethod |
| Resource_DataMapOfAsciiStringAsciiString & | myObjectNames |
| std::set< TCollection_AsciiString > & | myRemovedObjIDs |
| int | myNbFilters |
| bool | myToKeepAllCommands |
| int | myGeomIDNb |
| int | myGeomIDIndex |
| int | myShaperIDNb |
| int | myShaperIDIndex |
| std::map< _AString, ExportedMeshData > | myFile2ExportedMesh |
Class corresponding to SMESH_Gen.
It holds info on existing meshes and hypotheses
| _pyGen::_pyGen | ( | Resource_DataMapOfAsciiStringAsciiString & | theEntry2AccessorMethod, |
| Resource_DataMapOfAsciiStringAsciiString & | theObjectNames, | ||
| std::set< TCollection_AsciiString > & | theRemovedObjIDs, | ||
| const bool | theToKeepAllCommands | ||
| ) |
_pyGen constructor
References SMESH_Gen_i::GetSMESHGen(), SMESH_Gen_i::getStudyServant(), _pyCommand::IsStudyEntry(), myGeomIDIndex, myGeomIDNb, myShaperIDIndex, and myShaperIDNb.
|
virtual |
name of SMESH_Gen in smeshBuilder.py
Reimplemented from _pyObject.
References SMESH_2smeshpy::GenName().
| bool _pyGen::AddAlgoAccessorMethod | ( | Handle(_pyCommand) | theCmd | ) | const |
Add access method to algo that is an object or an argument.
| theCmd | - command to add access method |
| bool | - true if added |
References _pyCommand::AddAccessorMethod(), Handle(), and myHypos.
|
inherited |
References _pyObject::myArgCmds.
| void _pyGen::AddExportedMesh | ( | const _AString & | file, |
| const ExportedMeshData & | mesh | ||
| ) |
References myFile2ExportedMesh.
| bool _pyGen::AddMeshAccessorMethod | ( | Handle(_pyCommand) | theCmd | ) | const |
Add access method to mesh that is an argument.
| theCmd | - command to add access method |
| bool | - true if added |
References _pyCommand::AddAccessorMethod(), Handle(), and myMeshes.
Stores theObj in myObjects.
References CheckObjectIsReCreated(), SMESH::DownCast(), _pyObject::GetID(), Handle(), myMeshEditors, myMeshes, myObjects, and myOrderedObjects.
|
inherited |
References _pyObject::myProcessedCmds.
Referenced by _pyObject::Process().
|
virtualinherited |
Return true if all my users can be cleared.
Reimplemented in _pyMesh, _pyMeshEditor, _pyHypothesis, _pySelfEraser, and _pyGroup.
References _pyObject::Handle(), _pyObject::myArgCmds, and _pyObject::myIsPublished.
Referenced by _pyObject::ClearCommands().
Erases an existing object with the same ID.
This method should be called before storing theObj in _pyGen
References _pyObject::GetID(), Handle(), _pyCommand::IsStudyEntry(), myHypos, myMeshes, and myObjects.
Referenced by AddObject(), Handle(), and Process().
|
virtual |
Clean commands of removed objects depending on myIsPublished flag.
Reimplemented from _pyObject.
References Handle(), myHypos, myMeshes, and myOrderedObjects.
| void _pyGen::ExchangeCommands | ( | Handle(_pyCommand) | theCmd1, |
| Handle(_pyCommand) | theCmd2 | ||
| ) |
Change order of commands in the script.
| theCmd1 | - One command |
| theCmd2 | - Another command |
References _pyCommand::GetOrderNb(), Handle(), myCommands, and _pyCommand::SetOrderNb().
Return ID of a father.
Referenced by _pySegmentLengthAroundVertexHyp::Addition2Creation().
| ExportedMeshData & _pyGen::FindExportedMesh | ( | const _AString & | file | ) |
References myFile2ExportedMesh.
|
virtual |
Convert the remembered commands.
Implements _pyObject.
References SMESH_2smeshpy::GenName(), Handle(), IsToKeepAllCommands(), myCommands, myHypos, myMeshes, myNbCommands, myObjects, and myOrderedObjects.
|
virtual |
Release mutual handles of objects.
Reimplemented from _pyObject.
References Handle(), myFile2ExportedMesh, myHypos, myMeshEditors, myMeshes, and myObjects.
Generated new ID for object and assign with existing name.
| theID | - ID of existing object |
References myObjectNames.
|
inherited |
| std::list< Handle(_pyCommand) > & _pyGen::GetCommands | ( | ) |
References myCommands.
|
inherited |
References _pyObject::myID.
Referenced by _pyFilter::_pyFilter(), _pySelfEraser::_pySelfEraser(), _pySubMesh::_pySubMesh(), _pyMesh::addFatherMesh(), _pyHypothesis::Addition2Creation(), _pyAlgorithm::Addition2Creation(), AddObject(), _pySelfEraser::CanClear(), _pyGroup::CanClear(), CheckObjectIsReCreated(), _pyMesh::Flush(), _pyFilter::Flush(), Handle(), _pyMesh::Process(), _pyFilter::Process(), and _pyObject::setID().
|
inherited |
References _pyObject::myProcessedCmds.
Referenced by _pySubMesh::Flush(), and _pyFilter::Process().
|
inherited |
References _pyObject::myProcessedCmds.
Referenced by _pySelfEraser::CanClear().
| _pyGen::Handle | ( | _pyCommand | ) | & |
| _pyGen::Handle | ( | _pyCommand | ) | const & |
|
private |
| const _pyID const _pyGen::Handle | ( | _pyHypothesis | ) | & |
| _pyGen::Handle | ( | _pyHypothesis | ) | const & |
| _pyGen::Handle | ( | _pyHypothesis | ) | const & |
| _pyGen::Handle | ( | _pyHypothesisReader | ) | const |
|
private |
| _pyGen::Handle | ( | _pyObject | ) | const & |
| _pyGen::Handle | ( | _pySubMesh | ) | const & |
|
inherited |
| bool _pyGen::IsToKeepAllCommands | ( | ) | const |
References myToKeepAllCommands.
Referenced by Flush().
| void _pyGen::KeepAgrCmds | ( | const _pyID & | theObjID | ) |
References _pyStringFamily::Add(), and myKeepAgrCmdsIDs.
| void _pyGen::ObjectCreationRemoved | ( | const _pyID & | theObjID | ) |
| void _pyGen::PlaceSubmeshAfterItsCreation | ( | Handle(_pyCommand) | theCmdUsingSubmesh | ) | const |
Prevent moving a command creating a sub-mesh to the end of the script if the sub-mesh is used in theCmdUsingSubmesh as argument.
|
virtualinherited |
References _pyObject::AddProcessedCmd().
Referenced by _pySubMesh::Process(), and _pyFilter::Process().
|
virtual |
Convert the command or remember it for later conversion.
| theCommand | - The python command calling a method of SMESH_Gen |
References AddMeshAccessorMethod(), AddObject(), CheckObjectIsReCreated(), _pyCommand::Clear(), SMESH_2smeshpy::GenName(), _pyCommand::GetArg(), _pyCommand::GetMethod(), _pyCommand::GetNbArgs(), _pyCommand::GetResultValue(), _pyCommand::GetStudyEntries(), Handle(), myHypos, myMeshes, myObjectNames, _pyCommand::RemoveArgs(), _pyCommand::SetArg(), _pyCommand::SetMethod(), _pyCommand::SetObject(), and SMESH_2smeshpy::SmeshpyName().
Referenced by Handle().
| void _pyGen::SetAccessorMethod | ( | const _pyID & | theID, |
| const char * | theMethod | ||
| ) |
Set method to access to object wrapped with python class.
| theID | - The wrapped object entry |
| theMethod | - The accessor method |
References myID2AccessorMethod.
| void _pyGen::SetCommandAfter | ( | Handle(_pyCommand) | theCmd, |
| Handle(_pyCommand) | theAfterCmd | ||
| ) |
Set one command after the other.
| theCmd | - Command to move |
| theAfterCmd | - Command ater which to insert the first one |
References setNeighbourCommand().
| void _pyGen::SetCommandBefore | ( | Handle(_pyCommand) | theCmd, |
| Handle(_pyCommand) | theBeforeCmd | ||
| ) |
Set one command before the other.
| theCmd | - Command to move |
| theBeforeCmd | - Command before which to insert the first one |
References setNeighbourCommand().
|
inherited |
Referenced by _pyHypothesis::Addition2Creation().
|
protectedinherited |
Set up myID and myIsPublished.
References _pyObject::GetID(), _pyObject::myID, and _pyObject::myIsPublished.
Referenced by _pyGroup::_pyGroup(), and _pyObject::_pyObject().
|
private |
Set one command before or after the other.
| theCmd | - Command to move |
| theOtherCmd | - Command ater or before which to insert the first one |
References Handle(), and myCommands.
Referenced by SetCommandAfter(), and SetCommandBefore().
Re-register an object with other ID to make it Process() commands of other object having this ID.
References SMESH::DownCast(), Handle(), myMeshEditors, myMeshes, and myObjects.
|
virtualinherited |
Reimplemented in _pyMesh.
References _pyObject::myIsPublished.
Referenced by _pyMesh::SetRemovedFromStudy().
|
protectedinherited |
Referenced by _pyObject::AddArgCmd(), _pyObject::CanClear(), _pySelfEraser::CanClear(), _pySubMesh::Flush(), and _pyFilter::Flush().
|
private |
Referenced by ExchangeCommands(), Flush(), GetCommands(), Handle(), and setNeighbourCommand().
|
private |
Referenced by AddExportedMesh(), FindExportedMesh(), and Free().
|
private |
Referenced by _pyGen().
|
private |
Referenced by _pyGen().
|
private |
Referenced by AddAlgoAccessorMethod(), CheckObjectIsReCreated(), ClearCommands(), Flush(), Free(), Handle(), and Process().
|
protectedinherited |
Referenced by _pyObject::GetID(), and _pyObject::setID().
|
private |
Referenced by SetAccessorMethod().
|
protectedinherited |
|
private |
Referenced by Handle(), and KeepAgrCmds().
|
private |
Referenced by AddObject(), Free(), Handle(), and SetProxyObject().
Referenced by AddMeshAccessorMethod(), AddObject(), CheckObjectIsReCreated(), ClearCommands(), Flush(), Free(), Handle(), Process(), and SetProxyObject().
|
private |
Referenced by Handle().
|
private |
Referenced by GenerateNewID(), and Process().
Referenced by AddObject(), CheckObjectIsReCreated(), Flush(), Free(), Handle(), and SetProxyObject().
Referenced by AddObject(), ClearCommands(), and Flush().
|
protectedinherited |
|
private |
|
private |
Referenced by _pyGen().
|
private |
Referenced by _pyGen().
|
private |
Referenced by IsToKeepAllCommands().
| const _pyID& _pyGen::theMesh |