1 // HOMARD HOMARD : implementation of HOMARD idl descriptions
3 // Copyright (C) 2011-2023 CEA, EDF
5 // This library is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation; either
8 // version 2.1 of the License, or (at your option) any later version.
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // Lesser General Public License for more details.
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with this library; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 // File : HOMARD_Zone.hxx
22 // Author : Gerald NICOLAS, EDF
26 // L'ordre de description des fonctions est le meme dans tous les fichiers
27 // HOMARD_aaaa.idl, HOMARD_aaaa.hxx, HOMARD_aaaa.cxx, HOMARD_aaaa_i.hxx, HOMARD_aaaa_i.cxx :
28 // 1. Les generalites : Name, Delete, DumpPython, Dump, Restore
29 // 2. Les caracteristiques
30 // 3. Le lien avec les autres structures
32 // Quand les 2 fonctions Setxxx et Getxxx sont presentes, Setxxx est decrit en premier
34 #ifndef _HOMARD_Zone_HXX_
35 #define _HOMARD_Zone_HXX_
44 #pragma warning ( disable: 4251 )
47 class HOMARDIMPL_EXPORT HOMARD_Zone
54 void SetName( const char* Name );
55 std::string GetName() const;
57 std::string GetDumpPython() const;
60 void SetType( int Type );
63 void SetBox( double X0, double X1, double X2,
64 double X3, double X4, double X5 );
66 void SetCylinder( double X0, double X1, double X2, double X3,
67 double X4, double X5, double X6, double X7 );
69 void SetPipe( double X0, double X1, double X2, double X3,
70 double X4, double X5, double X6, double X7, double X8 );
72 void SetSphere( double X0, double X1, double X2, double X3 );
74 std::vector<double> GetCoords() const;
76 void SetLimit( double X0, double X1, double X2 );
77 std::vector<double> GetLimit() const;
79 // Liens avec les autres structures
80 void AddHypo( const char* NomHypo );
81 const std::list<std::string>& GetHypo() const;
82 void SupprHypo( const char* NomHypo );
88 std::list<std::string> _ListHypo;
89 double _Xmin, _Xmax, _Ymin, _Ymax, _Zmin, _Zmax;
90 double _Xcentre, _Ycentre, _Zcentre, _Rayon, _Rayonint;
91 double _Xaxe, _Yaxe, _Zaxe, _Haut;
92 double _Xincr, _Yincr, _Zincr;