summaryrefslogtreecommitdiff
path: root/inc/IFSelect_SelectEntityNumber.hxx
blob: 9dcc4cccbfc8974ad506527f0b5d7eef720699d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _IFSelect_SelectEntityNumber_HeaderFile
#define _IFSelect_SelectEntityNumber_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_IFSelect_SelectEntityNumber_HeaderFile
#include <Handle_IFSelect_SelectEntityNumber.hxx>
#endif

#ifndef _Handle_IFSelect_IntParam_HeaderFile
#include <Handle_IFSelect_IntParam.hxx>
#endif
#ifndef _IFSelect_SelectBase_HeaderFile
#include <IFSelect_SelectBase.hxx>
#endif
class IFSelect_IntParam;
class Interface_EntityIterator;
class Interface_Graph;
class TCollection_AsciiString;


//! A SelectEntityNumber gets in an InterfaceModel (through a <br>
//!           Graph), the Entity which has a specified Number (its rank of <br>
//!           adding into the Model) : there can be zero (if none) or one. <br>
//!           The Number is not directly defined as an Integer, but as a <br>
//!           Parameter, which can be externally controled <br>
class IFSelect_SelectEntityNumber : public IFSelect_SelectBase {

public:

  //! Creates a SelectEntityNumber, initially with no specified Number <br>
  Standard_EXPORT   IFSelect_SelectEntityNumber();
  //! Sets Entity Number to be taken (initially, none is set : 0) <br>
  Standard_EXPORT     void SetNumber(const Handle(IFSelect_IntParam)& num) ;
  //! Returns specified Number (as a Parameter) <br>
  Standard_EXPORT     Handle_IFSelect_IntParam Number() const;
  //! Returns the list of selected entities : the Entity having the <br>
//!           specified Number (this result assures naturally uniqueness) <br>
  Standard_EXPORT     Interface_EntityIterator RootResult(const Interface_Graph& G) const;
  //! Returns a text defining the criterium : "Entity Number ..." <br>
  Standard_EXPORT     TCollection_AsciiString Label() const;




  DEFINE_STANDARD_RTTI(IFSelect_SelectEntityNumber)

protected:




private: 


Handle_IFSelect_IntParam thenum;


};





// other Inline functions and methods (like "C++: function call" methods)


#endif