X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGEOM_SWIG_WITHIHM%2FlibGEOM_Swig.h;h=56fa81e2142fa1ed2aeb5bef86de92fd66b02f23;hb=25a3dc91508bb59688142bc616b10facc61dfc3d;hp=8580c87c9d989714397298eb3edd6c0ebfecabf7;hpb=465e84c52edb243fa36d581abc659b1c97156c64;p=modules%2Fgeom.git diff --git a/src/GEOM_SWIG_WITHIHM/libGEOM_Swig.h b/src/GEOM_SWIG_WITHIHM/libGEOM_Swig.h index 8580c87c9..56fa81e21 100644 --- a/src/GEOM_SWIG_WITHIHM/libGEOM_Swig.h +++ b/src/GEOM_SWIG_WITHIHM/libGEOM_Swig.h @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -6,7 +6,7 @@ // 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. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -26,36 +26,49 @@ #define LIBGEOM_SWIG_H #include "GEOM_GEOMGUI.hxx" +#include -class GEOMGUI_EXPORT GEOM_Swig +class GEOM_Swig_LocalSelector; +class GEOMGUI_OCCSelector; + +class GEOM_Swig { public: - GEOM_Swig(); - ~GEOM_Swig(); + GEOMGUI_EXPORT GEOM_Swig( bool updateOB = true ); + GEOMGUI_EXPORT ~GEOM_Swig(); - void createAndDisplayGO( const char* theEntry, bool theUpdateViewer = true ); - void createAndDisplayFitAllGO( const char* theEntry ); - void eraseGO( const char* theEntry, bool theUpdateViewer = true ); + GEOMGUI_EXPORT void createAndDisplayGO( const char* theEntry, bool theUpdateViewer = true ); + GEOMGUI_EXPORT void createAndDisplayFitAllGO( const char* theEntry ); + GEOMGUI_EXPORT void eraseGO( const char* theEntry, bool theUpdateViewer = true ); - void UpdateViewer(); + GEOMGUI_EXPORT void UpdateViewer(); - void setDisplayMode( const char* theEntry, int theMode, bool theUpdateViewer = true ); - void setVectorsMode( const char* theEntry, bool theOn, bool theUpdateViewer = true ); - void setColor( const char* theEntry, int theRed, int theGreen, int theBlue, bool theUpdateViewer = true ); - void setTransparency( const char* theEntry, float theTransparency, bool theUpdateViewer = true ); - void setIsos( const char* theEntry, int theNbU, int theNbV, bool theUpdateViewer = true ); - void setDeflection( const char* theEntry, float theDeflection, bool theUpdateViewer = true ); - void setMaterial( const char* theEntry, const char* theMaterial, bool theUpdateViewer = true ); - void setMaterialProperty( const char* theEntry, const char* theMaterial, bool theUpdateViewer = true ); + GEOMGUI_EXPORT void setDisplayMode( const char* theEntry, int theMode, bool theUpdateViewer = true ); + GEOMGUI_EXPORT void setVectorsMode( const char* theEntry, bool theOn, bool theUpdateViewer = true ); + GEOMGUI_EXPORT void setVerticesMode( const char* theEntry, bool theOn, bool theUpdateViewer = true ); + GEOMGUI_EXPORT void setNameMode( const char* theEntry, bool theOn, bool theUpdateViewer = true ); + GEOMGUI_EXPORT void setColor( const char* theEntry, int theRed, int theGreen, int theBlue, bool theUpdateViewer = true ); + GEOMGUI_EXPORT void setTransparency( const char* theEntry, float theTransparency, bool theUpdateViewer = true ); + GEOMGUI_EXPORT void setIsos( const char* theEntry, int theNbU, int theNbV, bool theUpdateViewer = true ); + GEOMGUI_EXPORT void setDeflection( const char* theEntry, float theDeflection, bool theUpdateViewer = true ); + GEOMGUI_EXPORT void setMaterial( const char* theEntry, const char* theMaterial, bool theUpdateViewer = true ); + GEOMGUI_EXPORT void setMaterialProperty( const char* theEntry, const char* theMaterial, bool theUpdateViewer = true ); - int getIndexTopology( const char* theSubIOR, const char* theMainIOR ); - const char* getShapeTypeString( const char* theIOR ); - const char* getShapeTypeIcon( const char* theIOR ); + GEOMGUI_EXPORT void initLocalSelection( const char* theEntry, int theMode); + GEOMGUI_EXPORT std::vector getLocalSelection(); + GEOMGUI_EXPORT void closeLocalSelection(); - bool initGeomGen(); -private: + GEOMGUI_EXPORT int getIndexTopology( const char* theSubIOR, const char* theMainIOR ); + GEOMGUI_EXPORT const char* getShapeTypeString( const char* theIOR ); + GEOMGUI_EXPORT const char* getShapeTypeIcon( const char* theIOR ); + + GEOMGUI_EXPORT bool initGeomGen(); - void init(); + static GEOM_Swig_LocalSelector* myLocalSelector; + static GEOMGUI_OCCSelector* myOCCSelector; + +private: + void init( bool updateOB ); }; #endif // LIBGEOM_SWIG_H