Back to index

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

This hypothesis specifies length of segments adjacent to the vertex the hypothesis is assigned to. More...

#include <StdMeshers_SegmentLengthAroundVertex_i.hxx>

List of all members.

Public Member Functions

 StdMeshers_SegmentLengthAroundVertex_i (PortableServer::POA_ptr thePOA, int theStudyId,::SMESH_Gen *theGenImpl)
 StdMeshers_SegmentLengthAroundVertex_i::StdMeshers_SegmentLengthAroundVertex_i.
virtual ~StdMeshers_SegmentLengthAroundVertex_i ()
 StdMeshers_SegmentLengthAroundVertex_i::~StdMeshers_SegmentLengthAroundVertex_i.
void SetLength (CORBA::Double theLength) throw ( SALOME::SALOME_Exception )
 StdMeshers_SegmentLengthAroundVertex_i::SetLength.
CORBA::Double GetLength ()
 StdMeshers_SegmentLengthAroundVertex_i::GetLength.
::StdMeshers_SegmentLengthAroundVertex * GetImpl ()
 StdMeshers_SegmentLengthAroundVertex_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 specifies length of segments adjacent to the vertex the hypothesis is assigned to.

Definition at line 42 of file StdMeshers_SegmentLengthAroundVertex_i.hxx.


Constructor & Destructor Documentation

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

StdMeshers_SegmentLengthAroundVertex_i::StdMeshers_SegmentLengthAroundVertex_i.

Constructor

Definition at line 47 of file StdMeshers_SegmentLengthAroundVertex_i.cxx.

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

StdMeshers_SegmentLengthAroundVertex_i::~StdMeshers_SegmentLengthAroundVertex_i.

Destructor

Definition at line 67 of file StdMeshers_SegmentLengthAroundVertex_i.cxx.

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

Member Function Documentation

StdMeshers_SegmentLengthAroundVertex * StdMeshers_SegmentLengthAroundVertex_i::GetImpl ( )

StdMeshers_SegmentLengthAroundVertex_i::GetImpl.

Get implementation

Definition at line 119 of file StdMeshers_SegmentLengthAroundVertex_i.cxx.

{
  MESSAGE( "StdMeshers_SegmentLengthAroundVertex_i::GetImpl" );
  return ( ::StdMeshers_SegmentLengthAroundVertex* )myBaseImpl;
}

StdMeshers_SegmentLengthAroundVertex_i::GetLength.

Get length

Definition at line 104 of file StdMeshers_SegmentLengthAroundVertex_i.cxx.

{
  MESSAGE( "StdMeshers_SegmentLengthAroundVertex_i::GetLength" );
  ASSERT( myBaseImpl );
  return this->GetImpl()->GetLength();
}
std::string StdMeshers_SegmentLengthAroundVertex_i::getMethodOfParameter ( const int  paramIndex,
int  nbVars 
) const [protected, virtual]

Return method name corresponding to index of variable parameter.

Definition at line 146 of file StdMeshers_SegmentLengthAroundVertex_i.cxx.

{
  return "SetLength";
}

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 135 of file StdMeshers_SegmentLengthAroundVertex_i.cxx.

{
  return type == SMESH::DIM_1D;
}
void StdMeshers_SegmentLengthAroundVertex_i::SetLength ( CORBA::Double  theLength) throw ( SALOME::SALOME_Exception )

StdMeshers_SegmentLengthAroundVertex_i::SetLength.

Set length

Definition at line 80 of file StdMeshers_SegmentLengthAroundVertex_i.cxx.

{
  MESSAGE( "StdMeshers_SegmentLengthAroundVertex_i::SetLength" );
  ASSERT( myBaseImpl );
  try {
    this->GetImpl()->SetLength( theLength );
  }
  catch ( SALOME_Exception& S_ex ) {
    THROW_SALOME_CORBA_EXCEPTION( S_ex.what(),SALOME::BAD_PARAM );
  }

  // Update Python script
  SMESH::TPythonDump() << _this() << ".SetLength( " << SMESH::TVar(theLength) << " )";
}

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