1 //NOTE: This is an intreface to a function for the Healing creation.
4 #include "GEOM_Function.hxx"
6 #include <TColStd_HArray1OfInteger.hxx>
7 #include <TColStd_HArray1OfExtendedString.hxx>
9 #define ARG_SHAPE_PROCESS_OPERATORS 1
10 #define ARG_SHAPE_PROCESS_PARAMS 2
11 #define ARG_SHAPE_PROCESS_VALUES 3
12 #define ARG_ORIGINAL 4
13 #define ARG_LIST_ARGUMENTS 5
14 #define ARG_IS_COMMON_VERTEX 6
15 #define ARG_TOLERANCE 7
16 #define ARG_DEV_EDGE_VALUE 8
17 #define ARG_IS_BY_PARAMETER 9
18 #define ARG_SUBSHAPE_INDEX 10
21 class GEOMImpl_IHealing
24 GEOMImpl_IHealing(Handle(GEOM_Function) theFunction): _func(theFunction) {}
26 void SetOperators( const Handle(TColStd_HArray1OfExtendedString)& arr ) { if ( !arr.IsNull() ) _func->SetStringArray(ARG_SHAPE_PROCESS_OPERATORS, arr); }
27 Handle(TColStd_HArray1OfExtendedString) GetOperators() { return _func->GetStringArray(ARG_SHAPE_PROCESS_OPERATORS); }
29 void SetParameters( const Handle(TColStd_HArray1OfExtendedString)& arr ) { if ( !arr.IsNull() ) _func->SetStringArray(ARG_SHAPE_PROCESS_PARAMS, arr); }
30 Handle(TColStd_HArray1OfExtendedString) GetParameters() { return _func->GetStringArray(ARG_SHAPE_PROCESS_PARAMS); }
32 void SetValues( const Handle(TColStd_HArray1OfExtendedString)& arr ) { if ( !arr.IsNull() ) _func->SetStringArray(ARG_SHAPE_PROCESS_VALUES, arr); }
33 Handle(TColStd_HArray1OfExtendedString) GetValues() { return _func->GetStringArray(ARG_SHAPE_PROCESS_VALUES); }
35 void SetOriginal( Handle(GEOM_Function)& f ) { _func->SetReference(ARG_ORIGINAL, f); }
36 Handle(GEOM_Function) GetOriginal() { return _func->GetReference(ARG_ORIGINAL); }
38 void SetFaces( const Handle(TColStd_HArray1OfInteger)& arr ) { if ( !arr.IsNull() ) _func->SetIntegerArray(ARG_LIST_ARGUMENTS, arr); }
39 Handle(TColStd_HArray1OfInteger) GetFaces() { return _func->GetIntegerArray(ARG_LIST_ARGUMENTS); }
41 void SetWires( const Handle(TColStd_HArray1OfInteger)& arr ) { if ( !arr.IsNull() ) _func->SetIntegerArray(ARG_LIST_ARGUMENTS, arr); }
42 Handle(TColStd_HArray1OfInteger) GetWires() { return _func->GetIntegerArray(ARG_LIST_ARGUMENTS); }
44 void SetIsCommonVertex( Standard_Boolean val ) { _func->SetInteger(ARG_IS_COMMON_VERTEX, val ? 1 : 0 ); }
45 Standard_Boolean GetIsCommonVertex() { return (_func->GetInteger(ARG_IS_COMMON_VERTEX) != 0 ); }
47 void SetIsByParameter( Standard_Boolean val ) { _func->SetInteger(ARG_IS_BY_PARAMETER, val ? 1 : 0 ); }
48 Standard_Boolean GetIsByParameter() { return (_func->GetInteger(ARG_IS_BY_PARAMETER) != 0 ); }
50 void SetTolerance( Standard_Real val ) { _func->SetReal(ARG_TOLERANCE, val); }
51 Standard_Real GetTolerance() { return _func->GetReal(ARG_TOLERANCE); }
53 void SetDevideEdgeValue( Standard_Real val ) { _func->SetReal(ARG_DEV_EDGE_VALUE, val); }
54 Standard_Real GetDevideEdgeValue() { return _func->GetReal(ARG_DEV_EDGE_VALUE); }
56 void SetIndex( Standard_Integer val ) { _func->SetInteger(ARG_SUBSHAPE_INDEX, val); }
57 Standard_Integer GetIndex() { return _func->GetInteger(ARG_SUBSHAPE_INDEX); }
60 Handle(GEOM_Function) _func;