Back to index

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

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

#include <StdMeshers_NumberOfLayers2D_i.hxx>

Inheritance diagram for StdMeshers_NumberOfLayers2D_i:
Inheritance graph
[legend]
Collaboration diagram for StdMeshers_NumberOfLayers2D_i:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

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 quadrangle" algorithm.

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

Definition at line 39 of file StdMeshers_NumberOfLayers2D_i.hxx.


Constructor & Destructor Documentation

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

StdMeshers_NumberOfLayers2D_i::StdMeshers_NumberOfLayers2D_i.

Constructor

Definition at line 38 of file StdMeshers_NumberOfLayers2D_i.cxx.

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

StdMeshers_NumberOfLayers2D_i::~StdMeshers_NumberOfLayers2D_i.

Destructor

Definition at line 58 of file StdMeshers_NumberOfLayers2D_i.cxx.

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

Member Function Documentation

StdMeshers_NumberOfLayers2D * StdMeshers_NumberOfLayers2D_i::GetImpl ( )

StdMeshers_NumberOfLayers2D_i::GetImpl.

Get implementation

Reimplemented from StdMeshers_NumberOfLayers_i.

Definition at line 71 of file StdMeshers_NumberOfLayers2D_i.cxx.

{
  return ( ::StdMeshers_NumberOfLayers2D* )myBaseImpl;
}
std::string StdMeshers_NumberOfLayers_i::getMethodOfParameter ( const int  paramIndex,
int  nbVars 
) const [protected, virtual, inherited]

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 from StdMeshers_NumberOfLayers_i.

Definition at line 85 of file StdMeshers_NumberOfLayers2D_i.cxx.

{
  return type == SMESH::DIM_2D;
}
void StdMeshers_NumberOfLayers_i::SetNumberOfLayers ( CORBA::Long  numberOfLayers) throw ( SALOME::SALOME_Exception ) [inherited]

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: