Version: 8.3.0
StdMeshers_CartesianParameters3D_i Class Reference

#include <StdMeshers_CartesianParameters3D_i.hxx>

Inheritance diagram for StdMeshers_CartesianParameters3D_i:

Public Member Functions

 StdMeshers_CartesianParameters3D_i (PortableServer::POA_ptr thePOA, int theStudyId,::SMESH_Gen *theGenImpl)
 StdMeshers_CartesianParameters3D_i::StdMeshers_CartesianParameters3D_i. More...
 
virtual ~StdMeshers_CartesianParameters3D_i ()
 StdMeshers_CartesianParameters3D_i::~StdMeshers_CartesianParameters3D_i. More...
 
void SetSizeThreshold (CORBA::Double threshold) throw (SALOME::SALOME_Exception)
 Set size threshold. More...
 
CORBA::Double GetSizeThreshold ()
 GetSizeThreshold. More...
 
void SetGrid (const SMESH::double_array &coords, CORBA::Short axis) throw (SALOME::SALOME_Exception)
 Set node coordinates along an axis (counterd from zero) More...
 
SMESH::double_arrayGetGrid (CORBA::Short axis) throw (SALOME::SALOME_Exception)
 GetGrid. More...
 
void SetGridSpacing (const SMESH::string_array &spaceFunctions, const SMESH::double_array &internalPoints, CORBA::Short axis) throw (SALOME::SALOME_Exception)
 Set grid spacing along an axis. More...
 
void GetGridSpacing (SMESH::string_array_out xSpaceFunctions, SMESH::double_array_out xInternalPoints, CORBA::Short axis) throw (SALOME::SALOME_Exception)
 
void SetAxesDirs (const SMESH::DirStruct &x, const SMESH::DirStruct &y, const SMESH::DirStruct &z) throw (SALOME::SALOME_Exception)
 Set custom direction of axes. More...
 
void GetAxesDirs (SMESH::DirStruct &x, SMESH::DirStruct &y, SMESH::DirStruct &z)
 
void SetFixedPoint (const ::SMESH::PointStruct &p, CORBA::Boolean toUnset)
 Set/unset a fixed point, at which a node will be created provided that grid is defined by spacing in all directions. More...
 
CORBA::Boolean GetFixedPoint (::SMESH::PointStruct &p)
 
void SetToAddEdges (CORBA::Boolean toAdd)
 Enables implementation of geometrical edges into the mesh. More...
 
CORBA::Boolean GetToAddEdges ()
 
CORBA::Boolean IsGridBySpacing (CORBA::Short axis)
 Return true if the grid is defined by spacing functions and not by node coordinates. More...
 
void ComputeOptimalAxesDirs (GEOM::GEOM_Object_ptr shape, CORBA::Boolean isOrthogonal, SMESH::DirStruct &x, SMESH::DirStruct &y, SMESH::DirStruct &z) throw (SALOME::SALOME_Exception)
 Returns axes at which number of hexahedra is maximal. More...
 
SMESH::double_arrayComputeCoordinates (CORBA::Double x0, CORBA::Double x1, const SMESH::string_array &spaceFuns, const SMESH::double_array &points, const char *axisName) throw (SALOME::SALOME_Exception)
 Computes node coordinates by spacing functions. More...
 
::StdMeshers_CartesianParameters3DGetImpl ()
 Get implementation. More...
 
CORBA::Boolean IsDimSupported (SMESH::Dimension type)
 Verify whether hypothesis supports given entity type. More...
 
virtual char * GetName ()
 SMESH_Hypothesis_i::GetName. More...
 
virtual char * GetLibName ()
 SMESH_Hypothesis_i::GetLibName. More...
 
void SetLibName (const char *theLibName)
 SMESH_Hypothesis_i::SetLibName. More...
 
virtual CORBA::Long GetId ()
 SMESH_Hypothesis_i::GetId. More...
 
