Salome HOME
0023497: EDF 15720 - Projection transforms the type of shape
[modules/geom.git] / idl / STEPPlugin.idl
index 8021e666456b9a1d4b3b5bfc38a4bf92cbc52d5a..bbcfae2d812c3e18b4bd4e1eb6a12ae278d4496d 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2014-2016  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 
 module GEOM
 {
+  /*!
+   *  \brief Units of length
+   */
+  enum length_unit
+  {
+    LU_INCH,
+    LU_MILLIMETER,
+    LU_FOOT,
+    LU_MILE,
+    LU_METER,
+    LU_KILOMETER,
+    LU_MILLIINCH,
+    LU_MICROMETER,
+    LU_CENTIMETER,
+    LU_MICROINCH
+  };
+
   /*!
    *  \brief Interface for STEPPlugin modeling functions.
    */
@@ -34,9 +51,11 @@ module GEOM
      *
      *  \param theObject Shape to be stored in the file.
      *  \param theFileName Name of the file to store the given shape in.
+     *  \param theUnit the length unit.
      */
     void ExportSTEP( in GEOM::GEOM_Object theObject, 
-                     in string            theFileName );
+                     in string            theFileName,
+                     in GEOM::length_unit theUnit);
       
     /*!
      *  \brief Import a shape from the STEP file.
@@ -45,10 +64,14 @@ module GEOM
      *  \param theIsIgnoreUnits If True, file length units will be ignored (set to 'meter')
      *                          and result model will be scaled, if its units are not meters.
      *                          If False (default), file length units will be taken into account.
+     *  \param IsCreateAssemblies If True, for each assembly compound is created
+     *                          in the result. If False Compounds that contain a
+     *                          single shape are eliminated from the result.
      *  \return List of GEOM_Objects, containing the created shape and propagation groups.
      */              
     GEOM::ListOfGO ImportSTEP( in string  theFileName,
-                               in boolean theIsIgnoreUnits );
+                               in boolean theIsIgnoreUnits,
+                               in boolean IsCreateAssemblies);
                                
     /*!
      *  \brief Read a value of parameter from a file, containing a shape.