X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGEOM_SWIG_WITHIHM%2FlibGEOM_Swig.h;h=8ab4b15aa78b694fd9735a0d8cc204677c1b909c;hb=c52059c3f88890a936705180edf2bd54e88e160b;hp=1fd1d864e10ec59941e13c99985141579b748f17;hpb=6e2763b42437045fd4b18aa3a6197865020de84b;p=modules%2Fgeom.git diff --git a/src/GEOM_SWIG_WITHIHM/libGEOM_Swig.h b/src/GEOM_SWIG_WITHIHM/libGEOM_Swig.h index 1fd1d864e..8ab4b15aa 100644 --- a/src/GEOM_SWIG_WITHIHM/libGEOM_Swig.h +++ b/src/GEOM_SWIG_WITHIHM/libGEOM_Swig.h @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -26,37 +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(); - - void createAndDisplayGO( const char* theEntry, bool theUpdateViewer = true ); - void createAndDisplayFitAllGO( const char* theEntry ); - void eraseGO( const char* theEntry, bool theUpdateViewer = true ); - - void UpdateViewer(); - - void setDisplayMode( const char* theEntry, int theMode, bool theUpdateViewer = true ); - void setVectorsMode( const char* theEntry, bool theOn, bool theUpdateViewer = true ); - void setVerticesMode( 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 ); - - int getIndexTopology( const char* theSubIOR, const char* theMainIOR ); - const char* getShapeTypeString( const char* theIOR ); - const char* getShapeTypeIcon( const char* theIOR ); - - bool initGeomGen(); -private: + GEOMGUI_EXPORT GEOM_Swig( bool updateOB = true ); + GEOMGUI_EXPORT ~GEOM_Swig(); + + 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 ); + + GEOMGUI_EXPORT void UpdateViewer(); + + 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 ); - void init(); + GEOMGUI_EXPORT void initLocalSelection( const char* theEntry, int theMode); + GEOMGUI_EXPORT std::vector getLocalSelection(); + GEOMGUI_EXPORT void closeLocalSelection(); + + 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(); + + static GEOM_Swig_LocalSelector* myLocalSelector; + static GEOMGUI_OCCSelector* myOCCSelector; + +private: + void init( bool updateOB ); }; #endif // LIBGEOM_SWIG_H