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
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);
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;
335 Class : MultiConnection_i
336 Description : Functor for calculating number of faces conneted to the edge
338 class SMESH_I_EXPORT MultiConnection_i: public virtual POA_SMESH::MultiConnection,
339 public virtual NumericalFunctor_i
343 FunctorType GetFunctorType();
347 Class : MultiConnection2D_i
348 Description : Functor for calculating number of faces conneted to the edge
350 class SMESH_I_EXPORT MultiConnection2D_i: public virtual POA_SMESH::MultiConnection2D,
351 public virtual NumericalFunctor_i
354 MultiConnection2D_i();
355 SMESH::MultiConnection2D::Values* GetValues();
356 FunctorType GetFunctorType();
359 Controls::MultiConnection2DPtr myMulticonnection2DPtr;
363 Class : BallDiameter_i
364 Description : Functor returning diameter of a ball element
366 class SMESH_I_EXPORT BallDiameter_i: public virtual POA_SMESH::BallDiameter,
367 public virtual NumericalFunctor_i
371 FunctorType GetFunctorType();
380 Description : Base class for all predicates
382 class SMESH_I_EXPORT Predicate_i: public virtual POA_SMESH::Predicate,
383 public virtual Functor_i
386 CORBA::Boolean IsSatisfy( CORBA::Long theElementId );
387 Controls::PredicatePtr GetPredicate();
390 Controls::PredicatePtr myPredicatePtr;
395 Class : BadOrientedVolume_i
396 Description : Verify whether a mesh volume is incorrectly oriented from
397 the point of view of MED convention
399 class SMESH_I_EXPORT BadOrientedVolume_i: public virtual POA_SMESH::BadOrientedVolume,
400 public virtual Predicate_i
403 BadOrientedVolume_i();
404 FunctorType GetFunctorType();
408 Class : BareBorderVolume_i
409 Description : Verify whether a mesh volume has a free facet without a face on it
411 class SMESH_I_EXPORT BareBorderVolume_i: public virtual POA_SMESH::BareBorderVolume,
412 public virtual Predicate_i
415 BareBorderVolume_i();
416 FunctorType GetFunctorType();
420 Class : BareBorderFace_i
421 Description : Verify whether a mesh face has a free border without an edge on it
423 class SMESH_I_EXPORT BareBorderFace_i: public virtual POA_SMESH::BareBorderFace,
424 public virtual Predicate_i
428 FunctorType GetFunctorType();
432 Class : OverConstrainedVolume_i
433 Description : Verify whether a mesh volume has only one facet shared with other volumes
435 class SMESH_I_EXPORT OverConstrainedVolume_i: public virtual POA_SMESH::OverConstrainedVolume,
436 public virtual Predicate_i
439 OverConstrainedVolume_i();
440 FunctorType GetFunctorType();
444 Class : OverConstrainedFace_i
445 Description : Verify whether a mesh face has only one border shared with other faces
447 class SMESH_I_EXPORT OverConstrainedFace_i: public virtual POA_SMESH::OverConstrainedFace,
448 public virtual Predicate_i
451 OverConstrainedFace_i();
452 FunctorType GetFunctorType();
456 Class : BelongToGeom_i
457 Description : Predicate for selection on geometrical support
459 class SMESH_I_EXPORT BelongToGeom_i: public virtual POA_SMESH::BelongToGeom,
460 public virtual Predicate_i
464 virtual ~BelongToGeom_i();
466 void SetGeom( GEOM::GEOM_Object_ptr theGeom );
467 void SetElementType( ElementType theType );
468 FunctorType GetFunctorType();
470 void SetGeom( const TopoDS_Shape& theShape );
472 void SetShapeName( const char* theName );
473 void SetShape( const char* theID, const char* theName );
474 char* GetShapeName();
477 void SetTolerance( CORBA::Double );
478 CORBA::Double GetTolerance();
481 Controls::BelongToGeomPtr myBelongToGeomPtr;
487 Class : BelongToSurface_i
488 Description : Verify whether mesh element lie in pointed Geom planar object
490 class SMESH_I_EXPORT BelongToSurface_i: public virtual POA_SMESH::BelongToSurface,
491 public virtual Predicate_i
494 BelongToSurface_i( const Handle(Standard_Type)& );
495 virtual ~BelongToSurface_i();
497 void SetSurface( GEOM::GEOM_Object_ptr theGeom, ElementType theType );
499 void SetShapeName( const char* theName, ElementType theType );
500 void SetShape( const char* theID, const char* theName, ElementType theType );
501 char* GetShapeName();
504 void SetTolerance( CORBA::Double );
505 CORBA::Double GetTolerance();
507 void SetUseBoundaries( CORBA::Boolean theUseBndRestrictions );
508 CORBA::Boolean GetUseBoundaries();
511 Controls::ElementsOnSurfacePtr myElementsOnSurfacePtr;
514 Handle(Standard_Type) mySurfaceType;
518 Class : BelongToPlane_i
519 Description : Verify whether mesh element lie in pointed Geom planar object
521 class SMESH_I_EXPORT BelongToPlane_i: public virtual POA_SMESH::BelongToPlane,
522 public virtual BelongToSurface_i
526 void SetPlane( GEOM::GEOM_Object_ptr theGeom, ElementType theType );
527 FunctorType GetFunctorType();
531 Class : BelongToCylinder_i
532 Description : Verify whether mesh element lie in pointed Geom cylindrical object
534 class SMESH_I_EXPORT BelongToCylinder_i: public virtual POA_SMESH::BelongToCylinder,
535 public virtual BelongToSurface_i
538 BelongToCylinder_i();
539 void SetCylinder( GEOM::GEOM_Object_ptr theGeom, ElementType theType );
540 FunctorType GetFunctorType();
544 Class : BelongToGenSurface_i
545 Description : Verify whether mesh element lie on pointed Geom surfasic object
547 class BelongToGenSurface_i: public virtual POA_SMESH::BelongToGenSurface,
548 public virtual BelongToSurface_i
551 BelongToGenSurface_i();
552 void SetSurface( GEOM::GEOM_Object_ptr theGeom, ElementType theType );
553 FunctorType GetFunctorType();
557 Class : LyingOnGeom_i
558 Description : Predicate for selection on geometrical support(lying or partially lying)
560 class SMESH_I_EXPORT LyingOnGeom_i: public virtual POA_SMESH::LyingOnGeom,
561 public virtual Predicate_i
565 virtual ~LyingOnGeom_i();
567 void SetGeom( GEOM::GEOM_Object_ptr theGeom );
568 void SetElementType( ElementType theType );
569 FunctorType GetFunctorType();
571 void SetGeom( const TopoDS_Shape& theShape );
573 void SetShapeName( const char* theName );
574 void SetShape( const char* theID, const char* theName );
575 char* GetShapeName();
578 void SetTolerance( CORBA::Double );
579 CORBA::Double GetTolerance();
582 Controls::LyingOnGeomPtr myLyingOnGeomPtr;
588 Class : FreeBorders_i
589 Description : Predicate for free borders
591 class SMESH_I_EXPORT FreeBorders_i: public virtual POA_SMESH::FreeBorders,
592 public virtual Predicate_i
596 FunctorType GetFunctorType();
602 Description : Predicate for free edges
604 class SMESH_I_EXPORT FreeEdges_i: public virtual POA_SMESH::FreeEdges,
605 public virtual Predicate_i
609 SMESH::FreeEdges::Borders* GetBorders();
610 FunctorType GetFunctorType();
613 Controls::FreeEdgesPtr myFreeEdgesPtr;
619 Description : Predicate for free faces
621 class SMESH_I_EXPORT FreeFaces_i: public virtual POA_SMESH::FreeFaces,
622 public virtual Predicate_i
626 FunctorType GetFunctorType();
632 Description : Predicate for free nodes
634 class SMESH_I_EXPORT FreeNodes_i: public virtual POA_SMESH::FreeNodes,
635 public virtual Predicate_i
639 FunctorType GetFunctorType();
645 Description : Predicate for equal nodes
647 class SMESH_I_EXPORT EqualNodes_i: public virtual POA_SMESH::EqualNodes,
648 public virtual Predicate_i
652 FunctorType GetFunctorType();
653 void SetTolerance( double );
654 double GetTolerance();
657 Controls::CoincidentNodesPtr myCoincidentNodesPtr;
661 Description : Predicate for equal edges
663 class SMESH_I_EXPORT EqualEdges_i: public virtual POA_SMESH::EqualEdges,
664 public virtual Predicate_i
668 FunctorType GetFunctorType();
672 Description : Predicate for equal Faces
674 class SMESH_I_EXPORT EqualFaces_i: public virtual POA_SMESH::EqualFaces,
675 public virtual Predicate_i
679 FunctorType GetFunctorType();
682 Class : EqualVolumes_i
683 Description : Predicate for equal Volumes
685 class SMESH_I_EXPORT EqualVolumes_i: public virtual POA_SMESH::EqualVolumes,
686 public virtual Predicate_i
690 FunctorType GetFunctorType();
696 Description : Predicate for Range of Ids
698 class SMESH_I_EXPORT RangeOfIds_i: public virtual POA_SMESH::RangeOfIds,
699 public virtual Predicate_i
703 void SetRange( const SMESH::long_array& theIds );
704 CORBA::Boolean SetRangeStr( const char* theRange );
707 void SetElementType( ElementType theType );
708 FunctorType GetFunctorType();
711 Controls::RangeOfIdsPtr myRangeOfIdsPtr;
715 Class : LinearOrQuadratic_i
716 Description : Verify whether a mesh element is linear
718 class SMESH_I_EXPORT LinearOrQuadratic_i: public virtual POA_SMESH::LinearOrQuadratic,
719 public virtual Predicate_i
722 LinearOrQuadratic_i();
723 FunctorType GetFunctorType();
724 void SetElementType( ElementType theType );
727 Controls::LinearOrQuadraticPtr myLinearOrQuadraticPtr;
732 Description : Functor for check color of group to whic mesh element belongs to
734 class SMESH_I_EXPORT GroupColor_i: public virtual POA_SMESH::GroupColor,
735 public virtual Predicate_i
739 FunctorType GetFunctorType();
741 void SetElementType( ElementType theType );
742 void SetColorStr( const char* theColor );
746 Controls::GroupColorPtr myGroupColorPtr;
750 Class : ElemGeomType_i
751 Description : Functor for check element geometry type
753 class SMESH_I_EXPORT ElemGeomType_i: public virtual POA_SMESH::ElemGeomType,
754 public virtual Predicate_i
758 FunctorType GetFunctorType();
760 void SetElementType ( ElementType theType );
761 void SetGeometryType( GeometryType theType );
762 GeometryType GetGeometryType() const;
765 Controls::ElemGeomTypePtr myElemGeomTypePtr;
769 Class : CoplanarFaces_i
770 Description : Returns true if a mesh face is a coplanar neighbour to a given one
772 class SMESH_I_EXPORT CoplanarFaces_i: public virtual POA_SMESH::CoplanarFaces,
773 public virtual Predicate_i
777 FunctorType GetFunctorType();
779 void SetFace ( CORBA::Long theFaceID );
780 void SetTolerance( CORBA::Double theToler );
781 char* GetFaceAsString () const;
782 CORBA::Long GetFace () const;
783 CORBA::Double GetTolerance () const;
785 Controls::CoplanarFacesPtr myCoplanarFacesPtr;
790 Description : Base class for comparators
792 class SMESH_I_EXPORT Comparator_i: public virtual POA_SMESH::Comparator,
793 public virtual Predicate_i
796 virtual ~Comparator_i();
798 virtual void SetMargin( CORBA::Double );
799 virtual void SetNumFunctor( NumericalFunctor_ptr );
801 Controls::ComparatorPtr GetComparator();
802 NumericalFunctor_i* GetNumFunctor_i();
803 CORBA::Double GetMargin();
808 Controls::ComparatorPtr myComparatorPtr;
809 NumericalFunctor_i* myNumericalFunctor;
815 Description : Comparator "<"
817 class SMESH_I_EXPORT LessThan_i: public virtual POA_SMESH::LessThan,
818 public virtual Comparator_i
822 FunctorType GetFunctorType();
828 Description : Comparator ">"
830 class SMESH_I_EXPORT MoreThan_i: public virtual POA_SMESH::MoreThan,
831 public virtual Comparator_i
835 FunctorType GetFunctorType();
841 Description : Comparator "="
843 class SMESH_I_EXPORT EqualTo_i: public virtual POA_SMESH::EqualTo,
844 public virtual Comparator_i
848 virtual void SetTolerance( CORBA::Double );
849 CORBA::Double GetTolerance();
850 FunctorType GetFunctorType();
853 Controls::EqualToPtr myEqualToPtr;
859 Description : Logical NOT predicate
861 class SMESH_I_EXPORT LogicalNOT_i: public virtual POA_SMESH::LogicalNOT,
862 public virtual Predicate_i
866 virtual ~LogicalNOT_i();
868 virtual void SetPredicate( Predicate_ptr );
869 Predicate_i* GetPredicate_i();
870 FunctorType GetFunctorType();
873 Controls::LogicalNOTPtr myLogicalNOTPtr;
874 Predicate_i* myPredicate;
879 Class : LogicalBinary_i
880 Description : Base class for binary logical predicate
882 class SMESH_I_EXPORT LogicalBinary_i: public virtual POA_SMESH::LogicalBinary,
883 public virtual Predicate_i
886 virtual ~LogicalBinary_i();
887 virtual void SetMesh( SMESH_Mesh_ptr theMesh );
888 virtual void SetPredicate1( Predicate_ptr );
889 virtual void SetPredicate2( Predicate_ptr );
891 Controls::LogicalBinaryPtr GetLogicalBinary();
892 Predicate_i* GetPredicate1_i();
893 Predicate_i* GetPredicate2_i();
898 Controls::LogicalBinaryPtr myLogicalBinaryPtr;
899 Predicate_i* myPredicate1;
900 Predicate_i* myPredicate2;
906 Description : Logical AND
908 class SMESH_I_EXPORT LogicalAND_i: public virtual POA_SMESH::LogicalAND,
909 public virtual LogicalBinary_i
913 FunctorType GetFunctorType();
919 Description : Logical OR
921 class SMESH_I_EXPORT LogicalOR_i: public virtual POA_SMESH::LogicalOR,
922 public virtual LogicalBinary_i
926 FunctorType GetFunctorType();
933 class SMESH_I_EXPORT Filter_i: public virtual POA_SMESH::Filter,
934 public virtual SALOME::GenericObj_i
942 SetPredicate( Predicate_ptr );
946 SetMesh( SMESH_Mesh_ptr );
950 GetElementsId( Predicate_i*,
952 Controls::Filter::TIdSequence& );
955 GetElementsId( Predicate_i*,
957 Controls::Filter::TIdSequence& );
961 GetElementsId( SMESH_Mesh_ptr );
969 GetCriteria( SMESH::Filter::Criteria_out theCriteria );
973 SetCriteria( const SMESH::Filter::Criteria& theCriteria );
979 Predicate_i* GetPredicate_i();
981 // =========================
982 // SMESH_IDSource interface
983 // =========================
984 virtual SMESH::long_array* GetIDs();
985 virtual SMESH::long_array* GetMeshInfo();
986 virtual SMESH::array_of_ElementType* GetTypes();
987 virtual SMESH::SMESH_Mesh_ptr GetMesh();
988 virtual bool IsMeshInfoCorrect() { return true; }
991 * \brief Object notified on change of predicate
993 struct TPredicateChangeWaiter
995 virtual void PredicateChanged() = 0;
997 void AddWaiter( TPredicateChangeWaiter* waiter );
998 void RemoveWaiter( TPredicateChangeWaiter* waiter );
1001 Controls::Filter myFilter;
1002 Predicate_i* myPredicate;
1003 SMESH_Mesh_var myMesh;
1005 std::list<TPredicateChangeWaiter*> myWaiters;
1012 class SMESH_I_EXPORT FilterLibrary_i: public virtual POA_SMESH::FilterLibrary,
1013 public virtual SALOME::GenericObj_i
1016 FilterLibrary_i( const char* theFileName );
1020 Filter_ptr Copy( const char* theFilterName );
1022 CORBA::Boolean Add ( const char* theFilterName, Filter_ptr theFilter );
1023 CORBA::Boolean AddEmpty( const char* theFilterName, ElementType theType );
1024 CORBA::Boolean Delete ( const char* theFilterName );
1025 CORBA::Boolean Replace ( const char* theFilterName,
1026 const char* theNewName,
1027 Filter_ptr theFilter );
1029 CORBA::Boolean Save();
1030 CORBA::Boolean SaveAs( const char* aFileName );
1032 CORBA::Boolean IsPresent( const char* aFilterName );
1033 CORBA::Long NbFilters( ElementType );
1034 string_array* GetNames( ElementType );
1035 string_array* GetAllNames();
1036 void SetFileName( const char* theFileName );
1037 char* GetFileName();
1041 LDOM_Document myDoc;
1042 FilterManager_var myFilterMgr;
1050 class SMESH_I_EXPORT FilterManager_i: public virtual POA_SMESH::FilterManager,
1051 public virtual SALOME::GenericObj_i
1057 MinimumAngle_ptr CreateMinimumAngle();
1058 AspectRatio_ptr CreateAspectRatio();
1059 AspectRatio3D_ptr CreateAspectRatio3D();
1060 Warping_ptr CreateWarping();
1061 Taper_ptr CreateTaper();
1062 Skew_ptr CreateSkew();
1063 Area_ptr CreateArea();
1064 Volume3D_ptr CreateVolume3D();
1065 MaxElementLength2D_ptr CreateMaxElementLength2D();
1066 MaxElementLength3D_ptr CreateMaxElementLength3D();
1067 Length_ptr CreateLength();
1068 Length2D_ptr CreateLength2D();
1069 MultiConnection_ptr CreateMultiConnection();
1070 MultiConnection2D_ptr CreateMultiConnection2D();
1071 BallDiameter_ptr CreateBallDiameter();
1073 BelongToGeom_ptr CreateBelongToGeom();
1074 BelongToPlane_ptr CreateBelongToPlane();
1075 BelongToCylinder_ptr CreateBelongToCylinder();
1076 BelongToGenSurface_ptr CreateBelongToGenSurface();
1078 LyingOnGeom_ptr CreateLyingOnGeom();
1080 FreeBorders_ptr CreateFreeBorders();
1081 FreeEdges_ptr CreateFreeEdges();
1082 FreeNodes_ptr CreateFreeNodes();
1083 FreeFaces_ptr CreateFreeFaces();
1085 EqualNodes_ptr CreateEqualNodes();
1086 EqualEdges_ptr CreateEqualEdges();
1087 EqualFaces_ptr CreateEqualFaces();
1088 EqualVolumes_ptr CreateEqualVolumes();
1090 RangeOfIds_ptr CreateRangeOfIds();
1091 BadOrientedVolume_ptr CreateBadOrientedVolume();
1092 BareBorderFace_ptr CreateBareBorderFace();
1093 BareBorderVolume_ptr CreateBareBorderVolume();
1094 OverConstrainedFace_ptr CreateOverConstrainedFace();
1095 OverConstrainedVolume_ptr CreateOverConstrainedVolume();
1096 LinearOrQuadratic_ptr CreateLinearOrQuadratic();
1097 GroupColor_ptr CreateGroupColor();
1098 ElemGeomType_ptr CreateElemGeomType();
1099 CoplanarFaces_ptr CreateCoplanarFaces();
1101 LessThan_ptr CreateLessThan();
1102 MoreThan_ptr CreateMoreThan();
1103 EqualTo_ptr CreateEqualTo();
1105 LogicalNOT_ptr CreateLogicalNOT();
1106 LogicalAND_ptr CreateLogicalAND();
1107 LogicalOR_ptr CreateLogicalOR();
1109 Filter_ptr CreateFilter();
1111 FilterLibrary_ptr LoadLibrary( const char* aFileName );
1112 FilterLibrary_ptr CreateLibrary();
1113 CORBA::Boolean DeleteLibrary( const char* aFileName );
1118 GetPredicate( SMESH::Predicate_ptr thePredicate );
1120 const char* FunctorTypeToString(SMESH::FunctorType ft);
1121 SMESH::FunctorType StringToFunctorType(const char* str);