1 // NOTE: This is an intreface to a function for the Shapes
2 // (Wire, Face, Shell, Solid and Compound) creation.
5 #include "GEOM_Function.hxx"
7 #include "TColStd_HSequenceOfTransient.hxx"
8 #include "TColStd_HArray1OfInteger.hxx"
10 #define SHAPE_ARG_MAIN_SHAPE 1
11 #define SHAPE_ARG_INDICES 2
12 #define SHAPE_ARG_SORTED 3
18 GEOM_ISubShape(Handle(GEOM_Function) theFunction): _func(theFunction) {}
20 void SetMainShape(Handle(GEOM_Function) theRefBase)
21 { _func->SetReference(SHAPE_ARG_MAIN_SHAPE, theRefBase); }
23 Handle(GEOM_Function) GetMainShape() { return _func->GetReference(SHAPE_ARG_MAIN_SHAPE); }
25 void SetIndices(const Handle(TColStd_HArray1OfInteger)& theIndices)
26 { _func->SetIntegerArray(SHAPE_ARG_INDICES, theIndices); }
28 Handle(TColStd_HArray1OfInteger) GetIndices()
29 { return _func->GetIntegerArray(SHAPE_ARG_INDICES); }
33 Handle(GEOM_Function) _func;