1 // Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
23 // File : SMESH_Filter_i.hxx
24 // Author : Alexey Petrov, OCC
27 #ifndef _SMESH_FILTER_I_HXX_
28 #define _SMESH_FILTER_I_HXX_
32 #include <SALOMEconfig.h>
33 #include CORBA_SERVER_HEADER(SMESH_Filter)
35 #include <LDOM_Document.hxx>
36 #include <TopoDS_Shape.hxx>
38 #include "SALOME_GenericObj_i.hh"
39 #include "SMESH_ControlsDef.hxx"
48 // ================================================================================
54 Description : Predicate for verifying whether entiy belong to
55 specified geometrical support
57 class SMESH_I_EXPORT BelongToGeom: public virtual Predicate
62 virtual void SetMesh( const SMDS_Mesh* theMesh );
63 virtual void SetGeom( const TopoDS_Shape& theShape );
65 virtual bool IsSatisfy( long theElementId );
67 virtual void SetType( SMDSAbs_ElementType theType );
68 virtual SMDSAbs_ElementType GetType() const;
70 TopoDS_Shape GetShape();
71 const SMESHDS_Mesh* GetMeshDS() const;
73 void SetTolerance( double );
74 double GetTolerance();
80 const SMESHDS_Mesh* myMeshDS;
81 SMDSAbs_ElementType myType;
83 double myTolerance; // only if myIsSubshape == false
84 Controls::ElementsOnShapePtr myElementsOnShapePtr; // only if myIsSubshape == false
86 typedef boost::shared_ptr<BelongToGeom> BelongToGeomPtr;
90 Description : Predicate for verifying whether entiy lying or partially lying on
91 specified geometrical support
93 class SMESH_I_EXPORT LyingOnGeom: public virtual Predicate
98 virtual void SetMesh( const SMDS_Mesh* theMesh );
99 virtual void SetGeom( const TopoDS_Shape& theShape );
101 virtual bool IsSatisfy( long theElementId );
103 virtual void SetType( SMDSAbs_ElementType theType );
104 virtual SMDSAbs_ElementType GetType() const;
106 TopoDS_Shape GetShape();
107 const SMESHDS_Mesh* GetMeshDS() const;
109 void SetTolerance( double );
110 double GetTolerance();
112 virtual bool Contains( const SMESHDS_Mesh* theMeshDS,
113 const TopoDS_Shape& theShape,
114 const SMDS_MeshElement* theElem,
115 TopAbs_ShapeEnum theFindShapeEnum,
116 TopAbs_ShapeEnum theAvoidShapeEnum = TopAbs_SHAPE );
120 TopoDS_Shape myShape;
121 const SMESHDS_Mesh* myMeshDS;
122 SMDSAbs_ElementType myType;
124 double myTolerance; // only if myIsSubshape == false
125 Controls::ElementsOnShapePtr myElementsOnShapePtr; // only if myIsSubshape == false
127 typedef boost::shared_ptr<LyingOnGeom> LyingOnGeomPtr;
129 } // namespace Controls
131 // ================================================================================
138 Description : An abstact class for all functors
140 class SMESH_I_EXPORT Functor_i: public virtual POA_SMESH::Functor,
141 public virtual SALOME::GenericObj_i
144 void SetMesh( SMESH_Mesh_ptr theMesh );
145 Controls::FunctorPtr GetFunctor(){ return myFunctorPtr;}
146 ElementType GetElementType();
152 Controls::FunctorPtr myFunctorPtr;
156 Class : NumericalFunctor_i
157 Description : Base class for numerical functors
159 class SMESH_I_EXPORT NumericalFunctor_i: public virtual POA_SMESH::NumericalFunctor,
160 public virtual Functor_i
163 CORBA::Double GetValue( CORBA::Long theElementId );
164 SMESH::Histogram* GetHistogram(CORBA::Short nbIntervals, CORBA::Boolean isLogarithmic);
165 void SetPrecision( CORBA::Long thePrecision );
166 CORBA::Long GetPrecision();
167 Controls::NumericalFunctorPtr GetNumericalFunctor();
170 Controls::NumericalFunctorPtr myNumericalFunctorPtr;
175 Class : SMESH_MinimumAngleFunct
176 Description : Functor for calculation of minimum angle
178 class SMESH_I_EXPORT MinimumAngle_i: public virtual POA_SMESH::MinimumAngle,
179 public virtual NumericalFunctor_i
183 FunctorType GetFunctorType();
188 Class : AspectRatio_i
189 Description : Functor for calculating aspect ratio
191 class SMESH_I_EXPORT AspectRatio_i: public virtual POA_SMESH::AspectRatio,
192 public virtual NumericalFunctor_i
196 FunctorType GetFunctorType();
201 Class : AspectRatio3D_i
202 Description : Functor for calculating aspect ratio for 3D
204 class SMESH_I_EXPORT AspectRatio3D_i: public virtual POA_SMESH::AspectRatio3D,
205 public virtual NumericalFunctor_i
209 FunctorType GetFunctorType();
215 Description : Functor for calculating warping
217 class SMESH_I_EXPORT Warping_i: public virtual POA_SMESH::Warping,
218 public virtual NumericalFunctor_i
222 FunctorType GetFunctorType();
228 Description : Functor for calculating taper
230 class SMESH_I_EXPORT Taper_i: public virtual POA_SMESH::Taper,
231 public virtual NumericalFunctor_i
235 FunctorType GetFunctorType();
241 Description : Functor for calculating skew in degrees
243 class SMESH_I_EXPORT Skew_i: public virtual POA_SMESH::Skew,
244 public virtual NumericalFunctor_i
248 FunctorType GetFunctorType();
254 Description : Functor for calculating area
256 class SMESH_I_EXPORT Area_i: public virtual POA_SMESH::Area,
257 public virtual NumericalFunctor_i
261 FunctorType GetFunctorType();
267 Description : Functor for calculating volume of 3D element
269 class SMESH_I_EXPORT Volume3D_i: public virtual POA_SMESH::Volume3D,
270 public virtual NumericalFunctor_i
274 FunctorType GetFunctorType();
279 Class : MaxElementLength2D_i
280 Description : Functor for calculating maximum length of 2D element
282 class SMESH_I_EXPORT MaxElementLength2D_i: public virtual POA_SMESH::MaxElementLength2D,
283 public virtual NumericalFunctor_i
286 MaxElementLength2D_i();
287 FunctorType GetFunctorType();
292 Class : MaxElementLength3D_i
293 Description : Functor for calculating maximum length of 3D element
295 class SMESH_I_EXPORT MaxElementLength3D_i: public virtual POA_SMESH::MaxElementLength3D,
296 public virtual NumericalFunctor_i
299 MaxElementLength3D_i();
300 FunctorType GetFunctorType();
306 Description : Functor for calculating length of edge
308 class SMESH_I_EXPORT Length_i: public virtual POA_SMESH::Length,
309 public virtual NumericalFunctor_i
313 FunctorType GetFunctorType();
318 Description : Functor for calculating length of edge
320 class SMESH_I_EXPORT Length2D_i: public virtual POA_SMESH::Length2D,
321 public virtual NumericalFunctor_i
325 SMESH::Length2D::Values* GetValues();
326 FunctorType GetFunctorType();
329 Controls::Length2DPtr myLength2DPtr;
333 Class : MultiConnection_i
334 Description : Functor for calculating number of faces conneted to the edge
336 class SMESH_I_EXPORT MultiConnection_i: public virtual POA_SMESH::MultiConnection,
337 public virtual NumericalFunctor_i
341 FunctorType GetFunctorType();
345 Class : MultiConnection2D_i
346 Description : Functor for calculating number of faces conneted to the edge
348 class SMESH_I_EXPORT MultiConnection2D_i: public virtual POA_SMESH::MultiConnection2D,
349 public virtual NumericalFunctor_i
352 MultiConnection2D_i();
353 SMESH::MultiConnection2D::Values* GetValues();
354 FunctorType GetFunctorType();
357 Controls::MultiConnection2DPtr myMulticonnection2DPtr;
361 Class : BallDiameter_i
362 Description : Functor returning diameter of a ball element
364 class SMESH_I_EXPORT BallDiameter_i: public virtual POA_SMESH::BallDiameter,
365 public virtual NumericalFunctor_i
369 FunctorType GetFunctorType();
378 Description : Base class for all predicates
380 class SMESH_I_EXPORT Predicate_i: public virtual POA_SMESH::Predicate,
381 public virtual Functor_i
384 CORBA::Boolean IsSatisfy( CORBA::Long theElementId );
385 Controls::PredicatePtr GetPredicate();
388 Controls::PredicatePtr myPredicatePtr;
393 Class : BadOrientedVolume_i
394 Description : Verify whether a mesh volume is incorrectly oriented from
395 the point of view of MED convention
397 class SMESH_I_EXPORT BadOrientedVolume_i: public virtual POA_SMESH::BadOrientedVolume,
398 public virtual Predicate_i
401 BadOrientedVolume_i();
402 FunctorType GetFunctorType();
406 Class : BareBorderVolume_i
407 Description : Verify whether a mesh volume has a free facet without a face on it
409 class SMESH_I_EXPORT BareBorderVolume_i: public virtual POA_SMESH::BareBorderVolume,
410 public virtual Predicate_i
413 BareBorderVolume_i();
414 FunctorType GetFunctorType();
418 Class : BareBorderFace_i
419 Description : Verify whether a mesh face has a free border without an edge on it
421 class SMESH_I_EXPORT BareBorderFace_i: public virtual POA_SMESH::BareBorderFace,
422 public virtual Predicate_i
426 FunctorType GetFunctorType();
430 Class : OverConstrainedVolume_i
431 Description : Verify whether a mesh volume has only one facet shared with other volumes
433 class SMESH_I_EXPORT OverConstrainedVolume_i: public virtual POA_SMESH::OverConstrainedVolume,
434 public virtual Predicate_i
437 OverConstrainedVolume_i();
438 FunctorType GetFunctorType();
442 Class : OverConstrainedFace_i
443 Description : Verify whether a mesh face has only one border shared with other faces
445 class SMESH_I_EXPORT OverConstrainedFace_i: public virtual POA_SMESH::OverConstrainedFace,
446 public virtual Predicate_i
449 OverConstrainedFace_i();
450 FunctorType GetFunctorType();
454 Class : BelongToGeom_i
455 Description : Predicate for selection on geometrical support
457 class SMESH_I_EXPORT BelongToGeom_i: public virtual POA_SMESH::BelongToGeom,
458 public virtual Predicate_i
462 virtual ~BelongToGeom_i();
464 void SetGeom( GEOM::GEOM_Object_ptr theGeom );
465 void SetElementType( ElementType theType );
466 FunctorType GetFunctorType();
468 void SetGeom( const TopoDS_Shape& theShape );
470 void SetShapeName( const char* theName );
471 void SetShape( const char* theID, const char* theName );
472 char* GetShapeName();
475 void SetTolerance( CORBA::Double );
476 CORBA::Double GetTolerance();
479 Controls::BelongToGeomPtr myBelongToGeomPtr;
485 Class : BelongToSurface_i
486 Description : Verify whether mesh element lie in pointed Geom planar object
488 class SMESH_I_EXPORT BelongToSurface_i: public virtual POA_SMESH::BelongToSurface,
489 public virtual Predicate_i
492 BelongToSurface_i( const Handle(Standard_Type)& );
493 virtual ~BelongToSurface_i();
495 void SetSurface( GEOM::GEOM_Object_ptr theGeom, ElementType theType );
497 void SetShapeName( const char* theName, ElementType theType );
498 void SetShape( const char* theID, const char* theName, ElementType theType );
499 char* GetShapeName();
502 void SetTolerance( CORBA::Double );
503 CORBA::Double GetTolerance();
505 void SetUseBoundaries( CORBA::Boolean theUseBndRestrictions );
506 CORBA::Boolean GetUseBoundaries();
509 Controls::ElementsOnSurfacePtr myElementsOnSurfacePtr;
512 Handle(Standard_Type) mySurfaceType;
516 Class : BelongToPlane_i
517 Description : Verify whether mesh element lie in pointed Geom planar object
519 class SMESH_I_EXPORT BelongToPlane_i: public virtual POA_SMESH::BelongToPlane,
520 public virtual BelongToSurface_i
524 void SetPlane( GEOM::GEOM_Object_ptr theGeom, ElementType theType );
525 FunctorType GetFunctorType();
529 Class : BelongToCylinder_i
530 Description : Verify whether mesh element lie in pointed Geom cylindrical object
532 class SMESH_I_EXPORT BelongToCylinder_i: public virtual POA_SMESH::BelongToCylinder,
533 public virtual BelongToSurface_i
536 BelongToCylinder_i();
537 void SetCylinder( GEOM::GEOM_Object_ptr theGeom, ElementType theType );
538 FunctorType GetFunctorType();
542 Class : BelongToGenSurface_i
543 Description : Verify whether mesh element lie on pointed Geom surfasic object
545 class BelongToGenSurface_i: public virtual POA_SMESH::BelongToGenSurface,
546 public virtual BelongToSurface_i
549 BelongToGenSurface_i();
550 void SetSurface( GEOM::GEOM_Object_ptr theGeom, ElementType theType );
551 FunctorType GetFunctorType();
555 Class : LyingOnGeom_i
556 Description : Predicate for selection on geometrical support(lying or partially lying)
558 class SMESH_I_EXPORT LyingOnGeom_i: public virtual POA_SMESH::LyingOnGeom,
559 public virtual Predicate_i
563 virtual ~LyingOnGeom_i();
565 void SetGeom( GEOM::GEOM_Object_ptr theGeom );
566 void SetElementType( ElementType theType );
567 FunctorType GetFunctorType();
569 void SetGeom( const TopoDS_Shape& theShape );
571 void SetShapeName( const char* theName );
572 void SetShape( const char* theID, const char* theName );
573 char* GetShapeName();
576 void SetTolerance( CORBA::Double );
577 CORBA::Double GetTolerance();
580 Controls::LyingOnGeomPtr myLyingOnGeomPtr;
586 Class : FreeBorders_i
587 Description : Predicate for free borders
589 class SMESH_I_EXPORT FreeBorders_i: public virtual POA_SMESH::FreeBorders,
590 public virtual Predicate_i
594 FunctorType GetFunctorType();
600 Description : Predicate for free edges
602 class SMESH_I_EXPORT FreeEdges_i: public virtual POA_SMESH::FreeEdges,
603 public virtual Predicate_i
607 SMESH::FreeEdges::Borders* GetBorders();
608 FunctorType GetFunctorType();
611 Controls::FreeEdgesPtr myFreeEdgesPtr;
617 Description : Predicate for free faces
619 class SMESH_I_EXPORT FreeFaces_i: public virtual POA_SMESH::FreeFaces,
620 public virtual Predicate_i
624 FunctorType GetFunctorType();
630 Description : Predicate for free nodes
632 class SMESH_I_EXPORT FreeNodes_i: public virtual POA_SMESH::FreeNodes,
633 public virtual Predicate_i
637 FunctorType GetFunctorType();
643 Description : Predicate for equal nodes
645 class SMESH_I_EXPORT EqualNodes_i: public virtual POA_SMESH::EqualNodes,
646 public virtual Predicate_i
650 FunctorType GetFunctorType();
651 void SetTolerance( double );
652 double GetTolerance();
655 Controls::CoincidentNodesPtr myCoincidentNodesPtr;
659 Description : Predicate for equal edges
661 class SMESH_I_EXPORT EqualEdges_i: public virtual POA_SMESH::EqualEdges,
662 public virtual Predicate_i
666 FunctorType GetFunctorType();
670 Description : Predicate for equal Faces
672 class SMESH_I_EXPORT EqualFaces_i: public virtual POA_SMESH::EqualFaces,
673 public virtual Predicate_i
677 FunctorType GetFunctorType();
680 Class : EqualVolumes_i
681 Description : Predicate for equal Volumes
683 class SMESH_I_EXPORT EqualVolumes_i: public virtual POA_SMESH::EqualVolumes,
684 public virtual Predicate_i
688 FunctorType GetFunctorType();
694 Description : Predicate for Range of Ids
696 class SMESH_I_EXPORT RangeOfIds_i: public virtual POA_SMESH::RangeOfIds,
697 public virtual Predicate_i
701 void SetRange( const SMESH::long_array& theIds );
702 CORBA::Boolean SetRangeStr( const char* theRange );
705 void SetElementType( ElementType theType );
706 FunctorType GetFunctorType();
709 Controls::RangeOfIdsPtr myRangeOfIdsPtr;
713 Class : LinearOrQuadratic_i
714 Description : Verify whether a mesh element is linear
716 class SMESH_I_EXPORT LinearOrQuadratic_i: public virtual POA_SMESH::LinearOrQuadratic,
717 public virtual Predicate_i
720 LinearOrQuadratic_i();
721 FunctorType GetFunctorType();
722 void SetElementType( ElementType theType );
725 Controls::LinearOrQuadraticPtr myLinearOrQuadraticPtr;
730 Description : Functor for check color of group to whic mesh element belongs to
732 class SMESH_I_EXPORT GroupColor_i: public virtual POA_SMESH::GroupColor,
733 public virtual Predicate_i
737 FunctorType GetFunctorType();
739 void SetElementType( ElementType theType );
740 void SetColorStr( const char* theColor );
744 Controls::GroupColorPtr myGroupColorPtr;
748 Class : ElemGeomType_i
749 Description : Functor for check element geometry type
751 class SMESH_I_EXPORT ElemGeomType_i: public virtual POA_SMESH::ElemGeomType,
752 public virtual Predicate_i
756 FunctorType GetFunctorType();
758 void SetElementType ( ElementType theType );
759 void SetGeometryType( GeometryType theType );
760 GeometryType GetGeometryType() const;
763 Controls::ElemGeomTypePtr myElemGeomTypePtr;
767 Class : ElemEntityType_i
768 Description : Functor for check element entity type
770 class SMESH_I_EXPORT ElemEntityType_i: public virtual POA_SMESH::ElemEntityType,
771 public virtual Predicate_i
775 FunctorType GetFunctorType();
777 void SetElementType ( ElementType theType );
778 void SetEntityType( EntityType theEntityType );
779 EntityType GetEntityType() const;
782 Controls::ElemEntityTypePtr myElemEntityTypePtr;
786 Class : CoplanarFaces_i
787 Description : Returns true if a mesh face is a coplanar neighbour to a given one
789 class SMESH_I_EXPORT CoplanarFaces_i: public virtual POA_SMESH::CoplanarFaces,
790 public virtual Predicate_i
794 FunctorType GetFunctorType();
796 void SetFace ( CORBA::Long theFaceID );
797 void SetTolerance( CORBA::Double theToler );
798 char* GetFaceAsString () const;
799 CORBA::Long GetFace () const;
800 CORBA::Double GetTolerance () const;
802 Controls::CoplanarFacesPtr myCoplanarFacesPtr;
807 Description : Base class for comparators
809 class SMESH_I_EXPORT Comparator_i: public virtual POA_SMESH::Comparator,
810 public virtual Predicate_i
813 virtual ~Comparator_i();
815 virtual void SetMargin( CORBA::Double );
816 virtual void SetNumFunctor( NumericalFunctor_ptr );
818 Controls::ComparatorPtr GetComparator();
819 NumericalFunctor_i* GetNumFunctor_i();
820 CORBA::Double GetMargin();
825 Controls::ComparatorPtr myComparatorPtr;
826 NumericalFunctor_i* myNumericalFunctor;
832 Description : Comparator "<"
834 class SMESH_I_EXPORT LessThan_i: public virtual POA_SMESH::LessThan,
835 public virtual Comparator_i
839 FunctorType GetFunctorType();
845 Description : Comparator ">"
847 class SMESH_I_EXPORT MoreThan_i: public virtual POA_SMESH::MoreThan,
848 public virtual Comparator_i
852 FunctorType GetFunctorType();
858 Description : Comparator "="
860 class SMESH_I_EXPORT EqualTo_i: public virtual POA_SMESH::EqualTo,
861 public virtual Comparator_i
865 virtual void SetTolerance( CORBA::Double );
866 CORBA::Double GetTolerance();
867 FunctorType GetFunctorType();
870 Controls::EqualToPtr myEqualToPtr;
876 Description : Logical NOT predicate
878 class SMESH_I_EXPORT LogicalNOT_i: public virtual POA_SMESH::LogicalNOT,
879 public virtual Predicate_i
883 virtual ~LogicalNOT_i();
885 virtual void SetPredicate( Predicate_ptr );
886 Predicate_i* GetPredicate_i();
887 FunctorType GetFunctorType();
890 Controls::LogicalNOTPtr myLogicalNOTPtr;
891 Predicate_i* myPredicate;
896 Class : LogicalBinary_i
897 Description : Base class for binary logical predicate
899 class SMESH_I_EXPORT LogicalBinary_i: public virtual POA_SMESH::LogicalBinary,
900 public virtual Predicate_i
903 virtual ~LogicalBinary_i();
904 virtual void SetMesh( SMESH_Mesh_ptr theMesh );
905 virtual void SetPredicate1( Predicate_ptr );
906 virtual void SetPredicate2( Predicate_ptr );
908 Controls::LogicalBinaryPtr GetLogicalBinary();
909 Predicate_i* GetPredicate1_i();
910 Predicate_i* GetPredicate2_i();
915 Controls::LogicalBinaryPtr myLogicalBinaryPtr;
916 Predicate_i* myPredicate1;
917 Predicate_i* myPredicate2;
923 Description : Logical AND
925 class SMESH_I_EXPORT LogicalAND_i: public virtual POA_SMESH::LogicalAND,
926 public virtual LogicalBinary_i
930 FunctorType GetFunctorType();
936 Description : Logical OR
938 class SMESH_I_EXPORT LogicalOR_i: public virtual POA_SMESH::LogicalOR,
939 public virtual LogicalBinary_i
943 FunctorType GetFunctorType();
950 class SMESH_I_EXPORT Filter_i: public virtual POA_SMESH::Filter,
951 public virtual SALOME::GenericObj_i
959 SetPredicate( Predicate_ptr );
963 SetMesh( SMESH_Mesh_ptr );
967 GetElementsId( Predicate_i*,
969 Controls::Filter::TIdSequence& );
972 GetElementsId( Predicate_i*,
974 Controls::Filter::TIdSequence& );
978 GetElementsId( SMESH_Mesh_ptr );
986 GetCriteria( SMESH::Filter::Criteria_out theCriteria );
990 SetCriteria( const SMESH::Filter::Criteria& theCriteria );
996 Predicate_i* GetPredicate_i();
998 // =========================
999 // SMESH_IDSource interface
1000 // =========================
1001 virtual SMESH::long_array* GetIDs();
1002 virtual SMESH::long_array* GetMeshInfo();
1003 virtual SMESH::array_of_ElementType* GetTypes();
1004 virtual SMESH::SMESH_Mesh_ptr GetMesh();
1005 virtual bool IsMeshInfoCorrect() { return true; }
1008 * \brief Object notified on change of predicate
1010 struct TPredicateChangeWaiter
1012 virtual void PredicateChanged() = 0;
1014 void AddWaiter( TPredicateChangeWaiter* waiter );
1015 void RemoveWaiter( TPredicateChangeWaiter* waiter );
1018 Controls::Filter myFilter;
1019 Predicate_i* myPredicate;
1020 SMESH_Mesh_var myMesh;
1022 std::list<TPredicateChangeWaiter*> myWaiters;
1029 class SMESH_I_EXPORT FilterLibrary_i: public virtual POA_SMESH::FilterLibrary,
1030 public virtual SALOME::GenericObj_i
1033 FilterLibrary_i( const char* theFileName );
1037 Filter_ptr Copy( const char* theFilterName );
1039 CORBA::Boolean Add ( const char* theFilterName, Filter_ptr theFilter );
1040 CORBA::Boolean AddEmpty( const char* theFilterName, ElementType theType );
1041 CORBA::Boolean Delete ( const char* theFilterName );
1042 CORBA::Boolean Replace ( const char* theFilterName,
1043 const char* theNewName,
1044 Filter_ptr theFilter );
1046 CORBA::Boolean Save();
1047 CORBA::Boolean SaveAs( const char* aFileName );
1049 CORBA::Boolean IsPresent( const char* aFilterName );
1050 CORBA::Long NbFilters( ElementType );
1051 string_array* GetNames( ElementType );
1052 string_array* GetAllNames();
1053 void SetFileName( const char* theFileName );
1054 char* GetFileName();
1058 LDOM_Document myDoc;
1059 FilterManager_var myFilterMgr;
1067 class SMESH_I_EXPORT FilterManager_i: public virtual POA_SMESH::FilterManager,
1068 public virtual SALOME::GenericObj_i
1074 MinimumAngle_ptr CreateMinimumAngle();
1075 AspectRatio_ptr CreateAspectRatio();
1076 AspectRatio3D_ptr CreateAspectRatio3D();
1077 Warping_ptr CreateWarping();
1078 Taper_ptr CreateTaper();
1079 Skew_ptr CreateSkew();
1080 Area_ptr CreateArea();
1081 Volume3D_ptr CreateVolume3D();
1082 MaxElementLength2D_ptr CreateMaxElementLength2D();
1083 MaxElementLength3D_ptr CreateMaxElementLength3D();
1084 Length_ptr CreateLength();
1085 Length2D_ptr CreateLength2D();
1086 MultiConnection_ptr CreateMultiConnection();
1087 MultiConnection2D_ptr CreateMultiConnection2D();
1088 BallDiameter_ptr CreateBallDiameter();
1090 BelongToGeom_ptr CreateBelongToGeom();
1091 BelongToPlane_ptr CreateBelongToPlane();
1092 BelongToCylinder_ptr CreateBelongToCylinder();
1093 BelongToGenSurface_ptr CreateBelongToGenSurface();
1095 LyingOnGeom_ptr CreateLyingOnGeom();
1097 FreeBorders_ptr CreateFreeBorders();
1098 FreeEdges_ptr CreateFreeEdges();
1099 FreeNodes_ptr CreateFreeNodes();
1100 FreeFaces_ptr CreateFreeFaces();
1102 EqualNodes_ptr CreateEqualNodes();
1103 EqualEdges_ptr CreateEqualEdges();
1104 EqualFaces_ptr CreateEqualFaces();
1105 EqualVolumes_ptr CreateEqualVolumes();
1107 RangeOfIds_ptr CreateRangeOfIds();
1108 BadOrientedVolume_ptr CreateBadOrientedVolume();
1109 BareBorderFace_ptr CreateBareBorderFace();
1110 BareBorderVolume_ptr CreateBareBorderVolume();
1111 OverConstrainedFace_ptr CreateOverConstrainedFace();
1112 OverConstrainedVolume_ptr CreateOverConstrainedVolume();
1113 LinearOrQuadratic_ptr CreateLinearOrQuadratic();
1114 GroupColor_ptr CreateGroupColor();
1115 ElemGeomType_ptr CreateElemGeomType();
1116 ElemEntityType_ptr CreateElemEntityType();
1117 CoplanarFaces_ptr CreateCoplanarFaces();
1119 LessThan_ptr CreateLessThan();
1120 MoreThan_ptr CreateMoreThan();
1121 EqualTo_ptr CreateEqualTo();
1123 LogicalNOT_ptr CreateLogicalNOT();
1124 LogicalAND_ptr CreateLogicalAND();
1125 LogicalOR_ptr CreateLogicalOR();
1127 Filter_ptr CreateFilter();
1129 FilterLibrary_ptr LoadLibrary( const char* aFileName );
1130 FilterLibrary_ptr CreateLibrary();
1131 CORBA::Boolean DeleteLibrary( const char* aFileName );
1136 GetPredicate( SMESH::Predicate_ptr thePredicate );
1138 const char* FunctorTypeToString(SMESH::FunctorType ft);
1139 SMESH::FunctorType StringToFunctorType(const char* str);