#include <StdMeshers_ViscousLayers_i.hxx>

Definition at line 40 of file StdMeshers_ViscousLayers_i.hxx.
| StdMeshers_ViscousLayers_i::StdMeshers_ViscousLayers_i | ( | PortableServer::POA_ptr | thePOA, |
| int | theStudyId, | ||
| ::SMESH_Gen * | theGenImpl | ||
| ) |
StdMeshers_ViscousLayers_i.StdMeshers_ViscousLayers_i.
Constructor
Definition at line 51 of file StdMeshers_ViscousLayers_i.cxx.
References MESSAGE, and SMESH_Hypothesis_i.myBaseImpl.
: SALOME::GenericObj_i( thePOA ),
SMESH_Hypothesis_i( thePOA )
{
MESSAGE( "StdMeshers_ViscousLayers_i::StdMeshers_ViscousLayers_i" );
myBaseImpl = new ::StdMeshers_ViscousLayers( theGenImpl->GetANewId(),
theStudyId,
theGenImpl );
}
| StdMeshers_ViscousLayers_i::~StdMeshers_ViscousLayers_i | ( | ) | [virtual] |
StdMeshers_ViscousLayers_i.~StdMeshers_ViscousLayers_i.
Destructor
Definition at line 71 of file StdMeshers_ViscousLayers_i.cxx.
References MESSAGE.
{
MESSAGE( "StdMeshers_ViscousLayers_i::~StdMeshers_ViscousLayers_i" );
}
| void SMESH_Hypothesis_i::ClearParameters | ( | ) | [inherited] |
SMESH_Hypothesis_i.ClearParameters()
Definition at line 232 of file SMESH_Hypothesis_i.cxx.
References SMESH_Hypothesis_i.IsPublished(), and SMESH_Hypothesis_i.myBaseImpl.
{
if(!IsPublished()) {
myBaseImpl->ClearParameters();
}
}
| CORBA::Long SMESH_Hypothesis_i::GetId | ( | ) | [inherited] |
Get unique id of hypothesis
Definition at line 119 of file SMESH_Hypothesis_i.cxx.
References MESSAGE, and SMESH_Hypothesis_i.myBaseImpl.
{
MESSAGE( "SMESH_Hypothesis_i::GetId" );
return myBaseImpl->GetID();
}
| SMESH::long_array * StdMeshers_ViscousLayers_i::GetIgnoreFaces | ( | ) |
Definition at line 99 of file StdMeshers_ViscousLayers_i.cxx.
References GetImpl(), and SMESH_test.ids.
{
vector<int> idsVec = GetImpl()->GetIgnoreFaces();
SMESH::long_array_var ids = new SMESH::long_array;
ids->length( idsVec.size() );
for ( unsigned i = 0; i < idsVec.size(); ++i )
ids[i] = idsVec[i];
return ids._retn();
}
| StdMeshers_ViscousLayers * StdMeshers_ViscousLayers_i::GetImpl | ( | ) |
Get implementation.
Reimplemented from SMESH_Hypothesis_i.
Definition at line 196 of file StdMeshers_ViscousLayers_i.cxx.
References MESSAGE, and SMESH_Hypothesis_i.myBaseImpl.
Referenced by GetIgnoreFaces(), GetNumberLayers(), GetStretchFactor(), and GetTotalThickness().
{
MESSAGE( "StdMeshers_ViscousLayers_i::GetImpl" );
return ( ::StdMeshers_ViscousLayers* )myBaseImpl;
}
| SMESH::ListOfParameters * SMESH_Hypothesis_i::GetLastParameters | ( | ) | [inherited] |
SMESH_Hypothesis_i.GetLastParameters()
Definition at line 189 of file SMESH_Hypothesis_i.cxx.
References SMESH_Gen_i.GetCurrentStudy(), SMESH_Hypothesis_i.GetParameters(), SMESH_Gen_i.GetSMESHGen(), SMESH_Hypothesis_i.IsPublished(), and SMESH_Hypothesis_i.myBaseImpl.
{
SMESH::ListOfParameters_var aResult = new SMESH::ListOfParameters();
SMESH_Gen_i *gen = SMESH_Gen_i::GetSMESHGen();
if(gen) {
char *aParameters;
if(IsPublished())
aParameters = GetParameters();
else
aParameters = myBaseImpl->GetLastParameters();
SALOMEDS::Study_ptr aStudy = gen->GetCurrentStudy();
if(!aStudy->_is_nil()) {
SALOMEDS::ListOfListOfStrings_var aSections = aStudy->ParseVariables(aParameters);
if(aSections->length() > 0) {
SALOMEDS::ListOfStrings aVars = aSections[aSections->length()-1];
aResult->length(aVars.length());
for(int i = 0;i < aVars.length();i++)
aResult[i] = CORBA::string_dup( aVars[i]);
}
}
}
return aResult._retn();
}
| char * SMESH_Hypothesis_i::GetLibName | ( | ) | [inherited] |
SMESH_Hypothesis_i.GetLibName.
Get plugin library name of hypothesis (required by persistency mechanism)
Definition at line 91 of file SMESH_Hypothesis_i.cxx.
References MESSAGE, and SMESH_Hypothesis_i.myBaseImpl.
Referenced by StdMeshers_LayerDistribution_i.SetLayerDistribution().
{
MESSAGE( "SMESH_Hypothesis_i::GetLibName" );
return CORBA::string_dup( myBaseImpl->GetLibName() );
};
| char * SMESH_Hypothesis_i::GetName | ( | ) | [inherited] |
Get type name of hypothesis
Definition at line 77 of file SMESH_Hypothesis_i.cxx.
References SMESH_Hypothesis_i.myBaseImpl.
Referenced by StdMeshers_LayerDistribution_i.SaveTo(), and StdMeshers_LayerDistribution_i.SetLayerDistribution().
{
//MESSAGE( "SMESH_Hypothesis_i::GetName" );
return CORBA::string_dup( myBaseImpl->GetName() );
};
| CORBA::Short StdMeshers_ViscousLayers_i::GetNumberLayers | ( | ) |
Definition at line 157 of file StdMeshers_ViscousLayers_i.cxx.
References GetImpl().
{
return CORBA::Short( GetImpl()->GetNumberLayers() );
}
| char * SMESH_Hypothesis_i::GetParameters | ( | ) | [inherited] |
SMESH_Hypothesis_i.GetParameters()
Definition at line 168 of file SMESH_Hypothesis_i.cxx.
References SMESH_Gen_i.GetParameters(), SMESH_Gen_i.GetSMESHGen(), SMESH_Hypothesis_i.IsPublished(), MESSAGE, and SMESH_Hypothesis_i.myBaseImpl.
Referenced by SMESH_Hypothesis_i.GetLastParameters().
{
SMESH_Gen_i *gen = SMESH_Gen_i::GetSMESHGen();
char* aResult;
if(IsPublished()) {
MESSAGE("SMESH_Hypothesis_i::GetParameters() : Get Parameters from SObject");
aResult = gen->GetParameters(SMESH::SMESH_Hypothesis::_narrow(_this()));
}
else {
MESSAGE("SMESH_Hypothesis_i::GetParameters() : Get local parameters");
aResult = myBaseImpl->GetParameters();
}
return CORBA::string_dup(aResult);
}
| CORBA::Double StdMeshers_ViscousLayers_i::GetStretchFactor | ( | ) |
Definition at line 185 of file StdMeshers_ViscousLayers_i.cxx.
References GetImpl().
{
return GetImpl()->GetStretchFactor();
}
| CORBA::Double StdMeshers_ViscousLayers_i::GetTotalThickness | ( | ) |
Definition at line 130 of file StdMeshers_ViscousLayers_i.cxx.
References GetImpl().
{
return GetImpl()->GetTotalThickness();
}
| CORBA::Boolean StdMeshers_ViscousLayers_i::IsDimSupported | ( | SMESH::Dimension | type | ) |
Verify whether hypothesis supports given entity type.
| type | - dimension (see SMESH.Dimension enumeration) |
| CORBA.Boolean | - TRUE if dimension is supported, FALSE otherwise |
Verify whether hypothesis supports given entity type (see SMESH.Dimension enumeration)
Definition at line 211 of file StdMeshers_ViscousLayers_i.cxx.
References SMESH.DIM_3D.
{
return type == SMESH::DIM_3D;
}
| bool SMESH_Hypothesis_i::IsPublished | ( | ) | [inherited] |
SMESH_Hypothesis_i.IsPublished()
Definition at line 131 of file SMESH_Hypothesis_i.cxx.
References SMESH_Gen_i.GetCurrentStudy(), SMESH_Gen_i.GetSMESHGen(), SMESH_Gen_i.ObjectToSObject(), and SMESH_AdvancedEditor.res.
Referenced by SMESH_Hypothesis_i.ClearParameters(), SMESH_Hypothesis_i.GetLastParameters(), SMESH_Hypothesis_i.GetParameters(), SMESH_Hypothesis_i.SetLastParameters(), and SMESH_Hypothesis_i.SetParameters().
{
bool res = false;
SMESH_Gen_i *gen = SMESH_Gen_i::GetSMESHGen();
if(gen){
SALOMEDS::SObject_var SO =
SMESH_Gen_i::ObjectToSObject(gen->GetCurrentStudy() , SMESH::SMESH_Hypothesis::_narrow(_this()));
res = !SO->_is_nil();
}
return res;
}
| void SMESH_Hypothesis_i::LoadFrom | ( | const char * | theStream | ) | [virtual, inherited] |
Persistence: Restores parameters from string
Reimplemented in StdMeshers_ImportSource1D_i, StdMeshers_ImportSource2D_i, StdMeshers_LayerDistribution_i, StdMeshers_ProjectionSource1D_i, StdMeshers_ProjectionSource2D_i, and StdMeshers_ProjectionSource3D_i.
Definition at line 277 of file SMESH_Hypothesis_i.cxx.
References MESSAGE, and SMESH_Hypothesis_i.myBaseImpl.
Referenced by SMESH_Gen_i.Load(), and StdMeshers_LayerDistribution_i.LoadFrom().
{
MESSAGE( "SMESH_Hypothesis_i::LoadFrom" );
std::istringstream is( theStream );
myBaseImpl->LoadFrom( is );
// let listeners know about loading (issue 0020918)
myBaseImpl->NotifySubMeshesHypothesisModification();
}
| char * SMESH_Hypothesis_i::SaveTo | ( | ) | [virtual, inherited] |
Persistence: Dumps parameters to the string stream
Reimplemented in StdMeshers_ImportSource1D_i, StdMeshers_ImportSource2D_i, StdMeshers_LayerDistribution_i, StdMeshers_ProjectionSource1D_i, StdMeshers_ProjectionSource2D_i, and StdMeshers_ProjectionSource3D_i.
Definition at line 261 of file SMESH_Hypothesis_i.cxx.
References MESSAGE, and SMESH_Hypothesis_i.myBaseImpl.
Referenced by SMESH_Gen_i.Save(), and StdMeshers_LayerDistribution_i.SaveTo().
{
MESSAGE( "SMESH_Hypothesis_i::SaveTo" );
std::ostringstream os;
myBaseImpl->SaveTo( os );
return CORBA::string_dup( os.str().c_str() );
}
| void StdMeshers_ViscousLayers_i::SetIgnoreFaces | ( | const ::SMESH::long_array & | faceIDs | ) | throw ( SALOME::SALOME_Exception ) |
Definition at line 82 of file StdMeshers_ViscousLayers_i.cxx.
References SMESH_test.ids.
| void SMESH_Hypothesis_i::SetLastParameters | ( | const char * | theParameters | ) | [inherited] |
SMESH_Hypothesis_i.SetLastParameters()
Definition at line 220 of file SMESH_Hypothesis_i.cxx.
References SMESH_Hypothesis_i.IsPublished(), and SMESH_Hypothesis_i.myBaseImpl.
{
if(!IsPublished()) {
myBaseImpl->SetLastParameters(theParameters);
}
}
| void SMESH_Hypothesis_i::SetLibName | ( | const char * | theLibName | ) | [inherited] |
SMESH_Hypothesis_i.SetLibName.
Set plugin library name of hypothesis (required by persistency mechanism)
Definition at line 150 of file SMESH_Hypothesis.cxx.
Referenced by SMESH_Gen_i.createHypothesis().
{
_libName = string(theLibName);
}
| void StdMeshers_ViscousLayers_i::SetNumberLayers | ( | ::CORBA::Short | nb | ) | throw ( SALOME::SALOME_Exception ) |
| nb | - |
Definition at line 142 of file StdMeshers_ViscousLayers_i.cxx.
{
if ( nb < 1 )
THROW_SALOME_CORBA_EXCEPTION( "Invalid number of layers", SALOME::BAD_PARAM );
GetImpl()->SetNumberLayers( nb );
SMESH::TPythonDump() << _this() << ".SetNumberLayers( " << nb << " )";
}
| void SMESH_Hypothesis_i::SetParameters | ( | const char * | theParameters | ) | [inherited] |
SMESH_Hypothesis_i.SetParameters()
Definition at line 148 of file SMESH_Hypothesis_i.cxx.
References SMESH_Gen_i.GetSMESHGen(), SMESH_Hypothesis_i.IsPublished(), SMESH_Hypothesis_i.myBaseImpl, SMESH_Gen_i.ParseParameters(), and SMESH_Gen_i.UpdateParameters().
{
SMESH_Gen_i *gen = SMESH_Gen_i::GetSMESHGen();
char * aParameters = CORBA::string_dup(theParameters);
if(gen){
if(IsPublished()) {
SMESH_Gen_i::GetSMESHGen()->UpdateParameters(SMESH::SMESH_Hypothesis::_narrow(_this()),aParameters);
}
else {
myBaseImpl->SetParameters(gen->ParseParameters(aParameters));
}
}
}
| void StdMeshers_ViscousLayers_i::SetStretchFactor | ( | ::CORBA::Double | factor | ) | throw ( SALOME::SALOME_Exception ) |
| factor | - |
Definition at line 169 of file StdMeshers_ViscousLayers_i.cxx.
{
if ( factor < 1 )
THROW_SALOME_CORBA_EXCEPTION( "Invalid stretch factor, it must be >= 1.0", SALOME::BAD_PARAM );
GetImpl()->SetStretchFactor(factor);
SMESH::TPythonDump() << _this() << ".SetStretchFactor( " << factor << " )";
}
| void StdMeshers_ViscousLayers_i::SetTotalThickness | ( | ::CORBA::Double | thickness | ) | throw ( SALOME::SALOME_Exception ) |
Definition at line 115 of file StdMeshers_ViscousLayers_i.cxx.
{
if ( thickness < 1e-100 )
THROW_SALOME_CORBA_EXCEPTION( "Invalid thickness", SALOME::BAD_PARAM );
GetImpl()->SetTotalThickness(thickness);
SMESH::TPythonDump() << _this() << ".SetTotalThickness( " << thickness << " )";
}
| void SMESH_Hypothesis_i::UpdateAsMeshesRestored | ( | ) | [virtual, inherited] |
This mesthod is called after completion of loading a study.
Reimplemented in StdMeshers_ImportSource1D_i, and StdMeshers_ImportSource2D_i.
Definition at line 292 of file SMESH_Hypothesis_i.cxx.
Referenced by SMESH_Gen_i.Load().
{
// for hyps needing full data restored
}
::SMESH_Hypothesis* SMESH_Hypothesis_i.myBaseImpl [protected, inherited] |
Definition at line 97 of file SMESH_Hypothesis_i.hxx.
Referenced by SMESH_Hypothesis_i.ClearParameters(), StdMeshers_NumberOfSegments_i.ConversionMode(), SMESH_Algo_i.GetCompatibleHypothesis(), StdMeshers_Deflection1D_i.GetDeflection(), StdMeshers_NumberOfSegments_i.GetDistrType(), StdMeshers_NumberOfSegments_i.GetExpressionFunction(), StdMeshers_AutomaticLength_i.GetFineness(), SMESH_Hypothesis_i.GetId(), GetImpl(), StdMeshers_UseExisting_2D_i.GetImpl(), StdMeshers_UseExisting_1D_i.GetImpl(), StdMeshers_StartEndLength_i.GetImpl(), StdMeshers_Regular_1D_i.GetImpl(), StdMeshers_Quadrangle_2D_i.GetImpl(), StdMeshers_Propagation_i.GetImpl(), StdMeshers_Projection_1D_i.GetImpl(), StdMeshers_Projection_2D_i.GetImpl(), StdMeshers_Projection_3D_i.GetImpl(), StdMeshers_RadialPrism_3D_i.GetImpl(), StdMeshers_Prism_3D_i.GetImpl(), StdMeshers_NumberOfSegments_i.GetImpl(), StdMeshers_NumberOfLayers_i.GetImpl(), StdMeshers_NumberOfLayers2D_i.GetImpl(), StdMeshers_MEFISTO_2D_i.GetImpl(), StdMeshers_MaxLength_i.GetImpl(), StdMeshers_MaxElementVolume_i.GetImpl(), StdMeshers_MaxElementArea_i.GetImpl(), StdMeshers_LocalLength_i.GetImpl(), StdMeshers_LengthFromEdges_i.GetImpl(), StdMeshers_LayerDistribution_i.GetImpl(), StdMeshers_LayerDistribution2D_i.GetImpl(), StdMeshers_ImportSource2D_i.GetImpl(), StdMeshers_ImportSource1D_i.GetImpl(), StdMeshers_Import_1D_i.GetImpl(), StdMeshers_Import_1D2D_i.GetImpl(), StdMeshers_Hexa_3D_i.GetImpl(), StdMeshers_FixedPoints1D_i.GetImpl(), StdMeshers_Deflection1D_i.GetImpl(), StdMeshers_AutomaticLength_i.GetImpl(), StdMeshers_Arithmetic1D_i.GetImpl(), SMESH_Hypothesis_i.GetImpl(), SMESH_Hypothesis_i.GetLastParameters(), StdMeshers_StartEndLength_i.GetLength(), StdMeshers_MaxLength_i.GetLength(), StdMeshers_LocalLength_i.GetLength(), StdMeshers_Arithmetic1D_i.GetLength(), SMESH_Hypothesis_i.GetLibName(), StdMeshers_MaxElementArea_i.GetMaxElementArea(), StdMeshers_MaxElementVolume_i.GetMaxElementVolume(), StdMeshers_LengthFromEdges_i.GetMode(), SMESH_Hypothesis_i.GetName(), StdMeshers_FixedPoints1D_i.GetNbSegments(), StdMeshers_NumberOfLayers_i.GetNumberOfLayers(), StdMeshers_NumberOfSegments_i.GetNumberOfSegments(), StdMeshers_StartEndLength_i.GetObjectEntry(), StdMeshers_NumberOfSegments_i.GetObjectEntry(), StdMeshers_FixedPoints1D_i.GetObjectEntry(), StdMeshers_Arithmetic1D_i.GetObjectEntry(), SMESH_Hypothesis_i.GetParameters(), StdMeshers_FixedPoints1D_i.GetPoints(), StdMeshers_LocalLength_i.GetPrecision(), StdMeshers_MaxLength_i.GetPreestimatedLength(), StdMeshers_StartEndLength_i.GetReversedEdges(), StdMeshers_NumberOfSegments_i.GetReversedEdges(), StdMeshers_FixedPoints1D_i.GetReversedEdges(), StdMeshers_Arithmetic1D_i.GetReversedEdges(), StdMeshers_NumberOfSegments_i.GetScaleFactor(), StdMeshers_NumberOfSegments_i.GetTableFunction(), StdMeshers_MaxLength_i.GetUsePreestimatedLength(), StdMeshers_MaxLength_i.HavePreestimatedLength(), StdMeshers_LayerDistribution_i.LoadFrom(), StdMeshers_ImportSource2D_i.LoadFrom(), StdMeshers_ImportSource1D_i.LoadFrom(), SMESH_Hypothesis_i.LoadFrom(), StdMeshers_LayerDistribution_i.SaveTo(), StdMeshers_ImportSource2D_i.SaveTo(), StdMeshers_ImportSource1D_i.SaveTo(), SMESH_Hypothesis_i.SaveTo(), SMESH_Hypothesis_i.SetLastParameters(), StdMeshers_StartEndLength_i.SetObjectEntry(), StdMeshers_NumberOfSegments_i.SetObjectEntry(), StdMeshers_FixedPoints1D_i.SetObjectEntry(), StdMeshers_Arithmetic1D_i.SetObjectEntry(), SMESH_Hypothesis_i.SetParameters(), StdMeshers_MaxLength_i.SetPreestimatedLength(), StdMeshers_StartEndLength_i.SetReversedEdges(), StdMeshers_NumberOfSegments_i.SetReversedEdges(), StdMeshers_FixedPoints1D_i.SetReversedEdges(), StdMeshers_Arithmetic1D_i.SetReversedEdges(), StdMeshers.StdMeshers_ImportSource1D.SetSourceEdges(), StdMeshers.StdMeshers_ImportSource2D.SetSourceFaces(), SMESH_Hypothesis_i.SMESH_Hypothesis_i(), StdMeshers_Arithmetic1D_i.StdMeshers_Arithmetic1D_i(), StdMeshers_AutomaticLength_i.StdMeshers_AutomaticLength_i(), StdMeshers_Deflection1D_i.StdMeshers_Deflection1D_i(), StdMeshers_FixedPoints1D_i.StdMeshers_FixedPoints1D_i(), StdMeshers_Hexa_3D_i.StdMeshers_Hexa_3D_i(), StdMeshers_Import_1D2D_i.StdMeshers_Import_1D2D_i(), StdMeshers_Import_1D_i.StdMeshers_Import_1D_i(), StdMeshers_ImportSource1D_i.StdMeshers_ImportSource1D_i(), StdMeshers_ImportSource2D_i.StdMeshers_ImportSource2D_i(), StdMeshers_LayerDistribution_i.StdMeshers_LayerDistribution_i(), StdMeshers_LengthFromEdges_i.StdMeshers_LengthFromEdges_i(), StdMeshers_LocalLength_i.StdMeshers_LocalLength_i(), StdMeshers_MaxElementArea_i.StdMeshers_MaxElementArea_i(), StdMeshers_MaxElementVolume_i.StdMeshers_MaxElementVolume_i(), StdMeshers_MaxLength_i.StdMeshers_MaxLength_i(), StdMeshers_MEFISTO_2D_i.StdMeshers_MEFISTO_2D_i(), StdMeshers_NumberOfLayers_i.StdMeshers_NumberOfLayers_i(), StdMeshers_NumberOfSegments_i.StdMeshers_NumberOfSegments_i(), StdMeshers_Prism_3D_i.StdMeshers_Prism_3D_i(), StdMeshers_Projection_1D_i.StdMeshers_Projection_1D_i(), StdMeshers_Projection_2D_i.StdMeshers_Projection_2D_i(), StdMeshers_Projection_3D_i.StdMeshers_Projection_3D_i(), StdMeshers_Propagation_i.StdMeshers_Propagation_i(), StdMeshers_Quadrangle_2D_i.StdMeshers_Quadrangle_2D_i(), StdMeshers_RadialPrism_3D_i.StdMeshers_RadialPrism_3D_i(), StdMeshers_Regular_1D_i.StdMeshers_Regular_1D_i(), StdMeshers_StartEndLength_i.StdMeshers_StartEndLength_i(), StdMeshers_ViscousLayers_i(), and SMESH_Hypothesis_i.~SMESH_Hypothesis_i().