Version: 8.3.0
_pyMeshEditor Class Reference

MeshEditor convert its commands to ones of mesh. More...

#include <SMESH_2smeshpy.hxx>

Inheritance diagram for _pyMeshEditor:

Public Member Functions

 _pyMeshEditor (const Handle(_pyCommand)&theCreationCmd)
 MeshEditor convert its commands to ones of mesh. More...
 
_pyID GetMesh () const
 
virtual void Process (const Handle(_pyCommand)&theCommand)
 convert its commands to ones of mesh More...
 
virtual void Flush ()
 
virtual bool CanClear ()
 Return true if my mesh can be removed. More...
 
const Handle (_pyCommand)&GetCreationCmd()
 
const _pyIDGetID ()
 
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 const char * AccessorMethod () const
 Return method name giving access to an interaface object wrapped by python class. 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
 

Private Attributes

_pyID myMesh
 
_AString myCreationCmdStr
 

Detailed Description

MeshEditor convert its commands to ones of mesh.

Constructor & Destructor Documentation

_pyMeshEditor::_pyMeshEditor ( const Handle(_pyCommand)&  theCreationCmd)

MeshEditor convert its commands to ones of mesh.

References _pyCommand::Clear(), _pyCommand::GetObject(), _pyCommand::GetString(), _pyObject::Handle(), myCreationCmdStr, and myMesh.

Member Function Documentation

const char * _pyObject::AccessorMethod ( ) const
virtualinherited

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)
inherited

References _pyObject::myArgCmds.

void _pyObject::AddProcessedCmd ( const Handle(_pyCommand)&  cmd)
inherited
bool _pyMeshEditor::CanClear ( )
virtual

Return true if my mesh can be removed.

Reimplemented from _pyObject.

References _pyObject::Handle(), and myMesh.

void _pyObject::ClearCommands ( )
virtualinherited

Clear myCreationCmd and myProcessedCmds.

Reimplemented in _pyHypothesis, _pyMesh, and _pyGen.

References _pyObject::CanClear(), and _pyObject::myProcessedCmds.

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

_pyID _pyObject::FatherID ( const _pyID childID)
staticinherited

Return ID of a father.

Referenced by _pySegmentLengthAroundVertexHyp::Addition2Creation().

virtual void _pyMeshEditor::Flush ( )
virtual

Implements _pyObject.

virtual void _pyObject::Free ( )
virtualinherited
int _pyObject::GetCommandNb ( )
inherited
_pyID _pyMeshEditor::GetMesh ( ) const
int _pyObject::GetNbCalls ( ) const
inherited
std::list< Handle(_pyCommand) >& _pyObject::GetProcessedCmds ( )
inherited
_pyObject::Handle ( _pyCommand  )
protectedinherited
const _pyObject::Handle ( _pyCommand  )
inherited
void _pyObject::SetCreationCmd ( Handle(_pyCommand cmd)
inherited
void _pyObject::setID ( const _pyID theID)
protectedinherited
virtual void _pyObject::SetRemovedFromStudy ( const bool  isRemoved)
virtualinherited

Reimplemented in _pyMesh.

References _pyObject::myIsPublished.

Referenced by _pyMesh::SetRemovedFromStudy().

Field Documentation

std::list< Handle(_pyCommand) > _pyObject::myArgCmds
protectedinherited
_AString _pyMeshEditor::myCreationCmdStr
private

Referenced by _pyMeshEditor(), and Process().

_pyID _pyObject::myID
protectedinherited
_pyID _pyMeshEditor::myMesh
private

Referenced by _pyMeshEditor(), CanClear(), and Process().

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