Version: 8.3.0
_pyMesh Class Reference

#include <SMESH_2smeshpy.hxx>

Inheritance diagram for _pyMesh:

Public Member Functions

 _pyMesh (const Handle(_pyCommand) creationCmd)
 Mesh created by SMESH_Gen. More...
 
 _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 _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)
 

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

Member Function Documentation

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().

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

References _pyObject::myArgCmds.

void _pyMesh::AddEditor ( const Handle(_pyMeshEditor)&  e)
void _pyMesh::addFatherMesh ( const Handle(_pyMesh)&  mesh)
private

Add a father mesh.

References _pyObject::GetID(), and myChildMeshes.

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

void _pyMesh::addFatherMesh ( const _pyID meshID)
private

Add a father mesh by ID.

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

void _pyMesh::AddGroup ( const Handle(_pyGroup)&  g)
static void _pyMesh::AddMeshAccess ( const Handle(_pyCommand)&  theCommand)
staticprivate
void _pyObject::AddProcessedCmd ( const Handle(_pyCommand)&  cmd)
inherited
bool _pyMesh::CanClear ( )
virtual

Return true if none of myChildMeshes is in study.

Reimplemented from _pyObject.

References _pyObject::IsInStudy(), and myChildMeshes.

Referenced by ClearCommands().

void _pyMesh::ClearCommands ( )
virtual

Clear my commands and commands of mesh editor.

Reimplemented from _pyObject.

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

_pyID _pyObject::FatherID ( const _pyID childID)
staticinherited

Return ID of a father.

Referenced by _pySegmentLengthAroundVertexHyp::Addition2Creation().

void _pyMesh::Flush ( )
virtual
virtual void _pyMesh::Free ( )
virtual

Reimplemented from _pyObject.

int _pyObject::GetCommandNb ( )
inherited
const _pyID& _pyMesh::GetGeom ( )

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

int _pyObject::GetNbCalls ( ) const
inherited
std::list< Handle(_pyCommand) >& _pyObject::GetProcessedCmds ( )
inherited
_pyMesh::Handle ( _pyCommand  )
private

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

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

Return True if addition of accesor method is needed.

References _pyCommand::GetMethod().

Referenced by Process().

void _pyObject::SetCreationCmd ( Handle(_pyCommand cmd)
inherited
void _pyObject::setID ( const _pyID theID)
protectedinherited
void _pyMesh::SetRemovedFromStudy ( const bool  isRemoved)
virtual

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

Reimplemented from _pyObject.

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

Referenced by ClearCommands().

Field Documentation

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

Referenced by Flush(), and Process().

std::list< Handle(_pyCommand) > _pyObject::myArgCmds
protectedinherited
std::list< Handle(_pyMesh) > _pyMesh::myChildMeshes
private
std::list< Handle(_pyMeshEditor)> _pyMesh::myEditors
private
bool _pyMesh::myGeomNotInStudy
private

Referenced by _pyMesh(), and Flush().

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

Referenced by Flush(), and Process().

_pyID _pyObject::myID
protectedinherited
std::list< Handle(_pyCommand) > _pyMesh::myNotConvertedAddHypCmds
private

Referenced by Flush(), and Process().

std::list< Handle(_pyCommand) > _pyObject::myProcessedCmds
protectedinherited
std::list< Handle(_pySubMesh) > _pyMesh::mySubmeshes
private