File: IGESSelect_SetGlobalParameter.hxx

package info (click to toggle)
oce 0.18.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 301,548 kB
  • sloc: cpp: 1,190,609; ansic: 67,225; sh: 11,630; tcl: 7,954; cs: 5,221; python: 2,867; java: 1,522; makefile: 342; xml: 292; perl: 37
file content (88 lines) | stat: -rw-r--r-- 2,643 bytes parent folder | download | duplicates (5)
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
// 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_SetGlobalParameter_HeaderFile
#define _IGESSelect_SetGlobalParameter_HeaderFile

#include <Standard.hxx>
#include <Standard_DefineHandle.hxx>
#include <Handle_IGESSelect_SetGlobalParameter.hxx>

#include <Standard_Integer.hxx>
#include <Handle_TCollection_HAsciiString.hxx>
#include <IGESSelect_ModelModifier.hxx>
#include <Handle_IGESData_IGESModel.hxx>
class TCollection_HAsciiString;
class IFSelect_ContextModif;
class IGESData_IGESModel;
class Interface_CopyTool;
class TCollection_AsciiString;


//! Sets a Global (Header) Parameter to a new value, directly given
//! Controls the form of the parameter (Integer, Real, String
//! with such or such form), but not the consistence of the new
//! value regarding the rest of the file.
//!
//! The new value is given under the form of a HAsciiString, even
//! for Integer or Real values. For String values, Hollerith forms
//! are accepted but not mandatory
//! Warning : a Null (not set) value is not accepted. For an empty string,
//! give a Text Parameter which is empty
class IGESSelect_SetGlobalParameter : public IGESSelect_ModelModifier
{

public:

  
  //! Creates an SetGlobalParameter, to be applied on Global
  //! Parameter <numpar>
  Standard_EXPORT IGESSelect_SetGlobalParameter(const Standard_Integer numpar);
  
  //! Returns the global parameter number to which this modifiers
  //! applies
  Standard_EXPORT   Standard_Integer GlobalNumber()  const;
  
  //! Sets a Text Parameter for the new value
  Standard_EXPORT   void SetValue (const Handle(TCollection_HAsciiString)& text) ;
  
  //! Returns the value to set to the global parameter (Text Param)
  Standard_EXPORT   Handle(TCollection_HAsciiString) Value()  const;
  
  //! Specific action : only <target> is used : the form of the new
  //! value is checked regarding the parameter number (given at
  //! creation time).
  Standard_EXPORT   void Performing (IFSelect_ContextModif& ctx, const Handle(IGESData_IGESModel)& target, Interface_CopyTool& TC)  const;
  
  //! Returns a text which is
  //! "Sets Global Parameter <numpar> to <new value>"
  Standard_EXPORT   TCollection_AsciiString Label()  const;




  DEFINE_STANDARD_RTTI(IGESSelect_SetGlobalParameter)

protected:




private: 


  Standard_Integer thenum;
  Handle(TCollection_HAsciiString) theval;


};







#endif // _IGESSelect_SetGlobalParameter_HeaderFile