2021-03-22 21:09:08 +05:00
|
|
|
// Copyright (C) 2014-2021 CEA/DEN, EDF R&D, OPEN CASCADE
|
2014-06-04 17:17:38 +06:00
|
|
|
//
|
|
|
|
// This library is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
// License as published by the Free Software Foundation; either
|
|
|
|
// version 2.1 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
// License along with this library; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
//
|
|
|
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef __STEPPlugin_IDL__
|
|
|
|
#define __STEPPlugin_IDL__
|
|
|
|
|
|
|
|
#include "GEOM_Gen.idl"
|
|
|
|
|
|
|
|
module GEOM
|
|
|
|
{
|
2015-12-07 17:38:50 +05:00
|
|
|
/*!
|
|
|
|
* \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
|
|
|
|
};
|
|
|
|
|
2014-06-04 17:17:38 +06:00
|
|
|
/*!
|
|
|
|
* \brief Interface for STEPPlugin modeling functions.
|
|
|
|
*/
|
|
|
|
interface ISTEPOperations : GEOM::GEOM_IOperations
|
|
|
|
{
|
|
|
|
/*!
|
|
|
|
* \brief Export the given shape into a file with given name in STEP format.
|
|
|
|
*
|
|
|
|
* \param theObject Shape to be stored in the file.
|
|
|
|
* \param theFileName Name of the file to store the given shape in.
|
2015-12-07 17:38:50 +05:00
|
|
|
* \param theUnit the length unit.
|
2014-06-04 17:17:38 +06:00
|
|
|
*/
|
|
|
|
void ExportSTEP( in GEOM::GEOM_Object theObject,
|
2015-12-07 17:38:50 +05:00
|
|
|
in string theFileName,
|
|
|
|
in GEOM::length_unit theUnit);
|
2014-06-04 17:17:38 +06:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief Import a shape from the STEP file.
|
|
|
|
*
|
|
|
|
* \param theFileName The file, containing the shape.
|
|
|
|
* \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.
|
2016-02-16 19:19:14 +05:00
|
|
|
* \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.
|
2014-06-04 17:17:38 +06:00
|
|
|
* \return List of GEOM_Objects, containing the created shape and propagation groups.
|
|
|
|
*/
|
|
|
|
GEOM::ListOfGO ImportSTEP( in string theFileName,
|
2016-02-16 19:19:14 +05:00
|
|
|
in boolean theIsIgnoreUnits,
|
|
|
|
in boolean IsCreateAssemblies);
|
2014-06-04 17:17:38 +06:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief Read a value of parameter from a file, containing a shape.
|
|
|
|
* \param theFileName The file, containing the shape.
|
|
|
|
* \param theParameterName Specify the parameter. For example, pass "LEN_UNITS"
|
|
|
|
* to obtain length units, in which the file is written.
|
|
|
|
* \return Value of requested parameter in form of text string.
|
|
|
|
*/
|
|
|
|
string ReadValue( in string theFileName,
|
|
|
|
in string theParameterName );
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __STEPPlugin_IDL__
|