-// SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
+// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
+//
+// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+// SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
// File : StdMeshers_NumberOfSegments_i.cxx
// Moved here from SMESH_NumberOfSegments_i.cxx
// Author : Paul RASCLE, EDF
// Module : SMESH
// $Header$
-
-using namespace std;
+//
#include "StdMeshers_NumberOfSegments_i.hxx"
#include "SMESH_Gen_i.hxx"
#include "SMESH_Gen.hxx"
#include <TCollection_AsciiString.hxx>
+using namespace std;
+
//=============================================================================
/*!
* StdMeshers_NumberOfSegments_i::StdMeshers_NumberOfSegments_i
* Builds point distribution according to passed function
*/
//=============================================================================
-SMESH::double_array* StdMeshers_NumberOfSegments_i::BuildDistributionExpr( const char* func, long nbSeg, long conv )
-throw ( SALOME::SALOME_Exception )
+SMESH::double_array* StdMeshers_NumberOfSegments_i::BuildDistributionExpr( const char* func,
+ CORBA::Long nbSeg,
+ CORBA::Long conv )
+ throw ( SALOME::SALOME_Exception )
{
- MESSAGE( "StdMeshers_NumberOfSegments_i::BuildDistribution" );
ASSERT( myBaseImpl );
try
{
}
SMESH::double_array* StdMeshers_NumberOfSegments_i::BuildDistributionTab( const SMESH::double_array& func,
- long nbSeg, long conv )
-throw ( SALOME::SALOME_Exception )
+ CORBA::Long nbSeg,
+ CORBA::Long conv )
+ throw ( SALOME::SALOME_Exception )
{
- MESSAGE( "StdMeshers_NumberOfSegments_i::BuildDistribution" );
ASSERT( myBaseImpl );
std::vector<double> tbl( func.length() );
void StdMeshers_NumberOfSegments_i::SetNumberOfSegments( CORBA::Long theSegmentsNumber )
throw ( SALOME::SALOME_Exception )
{
- MESSAGE( "StdMeshers_NumberOfSegments_i::SetNumberOfSegments" );
ASSERT( myBaseImpl );
try {
this->GetImpl()->SetNumberOfSegments( theSegmentsNumber );
CORBA::Long StdMeshers_NumberOfSegments_i::GetNumberOfSegments()
{
- MESSAGE( "StdMeshers_NumberOfSegments_i::GetNumberOfSegments" );
ASSERT( myBaseImpl );
return this->GetImpl()->GetNumberOfSegments();
}
void StdMeshers_NumberOfSegments_i::SetDistrType(CORBA::Long typ)
throw ( SALOME::SALOME_Exception )
{
- MESSAGE( "StdMeshers_NumberOfSegments_i::SetDistrType" );
ASSERT( myBaseImpl );
try {
this->GetImpl()->SetDistrType( (::StdMeshers_NumberOfSegments::DistrType) typ );
CORBA::Long StdMeshers_NumberOfSegments_i::GetDistrType()
{
- MESSAGE( "StdMeshers_NumberOfSegments_i::GetDistrType" );
ASSERT( myBaseImpl );
return this->GetImpl()->GetDistrType();
}
void StdMeshers_NumberOfSegments_i::SetScaleFactor( CORBA::Double theScaleFactor )
throw ( SALOME::SALOME_Exception )
{
- MESSAGE( "StdMeshers_NumberOfSegments_i::SetScaleFactor" );
ASSERT( myBaseImpl );
try {
this->GetImpl()->SetScaleFactor( theScaleFactor );
CORBA::Double StdMeshers_NumberOfSegments_i::GetScaleFactor()
throw ( SALOME::SALOME_Exception )
{
- MESSAGE( "StdMeshers_NumberOfSegments_i::GetScaleFactor" );
ASSERT( myBaseImpl );
double scale;
try {
void StdMeshers_NumberOfSegments_i::SetTableFunction(const SMESH::double_array& table)
throw ( SALOME::SALOME_Exception )
{
- MESSAGE( "StdMeshers_NumberOfSegments_i::SetTableFunction" );
ASSERT( myBaseImpl );
std::vector<double> tbl( table.length() );
for (int i = 0; i < table.length(); i++)
SMESH::double_array* StdMeshers_NumberOfSegments_i::GetTableFunction()
throw ( SALOME::SALOME_Exception )
{
- MESSAGE( "StdMeshers_NumberOfSegments_i::GetTableFunction" );
ASSERT( myBaseImpl );
const std::vector<double>* tbl;
try {
void StdMeshers_NumberOfSegments_i::SetExpressionFunction(const char* expr)
throw ( SALOME::SALOME_Exception )
{
- MESSAGE( "StdMeshers_NumberOfSegments_i::SetExpressionFunction" );
ASSERT( myBaseImpl );
try {
this->GetImpl()->SetExpressionFunction( expr );
char* StdMeshers_NumberOfSegments_i::GetExpressionFunction()
throw ( SALOME::SALOME_Exception )
{
- MESSAGE( "StdMeshers_NumberOfSegments_i::GetExpressionFunction" );
ASSERT( myBaseImpl );
const char* expr;
try {
void StdMeshers_NumberOfSegments_i::SetConversionMode(CORBA::Long conv )
throw ( SALOME::SALOME_Exception )
{
- MESSAGE( "StdMeshers_NumberOfSegments_i::SetConversionMode" );
ASSERT( myBaseImpl );
try {
this->GetImpl()->SetConversionMode( conv );
CORBA::Long StdMeshers_NumberOfSegments_i::ConversionMode()
throw ( SALOME::SALOME_Exception )
{
- MESSAGE( "StdMeshers_NumberOfSegments_i::ConversionMode" );
ASSERT( myBaseImpl );
int conv;
try {
::StdMeshers_NumberOfSegments* StdMeshers_NumberOfSegments_i::GetImpl()
{
- MESSAGE( "StdMeshers_NumberOfSegments_i::GetImpl" );
return ( ::StdMeshers_NumberOfSegments* )myBaseImpl;
}