}
else
{
- myVLWidget->labelFacesWithLayers->setVisible(false);
+ myVLWidget->labelFacesWithLayers->setVisible(false);
myVLWidget->myFacesWithLayers->setVisible(false);
myVLWidget->labelImprintedFaces->setVisible(false);
myVLWidget->myImprintedFaces->setVisible(false);
void HexoticPluginGUI_HypothesisCreator::onAddLocalSize()
{
int rowCount = mySmpWidget->tableWidget->rowCount();
- int columnCount = mySmpWidget->tableWidget->columnCount();
+ //int columnCount = mySmpWidget->tableWidget->columnCount();
// Get the selected object properties
GEOM::GEOM_Object_var sizeMapObject = myGeomSelWdg->GetObject< GEOM::GEOM_Object >(0);
std::vector<int> vector = data.myFacesWithLayers;
SMESH::long_array_var aVec = new SMESH::long_array;
aVec->length(vector.size());
- for (int i = 0; i < vector.size(); i++)
+ for (size_t i = 0; i < vector.size(); i++)
aVec[i]=vector.at(i);
myVLWidget->myFacesWithLayers->SetListOfIDs(aVec);
vector = data.myImprintedFaces;
aVec = new SMESH::long_array;
aVec->length(vector.size());
- for (int i = 0; i < vector.size(); i++)
+ for (size_t i = 0; i < vector.size(); i++)
aVec[i]=vector.at(i);
myVLWidget->myImprintedFaces->SetListOfIDs(aVec);
// Size maps
HexoticPlugin::HexoticPluginSizeMapsList_var sizeMaps = h->GetSizeMaps();
- for ( int i = 0 ; i < sizeMaps->length() ; i++)
+ for ( CORBA::ULong i = 0 ; i < sizeMaps->length() ; i++)
{
HexoticPlugin::HexoticPluginSizeMap aSizeMap = sizeMaps[i];
std::string entry = CORBA::string_dup(aSizeMap.entry.in());
h_data.myDirection = h->GetDirection();
h_data.myGrowth = h->GetGrowth();
SMESH::long_array_var vector = h->GetFacesWithLayers();
- for (int i = 0; i < vector->length(); i++)
+ for ( CORBA::ULong i = 0; i < vector->length(); i++)
h_data.myFacesWithLayers.push_back(vector[i]);
vector = h->GetImprintedFaces();
- for (int i = 0; i < vector->length(); i++)
+ for ( CORBA::ULong i = 0; i < vector->length(); i++)
h_data.myImprintedFaces.push_back(vector[i]);
return true;
std::vector<int> vector = h_data.myFacesWithLayers;
SMESH::long_array_var aVec = new SMESH::long_array;
aVec->length(vector.size());
- for (int i = 0; i < vector.size(); i++)
+ for ( size_t i = 0; i < vector.size(); i++)
aVec[i]=vector.at(i);
h->SetFacesWithLayers( aVec );
vector = h_data.myImprintedFaces;
aVec = new SMESH::long_array;
aVec->length(vector.size());
- for (int i = 0; i < vector.size(); i++)
+ for ( size_t i = 0; i < vector.size(); i++)
aVec[i]=vector.at(i);
h->SetImprintedFaces( aVec );
}
h_data.myDirection = myVLWidget->myDirection->currentIndex() == 0 ? true : false;
h_data.myGrowth = myVLWidget->myGrowth->text().isEmpty() ? 0.0 : myVLWidget->myGrowth->value();
SMESH::long_array_var ids = myVLWidget->myFacesWithLayers->GetListOfIDs();
- for (int i = 0; i < ids->length(); i++)
+ for ( CORBA::ULong i = 0; i < ids->length(); i++)
h_data.myFacesWithLayers.push_back( ids[i] );
ids = myVLWidget->myImprintedFaces->GetListOfIDs();
- for (int i = 0; i < ids->length(); i++)
+ for ( CORBA::ULong i = 0; i < ids->length(); i++)
h_data.myImprintedFaces.push_back( ids[i] );
printData(h_data);
THROW_SALOME_CORBA_EXCEPTION( "Null working directory",SALOME::BAD_PARAM );
ASSERT(myBaseImpl);
- string file(path);
- string oldValue(GetHexoticWorkingDirectory());
+ std::string file(path);
+ std::string oldValue(GetHexoticWorkingDirectory());
bool doDump = false;
if (oldValue != file)
doDump = true;
{
// MESSAGE("HexoticPlugin_Hypothesis_i::SetTextOptions");
ASSERT(myBaseImpl);
- string oldValue(GetTextOptions());
+ std::string oldValue(GetTextOptions());
this->GetImpl()->SetTextOptions(theOptions);
if (theOptions != oldValue)
SMESH::TPythonDump() << _this() << ".SetTextOptions( '" << theOptions << "' )";
HexoticPlugin::HexoticPluginSizeMapsList* HexoticPlugin_Hypothesis_i::GetSizeMaps ()
{
- // Get the std::map < string entry, double size >
+ // Get the std::map < std::string entry, double size >
HexoticPlugin::HexoticPluginSizeMapsList_var result = new HexoticPlugin::HexoticPluginSizeMapsList();
const ::HexoticPlugin_Hypothesis::THexoticSizeMaps sizeMaps = this->GetImpl()->GetSizeMaps();
result->length( sizeMaps.size() );
void HexoticPlugin_Hypothesis_i::SetFacesWithLayers(const ::SMESH::long_array& theVal)
{
// MESSAGE("HexoticPlugin_Hypothesis_i::SetFacesWithLayers");
- vector<int> ids( theVal.length() );
+ std::vector<int> ids( theVal.length() );
for ( unsigned i = 0; i < ids.size(); ++i )
ids[i] = theVal[i];
void HexoticPlugin_Hypothesis_i::SetImprintedFaces(const ::SMESH::long_array& theVal)
{
// MESSAGE("HexoticPlugin_Hypothesis_i::SetImprintedFaces");
- vector<int> ids( theVal.length() );
+ std::vector<int> ids( theVal.length() );
for ( unsigned i = 0; i < ids.size(); ++i )
ids[i] = theVal[i];