1 // Copyright (C) 2007-2013 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
23 // SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
24 // File : SMESH_Filter_i.hxx
25 // Author : Alexey Petrov, OCC
28 #ifndef _SMESH_FILTER_I_HXX_
29 #define _SMESH_FILTER_I_HXX_
33 #include <SALOMEconfig.h>
34 #include CORBA_SERVER_HEADER(SMESH_Filter)
36 #include <LDOM_Document.hxx>
37 #include <TopoDS_Shape.hxx>
39 #include "SALOME_GenericObj_i.hh"
40 #include "SMESH_ControlsDef.hxx"
49 // ================================================================================
55 Description : Predicate for verifying whether entiy belong to
56 specified geometrical support
58 class SMESH_I_EXPORT BelongToGeom: public virtual Predicate
63 virtual void SetMesh( const SMDS_Mesh* theMesh );
64 virtual void SetGeom( const TopoDS_Shape& theShape );
66 virtual bool IsSatisfy( long theElementId );
68 virtual void SetType( SMDSAbs_ElementType theType );
69 virtual SMDSAbs_ElementType GetType() const;
71 TopoDS_Shape GetShape();
72 const SMESHDS_Mesh* GetMeshDS() const;
74 void SetTolerance( double );
75 double GetTolerance();
81 const SMESHDS_Mesh* myMeshDS;
82 SMDSAbs_ElementType myType;
84 double myTolerance; // only if myIsSubshape == false
85 Controls::ElementsOnShapePtr myElementsOnShapePtr; // only if myIsSubshape == false
87 typedef boost::shared_ptr<BelongToGeom> BelongToGeomPtr;
91 Description : Predicate for verifying whether entiy lying or partially lying on
92 specified geometrical support
94 class SMESH_I_EXPORT LyingOnGeom: public virtual Predicate
99 virtual void SetMesh( const SMDS_Mesh* theMesh );
100 virtual void SetGeom( const TopoDS_Shape& theShape );
102 virtual bool IsSatisfy( long theElementId );
104 virtual void SetType( SMDSAbs_ElementType theType );
105 virtual SMDSAbs_ElementType GetType() const;
107 TopoDS_Shape GetShape();
108 const SMESHDS_Mesh* GetMeshDS() const;
110 void SetTolerance( double );
111 double GetTolerance();
113 virtual bool Contains( const SMESHDS_Mesh* theMeshDS,
114 const TopoDS_Shape& theShape,
115 const SMDS_MeshElement* theElem,
116 TopAbs_ShapeEnum theFindShapeEnum,
117 TopAbs_ShapeEnum theAvoidShapeEnum = TopAbs_SHAPE );
121 TopoDS_Shape myShape;
122 const SMESHDS_Mesh* myMeshDS;
123 SMDSAbs_ElementType myType;
125 double myTolerance; // only if myIsSubshape == false
126 Controls::ElementsOnShapePtr myElementsOnShapePtr; // only if myIsSubshape == false
128 typedef boost::shared_ptr<LyingOnGeom> LyingOnGeomPtr;
130 } // namespace Controls
132 // ================================================================================
139 Description : An abstact class for all functors
141 class SMESH_I_EXPORT Functor_i: public virtual POA_SMESH::Functor,
142 public virtual SALOME::GenericObj_i
145 void SetMesh( SMESH_Mesh_ptr theMesh );
146 Controls::FunctorPtr GetFunctor(){ return myFunctorPtr;}
147 ElementType GetElementType();
153 Controls::FunctorPtr myFunctorPtr;
157 Class : NumericalFunctor_i
158 Description : Base class for numerical functors
160 class SMESH_I_EXPORT NumericalFunctor_i: public virtual POA_SMESH::NumericalFunctor,
161 public virtual Functor_i
164 CORBA::Double GetValue( CORBA::Long theElementId );
165 SMESH::Histogram* GetHistogram(CORBA::Short nbIntervals, CORBA::Boolean isLogarithmic);
166 void SetPrecision( CORBA::Long thePrecision );
167 CORBA::Long GetPrecision();
168 Controls::NumericalFunctorPtr GetNumericalFunctor();
171 Controls::NumericalFunctorPtr myNumericalFunctorPtr;
176 Class : SMESH_MinimumAngleFunct
177 Description : Functor for calculation of minimum angle
179 class SMESH_I_EXPORT MinimumAngle_i: public virtual POA_SMESH::MinimumAngle,
180 public virtual NumericalFunctor_i
184 FunctorType GetFunctorType();
189 Class : AspectRatio_i
190 Description : Functor for calculating aspect ratio
192 class SMESH_I_EXPORT AspectRatio_i: public virtual POA_SMESH::AspectRatio,
193 public virtual NumericalFunctor_i
197 FunctorType GetFunctorType();
202 Class : AspectRatio3D_i
203 Description : Functor for calculating aspect ratio for 3D
205 class SMESH_I_EXPORT AspectRatio3D_i: public virtual POA_SMESH::AspectRatio3D,
206 public virtual NumericalFunctor_i
210 FunctorType GetFunctorType();
216 Description : Functor for calculating warping
218 class SMESH_I_EXPORT Warping_i: public virtual POA_SMESH::Warping,
219 public virtual NumericalFunctor_i
223 FunctorType GetFunctorType();
229 Description : Functor for calculating taper
231 class SMESH_I_EXPORT Taper_i: public virtual POA_SMESH::Taper,
232 public virtual NumericalFunctor_i
236 FunctorType GetFunctorType();
242 Description : Functor for calculating skew in degrees
244 class SMESH_I_EXPORT Skew_i: public virtual POA_SMESH::Skew,
245 public virtual NumericalFunctor_i
249 FunctorType GetFunctorType();
255 Description : Functor for calculating area
257 class SMESH_I_EXPORT Area_i: public virtual POA_SMESH::Area,
258 public virtual NumericalFunctor_i
262 FunctorType GetFunctorType();
268 Description : Functor for calculating volume of 3D element
270 class SMESH_I_EXPORT Volume3D_i: public virtual POA_SMESH::Volume3D,
271 public virtual NumericalFunctor_i
275 FunctorType GetFunctorType();
280 Class : MaxElementLength2D_i
281 Description : Functor for calculating maximum length of 2D element
283 class SMESH_I_EXPORT MaxElementLength2D_i: public virtual POA_SMESH::MaxElementLength2D,
284 public virtual NumericalFunctor_i
287 MaxElementLength2D_i();
288 FunctorType GetFunctorType();
293 Class : MaxElementLength3D_i
294 Description : Functor for calculating maximum length of 3D element
296 class SMESH_I_EXPORT MaxElementLength3D_i: public virtual POA_SMESH::MaxElementLength3D,
297 public virtual NumericalFunctor_i
300 MaxElementLength3D_i();
301 FunctorType GetFunctorType();
307 Description : Functor for calculating length of edge
309 class SMESH_I_EXPORT Length_i: public virtual POA_SMESH::Length,
310 public virtual NumericalFunctor_i
314 FunctorType GetFunctorType();
319 Description : Functor for calculating length of edge
321 class SMESH_I_EXPORT Length2D_i: public virtual POA_SMESH::Length2D,
322 public virtual NumericalFunctor_i
326 SMESH::Length2D::Values* GetValues();
327 FunctorType GetFunctorType();
330 Controls::Length2DPtr myLength2DPtr;
334 Class : MultiConnection_i
335 Description : Functor for calculating number of faces conneted to the edge
337 class SMESH_I_EXPORT MultiConnection_i: public virtual POA_SMESH::MultiConnection,
338 public virtual NumericalFunctor_i
342 FunctorType GetFunctorType();
346 Class : MultiConnection2D_i
347 Description : Functor for calculating number of faces conneted to the edge
349 class SMESH_I_EXPORT MultiConnection2D_i: public virtual POA_SMESH::MultiConnection2D,
350 public virtual NumericalFunctor_i
353 MultiConnection2D_i();
354 SMESH::MultiConnection2D::Values* GetValues();
355 FunctorType GetFunctorType();
358 Controls::MultiConnection2DPtr myMulticonnection2DPtr;
362 Class : BallDiameter_i
363 Description : Functor returning diameter of a ball element
365 class SMESH_I_EXPORT BallDiameter_i: public virtual POA_SMESH::BallDiameter,
366 public virtual NumericalFunctor_i
370 FunctorType GetFunctorType();
379 Description : Base class for all predicates
381 class SMESH_I_EXPORT Predicate_i: public virtual POA_SMESH::Predicate,
382 public virtual Functor_i
385 CORBA::Boolean IsSatisfy( CORBA::Long theElementId );
386 Controls::PredicatePtr GetPredicate();
389 Controls::PredicatePtr myPredicatePtr;
394 Class : BadOrientedVolume_i
395 Description : Verify whether a mesh volume is incorrectly oriented from
396 the point of view of MED convention
398 class SMESH_I_EXPORT BadOrientedVolume_i: public virtual POA_SMESH::BadOrientedVolume,
399 public virtual Predicate_i
402 BadOrientedVolume_i();
403 FunctorType GetFunctorType();
407 Class : BareBorderVolume_i
408 Description : Verify whether a mesh volume has a free facet without a face on it
410 class SMESH_I_EXPORT BareBorderVolume_i: public virtual POA_SMESH::BareBorderVolume,
411 public virtual Predicate_i
414 BareBorderVolume_i();
415 FunctorType GetFunctorType();
419 Class : BareBorderFace_i
420 Description : Verify whether a mesh face has a free border without an edge on it
422 class SMESH_I_EXPORT BareBorderFace_i: public virtual POA_SMESH::BareBorderFace,
423 public virtual Predicate_i
427 FunctorType GetFunctorType();
431 Class : OverConstrainedVolume_i
432 Description : Verify whether a mesh volume has only one facet shared with other volumes
434 class SMESH_I_EXPORT OverConstrainedVolume_i: public virtual POA_SMESH::OverConstrainedVolume,
435 public virtual Predicate_i
438 OverConstrainedVolume_i();
439 FunctorType GetFunctorType();
443 Class : OverConstrainedFace_i
444 Description : Verify whether a mesh face has only one border shared with other faces
446 class SMESH_I_EXPORT OverConstrainedFace_i: public virtual POA_SMESH::OverConstrainedFace,
447 public virtual Predicate_i
450 OverConstrainedFace_i();
451 FunctorType GetFunctorType();
455 Class : BelongToGeom_i
456 Description : Predicate for selection on geometrical support
458 class SMESH_I_EXPORT BelongToGeom_i: public virtual POA_SMESH::BelongToGeom,
459 public virtual Predicate_i
463 virtual ~BelongToGeom_i();
465 void SetGeom( GEOM::GEOM_Object_ptr theGeom );
466 void SetElementType( ElementType theType );
467 FunctorType GetFunctorType();
469 void SetGeom( const TopoDS_Shape& theShape );
471 void SetShapeName( const char* theName );
472 void SetShape( const char* theID, const char* theName );
473 char* GetShapeName();
476 void SetTolerance( CORBA::Double );
477 CORBA::Double GetTolerance();
480 Controls::BelongToGeomPtr myBelongToGeomPtr;
486 Class : BelongToSurface_i
487 Description : Verify whether mesh element lie in pointed Geom planar object
489 class SMESH_I_EXPORT BelongToSurface_i: public virtual POA_SMESH::BelongToSurface,
490 public virtual Predicate_i
493 BelongToSurface_i( const Handle(Standard_Type)& );
494 virtual ~BelongToSurface_i();
496 void SetSurface( GEOM::GEOM_Object_ptr theGeom, ElementType theType );
498 void SetShapeName( const char* theName, ElementType theType );
499 void SetShape( const char* theID, const char* theName, ElementType theType );
500 char* GetShapeName();
503 void SetTolerance( CORBA::Double );
504 CORBA::Double GetTolerance();
506 void SetUseBoundaries( CORBA::Boolean theUseBndRestrictions );
507 CORBA::Boolean GetUseBoundaries();
510 Controls::ElementsOnSurfacePtr myElementsOnSurfacePtr;
513 Handle(Standard_Type) mySurfaceType;
517 Class : BelongToPlane_i
518 Description : Verify whether mesh element lie in pointed Geom planar object
520 class SMESH_I_EXPORT BelongToPlane_i: public virtual POA_SMESH::BelongToPlane,
521 public virtual BelongToSurface_i
525 void SetPlane( GEOM::GEOM_Object_ptr theGeom, ElementType theType );
526 FunctorType GetFunctorType();
530 Class : BelongToCylinder_i
531 Description : Verify whether mesh element lie in pointed Geom cylindrical object
533 class SMESH_I_EXPORT BelongToCylinder_i: public virtual POA_SMESH::BelongToCylinder,
534 public virtual BelongToSurface_i
537 BelongToCylinder_i();
538 void SetCylinder( GEOM::GEOM_Object_ptr theGeom, ElementType theType );
539 FunctorType GetFunctorType();
543 Class : BelongToGenSurface_i
544 Description : Verify whether mesh element lie on pointed Geom surfasic object
546 class BelongToGenSurface_i: public virtual POA_SMESH::BelongToGenSurface,
547 public virtual BelongToSurface_i
550 BelongToGenSurface_i();
551 void SetSurface( GEOM::GEOM_Object_ptr theGeom, ElementType theType );
552 FunctorType GetFunctorType();
556 Class : LyingOnGeom_i
557 Description : Predicate for selection on geometrical support(lying or partially lying)
559 class SMESH_I_EXPORT LyingOnGeom_i: public virtual POA_SMESH::LyingOnGeom,
560 public virtual Predicate_i
564 virtual ~LyingOnGeom_i();
566 void SetGeom( GEOM::GEOM_Object_ptr theGeom );
567 void SetElementType( ElementType theType );
568 FunctorType GetFunctorType();
570 void SetGeom( const TopoDS_Shape& theShape );
572 void SetShapeName( const char* theName );
573 void SetShape( const char* theID, const char* theName );
574 char* GetShapeName();
577 void SetTolerance( CORBA::Double );
578 CORBA::Double GetTolerance();
581 Controls::LyingOnGeomPtr myLyingOnGeomPtr;
587 Class : FreeBorders_i
588 Description : Predicate for free borders
590 class SMESH_I_EXPORT FreeBorders_i: public virtual POA_SMESH::FreeBorders,
591 public virtual Predicate_i
595 FunctorType GetFunctorType();
601 Description : Predicate for free edges
603 class SMESH_I_EXPORT FreeEdges_i: public virtual POA_SMESH::FreeEdges,
604 public virtual Predicate_i
608 SMESH::FreeEdges::Borders* GetBorders();
609 FunctorType GetFunctorType();
612 Controls::FreeEdgesPtr myFreeEdgesPtr;
618 Description : Predicate for free faces
620 class SMESH_I_EXPORT FreeFaces_i: public virtual POA_SMESH::FreeFaces,
621 public virtual Predicate_i
625 FunctorType GetFunctorType();
631 Description : Predicate for free nodes
633 class SMESH_I_EXPORT FreeNodes_i: public virtual POA_SMESH::FreeNodes,
634 public virtual Predicate_i
638 FunctorType GetFunctorType();
644 Description : Predicate for equal nodes
646 class SMESH_I_EXPORT EqualNodes_i: public virtual POA_SMESH::EqualNodes,
647 public virtual Predicate_i
651 FunctorType GetFunctorType();
652 void SetTolerance( double );
653 double GetTolerance();
656 Controls::CoincidentNodesPtr myCoincidentNodesPtr;
660 Description : Predicate for equal edges
662 class SMESH_I_EXPORT EqualEdges_i: public virtual POA_SMESH::EqualEdges,
663 public virtual Predicate_i
667 FunctorType GetFunctorType();
671 Description : Predicate for equal Faces
673 class SMESH_I_EXPORT EqualFaces_i: public virtual POA_SMESH::EqualFaces,
674 public virtual Predicate_i
678 FunctorType GetFunctorType();
681 Class : EqualVolumes_i
682 Description : Predicate for equal Volumes
684 class SMESH_I_EXPORT EqualVolumes_i: public virtual POA_SMESH::EqualVolumes,
685 public virtual Predicate_i
689 FunctorType GetFunctorType();
695 Description : Predicate for Range of Ids
697 class SMESH_I_EXPORT RangeOfIds_i: public virtual POA_SMESH::RangeOfIds,
698 public virtual Predicate_i
702 void SetRange( const SMESH::long_array& theIds );
703 CORBA::Boolean SetRangeStr( const char* theRange );
706 void SetElementType( ElementType theType );
707 FunctorType GetFunctorType();
710 Controls::RangeOfIdsPtr myRangeOfIdsPtr;
714 Class : LinearOrQuadratic_i
715 Description : Verify whether a mesh element is linear
717 class SMESH_I_EXPORT LinearOrQuadratic_i: public virtual POA_SMESH::LinearOrQuadratic,
718 public virtual Predicate_i
721 LinearOrQuadratic_i();
722 FunctorType GetFunctorType();
723 void SetElementType( ElementType theType );
726 Controls::LinearOrQuadraticPtr myLinearOrQuadraticPtr;
731 Description : Functor for check color of group to whic mesh element belongs to
733 class SMESH_I_EXPORT GroupColor_i: public virtual POA_SMESH::GroupColor,
734 public virtual Predicate_i
738 FunctorType GetFunctorType();
740 void SetElementType( ElementType theType );
741 void SetColorStr( const char* theColor );
745 Controls::GroupColorPtr myGroupColorPtr;
749 Class : ElemGeomType_i
750 Description : Functor for check element geometry type
752 class SMESH_I_EXPORT ElemGeomType_i: public virtual POA_SMESH::ElemGeomType,
753 public virtual Predicate_i
757 FunctorType GetFunctorType();
759 void SetElementType ( ElementType theType );
760 void SetGeometryType( GeometryType theType );
761 GeometryType GetGeometryType() const;
764 Controls::ElemGeomTypePtr myElemGeomTypePtr;
768 Class : ElemEntityType_i
769 Description : Functor for check element entity type
771 class SMESH_I_EXPORT ElemEntityType_i: public virtual POA_SMESH::ElemEntityType,
772 public virtual Predicate_i
776 FunctorType GetFunctorType();
778 void SetElementType ( ElementType theType );
779 void SetEntityType( EntityType theEntityType );
780 EntityType GetEntityType() const;
783 Controls::ElemEntityTypePtr myElemEntityTypePtr;
787 Class : CoplanarFaces_i
788 Description : Returns true if a mesh face is a coplanar neighbour to a given one
790 class SMESH_I_EXPORT CoplanarFaces_i: public virtual POA_SMESH::CoplanarFaces,
791 public virtual Predicate_i
795 FunctorType GetFunctorType();
797 void SetFace ( CORBA::Long theFaceID );
798 void SetTolerance( CORBA::Double theToler );
799 char* GetFaceAsString () const;
800 CORBA::Long GetFace () const;
801 CORBA::Double GetTolerance () const;
803 Controls::CoplanarFacesPtr myCoplanarFacesPtr;
808 Description : Base class for comparators
810 class SMESH_I_EXPORT Comparator_i: public virtual POA_SMESH::Comparator,
811 public virtual Predicate_i
814 virtual ~Comparator_i();
816 virtual void SetMargin( CORBA::Double );
817 virtual void SetNumFunctor( NumericalFunctor_ptr );
819 Controls::ComparatorPtr GetComparator();
820 NumericalFunctor_i* GetNumFunctor_i();
821 CORBA::Double GetMargin();
826 Controls::ComparatorPtr myComparatorPtr;
827 NumericalFunctor_i* myNumericalFunctor;
833 Description : Comparator "<"
835 class SMESH_I_EXPORT LessThan_i: public virtual POA_SMESH::LessThan,
836 public virtual Comparator_i
840 FunctorType GetFunctorType();
846 Description : Comparator ">"
848 class SMESH_I_EXPORT MoreThan_i: public virtual POA_SMESH::MoreThan,
849 public virtual Comparator_i
853 FunctorType GetFunctorType();
859 Description : Comparator "="
861 class SMESH_I_EXPORT EqualTo_i: public virtual POA_SMESH::EqualTo,
862 public virtual Comparator_i
866 virtual void SetTolerance( CORBA::Double );
867 CORBA::Double GetTolerance();
868 FunctorType GetFunctorType();
871 Controls::EqualToPtr myEqualToPtr;
877 Description : Logical NOT predicate
879 class SMESH_I_EXPORT LogicalNOT_i: public virtual POA_SMESH::LogicalNOT,
880 public virtual Predicate_i
884 virtual ~LogicalNOT_i();
886 virtual void SetPredicate( Predicate_ptr );
887 Predicate_i* GetPredicate_i();
888 FunctorType GetFunctorType();
891 Controls::LogicalNOTPtr myLogicalNOTPtr;
892 Predicate_i* myPredicate;
897 Class : LogicalBinary_i
898 Description : Base class for binary logical predicate
900 class SMESH_I_EXPORT LogicalBinary_i: public virtual POA_SMESH::LogicalBinary,
901 public virtual Predicate_i
904 virtual ~LogicalBinary_i();
905 virtual void SetMesh( SMESH_Mesh_ptr theMesh );
906 virtual void SetPredicate1( Predicate_ptr );
907 virtual void SetPredicate2( Predicate_ptr );
909 Controls::LogicalBinaryPtr GetLogicalBinary();
910 Predicate_i* GetPredicate1_i();
911 Predicate_i* GetPredicate2_i();
916 Controls::LogicalBinaryPtr myLogicalBinaryPtr;
917 Predicate_i* myPredicate1;
918 Predicate_i* myPredicate2;
924 Description : Logical AND
926 class SMESH_I_EXPORT LogicalAND_i: public virtual POA_SMESH::LogicalAND,
927 public virtual LogicalBinary_i
931 FunctorType GetFunctorType();
937 Description : Logical OR
939 class SMESH_I_EXPORT LogicalOR_i: public virtual POA_SMESH::LogicalOR,
940 public virtual LogicalBinary_i
944 FunctorType GetFunctorType();
951 class SMESH_I_EXPORT Filter_i: public virtual POA_SMESH::Filter,
952 public virtual SALOME::GenericObj_i
960 SetPredicate( Predicate_ptr );
964 SetMesh( SMESH_Mesh_ptr );
968 GetElementsId( Predicate_i*,
970 Controls::Filter::TIdSequence& );
973 GetElementsId( Predicate_i*,
975 Controls::Filter::TIdSequence& );
979 GetElementsId( SMESH_Mesh_ptr );
987 GetCriteria( SMESH::Filter::Criteria_out theCriteria );
991 SetCriteria( const SMESH::Filter::Criteria& theCriteria );
997 Predicate_i* GetPredicate_i();
999 // =========================
1000 // SMESH_IDSource interface
1001 // =========================
1002 virtual SMESH::long_array* GetIDs();
1003 virtual SMESH::long_array* GetMeshInfo();
1004 virtual SMESH::array_of_ElementType* GetTypes();
1005 virtual SMESH::SMESH_Mesh_ptr GetMesh();
1006 virtual bool IsMeshInfoCorrect() { return true; }
1009 * \brief Object notified on change of predicate
1011 struct TPredicateChangeWaiter
1013 virtual void PredicateChanged() = 0;
1015 void AddWaiter( TPredicateChangeWaiter* waiter );
1016 void RemoveWaiter( TPredicateChangeWaiter* waiter );
1019 Controls::Filter myFilter;
1020 Predicate_i* myPredicate;
1021 SMESH_Mesh_var myMesh;
1023 std::list<TPredicateChangeWaiter*> myWaiters;
1030 class SMESH_I_EXPORT FilterLibrary_i: public virtual POA_SMESH::FilterLibrary,
1031 public virtual SALOME::GenericObj_i
1034 FilterLibrary_i( const char* theFileName );
1038 Filter_ptr Copy( const char* theFilterName );
1040 CORBA::Boolean Add ( const char* theFilterName, Filter_ptr theFilter );
1041 CORBA::Boolean AddEmpty( const char* theFilterName, ElementType theType );
1042 CORBA::Boolean Delete ( const char* theFilterName );
1043 CORBA::Boolean Replace ( const char* theFilterName,
1044 const char* theNewName,
1045 Filter_ptr theFilter );
1047 CORBA::Boolean Save();
1048 CORBA::Boolean SaveAs( const char* aFileName );
1050 CORBA::Boolean IsPresent( const char* aFilterName );
1051 CORBA::Long NbFilters( ElementType );
1052 string_array* GetNames( ElementType );
1053 string_array* GetAllNames();
1054 void SetFileName( const char* theFileName );
1055 char* GetFileName();
1059 LDOM_Document myDoc;
1060 FilterManager_var myFilterMgr;
1068 class SMESH_I_EXPORT FilterManager_i: public virtual POA_SMESH::FilterManager,
1069 public virtual SALOME::GenericObj_i
1075 MinimumAngle_ptr CreateMinimumAngle();
1076 AspectRatio_ptr CreateAspectRatio();
1077 AspectRatio3D_ptr CreateAspectRatio3D();
1078 Warping_ptr CreateWarping();
1079 Taper_ptr CreateTaper();
1080 Skew_ptr CreateSkew();
1081 Area_ptr CreateArea();
1082 Volume3D_ptr CreateVolume3D();
1083 MaxElementLength2D_ptr CreateMaxElementLength2D();
1084 MaxElementLength3D_ptr CreateMaxElementLength3D();
1085 Length_ptr CreateLength();
1086 Length2D_ptr CreateLength2D();
1087 MultiConnection_ptr CreateMultiConnection();
1088 MultiConnection2D_ptr CreateMultiConnection2D();
1089 BallDiameter_ptr CreateBallDiameter();
1091 BelongToGeom_ptr CreateBelongToGeom();
1092 BelongToPlane_ptr CreateBelongToPlane();
1093 BelongToCylinder_ptr CreateBelongToCylinder();
1094 BelongToGenSurface_ptr CreateBelongToGenSurface();
1096 LyingOnGeom_ptr CreateLyingOnGeom();
1098 FreeBorders_ptr CreateFreeBorders();
1099 FreeEdges_ptr CreateFreeEdges();
1100 FreeNodes_ptr CreateFreeNodes();
1101 FreeFaces_ptr CreateFreeFaces();
1103 EqualNodes_ptr CreateEqualNodes();
1104 EqualEdges_ptr CreateEqualEdges();
1105 EqualFaces_ptr CreateEqualFaces();
1106 EqualVolumes_ptr CreateEqualVolumes();
1108 RangeOfIds_ptr CreateRangeOfIds();
1109 BadOrientedVolume_ptr CreateBadOrientedVolume();
1110 BareBorderFace_ptr CreateBareBorderFace();
1111 BareBorderVolume_ptr CreateBareBorderVolume();
1112 OverConstrainedFace_ptr CreateOverConstrainedFace();
1113 OverConstrainedVolume_ptr CreateOverConstrainedVolume();
1114 LinearOrQuadratic_ptr CreateLinearOrQuadratic();
1115 GroupColor_ptr CreateGroupColor();
1116 ElemGeomType_ptr CreateElemGeomType();
1117 ElemEntityType_ptr CreateElemEntityType();
1118 CoplanarFaces_ptr CreateCoplanarFaces();
1120 LessThan_ptr CreateLessThan();
1121 MoreThan_ptr CreateMoreThan();
1122 EqualTo_ptr CreateEqualTo();
1124 LogicalNOT_ptr CreateLogicalNOT();
1125 LogicalAND_ptr CreateLogicalAND();
1126 LogicalOR_ptr CreateLogicalOR();
1128 Filter_ptr CreateFilter();
1130 FilterLibrary_ptr LoadLibrary( const char* aFileName );
1131 FilterLibrary_ptr CreateLibrary();
1132 CORBA::Boolean DeleteLibrary( const char* aFileName );
1137 GetPredicate( SMESH::Predicate_ptr thePredicate );
1139 const char* FunctorTypeToString(SMESH::FunctorType ft);
1140 SMESH::FunctorType StringToFunctorType(const char* str);