#include <gp_XY.hxx>
#include <gp_XYZ.hxx>
-#ifndef WNT
+#ifndef WIN32
#include <fenv.h>
#endif
TListOfIDs theEdge1_ids = _getSubShapeIDsInMainShape(theGeomShape, GeomEdge1, TopAbs_EDGE);
TListOfIDs theEdge2_ids = _getSubShapeIDsInMainShape(theGeomShape, GeomEdge2, TopAbs_EDGE);
- if (edge_orientation == 0 and GeomEdge1.Closed())
+ if (edge_orientation == 0 && GeomEdge1.Closed())
{
// if edge is closed, we have to set its orientation
MESSAGE("GeomEdge1.Orientation() = " << GeomEdge1.Orientation());
}
MESSAGE("_preCadEdgesIDsPeriodicityVector.size() = " << _preCadEdgesIDsPeriodicityVector.size());
- if ( _preCadFacesIDsPeriodicityVector.size() > 0 or _preCadEdgesIDsPeriodicityVector.size() > 0 )
+ if ( _preCadFacesIDsPeriodicityVector.size() > 0 || _preCadEdgesIDsPeriodicityVector.size() > 0 )
{
MESSAGE("USING PRECAD FOR PERIODICITY")
*use_precad = true;
TopTools_IndexedMapOfShape pmap;
// Issue 0019864. On DebianSarge, FE signals do not obey to OSD::SetSignal(false)
-#ifndef WNT
+#ifndef WIN32
feclearexcept( FE_ALL_EXCEPT );
int oldFEFlags = fedisableexcept( FE_ALL_EXCEPT );
#endif
}
// Issue 0019864. On DebianSarge, FE signals do not obey to OSD::SetSignal(false)
-#ifndef WNT
+#ifndef WIN32
if ( oldFEFlags > 0 )
feenableexcept( oldFEFlags );
feclearexcept( FE_ALL_EXCEPT );
for (; it_edges_periodicity != _edgesPeriodicityVector.end(); ++it_edges_periodicity) {
TEdgePeriodicity periodicity_i = (*it_edges_periodicity);
save << " " << "__BEGIN_PERIODICITY_DESCRIPTION__";
- if (not periodicity_i.theFace1Entry.empty()){
+ if (! periodicity_i.theFace1Entry.empty()){
save << " " << "__BEGIN_FACE1__";
save << " " << periodicity_i.theFace1Entry;
save << " " << "__END_FACE1__";
save << " " << "__BEGIN_EDGE1__";
save << " " << periodicity_i.theEdge1Entry;
save << " " << "__END_EDGE1__";
- if (not periodicity_i.theFace2Entry.empty()){
+ if (! periodicity_i.theFace2Entry.empty()){
save << " " << "__BEGIN_FACE2__";
save << " " << periodicity_i.theFace2Entry;
save << " " << "__END_FACE2__";
myPreCadPeriodicity->shape2Entry = CORBA::string_dup(preCadPeriodicityVector_i.shape2Entry.c_str());
BLSURFPlugin::TEntryList_var sourceVertices = new BLSURFPlugin::TEntryList();
- if (not preCadPeriodicityVector_i.theSourceVerticesEntries.empty())
+ if (! preCadPeriodicityVector_i.theSourceVerticesEntries.empty())
{
sourceVertices->length(preCadPeriodicityVector_i.theSourceVerticesEntries.size());
for (size_t j=0; j<preCadPeriodicityVector_i.theSourceVerticesEntries.size(); j++)
myPreCadPeriodicity->theSourceVerticesEntries = sourceVertices;
BLSURFPlugin::TEntryList_var targetVertices = new BLSURFPlugin::TEntryList();
- if (not preCadPeriodicityVector_i.theTargetVerticesEntries.empty())
+ if (! preCadPeriodicityVector_i.theTargetVerticesEntries.empty())
{
targetVertices->length(preCadPeriodicityVector_i.theTargetVerticesEntries.size());
for (size_t j=0; j<preCadPeriodicityVector_i.theTargetVerticesEntries.size(); j++)
} else if (index.column() == ENF_VER_ENTRY_COLUMN) {
QLineEdit *lineEdit = static_cast<QLineEdit*>(editor);
QString value = lineEdit->text();
- if (! vertexExists(model, index, value))
+ if (!vertexExists(model, index, value))
model->setData(index, value, Qt::EditRole);
} else if (index.column() == ENF_VER_GROUP_COLUMN) {
QLineEdit *lineEdit = static_cast<QLineEdit*>(editor);
int selSource = myPeriodicitySourceFaceWdg->NbObjects();
int selTarget = myPeriodicityTargetFaceWdg->NbObjects();
- if (selSource == 0 or selTarget == 0)
+ if (selSource == 0 || selTarget == 0)
return;
// Vertices selection
int P2Tsel = myPeriodicityP2TargetWdg->NbObjects();
int P3Tsel = myPeriodicityP3TargetWdg->NbObjects();
- if (P1Ssel!=1 or P2Ssel!=1 or P3Ssel!=1 or P1Tsel!=1 or P3Tsel!=1 or P3Tsel!=1)
+ if (P1Ssel!=1 || P2Ssel!=1 || P3Ssel!=1 || P1Tsel!=1 || P3Tsel!=1 || P3Tsel!=1)
{
QString msg = tr("BLSURF_PERIODICITY_WRONG_NUMBER_OF_VERTICES");
SUIT_MessageBox::critical( dlg(),"Error" , msg );
shapeEntry = shape->GetStudyEntry();
item->setData(k, Qt::EditRole, shapeName.c_str() );
item->setData(k, Qt::UserRole, shapeEntry.c_str() );
- if (not myPeriodicityGroupBox2->isChecked() and k==1)
+ if (! myPeriodicityGroupBox2->isChecked() && k==1)
break;
}
*/
void BLSURFPluginGUI_HypothesisCreator::onPeriodicityByVerticesChecked(bool checked)
{
- if (not checked)
+ if (! checked)
{
for (size_t k=2; k<myPeriodicitySelectionWidgets.size(); k++)
{
shapeName = item->data(k, Qt::EditRole).toString();
shapeEntry = item->data(k, Qt::UserRole).toString();
- if (not shapeEntry.isEmpty())
+ if (! shapeEntry.isEmpty())
{
shape = entryToObject(shapeEntry);
w1->SetObject(shape);
for (; anIt != myPeriodicitySelectionWidgets.end(); anIt++, k++)
{
StdMeshersGUI_ObjectReferenceParamWdg * w1 = ( StdMeshersGUI_ObjectReferenceParamWdg* ) ( *anIt );
- if (w1->IsSelectionActivated() and k<(myPeriodicitySelectionWidgets.size()-1))
+ if (w1->IsSelectionActivated() && k<(myPeriodicitySelectionWidgets.size()-1))
{
// don't activate vertex selection if the group box is not checked
- if (k==1 and not myPeriodicityGroupBox2->isChecked())
+ if (k==1 && !myPeriodicityGroupBox2->isChecked())
break;
// clear the selection, to avoid to put the same object in the other widget
that->getGeomSelectionTool()->selectionMgr()->clearSelected();
h->SetInternalEnforcedVertexAllFacesGroup( h_data.myInternalEnforcedVerticesAllFacesGroup.c_str() );
// Periodicity
- if ( h->GetPreCadFacesPeriodicityVector()->length() > 0 or h->GetPreCadEdgesPeriodicityVector()->length() > 0 )
+ if ( h->GetPreCadFacesPeriodicityVector()->length() > 0 || h->GetPreCadEdgesPeriodicityVector()->length() > 0 )
h->ClearPreCadPeriodicityVectors();
MESSAGE("h_data.preCadPeriodicityVector.size(): " << h_data.preCadPeriodicityVector.size());
bool onFace = (periodicity_i[PERIODICITY_SHAPE_TYPE]=="1") ? true : false;
BLSURFPlugin::TEntryList_var sourceVertices = new BLSURFPlugin::TEntryList();
- if (not p1Source.empty())
+ if (! p1Source.empty())
{
sourceVertices->length(3);
sourceVertices[0]=CORBA::string_dup(p1Source.c_str());
BLSURFPlugin::TEntryList_var targetVertices = new BLSURFPlugin::TEntryList();
- if (not p1Target.empty())
+ if (! p1Target.empty())
{
targetVertices->length(3);
targetVertices[0]=CORBA::string_dup(p1Target.c_str());