Open CASCADE Technology
6.5.4
|
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
#include <IGESSelect_SetGlobalParameter.hxx>
Public Member Functions | |
IGESSelect_SetGlobalParameter (const Standard_Integer numpar) | |
Creates an SetGlobalParameter, to be applied on Global Parameter <numpar> | |
Standard_Integer | GlobalNumber () const |
Returns the global parameter number to which this modifiers applies | |
void | SetValue (const Handle< TCollection_HAsciiString > &text) |
Sets a Text Parameter for the new value | |
Handle_TCollection_HAsciiString | Value () const |
Returns the value to set to the global parameter (Text Param) | |
void | Performing (IFSelect_ContextModif &ctx, const Handle< IGESData_IGESModel > &target, Interface_CopyTool &TC) const |
Specific action : only <target> is used : the form of the new value is checked regarding the parameter number (given at creation time). | |
TCollection_AsciiString | Label () const |
Returns a text which is "Sets Global Parameter <numpar> to <new value>" |
TCollection_AsciiString IGESSelect_SetGlobalParameter::Label | ( | ) | const [virtual] |
Implements IFSelect_GeneralModifier.
void IGESSelect_SetGlobalParameter::Performing | ( | IFSelect_ContextModif & | ctx, |
const Handle< IGESData_IGESModel > & | target, | ||
Interface_CopyTool & | TC | ||
) | const [virtual] |
Implements IGESSelect_ModelModifier.
Handle_TCollection_HAsciiString IGESSelect_SetGlobalParameter::Value | ( | ) | const |