virtual CORBA::Boolean HasParameters ()
 Return true if a hypothesis has parameters. More...
 
virtual void SetVarParameter (const char *parameter, const char *method)
 Set the pramIndex-th parameter. More...
 
virtual char * GetVarParameter (const char *methodName)
 Return the pramIndex-th variable parameter used for Hypothesis creation. More...
 
virtual void SetHolderHypothesis (const SMESH::SMESH_Hypothesis_ptr hyp)
 Store a hypothesis wrapping this not published one. More...
 
bool IsPublished ()
 SMESH_Hypothesis_i::IsPublished() More...
 
virtual char * SaveTo ()
 SMESH_Hypothesis_i::SaveTo. More...
 
virtual void LoadFrom (const char *theStream)
 SMESH_Hypothesis_i::LoadFrom. More...
 
virtual void UpdateAsMeshesRestored ()
 This mesthod is called after completion of loading a study. More...
 
virtual void setOldParameters (const char *theParameters)
 Restore myMethod2VarParams by parameters stored in an old study. More...
 
virtual std::string getMethodOfParameter (const int paramIndex, int nbVars) const
 
virtual int getParamIndex (const TCollection_AsciiString &method, int nbVars) const
 

Protected Attributes

::SMESH_HypothesismyBaseImpl
 
SMESH::SMESH_Hypothesis_var myHolder
 
std::map< std::string,
std::string > 
myMethod2VarParams
 

Constructor & Destructor Documentation

StdMeshers_CartesianParameters3D_i::StdMeshers_CartesianParameters3D_i ( PortableServer::POA_ptr  thePOA,
int  theStudyId,
::SMESH_Gen theGenImpl 
)
StdMeshers_CartesianParameters3D_i::~StdMeshers_CartesianParameters3D_i ( )
virtual

Member Function Documentation

SMESH::double_array * StdMeshers_CartesianParameters3D_i::ComputeCoordinates ( CORBA::Double  x0,
CORBA::Double  x1,
const SMESH::string_array spaceFuns,
const SMESH::double_array points,
const char *  axisName 
) throw (SALOME::SALOME_Exception)

Computes node coordinates by spacing functions.

Parameters
x0- lower coordinate
x1- upper coordinate
spaceFuns- space functions
points- internal points
coords- the computed coordinates

References _array2vec, and _vec2array.

void StdMeshers_CartesianParameters3D_i::ComputeOptimalAxesDirs ( GEOM::GEOM_Object_ptr  shape,
CORBA::Boolean  isOrthogonal,
SMESH::DirStruct x,
SMESH::DirStruct y,
SMESH::DirStruct z 
) throw (SALOME::SALOME_Exception)
CORBA::Boolean StdMeshers_CartesianParameters3D_i::GetFixedPoint ( ::SMESH::PointStruct p)
SMESH::double_array * StdMeshers_CartesianParameters3D_i::GetGrid ( CORBA::Short  axis) throw (SALOME::SALOME_Exception)

GetGrid.

References _vec2array.

void StdMeshers_CartesianParameters3D_i::GetGridSpacing ( SMESH::string_array_out  xSpaceFunctions,
SMESH::double_array_out  xInternalPoints,
CORBA::Short  axis 
) throw (SALOME::SALOME_Exception)

References _vec2array.

CORBA::Long SMESH_Hypothesis_i::GetId ( )
virtualinherited

SMESH_Hypothesis_i::GetId.

Get unique id of hypothesis

References SMESH_Hypothesis_i::myBaseImpl.

StdMeshers_CartesianParameters3D * StdMeshers_CartesianParameters3D_i::GetImpl ( )
char * SMESH_Hypothesis_i::GetLibName ( )
virtualinherited

SMESH_Hypothesis_i::GetLibName.

Get plugin library name of hypothesis (required by persistency mechanism)

References SMESH_Hypothesis_i::myBaseImpl.

