0032961: Coding - get rid of unused headers [IGESAppli to IGESToBRep]
[occt.git] / src / IGESSelect / IGESSelect_ChangeLevelNumber.hxx
1 // Created on: 1994-08-25
2 // Created by: Christian CAILLET
3 // Copyright (c) 1994-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _IGESSelect_ChangeLevelNumber_HeaderFile
18 #define _IGESSelect_ChangeLevelNumber_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
23 #include <IGESSelect_ModelModifier.hxx>
24 class IFSelect_IntParam;
25 class IFSelect_ContextModif;
26 class IGESData_IGESModel;
27 class Interface_CopyTool;
28 class TCollection_AsciiString;
29
30
31 class IGESSelect_ChangeLevelNumber;
32 DEFINE_STANDARD_HANDLE(IGESSelect_ChangeLevelNumber, IGESSelect_ModelModifier)
33
34 //! Changes Level Number (as null or single) to a new single value
35 //! Entities attached to a LevelListEntity are ignored
36 //! Entities considered can be, either all Entities but those
37 //! attached to a LevelListEntity, or Entities attached to a
38 //! specific Level Number (0 for not defined).
39 //!
40 //! Remark : this concerns the Directory Part only. The Level List
41 //! Entities themselves (their content) are not affected.
42 class IGESSelect_ChangeLevelNumber : public IGESSelect_ModelModifier
43 {
44
45 public:
46
47   
48   //! Creates a ChangeLevelNumber, not yet defined
49   //! (see SetOldNumber and SetNewNumber)
50   Standard_EXPORT IGESSelect_ChangeLevelNumber();
51   
52   //! Returns True if OldNumber is defined : then, only entities
53   //! attached to the value of OldNumber will be considered. Else,
54   //! all entities but those attached to a Level List will be.
55   Standard_EXPORT Standard_Boolean HasOldNumber() const;
56   
57   //! Returns the parameter for OldNumber. If not defined (Null
58   //! Handle), it will be interpreted as "all level numbers"
59   Standard_EXPORT Handle(IFSelect_IntParam) OldNumber() const;
60   
61   //! Sets a parameter for OldNumber
62   Standard_EXPORT void SetOldNumber (const Handle(IFSelect_IntParam)& param);
63   
64   //! Returns the parameter for NewNumber. If not defined (Null
65   //! Handle), it will be interpreted as "new value 0"
66   Standard_EXPORT Handle(IFSelect_IntParam) NewNumber() const;
67   
68   //! Sets a parameter for NewNumber
69   Standard_EXPORT void SetNewNumber (const Handle(IFSelect_IntParam)& param);
70   
71   //! Specific action : considers selected target entities :
72   //! If OldNumber is not defined, all entities but those attached
73   //! to a Level List
74   //! If OldNumber is defined (value not negative), entities with a
75   //! defined Level Number (can be zero)
76   //! Attaches all these entities to value given by NewNumber, or
77   //! zero if not defined
78   Standard_EXPORT void Performing (IFSelect_ContextModif& ctx, const Handle(IGESData_IGESModel)& target, Interface_CopyTool& TC) const Standard_OVERRIDE;
79   
80   //! Returns a text which is
81   //! "Changes Level Number <old> to <new>" , or
82   //! "Changes all Levels Numbers positive and zero to <new>"
83   Standard_EXPORT TCollection_AsciiString Label() const Standard_OVERRIDE;
84
85
86
87
88   DEFINE_STANDARD_RTTIEXT(IGESSelect_ChangeLevelNumber,IGESSelect_ModelModifier)
89
90 protected:
91
92
93
94
95 private:
96
97
98   Handle(IFSelect_IntParam) theold;
99   Handle(IFSelect_IntParam) thenew;
100
101
102 };
103
104
105
106
107
108
109
110 #endif // _IGESSelect_ChangeLevelNumber_HeaderFile