Back to index

salome-smesh  6.5.0
Public Member Functions
StdMeshers::StdMeshers_Arithmetic1D Interface Reference

StdMeshers_Arithmetic1D: interface of "Arithmetic 1D" hypothesis. More...

import "SMESH_BasicHypothesis.idl";

Inheritance diagram for StdMeshers::StdMeshers_Arithmetic1D:
Inheritance graph
[legend]
Collaboration diagram for StdMeshers::StdMeshers_Arithmetic1D:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void SetLength (in double length, in boolean isStartLength) raises (SALOME::SALOME_Exception)
 Sets <start segment="" length>=""> or <end segment="" length>=""> parameter value.
void SetStartLength (in double length) raises (SALOME::SALOME_Exception)
 Sets <start segment="" length>=""> parameter value.
void SetEndLength (in double length) raises (SALOME::SALOME_Exception)
 Sets <end segment="" length>=""> parameter value.
double GetLength (in boolean isStartLength)
 Returns <start segment="" length>=""> or <end segment="" length>=""> parameter value.
void SetReversedEdges (in SMESH::long_array list)
 Set list of edges to reverse.
SMESH::long_array GetReversedEdges ()
 Returns list of edges to reverse.
void SetObjectEntry (in string entry)
 Set entry of the main object.
string GetObjectEntry ()
 Get the entry of the main object.
string GetName ()
 Get the Hypothesis typeName.
string GetLibName ()
 Get the Hypothesis plugin library Name.
long GetId ()
 Get the internal Id.
void SetVarParameter (in string parameter, in string method)
 Set the variable parameter.
string GetVarParameter (in string methodName)
 Return the variable parameter used for Hypothesis creation by name of method setting this parameter.
void SetParameters (in string theParameters)
 Set list of parameters.
string GetParameters ()
 Return list of notebook variables used for Hypothesis creation separated by ":" symbol.
ListOfParameters GetLastParameters ()
 Return list of last notebook variables used for Hypothesis creation.
void SetLastParameters (in string theParameters)
 Set list of parameters.
void ClearParameters ()
 Clear parameters list.
boolean IsDimSupported (in Dimension type)
 Verify whether hypothesis supports given entity type.

Detailed Description

StdMeshers_Arithmetic1D: interface of "Arithmetic 1D" hypothesis.

Definition at line 237 of file SMESH_BasicHypothesis.idl.


Member Function Documentation

void SMESH_Hypothesis::ClearParameters ( ) [inherited]

Clear parameters list.

Definition at line 196 of file SMESH_Hypothesis.cxx.

{
  _parameters = string();
}
long SMESH::SMESH_Hypothesis::GetId ( ) [inherited]

Get the internal Id.

char * SMESH_Hypothesis::GetLastParameters ( ) [inherited]

Return list of last notebook variables used for Hypothesis creation.

Definition at line 216 of file SMESH_Hypothesis.cxx.

{
  return (char*)_lastParameters.c_str();
}
double StdMeshers_Arithmetic1D::GetLength ( in boolean  isStartLength)

Returns <start segment="" length>=""> or <end segment="" length>=""> parameter value.

Definition at line 97 of file StdMeshers_Arithmetic1D.cxx.

{
  return isStartLength ? _begLength : _endLength;
}
const char * SMESH_Hypothesis::GetLibName ( ) [inherited]

Get the Hypothesis plugin library Name.

Definition at line 141 of file SMESH_Hypothesis.cxx.

{
  return _libName.c_str();
}
string SMESH::SMESH_Hypothesis::GetName ( ) [inherited]

Get the Hypothesis typeName.

Here is the caller graph for this function:

Get the entry of the main object.

char * SMESH_Hypothesis::GetParameters ( ) [inherited]

Return list of notebook variables used for Hypothesis creation separated by ":" symbol.

Definition at line 206 of file SMESH_Hypothesis.cxx.

{
  return (char*)_parameters.c_str();
}

Returns list of edges to reverse.

string SMESH::SMESH_Hypothesis::GetVarParameter ( in string  methodName) [inherited]

Return the variable parameter used for Hypothesis creation by name of method setting this parameter.

boolean SMESH::SMESH_Hypothesis::IsDimSupported ( in Dimension  type) [inherited]

Verify whether hypothesis supports given entity type.

void StdMeshers::StdMeshers_Arithmetic1D::SetEndLength ( in double  length) raises (SALOME::SALOME_Exception)

Sets <end segment="" length>=""> parameter value.

void SMESH_Hypothesis::SetLastParameters ( in string  theParameters) [inherited]

Set list of parameters.

Parameters:
theParametersis a string containing the last notebook variables separated by ":" symbol, used for Hypothesis creation

Definition at line 226 of file SMESH_Hypothesis.cxx.

{
  _lastParameters = string(theParameters);
}
void StdMeshers_Arithmetic1D::SetLength ( in double  length,
in boolean  isStartLength 
) raises (SALOME::SALOME_Exception)

Sets <start segment="" length>=""> or <end segment="" length>=""> parameter value.

  • OBSOLETE *. Avoid such a way of interface design
  • It is recommended to dedicate a method to each parameter.

Definition at line 76 of file StdMeshers_Arithmetic1D.cxx.

{
  if ( (isStartLength ? _begLength : _endLength) != length ) {
    if (length <= 0)
      throw SALOME_Exception(LOCALIZED("length must be positive"));
    if ( isStartLength )
      _begLength = length;
    else
      _endLength = length;

    NotifySubMeshesHypothesisModification();
  }
}

Set entry of the main object.

void SMESH_Hypothesis::SetParameters ( in string  theParameters) [inherited]

Set list of parameters.

Parameters:
theParametersis a string containing the notebook variables separated by ":" symbol, used for Hypothesis creation

Definition at line 180 of file SMESH_Hypothesis.cxx.

{
  string aNewParameters(theParameters);
  if(aNewParameters.size()==0 && _parameters.size()==0)
    aNewParameters = " ";
  if(_parameters.size()>0)
    _parameters +="|";
  _parameters +=aNewParameters;
  SetLastParameters(theParameters);
}

Here is the call graph for this function:

Set list of edges to reverse.

Definition at line 108 of file StdMeshers_Arithmetic1D.cxx.

{
  if ( ids != _edgeIDs ) {
    _edgeIDs = ids;

    NotifySubMeshesHypothesisModification();
  }
}
void StdMeshers::StdMeshers_Arithmetic1D::SetStartLength ( in double  length) raises (SALOME::SALOME_Exception)

Sets <start segment="" length>=""> parameter value.

void SMESH::SMESH_Hypothesis::SetVarParameter ( in string  parameter,
in string  method 
) [inherited]

Set the variable parameter.

Parameters:
parameteris a string containing the notebook variable used for Hypothesis creation
methodis a name of Hypothesis method setting this parameter

This method must be called before calling method()


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