Version: 6.3.1
Public Member Functions | Protected Attributes

StdMeshers_NumberOfSegments_i Class Reference

#include <StdMeshers_NumberOfSegments_i.hxx>

Inheritance diagram for StdMeshers_NumberOfSegments_i:
Inheritance graph
[legend]

Public Member Functions

 StdMeshers_NumberOfSegments_i (PortableServer::POA_ptr thePOA, int theStudyId,::SMESH_Gen *theGenImpl)
 StdMeshers_NumberOfSegments_i.StdMeshers_NumberOfSegments_i.
virtual ~StdMeshers_NumberOfSegments_i ()
 StdMeshers_NumberOfSegments_i.~StdMeshers_NumberOfSegments_i.
SMESH::double_arrayBuildDistributionExpr (const char *, CORBA::Long, CORBA::Long) throw ( SALOME::SALOME_Exception )
 StdMeshers_NumberOfSegments_i.BuildDistribution.
SMESH::double_arrayBuildDistributionTab (const SMESH::double_array &, CORBA::Long, CORBA::Long) throw ( SALOME::SALOME_Exception )
void SetNumberOfSegments (CORBA::Long theSegmentsNumber) throw ( SALOME::SALOME_Exception )
 StdMeshers_NumberOfSegments_i.SetNumberOfSegments.
CORBA::Long GetNumberOfSegments ()
 StdMeshers_NumberOfSegments_i.GetNumberOfSegments.
void SetDistrType (CORBA::Long typ) throw ( SALOME::SALOME_Exception )
CORBA::Long GetDistrType ()
void SetScaleFactor (CORBA::Double theScaleFactor) throw ( SALOME::SALOME_Exception )
 StdMeshers_NumberOfSegments_i.SetScaleFactor.
CORBA::Double GetScaleFactor () throw ( SALOME::SALOME_Exception )
 StdMeshers_NumberOfSegments_i.GetScaleFactor.
void SetTableFunction (const SMESH::double_array &table) throw ( SALOME::SALOME_Exception )
SMESH::double_arrayGetTableFunction () throw ( SALOME::SALOME_Exception )
void SetExpressionFunction (const char *expr) throw ( SALOME::SALOME_Exception )
char * GetExpressionFunction () throw ( SALOME::SALOME_Exception )
void SetConversionMode (CORBA::Long conv) throw ( SALOME::SALOME_Exception )
CORBA::Long ConversionMode () throw ( SALOME::SALOME_Exception )
::StdMeshers_NumberOfSegmentsGetImpl ()
 StdMeshers_NumberOfSegments_i.GetImpl.
CORBA::Boolean IsDimSupported (SMESH::Dimension type)
 Verify whether hypothesis supports given entity type.
void SetReversedEdges (const SMESH::long_array &theIDs)
 StdMeshers_NumberOfSegments_i.SetReversedEdges.
SMESH::long_arrayGetReversedEdges ()
 StdMeshers_NumberOfSegments_i.GetReversedEdges.
void SetObjectEntry (const char *entry)
 StdMeshers_NumberOfSegments_i.SetObjectEntry.
char * GetObjectEntry ()
 StdMeshers_NumberOfSegments_i.GetObjectEntry.
char * GetName ()
 SMESH_Hypothesis_i.GetName.
char * GetLibName ()
 SMESH_Hypothesis_i.GetLibName.
void SetLibName (const char *theLibName)
 SMESH_Hypothesis_i.SetLibName.
CORBA::Long GetId ()
 SMESH_Hypothesis_i.GetId.
void SetParameters (const char *theParameters)
 SMESH_Hypothesis_i.SetParameters()
char * GetParameters ()
 SMESH_Hypothesis_i.GetParameters()
SMESH::ListOfParametersGetLastParameters ()
 SMESH_Hypothesis_i.GetLastParameters()
void SetLastParameters (const char *theParameters)
 SMESH_Hypothesis_i.SetLastParameters()
void ClearParameters ()
 SMESH_Hypothesis_i.ClearParameters()
bool IsPublished ()
 SMESH_Hypothesis_i.IsPublished()
virtual char * SaveTo ()
 SMESH_Hypothesis_i.SaveTo.
virtual void LoadFrom (const char *theStream)
 SMESH_Hypothesis_i.LoadFrom.
virtual void UpdateAsMeshesRestored ()
 This mesthod is called after completion of loading a study.

Protected Attributes

::SMESH_HypothesismyBaseImpl

