X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FStdMeshers_I%2FStdMeshers_Deflection1D_i.cxx;h=72a715d81e5e187680547ef54cfa57a9f3d13307;hp=84ef5e96d3de9de4f91ee41c11583ca41ec200ea;hb=71d173d51a36d3a3ad7b51972b5be88c2df9865e;hpb=e4737e85f0da6d3f90fd08f6be1c2825195fe16f diff --git a/src/StdMeshers_I/StdMeshers_Deflection1D_i.cxx b/src/StdMeshers_I/StdMeshers_Deflection1D_i.cxx index 84ef5e96d..72a715d81 100644 --- a/src/StdMeshers_I/StdMeshers_Deflection1D_i.cxx +++ b/src/StdMeshers_I/StdMeshers_Deflection1D_i.cxx @@ -29,11 +29,15 @@ using namespace std; #include "StdMeshers_Deflection1D_i.hxx" +#include "SMESH_Gen_i.hxx" #include "SMESH_Gen.hxx" +#include "SMESH_PythonDump.hxx" #include "Utils_CorbaException.hxx" #include "utilities.h" +#include + //============================================================================= /*! * StdMeshers_Deflection1D_i::StdMeshers_Deflection1D_i @@ -87,6 +91,9 @@ void StdMeshers_Deflection1D_i::SetDeflection( CORBA::Double theValue ) THROW_SALOME_CORBA_EXCEPTION( S_ex.what(), SALOME::BAD_PARAM ); } + + // Update Python script + SMESH::TPythonDump() << _this() << ".SetDeflection( " << theValue << " )"; } //============================================================================= @@ -117,3 +124,18 @@ CORBA::Double StdMeshers_Deflection1D_i::GetDeflection() MESSAGE( "StdMeshers_Deflection1D_i::GetImpl" ); return ( ::StdMeshers_Deflection1D* )myBaseImpl; } + +//================================================================================ +/*! + * \brief Verify whether hypothesis supports given entity type + * \param type - dimension (see SMESH::Dimension enumeration) + * \retval CORBA::Boolean - TRUE if dimension is supported, FALSE otherwise + * + * Verify whether hypothesis supports given entity type (see SMESH::Dimension enumeration) + */ +//================================================================================ +CORBA::Boolean StdMeshers_Deflection1D_i::IsDimSupported( SMESH::Dimension type ) +{ + return type == SMESH::DIM_1D; +} +