Salome HOME
a98c9d32b79dd51870c8abbf1e6a638cf90fe4dd
[modules/geom.git] / src / GEOMImpl / GEOMImpl_IBlocks.hxx
1 // NOTE: This is an interface to a function for the Blocks
2 // creation and transformation.
3
4
5 #include "GEOM_Function.hxx"
6
7 #include "TColStd_HSequenceOfTransient.hxx"
8
9 #define BLOCK_ARG_SHAPES 1 // Arguments for creation of block or face of block
10
11 class GEOMImpl_IBlocks
12 {
13  public:
14
15   GEOMImpl_IBlocks(Handle(GEOM_Function) theFunction): _func(theFunction) {}
16
17   void SetShapes(const Handle(TColStd_HSequenceOfTransient)& theShapes)
18   { _func->SetReferenceList(BLOCK_ARG_SHAPES, theShapes); }
19
20   Handle(TColStd_HSequenceOfTransient) GetShapes()
21   { return _func->GetReferenceList(BLOCK_ARG_SHAPES); }
22
23  private:
24
25   Handle(GEOM_Function) _func;
26 };