Detailed Description

Definition at line 45 of file StdMeshers_NumberOfSegments_i.hxx.


Constructor & Destructor Documentation

StdMeshers_NumberOfSegments_i::StdMeshers_NumberOfSegments_i ( PortableServer::POA_ptr  thePOA,
int  theStudyId,
::SMESH_Gen theGenImpl 
)

StdMeshers_NumberOfSegments_i.StdMeshers_NumberOfSegments_i.

Constructor

Definition at line 49 of file StdMeshers_NumberOfSegments_i.cxx.

References MESSAGE, and SMESH_Hypothesis_i.myBaseImpl.

     : SALOME::GenericObj_i( thePOA ), 
       SMESH_Hypothesis_i( thePOA )
{
  MESSAGE( "StdMeshers_NumberOfSegments_i::StdMeshers_NumberOfSegments_i" );
  myBaseImpl = new ::StdMeshers_NumberOfSegments( theGenImpl->GetANewId(),
                                             theStudyId,
                                             theGenImpl );
}
StdMeshers_NumberOfSegments_i::~StdMeshers_NumberOfSegments_i ( ) [virtual]

StdMeshers_NumberOfSegments_i.~StdMeshers_NumberOfSegments_i.

Destructor

Definition at line 69 of file StdMeshers_NumberOfSegments_i.cxx.

References MESSAGE.

{
  MESSAGE( "StdMeshers_NumberOfSegments_i::~StdMeshers_NumberOfSegments_i" );
}

Member Function Documentation

SMESH::double_array * StdMeshers_NumberOfSegments_i::BuildDistributionExpr ( const char *  func,
CORBA::Long  nbSeg,
CORBA::Long  conv 
) throw ( SALOME::SALOME_Exception )

StdMeshers_NumberOfSegments_i.BuildDistribution.

Builds point distribution according to passed function

Definition at line 81 of file StdMeshers_NumberOfSegments_i.cxx.

References SMESH_AdvancedEditor.res.

{
  ASSERT( myBaseImpl );
  try
  {
    SMESH::double_array_var aRes = new SMESH::double_array();
    const std::vector<double>& res = this->GetImpl()->BuildDistributionExpr( func, nbSeg, conv );
    aRes->length( res.size() );
    for (int i = 0; i < res.size(); i++)
      aRes[i] = res[i];
    return aRes._retn();
  }
  catch( SALOME_Exception& S_ex )
  {
    THROW_SALOME_CORBA_EXCEPTION( S_ex.what(), SALOME::BAD_PARAM );
  }
}
SMESH::double_array * StdMeshers_NumberOfSegments_i::BuildDistributionTab ( const SMESH::double_array func,
CORBA::Long  nbSeg,
CORBA::Long  conv 
) throw ( SALOME::SALOME_Exception )

Definition at line 102 of file StdMeshers_NumberOfSegments_i.cxx.

References SMESH_AdvancedEditor.res.

{
  ASSERT( myBaseImpl );

  std::vector<double> tbl( func.length() );
  for (int i = 0; i < func.length(); i++)
    tbl[i] = func[i];

  try
  {
    SMESH::double_array_var aRes = new SMESH::double_array();
    const std::vector<double>& res = this->GetImpl()->BuildDistributionTab( tbl, nbSeg, conv );
    aRes->length( res.size() );
    for (int i = 0; i < res.size(); i++)
      aRes[i] = res[i];
    return aRes._retn();
  }
  catch( SALOME_Exception& S_ex )
  {
    THROW_SALOME_CORBA_EXCEPTION( S_ex.what(), SALOME::BAD_PARAM );
  }
}
void SMESH_Hypothesis_i::ClearParameters ( ) [inherited]
CORBA::Long StdMeshers_NumberOfSegments_i::ConversionMode ( ) throw ( SALOME::SALOME_Exception )

Definition at line 451 of file StdMeshers_NumberOfSegments_i.cxx.

References GetImpl(), and SMESH_Hypothesis_i.myBaseImpl.

{
  ASSERT( myBaseImpl );
  int conv;
  try {
    conv = this->GetImpl()->ConversionMode();
  }
  catch ( SALOME_Exception& S_ex ) {
    THROW_SALOME_CORBA_EXCEPTION( S_ex.what(),
                                  SALOME::BAD_PARAM );
  }
  return conv;
}
CORBA::Long StdMeshers_NumberOfSegments_i::GetDistrType ( )

