summaryrefslogtreecommitdiff
path: root/inc/IGESSelect_ChangeLevelNumber.hxx
blob: d386f8eb6cb30f5aa8f8e1b549354b238ef8e08e (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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
// 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 _IGESSelect_ChangeLevelNumber_HeaderFile
#define _IGESSelect_ChangeLevelNumber_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_IGESSelect_ChangeLevelNumber_HeaderFile
#include <Handle_IGESSelect_ChangeLevelNumber.hxx>
#endif

#ifndef _Handle_IFSelect_IntParam_HeaderFile
#include <Handle_IFSelect_IntParam.hxx>
#endif
#ifndef _IGESSelect_ModelModifier_HeaderFile
#include <IGESSelect_ModelModifier.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Handle_IGESData_IGESModel_HeaderFile
#include <Handle_IGESData_IGESModel.hxx>
#endif
class IFSelect_IntParam;
class IFSelect_ContextModif;
class IGESData_IGESModel;
class Interface_CopyTool;
class TCollection_AsciiString;


//! Changes Level Number (as null or single) to a new single value <br>
//!           Entities attached to a LevelListEntity are ignored <br>
//!           Entities considered can be, either all Entities but those <br>
//!           attached to a LevelListEntity, or Entities attached to a <br>
//!           specific Level Number (0 for not defined). <br>
//! <br>
//!           Remark : this concerns the Directory Part only. The Level List <br>
//!           Entities themselves (their content) are not affected. <br>
class IGESSelect_ChangeLevelNumber : public IGESSelect_ModelModifier {

public:

  //! Creates a ChangeLevelNumber, not yet defined <br>
//!           (see SetOldNumber and SetNewNumber) <br>
  Standard_EXPORT   IGESSelect_ChangeLevelNumber();
  //! Returns True if OldNumber is defined : then, only entities <br>
//!           attached to the value of OldNumber will be considered. Else, <br>
//!           all entities but those attached to a Level List will be. <br>
  Standard_EXPORT     Standard_Boolean HasOldNumber() const;
  //! Returns the parameter for OldNumber. If not defined (Null <br>
//!           Handle), it will be interpreted as "all level numbers" <br>
  Standard_EXPORT     Handle_IFSelect_IntParam OldNumber() const;
  //! Sets a parameter for OldNumber <br>
  Standard_EXPORT     void SetOldNumber(const Handle(IFSelect_IntParam)& param) ;
  //! Returns the parameter for NewNumber. If not defined (Null <br>
//!           Handle), it will be interpreted as "new value 0" <br>
  Standard_EXPORT     Handle_IFSelect_IntParam NewNumber() const;
  //! Sets a parameter for NewNumber <br>
  Standard_EXPORT     void SetNewNumber(const Handle(IFSelect_IntParam)& param) ;
  //! Specific action : considers selected target entities : <br>
//!           If OldNumber is not defined, all entities but those attached <br>
//!             to a Level List <br>
//!           If OldNumber is defined (value not negative), entities with a <br>
//!             defined Level Number (can be zero) <br>
//!           Attaches all these entities to value given by NewNumber, or <br>
//!             zero if not defined <br>
  Standard_EXPORT     void Performing(IFSelect_ContextModif& ctx,const Handle(IGESData_IGESModel)& target,Interface_CopyTool& TC) const;
  //! Returns a text which is <br>
//!           "Changes Level Number <old> to <new>" , or <br>
//!           "Changes all Levels Numbers positive and zero to <new>" <br>
  Standard_EXPORT     TCollection_AsciiString Label() const;




  DEFINE_STANDARD_RTTI(IGESSelect_ChangeLevelNumber)

protected:




private: 


Handle_IFSelect_IntParam theold;
Handle_IFSelect_IntParam thenew;


};





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


#endif