aSel = GeomToolSelected->selectionMgr();
/* Initialize the Python interpreter */
- if (not Py_IsInitialized())
+ if (! Py_IsInitialized())
throw ("Error: Python interpreter is not initialized");
PyGILState_STATE gstate;
gstate = PyGILState_Ensure();
BLSURFPluginGUI_HypothesisCreator* that = (BLSURFPluginGUI_HypothesisCreator*)this;
_PTR(Study) aStudy = SMESH::GetActiveStudyDocument();
MESSAGE("aStudy->StudyId(): " << aStudy->StudyId());
- if (that->GeomToolSelected == NULL or that->GeomToolSelected->getMyStudy() != aStudy) {
+ if (that->GeomToolSelected == NULL || that->GeomToolSelected->getMyStudy() != aStudy) {
MESSAGE("GeomToolSelected is created");
that->GeomToolSelected = new GeomSelectionTools(aStudy);
}
QString entry = that->mySizeMapTable->item(row, SMP_ENTRY_COLUMN)->text();
QString sizeMap = that->mySizeMapTable->item(row, SMP_SIZEMAP_COLUMN)->text().trimmed();
MESSAGE("entry: " << entry.toStdString() << ", sizeMap: " << sizeMap.toStdString());
- if (not that->mySMPShapeTypeMap.contains(entry))
+ if (! that->mySMPShapeTypeMap.contains(entry))
return;
if (that->mySMPMap.contains(entry))
if (that->mySMPMap[entry] == sizeMap)
return;
QColor* bgColor = new QColor("white");
QColor* fgColor = new QColor("black");
- if (not sizeMap.isEmpty()) {
+ if (! sizeMap.isEmpty()) {
that->mySMPMap[entry] = sizeMap;
- if (not sizeMapValidationFromRow(row)) {
+ if (! sizeMapValidationFromRow(row)) {
bgColor->setRgb(255,0,0);
fgColor->setRgb(255,255,255);
}
MESSAGE("BLSURFPluginGUI_HypothesisCreator::sizeMapsValidation()");
int row = 0, nbRows = mySizeMapTable->rowCount();
for ( ; row < nbRows; ++row )
- if (not sizeMapValidationFromRow(row))
+ if (! sizeMapValidationFromRow(row))
return false;
return true;
}
BLSURFPluginGUI_HypothesisCreator* that = (BLSURFPluginGUI_HypothesisCreator*)this;
- if (not that->mySMPMap.contains(myEntry)) {
+ if (! that->mySMPMap.contains(myEntry)) {
MESSAGE("Geometry with entry "<<myEntry.toStdString()<<" was not found.");
return false;
}
- if (not that->mySMPShapeTypeMap.contains(myEntry)) {
+ if (! that->mySMPShapeTypeMap.contains(myEntry)) {
MESSAGE("Shape type with entry "<<myEntry.toStdString()<<" was not found.");
return false;
}
else if (that->mySMPMap[myEntry].startsWith("ATTRACTOR")) {
MESSAGE("Attractor" );
// if ((that->mySMPMap[myEntry].count(QRegExp("ATTRACTOR([0-9])")) != 1))
- if ((that->mySMPMap[myEntry].count('(') != 1) or
- (that->mySMPMap[myEntry].count(')') != 1) or
- (that->mySMPMap[myEntry].count(';') != 4) or
+ if ((that->mySMPMap[myEntry].count('(') != 1) ||
+ (that->mySMPMap[myEntry].count(')') != 1) ||
+ (that->mySMPMap[myEntry].count(';') != 4) ||
(that->mySMPMap[myEntry].size() == 15)){
if (displayError)
SUIT_MessageBox::warning( dlg(),"Definition of attractor : Error" ,"An attractor is defined with the following pattern: ATTRACTOR(xa;ya;za;a;b)" );
expr = "def f() : return " + that->mySMPMap[myEntry].toStdString();
}
//assert(Py_IsInitialized());
- if (not Py_IsInitialized())
+ if (! Py_IsInitialized())
throw ("Erreur: Python interpreter is not initialized");
PyGILState_STATE gstate;
gstate = PyGILState_Ensure();
#define BLSURFPLUGINGUI_HypothesisCreator_H
#ifdef WIN32
- #ifdef BLSURFPLUGIN_GUI_EXPORTS
+ #if defined BLSURFPLUGIN_GUI_EXPORTS || defined BLSURFPluginGUI_EXPORTS
#define BLSURFPLUGIN_GUI_EXPORT __declspec( dllexport )
#else
#define BLSURFPLUGIN_GUI_EXPORT __declspec( dllimport )
#define BLSURFPLUGIN_GUI_EXPORT
#endif
+#ifdef WNT
+// E.A. : On windows with python 2.6, there is a conflict
+// E.A. : between pymath.h and Standard_math.h which define
+// E.A. : some same symbols : acosh, asinh, ...
+#include <Standard_math.hxx>
+#include <pymath.h>
+#endif
+
#include <Python.h>
#include <SMESHGUI_Hypotheses.h>
#include <SALOMEconfig.h>
#ifndef _GEOMSELECTIONTOOLS_H_
#define _GEOMSELECTIONTOOLS_H_
+#ifdef WIN32
+# ifdef GeomSelectionTools_EXPORTS
+# define GEOMSELECTIONTOOLS_EXPORT __declspec( dllexport )
+# else
+# define GEOMSELECTIONTOOLS_EXPORT __declspec( dllimport )
+# endif
+#else
+# define GEOMSELECTIONTOOLS_EXPORT
+#endif
+
#include "SALOMEDSClient.hxx"
#include "SALOME_InteractiveObject.hxx"
#include <SALOME_ListIO.hxx>
*
*/
-class GeomSelectionTools
+class GEOMSELECTIONTOOLS_EXPORT GeomSelectionTools
{
private:
};
-#endif // _GEOMSELECTIONTOOLS_H_
\ No newline at end of file
+#endif // _GEOMSELECTIONTOOLS_H_