1 // Copyright (C) 2007-2016 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, or (at your option) any later version.
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"
44 class SMESH_GroupBase_i;
50 * \brief Object notified on change of base objects and
51 * notifying dependent objects in its turn.
52 * This interface is used to track the following dependencies:
53 * - GroupOnFiler depending on Filter predicates
54 * - Filter depending on a Group via FT_BelongToMeshGroup predicate
56 struct NotifyerAndWaiter
58 virtual void OnBaseObjModified(NotifyerAndWaiter* obj, bool removed) {};
59 // specific reaction on modification of a base object
61 void Modified( bool removed=false, NotifyerAndWaiter* who = 0);
62 // calls OnBaseObjModified(), if who != 0, and myWaiters[i]->Modified(who)
64 void AddModifWaiter ( NotifyerAndWaiter* waiter ); // adds a dependent object to notify
65 void RemoveModifWaiter ( NotifyerAndWaiter* waiter ); // CALL IT when a waiter dies!!!
66 bool ContainModifWaiter( NotifyerAndWaiter* waiter );
67 std::list<NotifyerAndWaiter*> myWaiters;
69 // ================================================================================
76 Description : An abstact class for all functors
78 class SMESH_I_EXPORT Functor_i: public virtual POA_SMESH::Functor,
79 public virtual SALOME::GenericObj_i
82 virtual void SetMesh( SMESH_Mesh_ptr theMesh );
83 Controls::FunctorPtr GetFunctor() { return myFunctorPtr; }
84 ElementType GetElementType();
90 Controls::FunctorPtr myFunctorPtr;
94 Class : NumericalFunctor_i
95 Description : Base class for numerical functors
97 class SMESH_I_EXPORT NumericalFunctor_i: public virtual POA_SMESH::NumericalFunctor,
98 public virtual Functor_i
101 CORBA::Double GetValue( CORBA::Long theElementId );
102 SMESH::Histogram* GetHistogram(CORBA::Short nbIntervals,
103 CORBA::Boolean isLogarithmic);
104 SMESH::Histogram* GetLocalHistogram(CORBA::Short nbIntervals,
105 CORBA::Boolean isLogarithmic,
106 SMESH::SMESH_IDSource_ptr object);
107 void SetPrecision( CORBA::Long thePrecision );
108 CORBA::Long GetPrecision();
109 Controls::NumericalFunctorPtr GetNumericalFunctor();
112 Controls::NumericalFunctorPtr myNumericalFunctorPtr;
117 Class : SMESH_MinimumAngleFunct
118 Description : Functor for calculation of minimum angle
120 class SMESH_I_EXPORT MinimumAngle_i: public virtual POA_SMESH::MinimumAngle,
121 public virtual NumericalFunctor_i
125 FunctorType GetFunctorType();
130 Class : AspectRatio_i
131 Description : Functor for calculating aspect ratio
133 class SMESH_I_EXPORT AspectRatio_i: public virtual POA_SMESH::AspectRatio,
134 public virtual NumericalFunctor_i
138 FunctorType GetFunctorType();
143 Class : AspectRatio3D_i
144 Description : Functor for calculating aspect ratio for 3D
146 class SMESH_I_EXPORT AspectRatio3D_i: public virtual POA_SMESH::AspectRatio3D,
147 public virtual NumericalFunctor_i
151 FunctorType GetFunctorType();
157 Description : Functor for calculating warping
159 class SMESH_I_EXPORT Warping_i: public virtual POA_SMESH::Warping,
160 public virtual NumericalFunctor_i
164 FunctorType GetFunctorType();
170 Description : Functor for calculating taper
172 class SMESH_I_EXPORT Taper_i: public virtual POA_SMESH::Taper,
173 public virtual NumericalFunctor_i
177 FunctorType GetFunctorType();
183 Description : Functor for calculating skew in degrees
185 class SMESH_I_EXPORT Skew_i: public virtual POA_SMESH::Skew,
186 public virtual NumericalFunctor_i
190 FunctorType GetFunctorType();
196 Description : Functor for calculating area
198 class SMESH_I_EXPORT Area_i: public virtual POA_SMESH::Area,
199 public virtual NumericalFunctor_i
203 FunctorType GetFunctorType();
209 Description : Functor for calculating volume of 3D element
211 class SMESH_I_EXPORT Volume3D_i: public virtual POA_SMESH::Volume3D,
212 public virtual NumericalFunctor_i
216 FunctorType GetFunctorType();
221 Class : MaxElementLength2D_i
222 Description : Functor for calculating maximum length of 2D element
224 class SMESH_I_EXPORT MaxElementLength2D_i: public virtual POA_SMESH::MaxElementLength2D,
225 public virtual NumericalFunctor_i
228 MaxElementLength2D_i();
229 FunctorType GetFunctorType();
234 Class : MaxElementLength3D_i
235 Description : Functor for calculating maximum length of 3D element
237 class SMESH_I_EXPORT MaxElementLength3D_i: public virtual POA_SMESH::MaxElementLength3D,
238 public virtual NumericalFunctor_i
241 MaxElementLength3D_i();
242 FunctorType GetFunctorType();
248 Description : Functor for calculating length of edge
250 class SMESH_I_EXPORT Length_i: public virtual POA_SMESH::Length,
251 public virtual NumericalFunctor_i
255 FunctorType GetFunctorType();
260 Description : Functor for calculating length of edge
262 class SMESH_I_EXPORT Length2D_i: public virtual POA_SMESH::Length2D,
263 public virtual NumericalFunctor_i
267 SMESH::Length2D::Values* GetValues();
268 FunctorType GetFunctorType();
271 Controls::Length2DPtr myLength2DPtr;
275 Class : MultiConnection_i
276 Description : Functor for calculating number of faces conneted to the edge
278 class SMESH_I_EXPORT MultiConnection_i: public virtual POA_SMESH::MultiConnection,
279 public virtual NumericalFunctor_i
283 FunctorType GetFunctorType();
287 Class : MultiConnection2D_i
288 Description : Functor for calculating number of faces conneted to the edge
290 class SMESH_I_EXPORT MultiConnection2D_i: public virtual POA_SMESH::MultiConnection2D,
291 public virtual NumericalFunctor_i
294 MultiConnection2D_i();
295 SMESH::MultiConnection2D::Values* GetValues();
296 FunctorType GetFunctorType();
299 Controls::MultiConnection2DPtr myMulticonnection2DPtr;
303 Class : BallDiameter_i
304 Description : Functor returning diameter of a ball element
306 class SMESH_I_EXPORT BallDiameter_i: public virtual POA_SMESH::BallDiameter,
307 public virtual NumericalFunctor_i
311 FunctorType GetFunctorType();
315 Class : NodeConnectivityNumber_i
316 Description : Functor returning diameter of a ball element
318 class SMESH_I_EXPORT NodeConnectivityNumber_i: public virtual POA_SMESH::NodeConnectivityNumber,
319 public virtual NumericalFunctor_i
322 NodeConnectivityNumber_i();
323 FunctorType GetFunctorType();
332 Description : Base class for all predicates
334 class SMESH_I_EXPORT Predicate_i: public virtual POA_SMESH::Predicate,
335 public virtual Functor_i
338 CORBA::Boolean IsSatisfy( CORBA::Long theElementId );
339 CORBA::Long NbSatisfying( SMESH::SMESH_IDSource_ptr obj );
340 Controls::PredicatePtr GetPredicate();
343 Controls::PredicatePtr myPredicatePtr;
348 Class : BadOrientedVolume_i
349 Description : Verify whether a mesh volume is incorrectly oriented from
350 the point of view of MED convention
352 class SMESH_I_EXPORT BadOrientedVolume_i: public virtual POA_SMESH::BadOrientedVolume,
353 public virtual Predicate_i
356 BadOrientedVolume_i();
357 FunctorType GetFunctorType();
361 Class : BareBorderVolume_i
362 Description : Verify whether a mesh volume has a free facet without a face on it
364 class SMESH_I_EXPORT BareBorderVolume_i: public virtual POA_SMESH::BareBorderVolume,
365 public virtual Predicate_i
368 BareBorderVolume_i();
369 FunctorType GetFunctorType();
373 Class : BareBorderFace_i
374 Description : Verify whether a mesh face has a free border without an edge on it
376 class SMESH_I_EXPORT BareBorderFace_i: public virtual POA_SMESH::BareBorderFace,
377 public virtual Predicate_i
381 FunctorType GetFunctorType();
385 Class : OverConstrainedVolume_i
386 Description : Verify whether a mesh volume has only one facet shared with other volumes
388 class SMESH_I_EXPORT OverConstrainedVolume_i: public virtual POA_SMESH::OverConstrainedVolume,
389 public virtual Predicate_i
392 OverConstrainedVolume_i();
393 FunctorType GetFunctorType();
397 Class : OverConstrainedFace_i
398 Description : Verify whether a mesh face has only one border shared with other faces
400 class SMESH_I_EXPORT OverConstrainedFace_i: public virtual POA_SMESH::OverConstrainedFace,
401 public virtual Predicate_i
404 OverConstrainedFace_i();
405 FunctorType GetFunctorType();
409 Class : BelongToMeshGroup_i
410 Description : Verify whether a mesh element is included into a mesh group
412 class SMESH_I_EXPORT BelongToMeshGroup_i: public virtual POA_SMESH::BelongToMeshGroup,
413 public virtual Predicate_i
415 std::string myID; // IOR or StoreName
416 SMESH::SMESH_GroupBase_var myGroup;
417 Controls::BelongToMeshGroupPtr myBelongToMeshGroup;
419 BelongToMeshGroup_i();
420 ~BelongToMeshGroup_i();
421 void SetGroup( SMESH::SMESH_GroupBase_ptr theGroup );
422 void SetGroupID( const char* theID ); // IOR or StoreName
423 SMESH::SMESH_GroupBase_ptr GetGroup();
425 std::string GetGroupID();
426 FunctorType GetFunctorType();
427 //virtual void SetMesh( SMESH_Mesh_ptr theMesh );
431 Class : BelongToGeom_i
432 Description : Predicate for selection on geometrical support
434 class SMESH_I_EXPORT BelongToGeom_i: public virtual POA_SMESH::BelongToGeom,
435 public virtual Predicate_i
439 virtual ~BelongToGeom_i();
441 void SetGeom( GEOM::GEOM_Object_ptr theGeom );
442 void SetElementType( ElementType theType );
443 FunctorType GetFunctorType();
445 void SetGeom( const TopoDS_Shape& theShape );
447 void SetShapeName( const char* theName );
448 void SetShape( const char* theID, const char* theName );
449 char* GetShapeName();
452 void SetTolerance( CORBA::Double );
453 CORBA::Double GetTolerance();
456 Controls::BelongToGeomPtr myBelongToGeomPtr;
462 Class : BelongToSurface_i
463 Description : Verify whether mesh element lie in pointed Geom planar object
465 class SMESH_I_EXPORT BelongToSurface_i: public virtual POA_SMESH::BelongToSurface,
466 public virtual Predicate_i
469 BelongToSurface_i( const Handle(Standard_Type)& );
470 virtual ~BelongToSurface_i();
472 void SetSurface( GEOM::GEOM_Object_ptr theGeom, ElementType theType );
474 void SetShapeName( const char* theName, ElementType theType );
475 void SetShape( const char* theID, const char* theName, ElementType theType );
476 char* GetShapeName();
479 void SetTolerance( CORBA::Double );
480 CORBA::Double GetTolerance();
482 void SetUseBoundaries( CORBA::Boolean theUseBndRestrictions );
483 CORBA::Boolean GetUseBoundaries();
486 Controls::ElementsOnSurfacePtr myElementsOnSurfacePtr;
489 Handle(Standard_Type) mySurfaceType;
493 Class : BelongToPlane_i
494 Description : Verify whether mesh element lie in pointed Geom planar object
496 class SMESH_I_EXPORT BelongToPlane_i: public virtual POA_SMESH::BelongToPlane,
497 public virtual BelongToSurface_i
501 void SetPlane( GEOM::GEOM_Object_ptr theGeom, ElementType theType );
502 FunctorType GetFunctorType();
506 Class : BelongToCylinder_i
507 Description : Verify whether mesh element lie in pointed Geom cylindrical object
509 class SMESH_I_EXPORT BelongToCylinder_i: public virtual POA_SMESH::BelongToCylinder,
510 public virtual BelongToSurface_i
513 BelongToCylinder_i();
514 void SetCylinder( GEOM::GEOM_Object_ptr theGeom, ElementType theType );
515 FunctorType GetFunctorType();
519 Class : BelongToGenSurface_i
520 Description : Verify whether mesh element lie on pointed Geom surfasic object
522 class BelongToGenSurface_i: public virtual POA_SMESH::BelongToGenSurface,
523 public virtual BelongToSurface_i
526 BelongToGenSurface_i();
527 void SetSurface( GEOM::GEOM_Object_ptr theGeom, ElementType theType );
528 FunctorType GetFunctorType();
532 Class : LyingOnGeom_i
533 Description : Predicate for selection on geometrical support(lying or partially lying)
535 class SMESH_I_EXPORT LyingOnGeom_i: public virtual POA_SMESH::LyingOnGeom,
536 public virtual Predicate_i
540 virtual ~LyingOnGeom_i();
542 void SetGeom( GEOM::GEOM_Object_ptr theGeom );
543 void SetElementType( ElementType theType );
544 FunctorType GetFunctorType();
546 void SetGeom( const TopoDS_Shape& theShape );
548 void SetShapeName( const char* theName );
549 void SetShape( const char* theID, const char* theName );
550 char* GetShapeName();
553 void SetTolerance( CORBA::Double );
554 CORBA::Double GetTolerance();
557 Controls::LyingOnGeomPtr myLyingOnGeomPtr;
563 Class : FreeBorders_i
564 Description : Predicate for free borders
566 class SMESH_I_EXPORT FreeBorders_i: public virtual POA_SMESH::FreeBorders,
567 public virtual Predicate_i
571 FunctorType GetFunctorType();
577 Description : Predicate for free edges
579 class SMESH_I_EXPORT FreeEdges_i: public virtual POA_SMESH::FreeEdges,
580 public virtual Predicate_i
584 SMESH::FreeEdges::Borders* GetBorders();
585 FunctorType GetFunctorType();
588 Controls::FreeEdgesPtr myFreeEdgesPtr;
594 Description : Predicate for free faces
596 class SMESH_I_EXPORT FreeFaces_i: public virtual POA_SMESH::FreeFaces,
597 public virtual Predicate_i
601 FunctorType GetFunctorType();
607 Description : Predicate for free nodes
609 class SMESH_I_EXPORT FreeNodes_i: public virtual POA_SMESH::FreeNodes,
610 public virtual Predicate_i
614 FunctorType GetFunctorType();
620 Description : Predicate for equal nodes
622 class SMESH_I_EXPORT EqualNodes_i: public virtual POA_SMESH::EqualNodes,
623 public virtual Predicate_i
627 FunctorType GetFunctorType();
628 void SetTolerance( double );
629 double GetTolerance();
632 Controls::CoincidentNodesPtr myCoincidentNodesPtr;
636 Description : Predicate for equal edges
638 class SMESH_I_EXPORT EqualEdges_i: public virtual POA_SMESH::EqualEdges,
639 public virtual Predicate_i
643 FunctorType GetFunctorType();
647 Description : Predicate for equal Faces
649 class SMESH_I_EXPORT EqualFaces_i: public virtual POA_SMESH::EqualFaces,
650 public virtual Predicate_i
654 FunctorType GetFunctorType();
657 Class : EqualVolumes_i
658 Description : Predicate for equal Volumes
660 class SMESH_I_EXPORT EqualVolumes_i: public virtual POA_SMESH::EqualVolumes,
661 public virtual Predicate_i
665 FunctorType GetFunctorType();
671 Description : Predicate for Range of Ids
673 class SMESH_I_EXPORT RangeOfIds_i: public virtual POA_SMESH::RangeOfIds,
674 public virtual Predicate_i
678 void SetRange( const SMESH::long_array& theIds );
679 CORBA::Boolean SetRangeStr( const char* theRange );
682 void SetElementType( ElementType theType );
683 FunctorType GetFunctorType();
686 Controls::RangeOfIdsPtr myRangeOfIdsPtr;
690 Class : LinearOrQuadratic_i
691 Description : Verify whether a mesh element is linear
693 class SMESH_I_EXPORT LinearOrQuadratic_i: public virtual POA_SMESH::LinearOrQuadratic,
694 public virtual Predicate_i
697 LinearOrQuadratic_i();
698 FunctorType GetFunctorType();
699 void SetElementType( ElementType theType );
702 Controls::LinearOrQuadraticPtr myLinearOrQuadraticPtr;
707 Description : Functor for check color of group to which mesh element belongs to
709 class SMESH_I_EXPORT GroupColor_i: public virtual POA_SMESH::GroupColor,
710 public virtual Predicate_i
714 FunctorType GetFunctorType();
716 void SetElementType( ElementType theType );
717 void SetColorStr( const char* theColor );
721 Controls::GroupColorPtr myGroupColorPtr;
725 Class : ElemGeomType_i
726 Description : Functor for check element geometry type
728 class SMESH_I_EXPORT ElemGeomType_i: public virtual POA_SMESH::ElemGeomType,
729 public virtual Predicate_i
733 FunctorType GetFunctorType();
735 void SetElementType ( ElementType theType );
736 void SetGeometryType( GeometryType theType );
737 GeometryType GetGeometryType() const;
740 Controls::ElemGeomTypePtr myElemGeomTypePtr;
744 Class : ElemEntityType_i
745 Description : Functor for check element entity type
747 class SMESH_I_EXPORT ElemEntityType_i: public virtual POA_SMESH::ElemEntityType,
748 public virtual Predicate_i
752 FunctorType GetFunctorType();
754 void SetElementType ( ElementType theType );
755 void SetEntityType( EntityType theEntityType );
756 EntityType GetEntityType() const;
759 Controls::ElemEntityTypePtr myElemEntityTypePtr;
763 Class : CoplanarFaces_i
764 Description : Returns true if a mesh face is a coplanar neighbour to a given one
766 class SMESH_I_EXPORT CoplanarFaces_i: public virtual POA_SMESH::CoplanarFaces,
767 public virtual Predicate_i
771 FunctorType GetFunctorType();
773 void SetFace ( CORBA::Long theFaceID );
774 void SetTolerance( CORBA::Double theToler );
775 char* GetFaceAsString () const;
776 CORBA::Long GetFace () const;
777 CORBA::Double GetTolerance () const;
779 Controls::CoplanarFacesPtr myCoplanarFacesPtr;
783 * Class : ConnectedElements_i
784 * Description : Returns true if an element is connected via other elements to the element
785 * located at a given point.
787 class SMESH_I_EXPORT ConnectedElements_i: public virtual POA_SMESH::ConnectedElements,
788 public virtual Predicate_i
791 ConnectedElements_i();
792 FunctorType GetFunctorType();
794 void SetElementType( ElementType theType );
795 void SetPoint( CORBA::Double x, CORBA::Double y, CORBA::Double z );
796 void SetVertex( GEOM::GEOM_Object_ptr vertex )
797 throw (SALOME::SALOME_Exception);
798 void SetNode ( CORBA::Long nodeID )
799 throw (SALOME::SALOME_Exception);
800 void SetThreshold ( const char* threshold,
801 SMESH::ConnectedElements::ThresholdType type )
802 throw (SALOME::SALOME_Exception);
803 char* GetThreshold ( SMESH::ConnectedElements::ThresholdType& type );
806 Controls::ConnectedElementsPtr myConnectedElementsPtr;
807 std::string myVertexID;
812 Description : Base class for comparators
814 class SMESH_I_EXPORT Comparator_i: public virtual POA_SMESH::Comparator,
815 public virtual Predicate_i
818 virtual ~Comparator_i();
820 virtual void SetMargin( CORBA::Double );
821 virtual void SetNumFunctor( NumericalFunctor_ptr );
823 Controls::ComparatorPtr GetComparator();
824 NumericalFunctor_i* GetNumFunctor_i();
825 CORBA::Double GetMargin();
830 Controls::ComparatorPtr myComparatorPtr;
831 NumericalFunctor_i* myNumericalFunctor;
837 Description : Comparator "<"
839 class SMESH_I_EXPORT LessThan_i: public virtual POA_SMESH::LessThan,
840 public virtual Comparator_i
844 FunctorType GetFunctorType();
850 Description : Comparator ">"
852 class SMESH_I_EXPORT MoreThan_i: public virtual POA_SMESH::MoreThan,
853 public virtual Comparator_i
857 FunctorType GetFunctorType();
863 Description : Comparator "="
865 class SMESH_I_EXPORT EqualTo_i: public virtual POA_SMESH::EqualTo,
866 public virtual Comparator_i
870 virtual void SetTolerance( CORBA::Double );
871 CORBA::Double GetTolerance();
872 FunctorType GetFunctorType();
875 Controls::EqualToPtr myEqualToPtr;
881 Description : Logical NOT predicate
883 class SMESH_I_EXPORT LogicalNOT_i: public virtual POA_SMESH::LogicalNOT,
884 public virtual Predicate_i
888 virtual ~LogicalNOT_i();
890 virtual void SetPredicate( Predicate_ptr );
891 Predicate_i* GetPredicate_i();
892 FunctorType GetFunctorType();
895 Controls::LogicalNOTPtr myLogicalNOTPtr;
896 Predicate_i* myPredicate;
901 Class : LogicalBinary_i
902 Description : Base class for binary logical predicate
904 class SMESH_I_EXPORT LogicalBinary_i: public virtual POA_SMESH::LogicalBinary,
905 public virtual Predicate_i
908 virtual ~LogicalBinary_i();
909 virtual void SetMesh( SMESH_Mesh_ptr theMesh );
910 virtual void SetPredicate1( Predicate_ptr );
911 virtual void SetPredicate2( Predicate_ptr );
913 Controls::LogicalBinaryPtr GetLogicalBinary();
914 Predicate_i* GetPredicate1_i();
915 Predicate_i* GetPredicate2_i();
920 Controls::LogicalBinaryPtr myLogicalBinaryPtr;
921 Predicate_i* myPredicate1;
922 Predicate_i* myPredicate2;
928 Description : Logical AND
930 class SMESH_I_EXPORT LogicalAND_i: public virtual POA_SMESH::LogicalAND,
931 public virtual LogicalBinary_i
935 FunctorType GetFunctorType();
941 Description : Logical OR
943 class SMESH_I_EXPORT LogicalOR_i: public virtual POA_SMESH::LogicalOR,
944 public virtual LogicalBinary_i
948 FunctorType GetFunctorType();
955 class SMESH_I_EXPORT Filter_i: public virtual POA_SMESH::Filter,
956 public virtual SALOME::GenericObj_i,
957 public NotifyerAndWaiter
965 SetPredicate( Predicate_ptr );
969 SetMesh( SMESH_Mesh_ptr );
973 GetElementsId( Predicate_i*,
975 Controls::Filter::TIdSequence& );
978 GetElementsId( Predicate_i*,
980 Controls::Filter::TIdSequence& );
984 GetElementsId( SMESH_Mesh_ptr );
992 GetCriteria( SMESH::Filter::Criteria_out theCriteria );
996 SetCriteria( const SMESH::Filter::Criteria& theCriteria );
1002 Predicate_i* GetPredicate_i();
1004 void FindBaseObjects();
1005 // finds groups it depends on
1007 virtual void OnBaseObjModified(NotifyerAndWaiter* group, bool removed);
1008 // notified on change of myBaseGroups[i]
1010 // =========================
1011 // SMESH_IDSource interface
1012 // =========================
1013 virtual SMESH::long_array* GetIDs();
1014 virtual SMESH::long_array* GetMeshInfo();
1015 virtual SMESH::long_array* GetNbElementsByType();
1016 virtual SMESH::array_of_ElementType* GetTypes();
1017 virtual SMESH::SMESH_Mesh_ptr GetMesh();
1018 virtual bool IsMeshInfoCorrect() { return true; }
1019 virtual SALOMEDS::TMPFile* GetVtkUgStream();
1022 Controls::Filter myFilter;
1023 Predicate_i* myPredicate;
1024 SMESH_Mesh_var myMesh;
1026 std::vector< SMESH_GroupBase_i* > myBaseGroups;
1033 class SMESH_I_EXPORT FilterLibrary_i: public virtual POA_SMESH::FilterLibrary,
1034 public virtual SALOME::GenericObj_i
1037 FilterLibrary_i( const char* theFileName );
1041 Filter_ptr Copy( const char* theFilterName );
1043 CORBA::Boolean Add ( const char* theFilterName, Filter_ptr theFilter );
1044 CORBA::Boolean AddEmpty( const char* theFilterName, ElementType theType );
1045 CORBA::Boolean Delete ( const char* theFilterName );
1046 CORBA::Boolean Replace ( const char* theFilterName,
1047 const char* theNewName,
1048 Filter_ptr theFilter );
1050 CORBA::Boolean Save();
1051 CORBA::Boolean SaveAs( const char* aFileName );
1053 CORBA::Boolean IsPresent( const char* aFilterName );
1054 CORBA::Long NbFilters( ElementType );
1055 string_array* GetNames( ElementType );
1056 string_array* GetAllNames();
1057 void SetFileName( const char* theFileName );
1058 char* GetFileName();
1062 LDOM_Document myDoc;
1063 FilterManager_var myFilterMgr;
1071 class SMESH_I_EXPORT FilterManager_i: public virtual POA_SMESH::FilterManager,
1072 public virtual SALOME::GenericObj_i
1078 MinimumAngle_ptr CreateMinimumAngle();
1079 AspectRatio_ptr CreateAspectRatio();
1080 AspectRatio3D_ptr CreateAspectRatio3D();
1081 Warping_ptr CreateWarping();
1082 Taper_ptr CreateTaper();
1083 Skew_ptr CreateSkew();
1084 Area_ptr CreateArea();
1085 Volume3D_ptr CreateVolume3D();
1086 MaxElementLength2D_ptr CreateMaxElementLength2D();
1087 MaxElementLength3D_ptr CreateMaxElementLength3D();
1088 Length_ptr CreateLength();
1089 Length2D_ptr CreateLength2D();
1090 NodeConnectivityNumber_ptr CreateNodeConnectivityNumber();
1091 MultiConnection_ptr CreateMultiConnection();
1092 MultiConnection2D_ptr CreateMultiConnection2D();
1093 BallDiameter_ptr CreateBallDiameter();
1095 BelongToMeshGroup_ptr CreateBelongToMeshGroup();
1096 BelongToGeom_ptr CreateBelongToGeom();
1097 BelongToPlane_ptr CreateBelongToPlane();
1098 BelongToCylinder_ptr CreateBelongToCylinder();
1099 BelongToGenSurface_ptr CreateBelongToGenSurface();
1101 LyingOnGeom_ptr CreateLyingOnGeom();
1103 FreeBorders_ptr CreateFreeBorders();
1104 FreeEdges_ptr CreateFreeEdges();
1105 FreeNodes_ptr CreateFreeNodes();
1106 FreeFaces_ptr CreateFreeFaces();
1108 EqualNodes_ptr CreateEqualNodes();
1109 EqualEdges_ptr CreateEqualEdges();
1110 EqualFaces_ptr CreateEqualFaces();
1111 EqualVolumes_ptr CreateEqualVolumes();
1113 RangeOfIds_ptr CreateRangeOfIds();
1114 BadOrientedVolume_ptr CreateBadOrientedVolume();
1115 BareBorderFace_ptr CreateBareBorderFace();
1116 BareBorderVolume_ptr CreateBareBorderVolume();
1117 OverConstrainedFace_ptr CreateOverConstrainedFace();
1118 OverConstrainedVolume_ptr CreateOverConstrainedVolume();
1119 LinearOrQuadratic_ptr CreateLinearOrQuadratic();
1120 GroupColor_ptr CreateGroupColor();
1121 ElemGeomType_ptr CreateElemGeomType();
1122 ElemEntityType_ptr CreateElemEntityType();
1123 CoplanarFaces_ptr CreateCoplanarFaces();
1124 ConnectedElements_ptr CreateConnectedElements();
1126 LessThan_ptr CreateLessThan();
1127 MoreThan_ptr CreateMoreThan();
1128 EqualTo_ptr CreateEqualTo();
1130 LogicalNOT_ptr CreateLogicalNOT();
1131 LogicalAND_ptr CreateLogicalAND();
1132 LogicalOR_ptr CreateLogicalOR();
1134 Filter_ptr CreateFilter();
1136 FilterLibrary_ptr LoadLibrary( const char* aFileName );
1137 FilterLibrary_ptr CreateLibrary();
1138 CORBA::Boolean DeleteLibrary( const char* aFileName );
1143 GetPredicate( SMESH::Predicate_ptr thePredicate );
1145 const char* FunctorTypeToString(SMESH::FunctorType ft);
1146 SMESH::FunctorType StringToFunctorType(const char* str);