2023-06-19 21:32:54 +05:00
|
|
|
// Copyright (C) 2014-2023 CEA, EDF, 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 __XAOPlugin_IDL__
|
|
|
|
#define __XAOPlugin_IDL__
|
|
|
|
|
|
|
|
#include "GEOM_Gen.idl"
|
|
|
|
|
|
|
|
module GEOM
|
|
|
|
{
|
|
|
|
/*!
|
|
|
|
* \brief Interface for XAOPlugin modeling functions.
|
|
|
|
*/
|
|
|
|
interface IXAOOperations : GEOM::GEOM_IOperations
|
|
|
|
{
|
|
|
|
/*!
|
|
|
|
* Export a shape to XAO format
|
|
|
|
* \param shape The shape to export
|
|
|
|
* \param groups The list of groups to export
|
|
|
|
* \param fields The list of fields to export
|
|
|
|
* \param author The author of the export
|
|
|
|
* \param fileName The name of the file to export
|
2016-12-15 20:36:42 +05:00
|
|
|
* \param shapeFileName The name of the file to export the shape in an external file
|
2014-06-04 17:17:38 +06:00
|
|
|
* \return boolean indicating if export was successful.
|
|
|
|
*/
|
|
|
|
boolean ExportXAO( in GEOM::GEOM_Object shape,
|
|
|
|
in GEOM::ListOfGO groups,
|
|
|
|
in GEOM::ListOfFields fields,
|
|
|
|
in string author,
|
2016-12-15 20:36:42 +05:00
|
|
|
in string fileName,
|
|
|
|
in string shapeFileName );
|
2014-06-04 17:17:38 +06:00
|
|
|
|
2023-06-01 20:50:36 +05:00
|
|
|
/*!
|
|
|
|
* Export a shape to XAO format in a byte array
|
|
|
|
* \param shape The shape to export
|
|
|
|
* \param groups The list of groups to export
|
|
|
|
* \param fields The list of fields to export
|
|
|
|
* \param author The author of the export
|
|
|
|
* \return Byte array with exported data.
|
|
|
|
*/
|
|
|
|
SALOMEDS::TMPFile ExportXAOMem( in GEOM::GEOM_Object shape,
|
|
|
|
in GEOM::ListOfGO groups,
|
|
|
|
in GEOM::ListOfFields fields,
|
|
|
|
in string author );
|
|
|
|
|
2014-06-04 17:17:38 +06:00
|
|
|
/*!
|
|
|
|
* Import a shape from XAO format
|
|
|
|
* \param fileName The name of the file to import
|
|
|
|
* \param shape The imported shape
|
|
|
|
* \param subShapes The list of imported subShapes
|
|
|
|
* \param groups The list of imported groups
|
|
|
|
* \param fields The list of imported fields
|
|
|
|
* \return boolean indicating if import was successful.
|
|
|
|
*/
|
|
|
|
boolean ImportXAO( in string fileName,
|
|
|
|
out GEOM::GEOM_Object shape,
|
|
|
|
out GEOM::ListOfGO subShapes,
|
|
|
|
out GEOM::ListOfGO groups,
|
|
|
|
out GEOM::ListOfFields fields );
|
2023-06-01 20:50:36 +05:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* Import a shape from XAO format byte array
|
|
|
|
* \param theBuff The byte array with data in XAO format
|
|
|
|
* \param shape The imported shape
|
|
|
|
* \param subShapes The list of imported subShapes
|
|
|
|
* \param groups The list of imported groups
|
|
|
|
* \param fields The list of imported fields
|
|
|
|
* \return boolean indicating if import was successful.
|
|
|
|
*/
|
|
|
|
boolean ImportXAOMem( in SALOMEDS::TMPFile theBuff,
|
|
|
|
out GEOM::GEOM_Object shape,
|
|
|
|
out GEOM::ListOfGO subShapes,
|
|
|
|
out GEOM::ListOfGO groups,
|
|
|
|
out GEOM::ListOfFields fields );
|
2014-06-04 17:17:38 +06:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __XAOPlugin_IDL__
|