#include <StdMeshers_Projection_1D_2D_3D_i.hxx>

Definition at line 91 of file StdMeshers_Projection_1D_2D_3D_i.hxx.
| StdMeshers_Projection_1D_i::StdMeshers_Projection_1D_i | ( | PortableServer::POA_ptr | thePOA, |
| int | theStudyId, | ||
| ::SMESH_Gen * | theGenImpl | ||
| ) |
StdMeshers_Projection_1D_i.StdMeshers_Projection_1D_i.
Definition at line 115 of file StdMeshers_Projection_1D_2D_3D_i.cxx.
References MESSAGE, and SMESH_Hypothesis_i.myBaseImpl.
: SALOME::GenericObj_i( thePOA ),
SMESH_Hypothesis_i( thePOA ),
SMESH_Algo_i( thePOA ),
SMESH_1D_Algo_i( thePOA )
{
MESSAGE( "StdMeshers_Projection_1D_i::StdMeshers_Projection_1D_i" );
myBaseImpl = new ::StdMeshers_Projection_1D( theGenImpl->GetANewId(),
theStudyId,
theGenImpl );
}
| StdMeshers_Projection_1D_i::~StdMeshers_Projection_1D_i | ( | ) | [virtual] |
Definition at line 130 of file StdMeshers_Projection_1D_2D_3D_i.cxx.
References MESSAGE.
{
MESSAGE( "StdMeshers_Projection_1D_i::~StdMeshers_Projection_1D_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();
}
}
| SMESH::ListOfHypothesisName * SMESH_Algo_i::GetCompatibleHypothesis | ( | ) | [inherited] |
SMESH_Algo_i.GetCompatibleHypothesis.
Gets list of compatible hypotheses
Definition at line 75 of file SMESH_Algo_i.cxx.
References MESSAGE, and SMESH_Hypothesis_i.myBaseImpl.
{
MESSAGE( "SMESH_Algo_i::GetCompatibleHypothesis" );
SMESH::ListOfHypothesisName_var listOfHypothesis = new SMESH::ListOfHypothesisName;
const vector<string>& hypList = ( ( ::SMESH_Algo* )myBaseImpl )->GetCompatibleHypothesis();
int nbHyp = hypList.size();
listOfHypothesis->length( nbHyp );
for ( int i = 0; i < nbHyp; i++ ) {
listOfHypothesis[ i ] = CORBA::string_dup( hypList[ i ].c_str() );
}
return listOfHypothesis._retn();
}
| 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();
}
| StdMeshers_Projection_1D * StdMeshers_Projection_1D_i::GetImpl | ( | ) |
Get implementation
Reimplemented from SMESH_Hypothesis_i.
Definition at line 136 of file StdMeshers_Projection_1D_2D_3D_i.cxx.
References MESSAGE, and SMESH_Hypothesis_i.myBaseImpl.
{
MESSAGE( "StdMeshers_Projection_1D_i::GetImpl" );
return ( ::StdMeshers_Projection_1D* )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() );
};
| 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::Boolean SMESH_1D_Algo_i::IsDimSupported | ( | SMESH::Dimension | type | ) | [inherited] |
Verify whether algorithm supports given entity type.
| type | - dimension (see SMESH.Dimension enumeration) |
| CORBA.Boolean | - TRUE if dimension is supported, FALSE otherwise |
Verify whether algorithm supports given entity type (see SMESH.Dimension enumeration)
Definition at line 73 of file SMESH_1D_Algo_i.cxx.
References SMESH.DIM_1D.
{
return type == SMESH::DIM_1D;
}
| 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 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 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 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(), StdMeshers_ViscousLayers_i.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(), 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_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.StdMeshers_ViscousLayers_i(), and SMESH_Hypothesis_i.~SMESH_Hypothesis_i().