1 // Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 // File : StdMeshers_QuadrangleParams_i.hxx
20 // Author : Sergey KUUL, OCC
23 #ifndef _SMESH_QUADRANGLEPARAMS_I_HXX_
24 #define _SMESH_QUADRANGLEPARAMS_I_HXX_
26 #include "SMESH_StdMeshers_I.hxx"
28 #include <SALOMEconfig.h>
29 #include CORBA_SERVER_HEADER(SMESH_BasicHypothesis)
31 #include "SMESH_Hypothesis_i.hxx"
32 #include "StdMeshers_QuadrangleParams.hxx"
34 // ======================================================
35 // QuadrangleParams hypothesis
36 // ======================================================
37 class STDMESHERS_I_EXPORT StdMeshers_QuadrangleParams_i:
38 public virtual POA_StdMeshers::StdMeshers_QuadrangleParams,
39 public virtual SMESH_Hypothesis_i
43 StdMeshers_QuadrangleParams_i (PortableServer::POA_ptr thePOA,
45 ::SMESH_Gen* theGenImpl);
47 virtual ~StdMeshers_QuadrangleParams_i();
49 // Set base vertex for triangles
50 void SetTriaVertex (CORBA::Long vertID);
52 // Get base vertex for triangles
53 CORBA::Long GetTriaVertex();
55 // Set the Entry of the Object
56 void SetObjectEntry (const char* theEntry);
59 char* GetObjectEntry();
61 // Set the type of quadrangulation
62 void SetQuadType (StdMeshers::QuadType type);
64 // Get the type of quadrangulation
65 StdMeshers::QuadType GetQuadType();
67 // Set positions of enforced nodes
68 void SetEnforcedNodes(const GEOM::ListOfGO& vertices,
69 const SMESH::nodes_array& points) throw ( SALOME::SALOME_Exception );
71 // Returns positions of enforced nodes
72 void GetEnforcedNodes(GEOM::ListOfGO_out vertices, SMESH::nodes_array_out points);
74 // Returns entries of shapes defining enforced nodes
75 SMESH::string_array* GetEnfVertices();
79 ::StdMeshers_QuadrangleParams* GetImpl();
81 // Verify whether hypothesis supports given entity type
82 CORBA::Boolean IsDimSupported( SMESH::Dimension type );
84 // Redefined Persistence
85 virtual char* SaveTo();
86 virtual void LoadFrom( const char* theStream );
90 std::vector<std::string> myShapeEntries;