Back to index

salome-smesh  6.5.0
Public Member Functions | Protected Member Functions
StdMeshers_NumberOfLayers_i Class Reference

This hypothesis is used by "Radial prism" algorithm. More...

#include <StdMeshers_NumberOfLayers_i.hxx>

Inheritance diagram for StdMeshers_NumberOfLayers_i:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 StdMeshers_NumberOfLayers_i (PortableServer::POA_ptr thePOA, int theStudyId,::SMESH_Gen *theGenImpl)
 StdMeshers_NumberOfLayers_i::StdMeshers_NumberOfLayers_i.
virtual ~StdMeshers_NumberOfLayers_i ()
 StdMeshers_NumberOfLayers_i::~StdMeshers_NumberOfLayers_i.
void SetNumberOfLayers (CORBA::Long numberOfLayers) throw ( SALOME::SALOME_Exception )
 StdMeshers_NumberOfLayers_i::SetNumberOfLayers.
CORBA::Long GetNumberOfLayers ()
 StdMeshers_NumberOfLayers_i::GetNumberOfLayers.
::StdMeshers_NumberOfLayers * GetImpl ()
 StdMeshers_NumberOfLayers_i::GetImpl.
CORBA::Boolean IsDimSupported (SMESH::Dimension type)
 Verify whether hypothesis supports given entity type.

Protected Member Functions

virtual std::string getMethodOfParameter (const int paramIndex, int nbVars) const
 Return method name corresponding to index of variable parameter.

Detailed Description

This hypothesis is used by "Radial prism" algorithm.

It specifies number of segments between the internal and the external surfaces.

Definition at line 47 of file StdMeshers_NumberOfLayers_i.hxx.


Constructor & Destructor Documentation

StdMeshers_NumberOfLayers_i::StdMeshers_NumberOfLayers_i ( PortableServer::POA_ptr  thePOA,
int  theStudyId,
::SMESH_Gen *  theGenImpl 
)

StdMeshers_NumberOfLayers_i::StdMeshers_NumberOfLayers_i.

Constructor

Definition at line 48 of file StdMeshers_NumberOfLayers_i.cxx.

  : SALOME::GenericObj_i( thePOA ), 
    SMESH_Hypothesis_i( thePOA )
{
  MESSAGE( "StdMeshers_NumberOfLayers_i::StdMeshers_NumberOfLayers_i" );
  myBaseImpl = new ::StdMeshers_NumberOfLayers( theGenImpl->GetANewId(),
                                                 theStudyId,
                                                 theGenImpl );
}

StdMeshers_NumberOfLayers_i::~StdMeshers_NumberOfLayers_i.

Destructor

Definition at line 68 of file StdMeshers_NumberOfLayers_i.cxx.

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

Member Function Documentation

StdMeshers_NumberOfLayers * StdMeshers_NumberOfLayers_i::GetImpl ( )

StdMeshers_NumberOfLayers_i::GetImpl.

Get implementation

Reimplemented in StdMeshers_NumberOfLayers2D_i.

Definition at line 117 of file StdMeshers_NumberOfLayers_i.cxx.

{
  return ( ::StdMeshers_NumberOfLayers* )myBaseImpl;
}

Here is the caller graph for this function:

std::string StdMeshers_NumberOfLayers_i::getMethodOfParameter ( const int  paramIndex,
int  nbVars 
) const [protected, virtual]

Return method name corresponding to index of variable parameter.

Definition at line 142 of file StdMeshers_NumberOfLayers_i.cxx.

{
  return "SetNumberOfLayers";
}

StdMeshers_NumberOfLayers_i::GetNumberOfLayers.

Returns <number of="" layers>=""> parameter value

Definition at line 103 of file StdMeshers_NumberOfLayers_i.cxx.

{
  ASSERT( myBaseImpl );
  return this->GetImpl()->GetNumberOfLayers();
}

Here is the call graph for this function:

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)

Reimplemented in StdMeshers_NumberOfLayers2D_i.

Definition at line 131 of file StdMeshers_NumberOfLayers_i.cxx.

{
  return type == SMESH::DIM_3D;
}
void StdMeshers_NumberOfLayers_i::SetNumberOfLayers ( CORBA::Long  numberOfLayers) throw ( SALOME::SALOME_Exception )

StdMeshers_NumberOfLayers_i::SetNumberOfLayers.

Sets <number of="" segments>=""> parameter value

Definition at line 81 of file StdMeshers_NumberOfLayers_i.cxx.

{
  ASSERT( myBaseImpl );
  try {
    this->GetImpl()->SetNumberOfLayers( numberOfLayers );
  }
  catch ( SALOME_Exception& S_ex ) {
    THROW_SALOME_CORBA_EXCEPTION( S_ex.what(), SALOME::BAD_PARAM );
  }
  // Update Python script
  SMESH::TPythonDump() << _this() << ".SetNumberOfLayers( " << SMESH::TVar(numberOfLayers) << " )";
}

The documentation for this class was generated from the following files: