1 // NOTE: This is an interface to a function for the Blocks
2 // creation and transformation.
5 #include "GEOM_Function.hxx"
7 #include "TColStd_HSequenceOfTransient.hxx"
9 #define BLOCK_ARG_SHAPES 1 // Arguments for creation of block or face of block
11 class GEOMImpl_IBlocks
15 GEOMImpl_IBlocks(Handle(GEOM_Function) theFunction): _func(theFunction) {}
17 void SetShapes(const Handle(TColStd_HSequenceOfTransient)& theShapes)
18 { _func->SetReferenceList(BLOCK_ARG_SHAPES, theShapes); }
20 Handle(TColStd_HSequenceOfTransient) GetShapes()
21 { return _func->GetReferenceList(BLOCK_ARG_SHAPES); }
25 Handle(GEOM_Function) _func;