Salome HOME
Merge remote branch 'origin/gdd/translations'
[modules/smesh.git] / src / StdMeshers_I / StdMeshers_QuadrangleParams_i.hxx
1 // Copyright (C) 2007-2015  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
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.
7 //
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.
12 //
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
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 //  File   : StdMeshers_QuadrangleParams_i.hxx
20 //  Author : Sergey KUUL, OCC
21 //  Module : SMESH
22
23 #ifndef _SMESH_QUADRANGLEPARAMS_I_HXX_
24 #define _SMESH_QUADRANGLEPARAMS_I_HXX_
25
26 #include "SMESH_StdMeshers_I.hxx"
27
28 #include <SALOMEconfig.h>
29 #include CORBA_SERVER_HEADER(SMESH_BasicHypothesis)
30
31 #include "SMESH_Hypothesis_i.hxx"
32 #include "StdMeshers_QuadrangleParams.hxx"
33
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
40 {
41 public:
42   // Constructor
43   StdMeshers_QuadrangleParams_i (PortableServer::POA_ptr thePOA,
44                                  int                     theStudyId,
45                                  ::SMESH_Gen*            theGenImpl);
46   // Destructor
47   virtual ~StdMeshers_QuadrangleParams_i();
48
49   // Set base vertex for triangles
50   void SetTriaVertex (CORBA::Long vertID);
51
52   // Get base vertex for triangles
53   CORBA::Long GetTriaVertex();
54   
55   // Set the Entry of the Object
56   void SetObjectEntry (const char* theEntry);
57
58   // Get Object Entry
59   char* GetObjectEntry();
60
61   // Set the type of quadrangulation
62   void SetQuadType (StdMeshers::QuadType type);
63
64   // Get the type of quadrangulation
65   StdMeshers::QuadType GetQuadType();
66
67   // Set positions of enforced nodes
68   void SetEnforcedNodes(const GEOM::ListOfGO&     vertices,
69                         const SMESH::nodes_array& points) throw ( SALOME::SALOME_Exception );
70   
71   // Returns positions of enforced nodes
72   void GetEnforcedNodes(GEOM::ListOfGO_out vertices, SMESH::nodes_array_out points);
73
74   // Returns entries of shapes defining enforced nodes
75   SMESH::string_array* GetEnfVertices();
76
77
78   // Get implementation
79   ::StdMeshers_QuadrangleParams* GetImpl();
80   
81   // Verify whether hypothesis supports given entity type 
82   CORBA::Boolean IsDimSupported( SMESH::Dimension type );
83
84   // Redefined Persistence
85   virtual char* SaveTo();
86   virtual void  LoadFrom( const char* theStream );
87
88  protected:
89
90   std::vector<std::string> myShapeEntries;
91   
92 };
93
94 #endif