X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESH_I%2FSMESH_2smeshpy.hxx;h=1ad25475143bd65f914f6482ad87f0948b71d367;hp=24b769329643942bd41fbd747f9270fcebe9bfd5;hb=ddec989c2fb5982e993bb635080de49f1b2f1a1a;hpb=6c9caee99f204d7c3b220f00b89890074c201247 diff --git a/src/SMESH_I/SMESH_2smeshpy.hxx b/src/SMESH_I/SMESH_2smeshpy.hxx index 24b769329..1ad254751 100644 --- a/src/SMESH_I/SMESH_2smeshpy.hxx +++ b/src/SMESH_I/SMESH_2smeshpy.hxx @@ -233,6 +233,7 @@ public: _pyID GenerateNewID( const _pyID& theID ); void AddObject( Handle(_pyObject)& theObj ); + void SetProxyObject( const _pyID& theID, Handle(_pyObject)& theObj ); Handle(_pyObject) FindObject( const _pyID& theObjID ) const; Handle(_pySubMesh) FindSubMesh( const _pyID& theSubMeshID ); Handle(_pyHypothesis) FindHyp( const _pyID& theHypID ); @@ -521,7 +522,8 @@ DEFINE_STANDARD_HANDLE (_pySegmentLengthAroundVertexHyp, _pyHypothesis); class _pySelfEraser: public _pyObject { public: - _pySelfEraser(const Handle(_pyCommand)& theCreationCmd):_pyObject(theCreationCmd) {} + _pySelfEraser(const Handle(_pyCommand)& theCreationCmd) + :_pyObject(theCreationCmd) { myIsPublished = true; } virtual void Flush(); DEFINE_STANDARD_RTTI (_pySelfEraser) @@ -547,22 +549,6 @@ public: DEFINE_STANDARD_RTTI (_pySubMesh) }; -// ------------------------------------------------------------------------------------- -/*! - * \brief To convert creation of a group by filter - */ -// ------------------------------------------------------------------------------------- -class _pyGroup: public _pySubMesh -{ -public: - _pyGroup(const Handle(_pyCommand)& theCreationCmd, const _pyID & id=_pyID()) - :_pySubMesh(theCreationCmd) { setID( id ); } - virtual void Process( const Handle(_pyCommand)& theCommand); - virtual void Flush() {} - - DEFINE_STANDARD_RTTI (_pyGroup) -}; - // ------------------------------------------------------------------------------------- /*! * \brief A filter sets a human readable name to self @@ -570,7 +556,7 @@ public: // ------------------------------------------------------------------------------------- class _pyFilter: public _pyObject { - _pyID myNewID; + _pyID myNewID, myMesh; std::list< Handle(_pyObject) > myUsers; public: _pyFilter(const Handle(_pyCommand)& theCreationCmd, const _pyID& newID=""); @@ -585,6 +571,23 @@ public: }; DEFINE_STANDARD_HANDLE (_pyFilter, _pyObject); +// ------------------------------------------------------------------------------------- +/*! + * \brief To convert creation of a group by filter + */ +// ------------------------------------------------------------------------------------- +class _pyGroup: public _pySubMesh +{ + Handle(_pyFilter) myFilter; +public: + _pyGroup(const Handle(_pyCommand)& theCreationCmd, const _pyID & id=_pyID()); + virtual void Process( const Handle(_pyCommand)& theCommand); + virtual void Flush() {} + virtual void Free() { myFilter.Nullify(); } + + DEFINE_STANDARD_RTTI (_pyGroup) +}; + // ------------------------------------------------------------------------------------- /*! * \brief Class reading _pyHypothesis'es from resource files of mesher Plugins