mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-15 21:21:21 +05:00
0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
class Filter_i { + struct TPredicateChangeWaiter + { + virtual void PredicateChanged() = 0; + }; + void AddWaiter( TPredicateChangeWaiter* waiter ); + void RemoveWaiter( TPredicateChangeWaiter* waiter ); + std::list<TPredicateChangeWaiter*> myWaiters; + const char* FunctorTypeToString(SMESH::FunctorType ft); + SMESH::FunctorType StringToFunctorType(const char* str);
This commit is contained in:
parent
56793b53d1
commit
fe2d0f0f5c
@ -39,6 +39,8 @@
|
|||||||
#include "SALOME_GenericObj_i.hh"
|
#include "SALOME_GenericObj_i.hh"
|
||||||
#include "SMESH_ControlsDef.hxx"
|
#include "SMESH_ControlsDef.hxx"
|
||||||
|
|
||||||
|
#include <list>
|
||||||
|
|
||||||
class SMESHDS_Mesh;
|
class SMESHDS_Mesh;
|
||||||
|
|
||||||
namespace SMESH
|
namespace SMESH
|
||||||
@ -866,7 +868,7 @@ namespace SMESH
|
|||||||
FILTER
|
FILTER
|
||||||
*/
|
*/
|
||||||
class SMESH_I_EXPORT Filter_i: public virtual POA_SMESH::Filter,
|
class SMESH_I_EXPORT Filter_i: public virtual POA_SMESH::Filter,
|
||||||
public virtual SALOME::GenericObj_i
|
public virtual SALOME::GenericObj_i
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Filter_i();
|
Filter_i();
|
||||||
@ -921,10 +923,22 @@ namespace SMESH
|
|||||||
virtual SMESH::array_of_ElementType* GetTypes();
|
virtual SMESH::array_of_ElementType* GetTypes();
|
||||||
virtual SMESH::SMESH_Mesh_ptr GetMesh();
|
virtual SMESH::SMESH_Mesh_ptr GetMesh();
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* \brief Object notified on change of predicate
|
||||||
|
*/
|
||||||
|
struct TPredicateChangeWaiter
|
||||||
|
{
|
||||||
|
virtual void PredicateChanged() = 0;
|
||||||
|
};
|
||||||
|
void AddWaiter( TPredicateChangeWaiter* waiter );
|
||||||
|
void RemoveWaiter( TPredicateChangeWaiter* waiter );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Controls::Filter myFilter;
|
Controls::Filter myFilter;
|
||||||
Predicate_i* myPredicate;
|
Predicate_i* myPredicate;
|
||||||
SMESH_Mesh_var myMesh;
|
SMESH_Mesh_var myMesh;
|
||||||
|
|
||||||
|
std::list<TPredicateChangeWaiter*> myWaiters;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -932,7 +946,7 @@ namespace SMESH
|
|||||||
FILTER LIBRARY
|
FILTER LIBRARY
|
||||||
*/
|
*/
|
||||||
class SMESH_I_EXPORT FilterLibrary_i: public virtual POA_SMESH::FilterLibrary,
|
class SMESH_I_EXPORT FilterLibrary_i: public virtual POA_SMESH::FilterLibrary,
|
||||||
public virtual SALOME::GenericObj_i
|
public virtual SALOME::GenericObj_i
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
FilterLibrary_i( const char* theFileName );
|
FilterLibrary_i( const char* theFileName );
|
||||||
@ -1032,6 +1046,9 @@ namespace SMESH
|
|||||||
|
|
||||||
Predicate_i*
|
Predicate_i*
|
||||||
GetPredicate( SMESH::Predicate_ptr thePredicate );
|
GetPredicate( SMESH::Predicate_ptr thePredicate );
|
||||||
|
|
||||||
|
const char* FunctorTypeToString(SMESH::FunctorType ft);
|
||||||
|
SMESH::FunctorType StringToFunctorType(const char* str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user