Version: 9.12.0
_pyMesh Class Reference

#include <SMESH_2smeshpy.hxx>

Inheritance diagram for _pyMesh:

Public Member Functions

 _pyMesh (const Handle(_pyCommand) creationCmd)
 
 _pyMesh (const Handle(_pyCommand) theCreationCmd, const _pyID &id)
 Mesh created by SMESH_MeshEditor. More...
 
const _pyIDGetGeom ()
 
void AddGroup (const Handle(_pyGroup)&g)
 
void AddEditor (const Handle(_pyMeshEditor)&e)
 
bool IsNotGeomPublished ()
 
virtual void Process (const Handle(_pyCommand)&theCommand)
 Convert an IDL API command of SMESH::SMESH_Mesh to a method call of python Mesh. More...
 
virtual void Flush ()
 Convert creation and addition of all algos and hypos. More...
 
virtual void SetRemovedFromStudy (const bool isRemoved)
 Sets myIsPublished of me and of all objects depending on me. More...
 
virtual bool CanClear ()
 Return true if none of myChildMeshes is in study. More...
 
virtual void ClearCommands ()
 Clear my commands and commands of mesh editor. More...
 
virtual void Free ()
 
virtual const char * AccessorMethod () const
 Return method name giving access to an interaface object wrapped by python class. More...
 
const Handle (_pyCommand) &GetCreationCmd()
 
const _pyIDGetID ()
 
int GetNbCalls () const
 
bool IsInStudy () const
 
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)
 

Static Public Member Functions

static _pyID FatherID (const _pyID &childID)
 Return ID of a father. More...
 

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

 Handle (_pyCommand) myLastComputeCmd
 
void addFatherMesh (const Handle(_pyMesh)&mesh)
 Add a father mesh. More...
 
void addFatherMesh (const _pyID &meshID)
 Add a father mesh by ID. More...
 

Static Private Member Functions

static bool NeedMeshAccess (const Handle(_pyCommand)&theCommand)
 Return True if addition of accesor method is needed. More...
 
static void AddMeshAccess (const Handle(_pyCommand)&theCommand)
 

Private Attributes

std::list< Handle(_pyHypothesis) > myHypos
 
std::list< Handle(_pyCommand) > myAddHypCmds
 
std::list< Handle(_pyCommand) > myNotConvertedAddHypCmds
 
std::list< Handle(_pySubMesh) > mySubmeshes
 
std::list< Handle(_pyGroup) > myGroups
 
std::list< Handle(_pyMeshEditor)> myEditors
 
std::list< Handle(_pyMesh) > myChildMeshes
 
bool myGeomNotInStudy
 

Constructor & Destructor Documentation

◆ _pyMesh() [1/2]