Definition at line 287 of file StdMeshers_NumberOfSegments_i.cxx.

References GetImpl(), and SMESH_Hypothesis_i.myBaseImpl.

{
  ASSERT( myBaseImpl );
  return this->GetImpl()->GetDistrType();
}
char * StdMeshers_NumberOfSegments_i::GetExpressionFunction ( ) throw ( SALOME::SALOME_Exception )

Definition at line 411 of file StdMeshers_NumberOfSegments_i.cxx.

References GetImpl(), and SMESH_Hypothesis_i.myBaseImpl.

{
  ASSERT( myBaseImpl );
  const char* expr;
  try {
    expr = this->GetImpl()->GetExpressionFunction();
  }
  catch ( SALOME_Exception& S_ex ) {
    THROW_SALOME_CORBA_EXCEPTION( S_ex.what(),
                                  SALOME::BAD_PARAM );
  }
  return CORBA::string_dup(expr);
}
CORBA::Long SMESH_Hypothesis_i::GetId ( ) [inherited]

SMESH_Hypothesis_i.GetId.

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_NumberOfSegments * StdMeshers_NumberOfSegments_i::GetImpl ( )
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]

SMESH_Hypothesis_i.GetName.

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::Long StdMeshers_NumberOfSegments_i::GetNumberOfSegments ( )

StdMeshers_NumberOfSegments_i.GetNumberOfSegments.

Get number of segments

Definition at line 160 of file StdMeshers_NumberOfSegments_i.cxx.

References GetImpl(), and SMESH_Hypothesis_i.myBaseImpl.

{
  ASSERT( myBaseImpl );
  return this->GetImpl()->GetNumberOfSegments();
}
char * StdMeshers_NumberOfSegments_i::GetObjectEntry ( )

StdMeshers_NumberOfSegments_i.GetObjectEntry.

Set the Entry for the Main Object

Definition at line 225 of file StdMeshers_NumberOfSegments_i.cxx.

References GetImpl(), and SMESH_Hypothesis_i.myBaseImpl.

{
  ASSERT( myBaseImpl );

  const char* entry;
  try {
    entry = this->GetImpl()->GetObjectEntry();
  }
  catch ( SALOME_Exception& S_ex ) {
    THROW_SALOME_CORBA_EXCEPTION( S_ex.what(),
                                  SALOME::BAD_PARAM );
  }
  return CORBA::string_dup( entry );
}
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);
}
SMESH::long_array * StdMeshers_NumberOfSegments_i::GetReversedEdges ( )

StdMeshers_NumberOfSegments_i.GetReversedEdges.

Get reversed edges

Definition at line 248 of file StdMeshers_NumberOfSegments_i.cxx.

References GetImpl(), SMESH_test.ids, MESSAGE, and SMESH_Hypothesis_i.myBaseImpl.

{
  MESSAGE( "StdMeshers_NumberOfSegments_i::GetReversedEdges" );
  ASSERT( myBaseImpl );
  SMESH::long_array_var anArray = new SMESH::long_array;
  std::vector<int> ids = this->GetImpl()->GetReversedEdges();
  anArray->length( ids.size() );
  for ( CORBA::Long i = 0; i < ids.size(); i++)
    anArray [ i ] = ids [ i ];

  return anArray._retn();
}
CORBA::Double StdMeshers_NumberOfSegments_i::GetScaleFactor ( ) throw ( SALOME::SALOME_Exception )

StdMeshers_NumberOfSegments_i.GetScaleFactor.

Get scalar factor

Definition at line 324 of file StdMeshers_NumberOfSegments_i.cxx.

References GetImpl(), and SMESH_Hypothesis_i.myBaseImpl.

{
  ASSERT( myBaseImpl );
  double scale;
  try {
    scale = this->GetImpl()->GetScaleFactor();
  }
  catch ( SALOME_Exception& S_ex ) {
    THROW_SALOME_CORBA_EXCEPTION( S_ex.what(),
                                  SALOME::BAD_PARAM );
  }
  return scale;
}
SMESH::double_array * StdMeshers_NumberOfSegments_i::GetTableFunction ( ) throw ( SALOME::SALOME_Exception )

Definition at line 367 of file StdMeshers_NumberOfSegments_i.cxx.

References GetImpl(), and SMESH_Hypothesis_i.myBaseImpl.

