Salome HOME
updated copyright message
[modules/geom.git] / src / GEOM_SWIG_WITHIHM / libGEOM_Swig.h
1 // Copyright (C) 2007-2023  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 // File   : libGEOM_Swig.h
23 // Author : Nicolas REJNERI, Paul RASCLE
24
25 #ifndef LIBGEOM_SWIG_H
26 #define LIBGEOM_SWIG_H
27
28 #include "GEOM_GEOMGUI.hxx"
29 #include <vector>
30
31 class GEOM_Swig_LocalSelector;
32 class GEOMGUI_OCCSelector;
33
34 class GEOM_Swig
35 {
36 public:
37   GEOMGUI_EXPORT GEOM_Swig( bool updateOB = true );
38   GEOMGUI_EXPORT ~GEOM_Swig();
39
40   GEOMGUI_EXPORT void createAndDisplayGO( const char* theEntry, bool theUpdateViewer = true );
41   GEOMGUI_EXPORT void createAndDisplayFitAllGO( const char* theEntry );
42   GEOMGUI_EXPORT void eraseGO( const char* theEntry, bool theUpdateViewer = true );
43
44   GEOMGUI_EXPORT void UpdateViewer();
45
46   GEOMGUI_EXPORT void setDisplayMode( const char* theEntry, int theMode, bool theUpdateViewer = true );
47   GEOMGUI_EXPORT void setVectorsMode( const char* theEntry, bool theOn, bool theUpdateViewer = true );
48   GEOMGUI_EXPORT void setVerticesMode( const char* theEntry, bool theOn, bool theUpdateViewer = true );
49   GEOMGUI_EXPORT void setNameMode( const char* theEntry, bool theOn, bool theUpdateViewer = true );
50   GEOMGUI_EXPORT void setColor( const char* theEntry, int theRed, int theGreen, int theBlue, bool theUpdateViewer = true );
51   GEOMGUI_EXPORT void setTransparency( const char* theEntry, float theTransparency, bool theUpdateViewer = true );
52   GEOMGUI_EXPORT void setIsos( const char* theEntry, int theNbU, int theNbV, bool theUpdateViewer = true );
53   GEOMGUI_EXPORT void setDeflection( const char* theEntry, float theDeflection, bool theUpdateViewer = true );
54   GEOMGUI_EXPORT void setMaterial( const char* theEntry, const char* theMaterial, bool theUpdateViewer = true );
55   GEOMGUI_EXPORT void setMaterialProperty( const char* theEntry, const char* theMaterial, bool theUpdateViewer = true );
56
57   GEOMGUI_EXPORT void initLocalSelection( const char* theEntry, int theMode);
58   GEOMGUI_EXPORT std::vector<int> getLocalSelection();
59   GEOMGUI_EXPORT void closeLocalSelection();
60
61   GEOMGUI_EXPORT int         getIndexTopology( const char* theSubIOR, const char* theMainIOR );
62   GEOMGUI_EXPORT const char* getShapeTypeString( const char* theIOR );
63   GEOMGUI_EXPORT const char* getShapeTypeIcon( const char* theIOR );
64
65   GEOMGUI_EXPORT bool initGeomGen();
66
67   static GEOM_Swig_LocalSelector* myLocalSelector;
68   static GEOMGUI_OCCSelector* myOCCSelector;
69
70 private:
71   void init( bool updateOB );
72 };
73
74 #endif // LIBGEOM_SWIG_H