_pyMesh::_pyMesh ( const Handle(_pyCommand creationCmd)

◆ _pyMesh() [2/2]

Member Function Documentation

◆ AccessorMethod()

virtual const char* _pyMesh::AccessorMethod ( ) const
virtual

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

Return values
constchar* - method name

Reimplemented from _pyObject.

References _pyMesh_ACCESS_METHOD.

Referenced by _pyMesh().

◆ AddArgCmd()

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

References _pyObject::myArgCmds.

◆ AddEditor()

void _pyMesh::AddEditor ( const Handle(_pyMeshEditor)&  e)

References myEditors.

◆ addFatherMesh() [1/2]

void _pyMesh::addFatherMesh ( const _pyID meshID)
private

Add a father mesh by ID.

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

◆ addFatherMesh() [2/2]

void _pyMesh::addFatherMesh ( const Handle(_pyMesh)&  mesh)
private

Add a father mesh.

References _pyObject::GetID(), and myChildMeshes.

Referenced by _pyMesh(), addFatherMesh(), and Flush().

◆ AddGroup()

void _pyMesh::AddGroup ( const Handle(_pyGroup)&  g)

References myGroups.

◆ AddMeshAccess()

static void _pyMesh::AddMeshAccess ( const Handle(_pyCommand)&  theCommand)
staticprivate

◆ AddProcessedCmd()

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

◆ CanClear()

bool _pyMesh::CanClear ( )
virtual

Return true if none of myChildMeshes is in study.

Reimplemented from _pyObject.

References Handle(), _pyObject::IsInStudy(), and myChildMeshes.

Referenced by ClearCommands().

◆ ClearCommands()

void _pyMesh::ClearCommands ( )
virtual

Clear my commands and commands of mesh editor.

Reimplemented from _pyObject.

References CanClear(), _pyObject::ClearCommands(), Handle(), _pyObject::IsInStudy(), myChildMeshes, myEditors, myGroups, mySubmeshes, and SetRemovedFromStudy().

◆ FatherID()

_pyID _pyObject::FatherID ( const _pyID childID)
staticinherited

Return ID of a father.

Referenced by _pySegmentLengthAroundVertexHyp::Addition2Creation().

◆ Flush()

void _pyMesh::Flush ( )
virtual

Convert creation and addition of all algos and hypos.

Implements _pyObject.

References addFatherMesh(), SMESH::DownCast(), GetGeom(), _pyObject::GetID(), Handle(), myAddHypCmds, myGeomNotInStudy, myHypos, myNotConvertedAddHypCmds, and mySubmeshes.

Referenced by Process().

◆ Free()

virtual void _pyMesh::Free ( )
virtual

Reimplemented from _pyObject.

References myChildMeshes.

◆ GetCommandNb()

int _pyObject::GetCommandNb ( )
inherited

◆ GetGeom()

const _pyID& _pyMesh::GetGeom ( )

Referenced by Flush(), and Process().

◆ GetID()

◆ GetNbCalls()

int _pyObject::GetNbCalls ( ) const
inherited

◆ GetProcessedCmds()

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

◆ Handle() [1/2]

const _pyObject::Handle ( _pyCommand  ) &
inherited

◆ Handle() [2/2]

_pyMesh::Handle ( _pyCommand  )
private

◆ IsInStudy()

◆ IsNotGeomPublished()

bool _pyMesh::IsNotGeomPublished ( )

References myGeomNotInStudy.

◆ NeedMeshAccess()

bool _pyMesh::NeedMeshAccess ( const Handle(_pyCommand)&  theCommand)
staticprivate

Return True if addition of accesor method is needed.

References _pyCommand::GetMethod().

Referenced by Process().

◆ Process() [1/2]

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

◆ Process() [2/2]

◆ SetCreationCmd()

void _pyObject::SetCreationCmd ( Handle(_pyCommand cmd)
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::_pyGroup(), and _pyObject::_pyObject().

◆ SetRemovedFromStudy()

void _pyMesh::SetRemovedFromStudy ( const bool  isRemoved)
virtual

Sets myIsPublished of me and of all objects depending on me.

Reimplemented from _pyObject.

References Handle(), myChildMeshes, myEditors, myGroups, mySubmeshes, and _pyObject::SetRemovedFromStudy().

Referenced by ClearCommands().

Field Documentation

◆ myAddHypCmds

std::list< Handle(_pyCommand) > _pyMesh::myAddHypCmds
private

Referenced by Flush(), and Process().

◆ myArgCmds

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

◆ myChildMeshes

std::list< Handle(_pyMesh) > _pyMesh::myChildMeshes
private

◆ myEditors

std::list< Handle(_pyMeshEditor)> _pyMesh::myEditors
private

◆ myGeomNotInStudy

bool _pyMesh::myGeomNotInStudy
private

Referenced by Flush(), and IsNotGeomPublished().

◆ myGroups

std::list< Handle(_pyGroup) > _pyMesh::myGroups
private

◆ myHypos

std::list< Handle(_pyHypothesis) > _pyMesh::myHypos
private

Referenced by Flush(), and Process().

◆ myID

_pyID _pyObject::myID
protectedinherited

◆ myIsPublished

◆ myNotConvertedAddHypCmds

std::list< Handle(_pyCommand) > _pyMesh::myNotConvertedAddHypCmds
private

Referenced by Flush(), and Process().

◆ myProcessedCmds

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

◆ mySubmeshes

std::list< Handle(_pySubMesh) > _pyMesh::mySubmeshes
private