{
  ASSERT( myBaseImpl );
  const std::vector<double>* tbl;
  try {
    tbl = &this->GetImpl()->GetTableFunction();
  }
  catch ( SALOME_Exception& S_ex ) {
    THROW_SALOME_CORBA_EXCEPTION( S_ex.what(),
                                  SALOME::BAD_PARAM );
  }
  SMESH::double_array_var aRes = new SMESH::double_array();
  aRes->length(tbl->size());
  for (int i = 0; i < tbl->size(); i++)
    aRes[i] = (*tbl)[i];
  return aRes._retn();
}
CORBA::Boolean StdMeshers_NumberOfSegments_i::IsDimSupported ( SMESH::Dimension  type)

Verify whether hypothesis supports given entity type.

Parameters:
type- dimension (see SMESH.Dimension enumeration)
Return values:
CORBA.Boolean- TRUE if dimension is supported, FALSE otherwise

Verify whether hypothesis supports given entity type (see SMESH.Dimension enumeration)

Definition at line 488 of file StdMeshers_NumberOfSegments_i.cxx.

References SMESH.DIM_1D.

{
  return type == SMESH::DIM_1D;
}
bool SMESH_Hypothesis_i::IsPublished ( ) [inherited]
void SMESH_Hypothesis_i::LoadFrom ( const char *  theStream) [virtual, inherited]

SMESH_Hypothesis_i.LoadFrom.

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]

SMESH_Hypothesis_i.SaveTo.

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_NumberOfSegments_i::SetConversionMode ( CORBA::Long  conv) throw ( SALOME::SALOME_Exception )

Definition at line 431 of file StdMeshers_NumberOfSegments_i.cxx.

{
  ASSERT( myBaseImpl );
  try {
    this->GetImpl()->SetConversionMode( conv );
    // Update Python script
    SMESH::TPythonDump() << _this() << ".SetConversionMode( " << conv << " )";
  }
  catch ( SALOME_Exception& S_ex ) {
    THROW_SALOME_CORBA_EXCEPTION( S_ex.what(),
                                  SALOME::BAD_PARAM );
  }
}
void StdMeshers_NumberOfSegments_i::SetDistrType ( CORBA::Long  typ) throw ( SALOME::SALOME_Exception )

Definition at line 266 of file StdMeshers_NumberOfSegments_i.cxx.

{
  ASSERT( myBaseImpl );
  try {
    this->GetImpl()->SetDistrType( (::StdMeshers_NumberOfSegments::DistrType) typ );

    // Update Python script
    SMESH::TPythonDump() << _this() << ".SetDistrType( " << typ << " )";
  }
  catch ( SALOME_Exception& S_ex ) {
    THROW_SALOME_CORBA_EXCEPTION( S_ex.what(),
                                  SALOME::BAD_PARAM );
  }
}
void StdMeshers_NumberOfSegments_i::SetExpressionFunction ( const char *  expr) throw ( SALOME::SALOME_Exception )

Definition at line 391 of file StdMeshers_NumberOfSegments_i.cxx.

{
  ASSERT( myBaseImpl );
  try {
    this->GetImpl()->SetExpressionFunction( expr );
    // Update Python script
    SMESH::TPythonDump() << _this() << ".SetExpressionFunction( '" << expr << "' )";
  }
  catch ( SALOME_Exception& S_ex ) {
    THROW_SALOME_CORBA_EXCEPTION( S_ex.what(),
                                  SALOME::BAD_PARAM );
  }
}
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_NumberOfSegments_i::SetNumberOfSegments ( CORBA::Long  theSegmentsNumber) throw ( SALOME::SALOME_Exception )

StdMeshers_NumberOfSegments_i.SetNumberOfSegments.

Set number of segments

Definition at line 136 of file StdMeshers_NumberOfSegments_i.cxx.

{
  ASSERT( myBaseImpl );
  try {
    this->GetImpl()->SetNumberOfSegments( theSegmentsNumber );
  }
  catch (SALOME_Exception& S_ex) {
    THROW_SALOME_CORBA_EXCEPTION( S_ex.what(),
                                  SALOME::BAD_PARAM );
  }

  // Update Python script
  SMESH::TPythonDump() << _this() << ".SetNumberOfSegments( " << theSegmentsNumber << " )";
}
void StdMeshers_NumberOfSegments_i::SetObjectEntry ( const char *  theEntry)

StdMeshers_NumberOfSegments_i.SetObjectEntry.

Set the Entry for the Main Object

Definition at line 202 of file StdMeshers_NumberOfSegments_i.cxx.