Referenced by StdMeshers_LayerDistribution_i::SetLayerDistribution().

char * SMESH_Hypothesis_i::GetName ( )
virtualinherited
virtual int SMESH_Hypothesis_i::getParamIndex ( const TCollection_AsciiString &  method,
int  nbVars 
) const
virtualinherited
CORBA::Double StdMeshers_CartesianParameters3D_i::GetSizeThreshold ( )
CORBA::Boolean StdMeshers_CartesianParameters3D_i::GetToAddEdges ( )
char * SMESH_Hypothesis_i::GetVarParameter ( const char *  methodName)
virtualinherited

Return the pramIndex-th variable parameter used for Hypothesis creation.

References SMESH_Gen_i::GetSMESHGen(), SMESH_Hypothesis_i::myMethod2VarParams, and SMESH_Hypothesis_i::setOldParameters().

Referenced by SMESH_Hypothesis_i::SaveTo().

CORBA::Boolean SMESH_Hypothesis_i::HasParameters ( )
virtualinherited

Return true if a hypothesis has parameters.

Reimplemented in StdMeshers_LengthFromEdges_i.

References SMESH_Hypothesis_i::myBaseImpl.

CORBA::Boolean StdMeshers_CartesianParameters3D_i::IsDimSupported ( SMESH::Dimension  type)

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)

References SMESH::DIM_3D.

CORBA::Boolean StdMeshers_CartesianParameters3D_i::IsGridBySpacing ( CORBA::Short  axis)

Return true if the grid is defined by spacing functions and not by node coordinates.

References GetImpl(), and StdMeshers_CartesianParameters3D::IsGridBySpacing().

bool SMESH_Hypothesis_i::IsPublished ( )
inherited
void StdMeshers_CartesianParameters3D_i::SetAxesDirs ( const SMESH::DirStruct x,
const SMESH::DirStruct y,
const SMESH::DirStruct z 
) throw (SALOME::SALOME_Exception)

Set custom direction of axes.

void StdMeshers_CartesianParameters3D_i::SetFixedPoint ( const ::SMESH::PointStruct p,
CORBA::Boolean  toUnset 
)

Set/unset a fixed point, at which a node will be created provided that grid is defined by spacing in all directions.

References GetImpl(), StdMeshers_CartesianParameters3D::SetFixedPoint(), SMESH::PointStruct::x, SMESH::PointStruct::y, and SMESH::PointStruct::z.

void StdMeshers_CartesianParameters3D_i::SetGrid ( const SMESH::double_array coords,
CORBA::Short  axis 
) throw (SALOME::SALOME_Exception)

Set node coordinates along an axis (counterd from zero)

SetGrid.

References _array2vec.

void StdMeshers_CartesianParameters3D_i::SetGridSpacing ( const SMESH::string_array spaceFunctions,
const SMESH::double_array internalPoints,
CORBA::Short  axis 
) throw (SALOME::SALOME_Exception)

Set grid spacing along an axis.

Parameters
spaceFunctions- functions defining spacing value at given point on axis
internalPoints- points dividing a grid into parts along each direction
axis- index of an axis counterd from zero, i.e. 0==X, 1==Y, 2==Z

Parameter t of spaceFunction f(t) is a position [0,1] within bounding box of the shape to mesh or within an interval defined by internal points

References _array2vec.

void SMESH_Hypothesis_i::SetHolderHypothesis ( const SMESH::SMESH_Hypothesis_ptr  hyp)
virtualinherited

Store a hypothesis wrapping this not published one.

This hyp, which has no own parameters but is published, is used to store variables defining parameters of this hypothesis.

References SMESH_Hypothesis_i::myHolder.

void SMESH_Hypothesis_i::SetLibName ( const char *  theLibName)
inherited

SMESH_Hypothesis_i::SetLibName.

Set plugin library name of hypothesis (required by persistency mechanism)

