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();
This commit is contained in:
eap 2013-06-17 12:52:22 +00:00
parent 2100873392
commit d609d087b1

View File

@ -190,6 +190,25 @@ module GEOM
HEXAGON HEXAGON
}; };
/*!
* \brief Object creation parameters
*
* Is returned by GEOM_Object::GetCreationInformation()
*/
struct Parameter
{
string name;
//any value;
string value;
};
typedef sequence<Parameter> Parameters;
struct CreationInformation
{
string operationName;
Parameters params;
};
typedef sequence<string> string_array; typedef sequence<string> string_array;
typedef sequence<short> short_array; typedef sequence<short> short_array;
@ -410,6 +429,11 @@ module GEOM
* \brief Return list of notebook variables used for object creation separated by ":" symbol * \brief Return list of notebook variables used for object creation separated by ":" symbol
*/ */
string GetParameters(); string GetParameters();
/*!
* \brief Return name of operation and values of parameters used for object creation
*/
CreationInformation GetCreationInformation();
}; };
// # GEOM_IOperations: // # GEOM_IOperations:
@ -1546,6 +1570,7 @@ module GEOM
* \brief Make a thick solid from a surface shape (face or shell) * \brief Make a thick solid from a surface shape (face or shell)
* \param theObject Surface from which the thick solid is made * \param theObject Surface from which the thick solid is made
* \param theThickness Value of the thickness * \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 * \return New GEOM_Object, containing the created pipe if isCopy = true
* or the modified object if isCopy = false * or the modified object if isCopy = false
*/ */
@ -4372,6 +4397,7 @@ module GEOM
* \param theR Radius of the disk * \param theR Radius of the disk
* \param theRatio Relative size of the central square diagonal against the disk diameter * \param theRatio Relative size of the central square diagonal against the disk diameter
* \param theOrientation Plane on which the disk will be built * \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. * \return New GEOM_Object, containing the created shape.
*/ */
GEOM_Object MakeDividedDisk (in double theR, GEOM_Object MakeDividedDisk (in double theR,
@ -4385,6 +4411,7 @@ module GEOM
* \param theVec Vector, normal to the plane of the disk. * \param theVec Vector, normal to the plane of the disk.
* \param theR Disk radius. * \param theR Disk radius.
* \param theRatio Relative size of the central square diagonal against the disk diameter * \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. * \return New GEOM_Object, containing the created disk.
*/ */
GEOM_Object MakeDividedDiskPntVecR ( in GEOM_Object thePnt, GEOM_Object MakeDividedDiskPntVecR ( in GEOM_Object thePnt,
@ -4397,12 +4424,12 @@ module GEOM
* Builds a cylinder prepared for hexa meshes * Builds a cylinder prepared for hexa meshes
* \param theR Radius of the cylinder * \param theR Radius of the cylinder
* \param theH Height 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. * \return New GEOM_Object, containing the created shape.
*/ */
GEOM_Object MakeDividedCylinder (in double theR, GEOM_Object MakeDividedCylinder (in double theR,
in double theH, in double theH,
in pattern thePattern ); in pattern thePattern );
/*! /*!
* *
* Create a smoothing surface from a set of points * Create a smoothing surface from a set of points