0021830: [CEA 652] TUI createAndDisplayGO

This commit is contained in:
vsr 2013-01-29 16:31:36 +00:00
parent 03a4ab784b
commit 0ac708f1b0
4 changed files with 391 additions and 611 deletions

View File

@ -66,12 +66,14 @@ _libGEOM_Swig_la_CPPFLAGS = \
-I$(srcdir)/../OBJECT \ -I$(srcdir)/../OBJECT \
-I$(srcdir)/../GEOMGUI \ -I$(srcdir)/../GEOMGUI \
-I$(srcdir)/../GEOMToolsGUI \ -I$(srcdir)/../GEOMToolsGUI \
-I$(srcdir)/../Material \
-I$(top_builddir)/idl -I$(top_builddir)/idl
_libGEOM_Swig_la_LDFLAGS = -module _libGEOM_Swig_la_LDFLAGS = -module
_libGEOM_Swig_la_LIBADD = \ _libGEOM_Swig_la_LIBADD = \
../GEOMGUI/libGEOM.la \ ../GEOMGUI/libGEOM.la \
../GEOMToolsGUI/libGEOMToolsGUI.la \ ../GEOMToolsGUI/libGEOMToolsGUI.la \
../Material/libMaterial.la \
$(PYTHON_LIBS) $(PYTHON_LIBS)
swig_wrap.cpp : $(SWIG_SOURCES) swig_wrap.cpp : $(SWIG_SOURCES)

File diff suppressed because it is too large Load Diff

View File

@ -19,14 +19,11 @@
// //
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
// //
// GEOM GEOMGUI : GUI for Geometry component
// File : libGEOM_Swig.h // File : libGEOM_Swig.h
// Author : Nicolas REJNERI, Paul RASCLE // Author : Nicolas REJNERI, Paul RASCLE
//
#ifndef GEOMETRYGUI_SWIG_HXX #ifndef LIBGEOM_SWIG_H
#define GEOMETRYGUI_SWIG_HXX #define LIBGEOM_SWIG_H
#include "GEOM_GEOMGUI.hxx" #include "GEOM_GEOMGUI.hxx"
@ -36,22 +33,29 @@ public:
GEOM_Swig(); GEOM_Swig();
~GEOM_Swig(); ~GEOM_Swig();
void createAndDisplayGO(const char* Entry, bool theUpdateViewer = true); void createAndDisplayGO( const char* theEntry, bool theUpdateViewer = true );
void eraseGO(const char* Entry, bool allWindows); void createAndDisplayFitAllGO( const char* theEntry );
void createAndDisplayFitAllGO(const char* Entry); void eraseGO( const char* theEntry, bool theUpdateViewer = true );
void UpdateViewer();
void setDisplayMode(const char* Entry, int mode, bool theUpdateViewer = true);
void setVectorsMode(const char* Entry, bool isSet, bool theUpdateViewer = true);
void setColor(const char* Entry, int red, int green, int blue, bool theUpdateViewer = true);
void setTransparency(const char* Entry, float transp, bool theUpdateViewer = true);
void setIsos(const char* Entry, int nbU, int nbV, bool theUpdateViewer =true);
void setDeflection(const char* Entry, float deflect);
int getIndexTopology(const char *SubEntry, const char *Entry); void UpdateViewer();
const char* getShapeTypeString(const char *Entry);
const char* getShapeTypeIcon(const char *Ior); 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 );
int getIndexTopology( const char* theSubIOR, const char* theMainIOR );
const char* getShapeTypeString( const char* theIOR );
const char* getShapeTypeIcon( const char* theIOR );
bool initGeomGen(); bool initGeomGen();
private:
void init();
}; };
#endif // GEOMETRYGUI_SWIG_HXX #endif // LIBGEOM_SWIG_H

View File

@ -55,20 +55,24 @@ class GEOM_Swig
GEOM_Swig(); GEOM_Swig();
~GEOM_Swig(); ~GEOM_Swig();
void createAndDisplayGO(const char* Entry, bool isUpdated =true); void createAndDisplayGO( const char* theEntry, bool theUpdateViewer = true );
void eraseGO(const char* Entry, bool allWindows); void createAndDisplayFitAllGO( const char* theEntry );
void createAndDisplayFitAllGO(const char* Entry); void eraseGO( const char* theEntry, bool theUpdateViewer = true );
void UpdateViewer();
int getIndexTopology(const char *SubEntry, const char *Entry);
const char* getShapeTypeString(const char *Entry);
void setDisplayMode(const char* Entry, int mode, bool isUpdated =true); void UpdateViewer();
void setVectorsMode(const char* Entry, bool isSet, bool isUpdated =true);
void setColor(const char* Entry, int red, int green, int blue, bool isUpdated =true); void setDisplayMode( const char* theEntry, int theMode, bool theUpdateViewer = true );
void setTransparency(const char* Entry, float transp, bool isUpdated =true); void setVectorsMode( const char* theEntry, bool theOn, bool theUpdateViewer = true );
void setIsos(const char* Entry, int nbU, int nbV, bool isUpdated =true); void setColor( const char* theEntry, int theRed, int theGreen, int theBlue, bool theUpdateViewer = true );
void setDeflection(const char* Entry, float deflect); void setTransparency( const char* theEntry, float theTransparency, bool theUpdateViewer = true );
const char* getShapeTypeIcon(const char *Ior); 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(); bool initGeomGen();
}; };