References SMESH_Hypothesis_i::myBaseImpl.

Referenced by SMESH_Gen_i::createHypothesis().

void SMESH_Hypothesis_i::setOldParameters ( const char *  theParameters)
virtualinherited

Restore myMethod2VarParams by parameters stored in an old study.

Reimplemented in StdMeshers_LayerDistribution_i.

References SMESH_Hypothesis_i::getMethodOfParameter(), SMESH_Gen_i::GetSMESHGen(), and SMESH_Hypothesis_i::myMethod2VarParams.

Referenced by SMESH_Hypothesis_i::GetVarParameter().

void StdMeshers_CartesianParameters3D_i::SetSizeThreshold ( CORBA::Double  threshold) throw (SALOME::SALOME_Exception)

Set size threshold.

SetSizeThreshold.

A polyhedral cell got by cutting an initial hexahedron by geometry boundary is considered small and is removed if it's size is times less than the size of the initial hexahedron. threshold must be > 1.0

void StdMeshers_CartesianParameters3D_i::SetToAddEdges ( CORBA::Boolean  toAdd)

Enables implementation of geometrical edges into the mesh.

If this feature is disabled, sharp edges of the shape are lost ("smoothed") in the mesh if they don't coincide with the grid lines

References GetImpl(), and StdMeshers_CartesianParameters3D::SetToAddEdges().

void SMESH_Hypothesis_i::SetVarParameter ( const char *  parameter,
const char *  method 
)
virtualinherited
void SMESH_Hypothesis_i::UpdateAsMeshesRestored ( )
virtualinherited

This mesthod is called after completion of loading a study.

Reimplemented in StdMeshers_ViscousLayers2D_i, StdMeshers_ImportSource1D_i, and StdMeshers_ImportSource2D_i.

Referenced by SMESH_Gen_i::Load().

Field Documentation

::SMESH_Hypothesis* SMESH_Hypothesis_i::myBaseImpl
protectedinherited

