Interface for working with library of filters.
More...
import "SMESH_Filter.idl";
Detailed Description
Interface for working with library of filters.
Definition at line 459 of file SMESH_Filter.idl.
Member Function Documentation
| boolean SMESH.FilterLibrary.Add |
( |
in string |
theFilterName, |
|
|
in Filter |
theFilter |
|
) |
| |
Methods for editing library.
| boolean SMESH.FilterLibrary.AddEmpty |
( |
in string |
theFilterName, |
|
|
in ElementType |
theType |
|
) |
| |
| Filter SMESH.FilterLibrary.Copy |
( |
in string |
theFilterName | ) |
|
Copy filter from library by name (new filter is created)
| boolean SMESH.FilterLibrary.Delete |
( |
in string |
theFilterName | ) |
|
| string SMESH.FilterLibrary.GetFileName |
( |
| ) |
|
| boolean SMESH.FilterLibrary.IsPresent |
( |
in string |
aFilterName | ) |
|
| long SMESH.FilterLibrary.NbFilters |
( |
in ElementType |
aType | ) |
|
| boolean SMESH.FilterLibrary.Replace |
( |
in string |
theFilterName, |
|
|
in string |
theNewName, |
|
|
in Filter |
theFilter |
|
) |
| |
| bool SMESH_Pattern::Save |
( |
| ) |
|
Save library on disk.
Definition at line 357 of file SMESH_Pattern.cxx.
References MESSAGE, and SMESH_AdvancedEditor.xyz.
{
MESSAGE(" ::Save(file) " );
Kernel_Utils::Localizer loc;
if ( !IsLoaded() ) {
MESSAGE(" Pattern not loaded ");
return setErrorCode( ERR_SAVE_NOT_LOADED );
}
theFile << "!!! SALOME Mesh Pattern file" << endl;
theFile << "!!!" << endl;
theFile << "!!! Nb of points:" << endl;
theFile << myPoints.size() << endl;
const int width = 8;
vector< TPoint >::const_iterator pVecIt = myPoints.begin();
for ( int i = 0; pVecIt != myPoints.end(); pVecIt++, i++ ) {
const gp_XYZ & xyz = (*pVecIt).myInitXYZ;
theFile << " " << setw( width ) << xyz.X() << " " << setw( width ) << xyz.Y();
if ( !myIs2D ) theFile << " " << setw( width ) << xyz.Z();
theFile << " !- " << i << endl;
}
if ( myIs2D ) {
theFile << "!!! Indices of " << myKeyPointIDs.size() << " key-points:" << endl;
list< int >::const_iterator kpIt = myKeyPointIDs.begin();
for ( ; kpIt != myKeyPointIDs.end(); kpIt++ )
theFile << " " << *kpIt;
if ( !myKeyPointIDs.empty() )
theFile << endl;
}
theFile << "!!! Indices of points of " << myElemPointIDs.size() << " elements:" << endl;
list<TElemDef >::const_iterator epIt = myElemPointIDs.begin();
for ( ; epIt != myElemPointIDs.end(); epIt++ )
{
const TElemDef & elemPoints = *epIt;
TElemDef::const_iterator iIt = elemPoints.begin();
for ( ; iIt != elemPoints.end(); iIt++ )
theFile << " " << *iIt;
theFile << endl;
}
theFile << endl;
return setErrorCode( ERR_OK );
}
| boolean SMESH.FilterLibrary.SaveAs |
( |
in string |
aFileName | ) |
|
| void SMESH.FilterLibrary.SetFileName |
( |
in string |
aFilterName | ) |
|