From d609d087b1c433e50dc92ba44e3542068b63001d Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 17 Jun 2013 12:52:22 +0000 Subject: [PATCH] 0021684: EDF 2221 : Display the arguments and the name of the operations + struct CreationInformation + { + string operationName; + Parameters params; + }; interface GEOM_Object : SALOME::GenericObj { + CreationInformation GetCreationInformation(); --- idl/GEOM_Gen.idl | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/idl/GEOM_Gen.idl b/idl/GEOM_Gen.idl index 2ed2f671c..bbd4cf7c1 100644 --- a/idl/GEOM_Gen.idl +++ b/idl/GEOM_Gen.idl @@ -190,6 +190,25 @@ module GEOM HEXAGON }; + /*! + * \brief Object creation parameters + * + * Is returned by GEOM_Object::GetCreationInformation() + */ + struct Parameter + { + string name; + //any value; + string value; + }; + typedef sequence Parameters; + + struct CreationInformation + { + string operationName; + Parameters params; + }; + typedef sequence string_array; typedef sequence short_array; @@ -410,9 +429,14 @@ module GEOM * \brief Return list of notebook variables used for object creation separated by ":" symbol */ string GetParameters(); + + /*! + * \brief Return name of operation and values of parameters used for object creation + */ + CreationInformation GetCreationInformation(); }; - // # GEOM_IOperations: + // # GEOM_IOperations: /*! * \brief Basic methods of all geometric operations */ @@ -1546,6 +1570,7 @@ module GEOM * \brief Make a thick solid from a surface shape (face or shell) * \param theObject Surface from which the thick solid is made * \param theThickness Value of the thickness + * \param isCopy To make a copy of \a theObject ot to modify \a theObject. * \return New GEOM_Object, containing the created pipe if isCopy = true * or the modified object if isCopy = false */ @@ -4372,6 +4397,7 @@ module GEOM * \param theR Radius of the disk * \param theRatio Relative size of the central square diagonal against the disk diameter * \param theOrientation Plane on which the disk will be built + * \param thePattern Division pattern. It can be GEOM.SQUARE or GEOM.HEXAGON * \return New GEOM_Object, containing the created shape. */ GEOM_Object MakeDividedDisk (in double theR, @@ -4385,6 +4411,7 @@ module GEOM * \param theVec Vector, normal to the plane of the disk. * \param theR Disk radius. * \param theRatio Relative size of the central square diagonal against the disk diameter + * \param thePattern Division pattern. It can be GEOM.SQUARE or GEOM.HEXAGON * \return New GEOM_Object, containing the created disk. */ GEOM_Object MakeDividedDiskPntVecR ( in GEOM_Object thePnt, @@ -4397,12 +4424,12 @@ module GEOM * Builds a cylinder prepared for hexa meshes * \param theR Radius of the cylinder * \param theH Height of the cylinder + * \param thePattern Division pattern. It can be GEOM.SQUARE or GEOM.HEXAGON * \return New GEOM_Object, containing the created shape. */ GEOM_Object MakeDividedCylinder (in double theR, in double theH, in pattern thePattern ); - /*! * * Create a smoothing surface from a set of points -- 2.39.2