Referenced by StdMeshers_NumberOfSegments_i::ConversionMode(), SMESH_Algo_i::GetCompatibleHypothesis(), StdMeshers_Deflection1D_i::GetDeflection(), StdMeshers_Adaptive1D_i::GetDeflection(), StdMeshers_NumberOfSegments_i::GetDistrType(), StdMeshers_NumberOfSegments_i::GetExpressionFunction(), StdMeshers_AutomaticLength_i::GetFineness(), SMESH_Hypothesis_i::GetId(), StdMeshers_Import_1D2D_i::GetImpl(), StdMeshers_Import_1D_i::GetImpl(), StdMeshers_NumberOfLayers2D_i::GetImpl(), StdMeshers_LayerDistribution2D_i::GetImpl(), StdMeshers_Cartesian_3D_i::GetImpl(), StdMeshers_UseExisting_1D_i::GetImpl(), StdMeshers_Regular_1D_i::GetImpl(), StdMeshers_ImportSource1D_i::GetImpl(), StdMeshers_Prism_3D_i::GetImpl(), StdMeshers_ImportSource2D_i::GetImpl(), StdMeshers_Hexa_3D_i::GetImpl(), StdMeshers_Quadrangle_2D_i::GetImpl(), StdMeshers_MEFISTO_2D_i::GetImpl(), StdMeshers_Projection_3D_i::GetImpl(), StdMeshers_MaxElementArea_i::GetImpl(), StdMeshers_MaxElementVolume_i::GetImpl(), StdMeshers_Geometric1D_i::GetImpl(), StdMeshers_Deflection1D_i::GetImpl(), StdMeshers_LengthFromEdges_i::GetImpl(), StdMeshers_AutomaticLength_i::GetImpl(), StdMeshers_NumberOfLayers_i::GetImpl(), StdMeshers_ViscousLayers2D_i::GetImpl(), StdMeshers_LocalLength_i::GetImpl(), StdMeshers_StartEndLength_i::GetImpl(), StdMeshers_ViscousLayers_i::GetImpl(), StdMeshers_LayerDistribution_i::GetImpl(), StdMeshers_UseExisting_2D_i::GetImpl(), StdMeshers_MaxLength_i::GetImpl(), StdMeshers_Adaptive1D_i::GetImpl(), StdMeshers_FixedPoints1D_i::GetImpl(), StdMeshers_Arithmetic1D_i::GetImpl(), StdMeshers_RadialPrism_3D_i::GetImpl(), StdMeshers_Projection_2D_i::GetImpl(), SMESH_Hypothesis_i::GetImpl(), StdMeshers_NumberOfSegments_i::GetImpl(), StdMeshers_Projection_1D2D_i::GetImpl(), StdMeshers_Projection_1D_i::GetImpl(), GetImpl(), StdMeshers_MaxLength_i::GetLength(), StdMeshers_LocalLength_i::GetLength(), StdMeshers_Arithmetic1D_i::GetLength(), StdMeshers_StartEndLength_i::GetLength(), SMESH_Hypothesis_i::GetLibName(), StdMeshers_MaxElementArea_i::GetMaxElementArea(), StdMeshers_MaxElementVolume_i::GetMaxElementVolume(), StdMeshers_Adaptive1D_i::GetMaxSize(), StdMeshers_Adaptive1D_i::GetMinSize(), StdMeshers_LengthFromEdges_i::GetMode(), SMESH_Hypothesis_i::GetName(), StdMeshers_FixedPoints1D_i::GetNbSegments(), StdMeshers_NumberOfLayers_i::GetNumberOfLayers(), StdMeshers_NumberOfSegments_i::GetNumberOfSegments(), StdMeshers_FixedPoints1D_i::GetObjectEntry(), StdMeshers_Arithmetic1D_i::GetObjectEntry(), StdMeshers_StartEndLength_i::GetObjectEntry(), StdMeshers_NumberOfSegments_i::GetObjectEntry(), StdMeshers_FixedPoints1D_i::GetPoints(), StdMeshers_LocalLength_i::GetPrecision(), StdMeshers_MaxLength_i::GetPreestimatedLength(), StdMeshers_FixedPoints1D_i::GetReversedEdges(), StdMeshers_Arithmetic1D_i::GetReversedEdges(), StdMeshers_StartEndLength_i::GetReversedEdges(), StdMeshers_NumberOfSegments_i::GetReversedEdges(), StdMeshers_NumberOfSegments_i::GetScaleFactor(), StdMeshers_NumberOfSegments_i::GetTableFunction(), StdMeshers_MaxLength_i::GetUsePreestimatedLength(), SMESH_Hypothesis_i::HasParameters(), StdMeshers_MaxLength_i::HavePreestimatedLength(), StdMeshers_ImportSource1D_i::LoadFrom(), StdMeshers_ImportSource2D_i::LoadFrom(), StdMeshers_LayerDistribution_i::LoadFrom(), SMESH_Hypothesis_i::LoadFrom(), StdMeshers_ImportSource1D_i::SaveTo(), StdMeshers_ImportSource2D_i::SaveTo(), StdMeshers_LayerDistribution_i::SaveTo(), SMESH_Hypothesis_i::SaveTo(), SMESH_Hypothesis_i::SetLibName(), StdMeshers_FixedPoints1D_i::SetObjectEntry(), StdMeshers_Arithmetic1D_i::SetObjectEntry(), StdMeshers_StartEndLength_i::SetObjectEntry(), StdMeshers_NumberOfSegments_i::SetObjectEntry(), StdMeshers_MaxLength_i::SetPreestimatedLength(), StdMeshers_FixedPoints1D_i::SetReversedEdges(), StdMeshers_Arithmetic1D_i::SetReversedEdges(), StdMeshers_StartEndLength_i::SetReversedEdges(), StdMeshers_NumberOfSegments_i::SetReversedEdges(), StdMeshers_ImportSource1D_i::SetSourceEdges(), StdMeshers_ImportSource2D_i::SetSourceFaces(), SMESH_Hypothesis_i::SMESH_Hypothesis_i(), StdMeshers_Adaptive1D_i::StdMeshers_Adaptive1D_i(), StdMeshers_Arithmetic1D_i::StdMeshers_Arithmetic1D_i(), StdMeshers_AutomaticLength_i::StdMeshers_AutomaticLength_i(), StdMeshers_Cartesian_3D_i::StdMeshers_Cartesian_3D_i(), StdMeshers_CartesianParameters3D_i(), StdMeshers_Deflection1D_i::StdMeshers_Deflection1D_i(), StdMeshers_FixedPoints1D_i::StdMeshers_FixedPoints1D_i(), StdMeshers_Geometric1D_i::StdMeshers_Geometric1D_i(), StdMeshers_Hexa_3D_i::StdMeshers_Hexa_3D_i(), StdMeshers_Import_1D2D_i::StdMeshers_Import_1D2D_i(), StdMeshers_Import_1D_i::StdMeshers_Import_1D_i(), StdMeshers_ImportSource1D_i::StdMeshers_ImportSource1D_i(), StdMeshers_ImportSource2D_i::StdMeshers_ImportSource2D_i(), StdMeshers_LayerDistribution_i::StdMeshers_LayerDistribution_i(), StdMeshers_LengthFromEdges_i::StdMeshers_LengthFromEdges_i(), StdMeshers_LocalLength_i::StdMeshers_LocalLength_i(), StdMeshers_MaxElementArea_i::StdMeshers_MaxElementArea_i(), StdMeshers_MaxElementVolume_i::StdMeshers_MaxElementVolume_i(), StdMeshers_MaxLength_i::StdMeshers_MaxLength_i(), StdMeshers_MEFISTO_2D_i::StdMeshers_MEFISTO_2D_i(), StdMeshers_NumberOfLayers_i::StdMeshers_NumberOfLayers_i(), StdMeshers_NumberOfSegments_i::StdMeshers_NumberOfSegments_i(), StdMeshers_PolygonPerFace_2D_i::StdMeshers_PolygonPerFace_2D_i(), StdMeshers_Prism_3D_i::StdMeshers_Prism_3D_i(), StdMeshers_Projection_1D2D_i::StdMeshers_Projection_1D2D_i(), StdMeshers_Projection_1D_i::StdMeshers_Projection_1D_i(), StdMeshers_Projection_2D_i::StdMeshers_Projection_2D_i(), StdMeshers_Projection_3D_i::StdMeshers_Projection_3D_i(), StdMeshers_Propagation_i::StdMeshers_Propagation_i(), StdMeshers_PropagOfDistribution_i::StdMeshers_PropagOfDistribution_i(), StdMeshers_QuadFromMedialAxis_1D2D_i::StdMeshers_QuadFromMedialAxis_1D2D_i(), StdMeshers_Quadrangle_2D_i::StdMeshers_Quadrangle_2D_i(), StdMeshers_RadialPrism_3D_i::StdMeshers_RadialPrism_3D_i(), StdMeshers_Regular_1D_i::StdMeshers_Regular_1D_i(), StdMeshers_StartEndLength_i::StdMeshers_StartEndLength_i(), StdMeshers_ViscousLayers2D_i::StdMeshers_ViscousLayers2D_i(), StdMeshers_ViscousLayers_i::StdMeshers_ViscousLayers_i(), and SMESH_Hypothesis_i::~SMESH_Hypothesis_i().

SMESH::SMESH_Hypothesis_var SMESH_Hypothesis_i::myHolder
protectedinherited
std::map< std::string, std::string > SMESH_Hypothesis_i::myMethod2VarParams
protectedinherited