References GetImpl(), and SMESH_Hypothesis_i.myBaseImpl.

{
  ASSERT( myBaseImpl );
  string entry(theEntry); // actually needed as theEntry is spoiled by moment of dumping
  try {
    this->GetImpl()->SetObjectEntry( entry.c_str() );
  }
  catch ( SALOME_Exception& S_ex ) {
    THROW_SALOME_CORBA_EXCEPTION( S_ex.what(),
                                  SALOME::BAD_PARAM );
  }
  // Update Python script
  SMESH::TPythonDump() << _this() << ".SetObjectEntry( \"" << entry.c_str() << "\" )";
}
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_NumberOfSegments_i::SetReversedEdges ( const SMESH::long_array theIds)

StdMeshers_NumberOfSegments_i.SetReversedEdges.

Set edges to reverse

Definition at line 174 of file StdMeshers_NumberOfSegments_i.cxx.

References GetImpl(), SMESH_test.ids, and SMESH_Hypothesis_i.myBaseImpl.

{
  ASSERT( myBaseImpl );
  try {
    std::vector<int> ids( theIds.length() );
    CORBA::Long iEnd = theIds.length();
    for ( CORBA::Long i = 0; i < iEnd; i++ )
      ids[ i ] = theIds[ i ];

    this->GetImpl()->SetReversedEdges( ids );
  }
  catch ( SALOME_Exception& S_ex ) {
    THROW_SALOME_CORBA_EXCEPTION( S_ex.what(),
                                  SALOME::BAD_PARAM );
  }

  // Update Python script
  SMESH::TPythonDump() << _this() << ".SetReversedEdges( " << theIds << " )";
}
void StdMeshers_NumberOfSegments_i::SetScaleFactor ( CORBA::Double  theScaleFactor) throw ( SALOME::SALOME_Exception )

StdMeshers_NumberOfSegments_i.SetScaleFactor.

Set scalar factor

Definition at line 301 of file StdMeshers_NumberOfSegments_i.cxx.

{
  ASSERT( myBaseImpl );
  try {
    this->GetImpl()->SetScaleFactor( theScaleFactor );
    // Update Python script
    SMESH::TPythonDump() << _this() << ".SetScaleFactor( " << theScaleFactor << " )";
  }
  catch ( SALOME_Exception& S_ex ) {
    THROW_SALOME_CORBA_EXCEPTION( S_ex.what(),
                                  SALOME::BAD_PARAM );
  }
}
void StdMeshers_NumberOfSegments_i::SetTableFunction ( const SMESH::double_array table) throw ( SALOME::SALOME_Exception )

Definition at line 344 of file StdMeshers_NumberOfSegments_i.cxx.

{
  ASSERT( myBaseImpl );
  std::vector<double> tbl( table.length() );
  for (int i = 0; i < table.length(); i++)
    tbl[i] = table[i];
  try {
    this->GetImpl()->SetTableFunction( tbl );
    // Update Python script
    SMESH::TPythonDump() << _this() << ".SetTableFunction( " << table << " )";
  }
  catch ( SALOME_Exception& S_ex ) {
    THROW_SALOME_CORBA_EXCEPTION( S_ex.what(),
                                  SALOME::BAD_PARAM );
  }
}
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
}

Field Documentation

Definition at line 97 of file SMESH_Hypothesis_i.hxx.

Referenced by SMESH_Hypothesis_i.ClearParameters(), ConversionMode(), SMESH_Algo_i.GetCompatibleHypothesis(), StdMeshers_Deflection1D_i.GetDeflection(), GetDistrType(), 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(), 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(), 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(), GetNumberOfSegments(), StdMeshers_StartEndLength_i.GetObjectEntry(), 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(), GetReversedEdges(), StdMeshers_FixedPoints1D_i.GetReversedEdges(), StdMeshers_Arithmetic1D_i.GetReversedEdges(), GetScaleFactor(), 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(), SetObjectEntry(), StdMeshers_FixedPoints1D_i.SetObjectEntry(), StdMeshers_Arithmetic1D_i.SetObjectEntry(), SMESH_Hypothesis_i.SetParameters(), StdMeshers_MaxLength_i.SetPreestimatedLength(), StdMeshers_StartEndLength_i.SetReversedEdges(), 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_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.StdMeshers_ViscousLayers_i(), and SMESH_Hypothesis_i.~SMESH_Hypothesis_i().

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS