smesh/src/SMESH_I/SMESH_Pattern_i.hxx

110 lines
3.8 KiB
C++
Raw Normal View History

2013-04-01 19:05:47 +06:00
// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
2009-02-17 10:27:49 +05:00
//
2012-08-09 16:03:55 +06:00
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
2004-12-01 15:48:31 +05:00
//
2012-08-09 16:03:55 +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.
2004-12-01 15:48:31 +05:00
//
2012-08-09 16:03:55 +06:00
// 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.
2004-12-01 15:48:31 +05:00
//
2012-08-09 16:03:55 +06:00
// 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
2004-12-01 15:48:31 +05:00
//
2012-08-09 16:03:55 +06:00
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
2009-02-17 10:27:49 +05:00
//
2012-08-09 16:03:55 +06:00
2009-02-17 10:27:49 +05:00
// SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
2004-12-01 15:48:31 +05:00
// File : SMESH_Pattern_i.hxx
// Created : Fri Aug 20 16:03:15 2004
// Author : Edward AGAPOV (eap)
// $Header:
2009-02-17 10:27:49 +05:00
//
2004-12-01 15:48:31 +05:00
#ifndef SMESH_Pattern_I_HeaderFile
#define SMESH_Pattern_I_HeaderFile
#include "SMESH.hxx"
2004-12-01 15:48:31 +05:00
#include "SALOMEconfig.h"
#include CORBA_SERVER_HEADER(SMESH_Pattern)
#include CORBA_SERVER_HEADER(SMESH_Mesh)
#include CORBA_CLIENT_HEADER(GEOM_Gen)
#include <TopoDS_Shape.hxx>
#include "SMESH_Pattern.hxx"
class SMESH_Gen_i;
class SMESH_Mesh;
class SMESH_I_EXPORT SMESH_Pattern_i:
2004-12-01 15:48:31 +05:00
public virtual POA_SMESH::SMESH_Pattern
{
public:
SMESH_Pattern_i (SMESH_Gen_i* theGen_i);
CORBA::Boolean LoadFromFile(const char* theFileContents);
CORBA::Boolean LoadFromFace(SMESH::SMESH_Mesh_ptr theMesh,
GEOM::GEOM_Object_ptr theFace,
CORBA::Boolean theProject);
CORBA::Boolean LoadFrom3DBlock(SMESH::SMESH_Mesh_ptr theMesh,
GEOM::GEOM_Object_ptr theBlock);
SMESH::point_array* ApplyToFace(GEOM::GEOM_Object_ptr theFace,
GEOM::GEOM_Object_ptr theVertexOnKeyPoint1,
CORBA::Boolean theReverse);
SMESH::point_array* ApplyTo3DBlock(GEOM::GEOM_Object_ptr theBlock,
GEOM::GEOM_Object_ptr theVertex000,
GEOM::GEOM_Object_ptr theVertex001);
2005-01-20 11:25:54 +05:00
SMESH::point_array* ApplyToMeshFaces(SMESH::SMESH_Mesh_ptr theMesh,
const SMESH::long_array& theFacesIDs,
CORBA::Long theNodeIndexOnKeyPoint1,
CORBA::Boolean theReverse);
SMESH::point_array* ApplyToHexahedrons(SMESH::SMESH_Mesh_ptr theMesh,
const SMESH::long_array& theVolumesIDs,
CORBA::Long theNode000Index,
CORBA::Long theNode001Index);
//for omniORB conflict compilation
/*CORBA::Boolean MakeMesh (SMESH::SMESH_Mesh_ptr theMesh,
const CORBA::Boolean CreatePolygons,
const CORBA::Boolean CreatePolyedrs);*/
CORBA::Boolean MakeMesh (SMESH::SMESH_Mesh_ptr theMesh,
CORBA::Boolean CreatePolygons,
CORBA::Boolean CreatePolyedrs);
2004-12-01 15:48:31 +05:00
SMESH::SMESH_Pattern::ErrorCode GetErrorCode();
char* GetString();
CORBA::Boolean Is2D();
SMESH::point_array* GetPoints();
SMESH::long_array* GetKeyPoints();
SMESH::array_of_long_array* GetElementPoints(CORBA::Boolean applied);
2004-12-01 15:48:31 +05:00
private:
::SMESH_Mesh* getMesh( SMESH::SMESH_Mesh_ptr & theMesh );
::SMESH_Pattern myPattern;
SMESH_Gen_i* myGen;
};
#endif