Version: 9.16.0
SMESH_Gen_i Class Referenceabstract

#include <SMESH_Gen_i.hxx>

Inheritance diagram for SMESH_Gen_i:

Public Member Functions

virtual GEOM::GEOM_Gen_var GetGeomEngine (bool isShaper)=0
 
SALOMEDS::Study_var getStudyServant () const
 
virtual SALOMEDS::Study_var getStudyServantVirtual () const =0
 
virtual SALOME_ModuleCatalog::ModuleCatalog_var getModuleCatalog () const =0
 
SALOMEDS::SObject_ptr publish (CORBA::Object_ptr theIOR, SALOMEDS::SObject_ptr theFatherObject, const int theTag=0, const char *thePixMap=0, const bool theSelectable=true)
 
SALOMEDS::SObject_ptr ObjectToSObject (CORBA::Object_ptr theObject)
 
 SMESH_Gen_i ()
 SMESH_Gen_i::SMESH_Gen_i. More...
 
 SMESH_Gen_i (CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, PortableServer::ObjectId *contId, const char *instanceName, const char *interfaceName, bool checkNS=true)
 SMESH_Gen_i::SMESH_Gen_i. More...
 
virtual ~SMESH_Gen_i ()
 SMESH_Gen_i::~SMESH_Gen_i. More...
 
void SetName (const char *theIOR, const char *theName)
 SMESH_Gen_i::SetName. More...
 
void SetGeomEngine (GEOM::GEOM_Gen_ptr geomcompo)
 SMESH_Gen_i::SetGeomEngine. More...
 
void SetEmbeddedMode (CORBA::Boolean theMode)
 SMESH_Gen_i::SetEmbeddedMode. More...
 
CORBA::Boolean IsEmbeddedMode ()
 SMESH_Gen_i::IsEmbeddedMode. More...
 
void SetEnablePublish (CORBA::Boolean theIsEnablePublish)
 SMESH_Gen_i::SetEnablePublish. More...
 
CORBA::Boolean IsEnablePublish ()
 SMESH_Gen_i::IsEnablePublish. More...
 
void UpdateStudy ()
 SMESH_Gen_i::UpdateStudy. More...
 
bool hasObjectInfo ()
 
char * getObjectInfo (const char *entry)
 
SMESH::SMESH_Hypothesis_ptr CreateHypothesis (const char *theHypType, const char *theLibName)
 SMESH_Gen_i::CreateHypothesis. More...
 
SMESH::SMESH_Hypothesis_ptr CreateHypothesisByAverageLength (const char *theHypType, const char *theLibName, CORBA::Double theAverageLength, CORBA::Boolean theQuadDominated)
 Return a hypothesis initialized by given average length. More...
 
SMESH::SMESH_Hypothesis_ptr GetHypothesisParameterValues (const char *theHypType, const char *theLibName, SMESH::SMESH_Mesh_ptr theMesh, GEOM::GEOM_Object_ptr theGeom, const SMESH::HypInitParams &theWay)
 Return a hypothesis holding parameter values corresponding either to the mesh existing on the given geometry or to size of the geometry. More...
 
CORBA::Boolean GetSoleSubMeshUsingHyp (SMESH::SMESH_Hypothesis_ptr theHyp, SMESH::SMESH_Mesh_out theMesh, GEOM::GEOM_Object_out theShape)
 Returns True if a hypothesis is assigned to a sole sub-mesh in a current Study. More...
 
void SetBoundaryBoxSegmentation (CORBA::Long theNbSegments)
 Sets number of segments per diagonal of boundary box of geometry by which default segment length of appropriate 1D hypotheses is defined. More...
 
void SetDefaultNbSegments (CORBA::Long theNbSegments)
 Sets default number of segments per edge. More...
 
virtual void SetOption (const char *, const char *)
 Set an option value. More...
 
virtual char * GetOption (const char *)
 Return an option value. More...
 
bool ToForgetMeshDataOnHypModif () const
 To load full mesh data from study at hyp modification or not. More...
 
SMESH::SMESH_Mesh_ptr CreateMesh (GEOM::GEOM_Object_ptr theShapeObject)
 SMESH_Gen_i::CreateMesh. More...
 
SMESH::SMESH_ParallelMesh_ptr CreateParallelMesh (GEOM::GEOM_Object_ptr theShapeObject)
 SMESH_Gen_i::CreateParallelMesh. More...
 
SMESH::SMESH_Mesh_ptr CreateEmptyMesh ()
 SMESH_Gen_i::CreateEmptyMesh. More...
 
SMESH::SMESH_Mesh_ptr ReloadMeshFromFile (SMESH::SMESH_Mesh_ptr theMesh)
 
SMESH::SMESH_Mesh_ptr CreateMeshesFromUNV (const char *theFileName)
 SMESH_Gen_i::CreateMeshFromUNV. More...
 
SMESH::SMESH_Mesh_ptr ReloadMeshesFromUNV (const char *theFileName, SMESH::SMESH_Mesh_ptr sourceMesh)
 
SMESH::mesh_arrayCreateMeshesFromMED (const char *theFileName, SMESH::DriverMED_ReadStatus &theStatus)
 SMESH_Gen_i::CreateMeshFromMED. More...
 
SMESH::mesh_arrayReloadMeshesFromMED (const char *theFileName, SMESH::SMESH_Mesh_ptr sourceMesh, SMESH::DriverMED_ReadStatus &theStatus)
 
SMESH::mesh_arrayCreateMeshesFromMAIL (const char *theFileName, SMESH::DriverMED_ReadStatus &theStatus)
 SMESH_Gen_i::CreateMeshFromMED. More...
 
SMESH::mesh_arrayCreateMeshesFromINP (const char *theFileName, SMESH::DriverMED_ReadStatus &theStatus) override
 
SMESH::mesh_arrayCreateMeshesFromCDB (const char *theFileName, SMESH::DriverMED_ReadStatus &theStatus) override
 
SMESH::mesh_arrayCreateMeshesFromASC (const char *theFileName, SMESH::DriverMED_ReadStatus &theStatus) override
 
SMESH::mesh_arrayCreateMeshesFromGEOF (const char *theFileName, SMESH::DriverMED_ReadStatus &theStatus) override
 
SMESH::SMESH_Mesh_ptr CreateMeshesFromSTL (const char *theFileName)
 SMESH_Gen_i::CreateMeshFromSTL. More...
 
SMESH::SMESH_Mesh_ptr ReloadMeshesFromSTL (const char *theFileName, SMESH::SMESH_Mesh_ptr sourceMesh)
 
SMESH::mesh_arrayCreateMeshesFromCGNS (const char *theFileName, SMESH::DriverMED_ReadStatus &theStatus)
 Create meshes and import data from the CGSN file. More...
 
SMESH::mesh_arrayReloadMeshesFromCGNS (const char *theFileName, SMESH::SMESH_Mesh_ptr sourceMesh, SMESH::DriverMED_ReadStatus &theStatus)
 
SMESH::SMESH_Mesh_ptr CreateMeshesFromGMF (const char *theFileName, CORBA::Boolean theMakeRequiredGroups, SMESH::ComputeError_out theError)
 Create a mesh and import data from a GMF file. More...
 
SMESH::SMESH_Mesh_ptr ReloadMeshesFromGMF (const char *theFileName, SMESH::SMESH_Mesh_ptr sourceMesh, CORBA::Boolean theMakeRequiredGroups, SMESH::ComputeError_out theError)
 
SMESH::mesh_arrayCreateMeshesFromMESHIO (const char *theFileName, SMESH::DriverMED_ReadStatus &theStatus, const char *selectedFilter=nullptr, const char *converter=nullptr)
 Create a mesh and import data from any file supported by meshio library. More...
 
SMESH::mesh_arrayReloadMeshesFromMESHIO (const char *theFileName, SMESH::SMESH_Mesh_ptr sourceMesh, SMESH::DriverMED_ReadStatus &theStatus, const char *converter=nullptr)
 
SMESH::SMESH_Mesh_ptr CreateDualMesh (SMESH::SMESH_IDSource_ptr meshPart, const char *meshName, CORBA::Boolean adapt_to_shape)
 Create a mesh by copying a part of another mesh. More...
 
SMESH::SMESH_Mesh_ptr CopyMesh (SMESH::SMESH_IDSource_ptr meshPart, const char *meshName, CORBA::Boolean toCopyGroups, CORBA::Boolean toKeepIDs)
 Create a mesh by copying a part of another mesh. More...
 
CORBA::Boolean CopyMeshWithGeom (SMESH::SMESH_Mesh_ptr sourceMesh, GEOM::GEOM_Object_ptr newGeometry, const char *meshName, CORBA::Boolean toCopyGroups, CORBA::Boolean toReuseHypotheses, CORBA::Boolean toCopyElements, SMESH::SMESH_Mesh_out newMesh, SMESH::ListOfGroups_out newGroups, SMESH::submesh_array_out newSubmeshes, SMESH::ListOfHypothesis_out newHypotheses, SMESH::string_array_out invalidEntries)
 Create a mesh by copying definitions of another mesh to a given geometry. More...
 
CORBA::Boolean Compute (SMESH::SMESH_Mesh_ptr theMesh, GEOM::GEOM_Object_ptr theShapeObject)
 SMESH_Gen_i::Compute. More...
 
void CancelCompute (SMESH::SMESH_Mesh_ptr theMesh, GEOM::GEOM_Object_ptr theShapeObject)
 SMESH_Gen_i::CancelCompute. More...
 
SMESH::compute_error_arrayGetComputeErrors (SMESH::SMESH_Mesh_ptr theMesh, GEOM::GEOM_Object_ptr theShapeObject)
 Return errors of mesh computation. More...
 
SMESH::smIdType_arrayEvaluate (SMESH::SMESH_Mesh_ptr theMesh, GEOM::GEOM_Object_ptr theShapeObject)
 Evaluate mesh on a shape and returns statistic of mesh elements Result array of number enityties. More...
 
CORBA::Boolean IsReadyToCompute (SMESH::SMESH_Mesh_ptr theMesh, GEOM::GEOM_Object_ptr theShapeObject)
 SMESH_Gen_i::IsReadyToCompute. More...
 
SMESH::MeshPreviewStructPrecompute (SMESH::SMESH_Mesh_ptr theMesh, GEOM::GEOM_Object_ptr theSubObject, SMESH::Dimension theDimension, SMESH::long_array &theShapesId)
 Calculate Mesh as preview till indicated dimension on shape First, verify list of hypothesis associated with the subShape. More...
 
SMESH::algo_error_arrayGetAlgoState (SMESH::SMESH_Mesh_ptr theMesh, GEOM::GEOM_Object_ptr theSubObject)
 Returns errors of hypotheses definition. More...
 
SMESH::MeshPreviewStructGetBadInputElements (SMESH::SMESH_Mesh_ptr theMesh, CORBA::Short theSubShapeID)
 Return mesh elements preventing computation of a subshape. More...
 
SMESH::ListOfGroupsMakeGroupsOfBadInputElements (SMESH::SMESH_Mesh_ptr theMesh, CORBA::Short theSubShapeID, const char *theGroupName)
 Create a group of elements preventing computation of a sub-shape. More...
 
SMESH::long_arrayGetSubShapesId (GEOM::GEOM_Object_ptr theMainShapeObject, const SMESH::object_array &theListOfSubShape)
 SMESH_Gen_i::GetSubShapesId. More...
 
GEOM::GEOM_Object_ptr GetGeometryByMeshElement (SMESH::SMESH_Mesh_ptr theMesh, SMESH::smIdType theElementID, const char *theGeomName)
 Return geometrical object the given element is built on. More...
 
GEOM::GEOM_Object_ptr FindGeometryByMeshElement (SMESH::SMESH_Mesh_ptr theMesh, SMESH::smIdType theElementID)
 Return geometrical object the given element is built on. More...
 
SMESH::SMESH_Mesh_ptr ConcatenateCommon (const SMESH::ListOfIDSources &meshesArray, CORBA::Boolean uniteIdenticalGroups, CORBA::Boolean mergeNodesAndElements, CORBA::Double mergeTolerance, CORBA::Boolean commonGroups, SMESH::SMESH_Mesh_ptr meshToAppendTo)
 SMESH_Gen_i::ConcatenateCommon. More...
 
SMESH::SMESH_Mesh_ptr Concatenate (const SMESH::ListOfIDSources &meshesArray, CORBA::Boolean uniteIdenticalGroups, CORBA::Boolean mergeNodesAndElements, CORBA::Double mergeTolerance, SMESH::SMESH_Mesh_ptr meshToAppendTo)
 SMESH_Gen_i::Concatenate. More...
 
SMESH::SMESH_Mesh_ptr ConcatenateWithGroups (const SMESH::ListOfIDSources &meshesArray, CORBA::Boolean uniteIdenticalGroups, CORBA::Boolean mergeNodesAndElements, CORBA::Double mergeTolerance, SMESH::SMESH_Mesh_ptr meshToAppendTo)
 SMESH_Gen_i::ConcatenateWithGroups. More...
 
char * GetMEDFileVersion ()
 Get version of MED format being used. More...
 
char * GetMEDVersion (const char *theFileName)
 SMESH_Gen_i::GetMEDVersion. More...
 
CORBA::Boolean CheckCompatibility (const char *theFileName)
 SMESH_Gen_i::CheckCompatibility. More...
 
CORBA::Boolean CheckWriteCompatibility (const char *theFileName)
 SMESH_Gen_i::CheckWriteCompatibility. More...
 
SMESH::string_arrayGetMeshNames (const char *theFileName)
 SMESH_Gen_i::GetMeshNames. More...
 
SALOMEDS::TMPFile * Save (SALOMEDS::SComponent_ptr theComponent, const char *theURL, bool isMultiFile)
 SMESH_Gen_i::Save. More...
 
bool Load (SALOMEDS::SComponent_ptr theComponent, const SALOMEDS::TMPFile &theStream, const char *theURL, bool isMultiFile)
 SMESH_Gen_i::Load. More...
 
SALOMEDS::TMPFile * SaveASCII (SALOMEDS::SComponent_ptr theComponent, const char *theURL, bool isMultiFile)
 SMESH_Gen_i::SaveASCII. More...
 
bool LoadASCII (SALOMEDS::SComponent_ptr theComponent, const SALOMEDS::TMPFile &theStream, const char *theURL, bool isMultiFile)
 SMESH_Gen_i::LoadASCII. More...
 
SMESH::FilterManager_ptr CreateFilterManager ()
 SMESH_Gen_i::CreateFilterManager. More...
 
SMESH::SMESH_Pattern_ptr GetPattern ()
 SMESH_Gen_i::GetPattern. More...
 
SMESH::Measurements_ptr CreateMeasurements ()
 SMESH_Gen_i::CreateMeasurements. More...
 
void Close (SALOMEDS::SComponent_ptr theComponent)
 SMESH_Gen_i::Close. More...
 
char * ComponentDataType ()
 SMESH_Gen_i::ComponentDataType. More...
 
char * IORToLocalPersistentID (SALOMEDS::SObject_ptr theSObject, const char *IORString, CORBA::Boolean isMultiFile, CORBA::Boolean isASCII)
 SMESH_Gen_i::IORToLocalPersistentID. More...
 
char * LocalPersistentIDToIOR (SALOMEDS::SObject_ptr theSObject, const char *aLocalPersistentID, CORBA::Boolean isMultiFile, CORBA::Boolean isASCII)
 SMESH_Gen_i::LocalPersistentIDToIOR. More...
 
bool CanPublishInStudy (CORBA::Object_ptr theIOR)
 SMESH_Gen_i::CanPublishInStudy. More...
 
SALOMEDS::SObject_ptr PublishInStudy (SALOMEDS::SObject_ptr theSObject, CORBA::Object_ptr theObject, const char *theName)
 SMESH_Gen_i::PublishInStudy. More...
 
CORBA::Boolean CanCopy (SALOMEDS::SObject_ptr)
 
SALOMEDS::TMPFile * CopyFrom (SALOMEDS::SObject_ptr, CORBA::Long &)
 
CORBA::Boolean CanPaste (const char *, CORBA::Long)
 
SALOMEDS::SObject_ptr PasteInto (const SALOMEDS::TMPFile &, CORBA::Long, SALOMEDS::SObject_ptr)
 
virtual char * getVersion ()
 
virtual Engines::TMPFile * DumpPython (CORBA::Boolean isPublished, CORBA::Boolean isMultiFile, CORBA::Boolean &isValidScript)
 
void AddToPythonScript (const TCollection_AsciiString &theString)
 AddToPythonScript - C++ Internal version. More...
 
virtual void AddToPythonScript (const char *theCommand)
 AddToPythonScript - CORBA Interface version (for Python plugins) More...
 
void PausePythonDumpRecording ()
 SMESH_Gen_i::PausePythonDumpRecording. More...
 
void ResumePythonDumpRecording ()
 SMESH_Gen_i::ResumePythonDumpRecording. More...
 
void RemoveLastFromPythonScript ()
 RemoveLastFromPythonScript. More...
 
void SavePython ()
 
TCollection_AsciiString DumpPython_impl (Resource_DataMapOfAsciiStringAsciiString &theObjectNames, Resource_DataMapOfAsciiStringAsciiString &theNames, bool isPublished, bool isMultiFile, bool isHistoricalDump, bool &aValidScript, TCollection_AsciiString &theSavedTrace)
 Creates a Dump Python script. More...
 
TCollection_AsciiString GetNewPythonLines ()
 GetNewPythonLines. More...
 
void CleanPythonTrace ()
 CleanPythonTrace. More...
 
int CountInPyDump (const TCollection_AsciiString &text)
 Count inclusions of a string in a raw Python dump script. More...
 
SMESH::MG_ADAPT_ptr CreateMG_ADAPT ()
 SMESH_Gen_i::CreateMG_ADAPT. More...
 
SMESHHOMARD::HOMARD_Gen_ptr CreateHOMARD_ADAPT ()
 
SMESH::MG_ADAPT_ptr CreateAdaptationHypothesis ()
 
SALOME::GenericObj_ptr Adaptation (const char *adaptationType)
 
GEOM_Client * GetShapeReader ()
 SMESH_Gen_i::GetShapeReader. More...
 
SALOMEDS::SComponent_ptr PublishComponent ()
 
SALOMEDS::SObject_ptr PublishMesh (SMESH::SMESH_Mesh_ptr theMesh, const char *theName=0, const char *thePixMap=0)
 
SALOMEDS::SObject_ptr PublishHypothesis (SMESH::SMESH_Hypothesis_ptr theHyp, const char *theName=0)
 
SALOMEDS::SObject_ptr PublishSubMesh (SMESH::SMESH_Mesh_ptr theMesh, SMESH::SMESH_subMesh_ptr theSubMesh, GEOM::GEOM_Object_ptr theShapeObject, const char *theName=0)
 
SALOMEDS::SObject_ptr PublishGroup (SMESH::SMESH_Mesh_ptr theMesh, SMESH::SMESH_GroupBase_ptr theGroup, GEOM::GEOM_Object_ptr theShapeObject, const char *theName=0)
 
void UpdateIcons (SMESH::SMESH_Mesh_ptr theMesh)
 
void UpdateGroupIcon (SMESH::SMESH_GroupBase_ptr theGroup)
 
void HighLightInvalid (CORBA::Object_ptr theObject, bool isInvalid)
 
bool IsInvalid (SALOMEDS::SObject_ptr theObject)
 
bool AddHypothesisToShape (SMESH::SMESH_Mesh_ptr theMesh, GEOM::GEOM_Object_ptr theShapeObject, SMESH::SMESH_Hypothesis_ptr theHyp)
 
bool RemoveHypothesisFromShape (SMESH::SMESH_Mesh_ptr theMesh, GEOM::GEOM_Object_ptr theShapeObject, SMESH::SMESH_Hypothesis_ptr theHyp)
 
SALOMEDS::SObject_ptr GetMeshOrSubmeshByShape (SMESH::SMESH_Mesh_ptr theMesh, GEOM::GEOM_Object_ptr theShape)
 
void SetName (SALOMEDS::SObject_ptr theSObject, const char *theName, const char *theDefaultName=0)
 
void SetPixMap (SALOMEDS::SObject_ptr theSObject, const char *thePixMap)
 
void addReference (SALOMEDS::SObject_ptr theSObject, CORBA::Object_ptr theToObject, int theTag=0)
 
StudyContextGetStudyContext ()
 SMESH_Gen_i::GetStudyContext. More...
 
int RegisterObject (CORBA::Object_ptr theObject)
 
CORBA::Long GetObjectId (CORBA::Object_ptr theObject)
 Return id of registered object. More...
 
template<class TInterface >
TInterface::_var_type GetObjectByOldId (const int oldID)
 
SALOMEDS::SObject_ptr GetAlgoSO (const ::SMESH_Algo *algo)
 Find SObject for an algo. More...
 
void UpdateParameters (CORBA::Object_ptr theObject, const char *theParameters)
 Stores names of variables that WILL be passes as parameters when calling some method of a given object. More...
 
char * GetParameters (CORBA::Object_ptr theObject)
 
const std::vector< int > & GetLastParamIndices () const
 
const std::vector< std::string > & GetLastParameters () const
 
const std::string & GetLastObjEntry () const
 
std::vector< std::string > GetAllParameters (const std::string &theObjectEntry) const
 Return all variables used to create an object. More...
 
void Move (const SMESH::sobject_list &what, SALOMEDS::SObject_ptr where, CORBA::Long row)
 
CORBA::Boolean IsApplicable (const char *theAlgoType, const char *theLibName, GEOM::GEOM_Object_ptr theShapeObject, CORBA::Boolean toCheckAll)
 
SMESH::long_arrayGetInsideSphere (SMESH::SMESH_IDSource_ptr meshPart, SMESH::ElementType theElemType, CORBA::Double theX, CORBA::Double theY, CORBA::Double theZ, CORBA::Double theR)
 Collect indices of elements, which are located inside the sphere. More...
 
SMESH::long_arrayGetInsideBox (SMESH::SMESH_IDSource_ptr meshPart, SMESH::ElementType theElemType, CORBA::Double theX1, CORBA::Double theY1, CORBA::Double theZ1, CORBA::Double theX2, CORBA::Double theY2, CORBA::Double theZ2)
 Collect indices of elements, which are located inside the box. More...
 
SMESH::long_arrayGetInsideCylinder (SMESH::SMESH_IDSource_ptr meshPart, SMESH::ElementType theElemType, CORBA::Double theX, CORBA::Double theY, CORBA::Double theZ, CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ, CORBA::Double theH, CORBA::Double theR)
 Collect indices of elements, which are located inside the cylinder. More...
 
SMESH::long_arrayGetInside (SMESH::SMESH_IDSource_ptr meshPart, SMESH::ElementType theElemType, GEOM::GEOM_Object_ptr theGeom, CORBA::Double theTolerance)
 Collect indices of elements, which are located inside the geom object. More...
 

Static Public Member Functions

static SMESH_Gen_iGetSMESHGen ()
 
static CORBA::ORB_var GetORB ()
 
static PortableServer::POA_var GetPOA ()
 
static void SetNS (SALOME_NamingService_Abstract *ns)
 
static SALOME_NamingService_Abstract * GetNS ()
 GetNS [ static ]. More...
 
static SALOME_LifeCycleCORBA * GetLCC ()
 GetLCC [ static ]. More...
 
static GEOM::GEOM_Gen_var GetGeomEngine (GEOM::GEOM_Object_ptr)
 GetGeomEngine [ static ]. More...
 
static PortableServer::ServantBase_var GetServant (CORBA::Object_ptr theObject)
 GetServant [ static ]. More...
 
static CORBA::Object_var SObjectToObject (SALOMEDS::SObject_ptr theSObject)
 SObjectToObject [ static ]. More...
 
static GEOM::GEOM_Object_ptr ShapeToGeomObject (const TopoDS_Shape &theShape)
 
static TopoDS_Shape GeomObjectToShape (GEOM::GEOM_Object_ptr theGeomObject)
 
static GEOM::GEOM_Object_ptr GetGeomObjectByEntry (const std::string &entry)
 Get GEOM Object by its study entry. More...
 
static long GetHypothesisRootTag ()
 Get...Tag [ static ]. More...
 
static long GetAlgorithmsRootTag ()
 
static long GetRefOnShapeTag ()
 
static long GetRefOnAppliedHypothesisTag ()
 
static long GetRefOnAppliedAlgorithmsTag ()
 
static long GetSubMeshOnVertexTag ()
 
static long GetSubMeshOnEdgeTag ()
 
static long GetSubMeshOnFaceTag ()
 
static long GetSubMeshOnSolidTag ()
 
static long GetSubMeshOnCompoundTag ()
 
static long GetSubMeshOnWireTag ()
 
static long GetSubMeshOnShellTag ()
 
static long GetNodeGroupsTag ()
 
static long GetEdgeGroupsTag ()
 
static long GetFaceGroupsTag ()
 
static long GetVolumeGroupsTag ()
 
static long Get0DElementsGroupsTag ()
 
static long GetBallElementsGroupsTag ()
 

Static Protected Attributes

static GEOM::GEOM_Gen_var myGeomGen
 
static SALOME_NamingService_Abstract * myNS = nullptr
 

Private Member Functions

SMESH::mesh_arrayCreateMeshesFromMEDConverterInMedcoupling (const char *theFileName, SMESH::DriverMED_ReadStatus &theStatus, const std::string &converterPyFuncName)
 
GenericHypothesisCreator_igetHypothesisCreator (const char *theHypName, const char *theLibName, std::string &thePlatformLibName)
 SMESH_Gen_i::getHypothesisCreator. More...
 
SMESH::SMESH_Hypothesis_ptr createHypothesis (const char *theHypName, const char *theLibName)
 SMESH_Gen_i::createHypothesis. More...
 
SMESH::SMESH_Mesh_ptr createMesh ()
 SMESH_Gen_i::createMesh. More...
 
SMESH::SMESH_ParallelMesh_ptr createParallelMesh ()
 SMESH_Gen_i::createParallelMesh. More...
 
bool isGeomModifIcon (SMESH::SMESH_Mesh_ptr mesh)
 Return true if mesh has ICON_SMESH_TREE_GEOM_MODIF icon. More...
 
SMESH::SMESH_subMesh_ptr createInvalidSubMesh (SMESH::SMESH_Mesh_ptr mesh, GEOM::GEOM_Object_ptr strangerGeom, const char *name)
 Create a sub-mesh on a geometry that is not a sub-shape of the main shape for the case where a valid sub-shape not found by CopyMeshWithGeom(). More...
 
void highLightInvalid (SALOMEDS::SObject_ptr theSObject, bool isInvalid)
 
std::vector< long > _GetInside (SMESH::SMESH_IDSource_ptr meshPart, SMESH::ElementType ElemType, const TopoDS_Shape &Shape, double *Tolerance=NULL)
 Collect indices of elements, which are located inside the TopoDS_Shape. More...
 
 Handle (TColStd_HSequenceOfAsciiString) myPythonScript
 

Private Attributes

::SMESH_Gen myGen
 
std::map< std::string, GenericHypothesisCreator_i * > myHypCreatorMap
 
StudyContextmyStudyContext
 
GEOM_Client * myShapeReader
 
CORBA::Boolean myIsEmbeddedMode
 
CORBA::Boolean myIsEnablePublish
 
std::string myDefaultGroupColor
 
bool myToForgetMeshDataOnHypModif
 
bool myIsHistoricalPythonDump
 
std::vector< int > myLastParamIndex
 
std::vector< std::string > myLastParameters
 
std::string myLastObj
 

Static Private Attributes

static CORBA::ORB_var myOrb
 
static PortableServer::POA_var myPoa
 
static SALOME_LifeCycleCORBA * myLCC = nullptr
 
static SMESH_Gen_imySMESHGen = nullptr
 

Constructor & Destructor Documentation

◆ SMESH_Gen_i() [1/2]

SMESH_Gen_i::SMESH_Gen_i ( )

SMESH_Gen_i::SMESH_Gen_i.

Default constructor: not for use

◆ SMESH_Gen_i() [2/2]

SMESH_Gen_i::SMESH_Gen_i ( CORBA::ORB_ptr  orb,
PortableServer::POA_ptr  poa,
PortableServer::ObjectId *  contId,
const char *  instanceName,
const char *  interfaceName,
bool  checkNS = true 
)

◆ ~SMESH_Gen_i()

SMESH_Gen_i::~SMESH_Gen_i ( )
virtual

Member Function Documentation

◆ _GetInside()

◆ Adaptation()

SALOME::GenericObj_ptr SMESH_Gen_i::Adaptation ( const char *  adaptationType)

◆ AddHypothesisToShape()

◆ addReference()

void SMESH_Gen_i::addReference ( SALOMEDS::SObject_ptr  theSObject,
CORBA::Object_ptr  theToObject,
int  theTag = 0 
)

◆ AddToPythonScript() [1/2]

void SMESH_Gen_i::AddToPythonScript ( const char *  theCommand)
virtual

AddToPythonScript - CORBA Interface version (for Python plugins)

References AddToPythonScript(), and MESSAGE.

◆ AddToPythonScript() [2/2]

void SMESH_Gen_i::AddToPythonScript ( const TCollection_AsciiString &  theString)

AddToPythonScript - C++ Internal version.

Referenced by AddToPythonScript(), and SMESH::TPythonDump::~TPythonDump().

◆ CancelCompute()

void SMESH_Gen_i::CancelCompute ( SMESH::SMESH_Mesh_ptr  theMesh,
GEOM::GEOM_Object_ptr  theShapeObject 
)

◆ CanCopy()

CORBA::Boolean SMESH_Gen_i::CanCopy ( SALOMEDS::SObject_ptr  )

◆ CanPaste()

CORBA::Boolean SMESH_Gen_i::CanPaste ( const char *  ,
CORBA::Long   
)

◆ CanPublishInStudy()

◆ CheckCompatibility()

CORBA::Boolean SMESH_Gen_i::CheckCompatibility ( const char *  theFileName)

SMESH_Gen_i::CheckCompatibility.

Check compatibility of file with MED format being used, read only.

References MED::CheckCompatibility().

◆ CheckWriteCompatibility()

CORBA::Boolean SMESH_Gen_i::CheckWriteCompatibility ( const char *  theFileName)

SMESH_Gen_i::CheckWriteCompatibility.

Check compatibility of file with MED format being used, for append on write.

References MED::CheckCompatibility().

◆ CleanPythonTrace()

void SMESH_Gen_i::CleanPythonTrace ( )

CleanPythonTrace.

Referenced by Close(), and SavePython().

◆ Close()

void SMESH_Gen_i::Close ( SALOMEDS::SComponent_ptr  theComponent)

◆ ComponentDataType()

◆ Compute()

◆ Concatenate()

SMESH::SMESH_Mesh_ptr SMESH_Gen_i::Concatenate ( const SMESH::ListOfIDSources theMeshesArray,
CORBA::Boolean  theUniteIdenticalGroups,
CORBA::Boolean  theMergeNodesAndElements,
CORBA::Double  theMergeTolerance,
SMESH::SMESH_Mesh_ptr  theMeshToAppendTo 
)

SMESH_Gen_i::Concatenate.

Concatenate the given meshes into one mesh

References ConcatenateCommon().

◆ ConcatenateCommon()

◆ ConcatenateWithGroups()

SMESH::SMESH_Mesh_ptr SMESH_Gen_i::ConcatenateWithGroups ( const SMESH::ListOfIDSources theMeshesArray,
CORBA::Boolean  theUniteIdenticalGroups,
CORBA::Boolean  theMergeNodesAndElements,
CORBA::Double  theMergeTolerance,
SMESH::SMESH_Mesh_ptr  theMeshToAppendTo 
)

SMESH_Gen_i::ConcatenateWithGroups.

Concatenate the given meshes into one mesh Create the groups of all elements from initial meshes

References ConcatenateCommon().

◆ CopyFrom()

SALOMEDS::TMPFile * SMESH_Gen_i::CopyFrom ( SALOMEDS::SObject_ptr  ,
CORBA::Long &   
)

◆ CopyMesh()

◆ CopyMeshWithGeom()

CORBA::Boolean SMESH_Gen_i::CopyMeshWithGeom ( SMESH::SMESH_Mesh_ptr  theSourceMesh,
GEOM::GEOM_Object_ptr  theNewGeometry,
const char *  theMeshName,
CORBA::Boolean  theToCopyGroups,
CORBA::Boolean  theToReuseHypotheses,
CORBA::Boolean  theToCopyElements,
SMESH::SMESH_Mesh_out  theNewMesh,
SMESH::ListOfGroups_out  theNewGroups,
SMESH::submesh_array_out  theNewSubmeshes,
SMESH::ListOfHypothesis_out  theNewHypotheses,
SMESH::string_array_out  theInvalidEntries 
)

Create a mesh by copying definitions of another mesh to a given geometry.

Parameters
[in]sourceMesh- a mesh to copy
[in]newGeometry- a new geometry
[in]toCopyGroups- to create groups in the new mesh
[in]toReuseHypotheses- if True, existing hypothesis will be used by the new mesh, otherwise new hypotheses with the same parameters will be created for the new mesh.
[in]toCopyElements- to copy mesh elements of same sub-shapes of the two geometries
[out]newMesh- return a new mesh
[out]newGroups- return new groups
[out]newSubmeshes- return new sub-meshes
[out]newHypotheses- return new algorithms and hypotheses
[out]invalidEntries- return study entries of objects whose counterparts are not found in the newGeometry, followed by entries of mesh sub-objects that are invalid because they depend on a not found preceding sub-shape
Returns
CORBA::Boolean - is a success

References SMESH_MeshEditor::AddElement(), SMESHDS_Mesh::AddNodeWithID(), SMESH_subMesh::CHECK_COMPUTE_STATE, SMESHDS_Mesh::CompactMesh(), SMESH_subMesh::ComputeStateEngine(), CreateFilterManager(), CreateHypothesis(), createInvalidSubMesh(), CreateMesh(), SMESH::errorText(), SMDS_Mesh::FindNode(), SMESH::FT_BelongToCylinder, SMESH::FT_BelongToGenSurface, SMESH::FT_BelongToGeom, SMESH::FT_BelongToMeshGroup, SMESH::FT_BelongToPlane, SMESH::FT_ConnectedElements, SMESH::FT_LyingOnGeom, SMESH_subMesh::getDependsOnIterator(), SMESHDS_SubMesh::GetElements(), SMDS_Mesh::GetElementType(), SMDS_MeshElement::GetID(), SMESH_Mesh_i::GetImpl(), SMESH_Mesh::GetMeshDS(), SMDS_Mesh::GetMeshInfo(), SMESHDS_SubMesh::GetNodes(), SMESH_Hypothesis_i::getObjectsDependOn(), SMDS_MeshNode::GetPosition(), SMESH_Mesh::GetSubMeshContaining(), SMESH_subMesh::GetSubMeshDS(), SMESH_subMesh::GetSubShape(), highLightInvalid(), SMESH_MeshEditor::ElemFeatures::Init(), SMESH_subMesh::IsEmpty(), SMESH_Mesh_i::Load(), SMESH_Hypothesis_i::LoadFrom(), SMDS_Mesh::Modified(), SMESH_MeshEditor::ElemFeatures::myNodes, SMDS_MeshInfo::NbElements(), SMDS_MeshElement::NbNodes(), SMESH::NODE, SMDS_MeshElement::nodeIterator(), ObjectToSObject(), SMESH_Hypothesis_i::SaveTo(), SMESH_MeshEditor::ElemFeatures::SetID(), SMESHDS_Mesh::SetMeshElementOnShape(), SetName(), SMESHDS_Mesh::SetNodeInVolume(), SMESHDS_Mesh::SetNodeOnEdge(), SMESHDS_Mesh::SetNodeOnFace(), SMESHDS_Mesh::SetNodeOnVertex(), SMESH_Hypothesis_i::setObjectsDependOn(), SMDS_TOP_3DSPACE, SMDS_TOP_EDGE, SMDS_TOP_FACE, SMDS_TOP_VERTEX, SMDSAbs_All, SMESH_CATCH, SMESH_TRY, and SMESH::throwCorbaException().

◆ CountInPyDump()

int SMESH_Gen_i::CountInPyDump ( const TCollection_AsciiString &  text)

Count inclusions of a string in a raw Python dump script.

References ComponentDataType(), GetSMESHGen(), and getStudyServant().

◆ CreateAdaptationHypothesis()

SMESH::MG_ADAPT_ptr SMESH_Gen_i::CreateAdaptationHypothesis ( )

◆ CreateDualMesh()

SMESH::SMESH_Mesh_ptr SMESH_Gen_i::CreateDualMesh ( SMESH::SMESH_IDSource_ptr  mesh,
const char *  meshName,
CORBA::Boolean  adapt_to_shape 
)

Create a mesh by copying a part of another mesh.

Parameters
mesh- TetraHedron mesh
meshNameName of the created mesh
Return values
SMESH::SMESH_Mesh_ptr- the new mesh

References CreateMesh(), SMESH_Mesh::GetGroupIds(), SMESH_Mesh_i::GetImpl(), SMESH_Mesh::GetMeshDS(), GetORB(), SMESH_Mesh_i::ImportMEDFile(), MESSAGE, SMDS_Mesh::Modified(), ObjectToSObject(), SetName(), and SetPixMap().

◆ CreateEmptyMesh()

SMESH::SMESH_Mesh_ptr SMESH_Gen_i::CreateEmptyMesh ( )

◆ CreateFilterManager()

SMESH::FilterManager_ptr SMESH_Gen_i::CreateFilterManager ( )

SMESH_Gen_i::CreateFilterManager.

Create filter manager

Referenced by CopyMeshWithGeom().

◆ CreateHOMARD_ADAPT()

SMESHHOMARD::HOMARD_Gen_ptr SMESH_Gen_i::CreateHOMARD_ADAPT ( )

References MED::exists().

◆ createHypothesis()

SMESH::SMESH_Hypothesis_ptr SMESH_Gen_i::createHypothesis ( const char *  theHypName,
const char *  theLibName 
)
private

◆ CreateHypothesis()

SMESH::SMESH_Hypothesis_ptr SMESH_Gen_i::CreateHypothesis ( const char *  theHypName,
const char *  theLibName 
)

SMESH_Gen_i::CreateHypothesis.

Create hypothesis/algorithm of given type and publish it in the study

References CanPublishInStudy(), createHypothesis(), and PublishHypothesis().

Referenced by CopyMeshWithGeom(), and StdMeshers_LayerDistribution_i::LoadFrom().

◆ CreateHypothesisByAverageLength()

SMESH::SMESH_Hypothesis_ptr SMESH_Gen_i::CreateHypothesisByAverageLength ( const char *  theHypType,
const char *  theLibName,
CORBA::Double  theAverageLength,
CORBA::Boolean  theQuadDominated 
)

Return a hypothesis initialized by given average length.

Parameters
theHypType- hypothesis type name
theLibName- plugin library name
theAverageLength- average length
theQuadDominated- is quad-dominated flag
Return values
SMESH::SMESH_Hypothesis_ptr- the new hypothesis

References SMESH_Hypothesis::BY_AVERAGE_LENGTH, GetHypothesisParameterValues(), and PublishHypothesis().

◆ createInvalidSubMesh()

SMESH::SMESH_subMesh_ptr SMESH_Gen_i::createInvalidSubMesh ( SMESH::SMESH_Mesh_ptr  theMesh,
GEOM::GEOM_Object_ptr  theStrangerGeom,
const char *  theName 
)
private

Create a sub-mesh on a geometry that is not a sub-shape of the main shape for the case where a valid sub-shape not found by CopyMeshWithGeom().

The invalid sub-mesh has GetId() < 0.

References CanPublishInStudy(), SMESH_Mesh_i::createSubMesh(), GetRefOnShapeTag(), getStudyServant(), and PublishSubMesh().

Referenced by CopyMeshWithGeom().

◆ CreateMeasurements()

SMESH::Measurements_ptr SMESH_Gen_i::CreateMeasurements ( )

SMESH_Gen_i::CreateMeasurements.

Create measurement instance

◆ createMesh()

◆ CreateMesh()

SMESH::SMESH_Mesh_ptr SMESH_Gen_i::CreateMesh ( GEOM::GEOM_Object_ptr  theShapeObject)

SMESH_Gen_i::CreateMesh.

Create empty mesh on a shape and publish it in the study

References CanPublishInStudy(), createMesh(), getStudyServant(), MESSAGE, PublishMesh(), and SMESH_Mesh_i::SetShape().

Referenced by CopyMesh(), CopyMeshWithGeom(), and CreateDualMesh().

◆ CreateMeshesFromASC()

SMESH::mesh_array * SMESH_Gen_i::CreateMeshesFromASC ( const char *  theFileName,
SMESH::DriverMED_ReadStatus theStatus 
)
override

◆ CreateMeshesFromCDB()

SMESH::mesh_array * SMESH_Gen_i::CreateMeshesFromCDB ( const char *  theFileName,
SMESH::DriverMED_ReadStatus theStatus 
)
override

◆ CreateMeshesFromCGNS()

◆ CreateMeshesFromGEOF()

SMESH::mesh_array * SMESH_Gen_i::CreateMeshesFromGEOF ( const char *  theFileName,
SMESH::DriverMED_ReadStatus theStatus 
)
override

◆ CreateMeshesFromGMF()

SMESH::SMESH_Mesh_ptr SMESH_Gen_i::CreateMeshesFromGMF ( const char *  theFileName,
CORBA::Boolean  theMakeRequiredGroups,
SMESH::ComputeError_out  theError 
)

◆ CreateMeshesFromINP()

SMESH::mesh_array * SMESH_Gen_i::CreateMeshesFromINP ( const char *  theFileName,
SMESH::DriverMED_ReadStatus theStatus 
)
override

◆ CreateMeshesFromMAIL()

SMESH::mesh_array * SMESH_Gen_i::CreateMeshesFromMAIL ( const char *  theFileName,
SMESH::DriverMED_ReadStatus theStatus 
)

SMESH_Gen_i::CreateMeshFromMED.

Create mesh and import data from MED file

References CreateMeshesFromMEDConverterInMedcoupling().

◆ CreateMeshesFromMED()

◆ CreateMeshesFromMEDConverterInMedcoupling()

SMESH::mesh_array * SMESH_Gen_i::CreateMeshesFromMEDConverterInMedcoupling ( const char *  theFileName,
SMESH::DriverMED_ReadStatus theStatus,
const std::string &  converterPyFuncName 
)
private

◆ CreateMeshesFromMESHIO()

◆ CreateMeshesFromSTL()

SMESH::SMESH_Mesh_ptr SMESH_Gen_i::CreateMeshesFromSTL ( const char *  theFileName)

◆ CreateMeshesFromUNV()

SMESH::SMESH_Mesh_ptr SMESH_Gen_i::CreateMeshesFromUNV ( const char *  theFileName)

◆ CreateMG_ADAPT()

SMESH::MG_ADAPT_ptr SMESH_Gen_i::CreateMG_ADAPT ( )

SMESH_Gen_i::CreateMG_ADAPT.

Create measurement instance

◆ createParallelMesh()

SMESH::SMESH_ParallelMesh_ptr SMESH_Gen_i::createParallelMesh ( )
private

◆ CreateParallelMesh()

SMESH::SMESH_ParallelMesh_ptr SMESH_Gen_i::CreateParallelMesh ( GEOM::GEOM_Object_ptr  theShapeObject)

SMESH_Gen_i::CreateParallelMesh.

Create empty parallel mesh on a shape and publish it in the study

References CanPublishInStudy(), createParallelMesh(), getStudyServant(), MESSAGE, PublishMesh(), and SMESH_Mesh_i::SetShape().

◆ DumpPython()

Engines::TMPFile * SMESH_Gen_i::DumpPython ( CORBA::Boolean  isPublished,
CORBA::Boolean  isMultiFile,
CORBA::Boolean &  isValidScript 
)
virtual

◆ DumpPython_impl()

TCollection_AsciiString SMESH_Gen_i::DumpPython_impl ( Resource_DataMapOfAsciiStringAsciiString &  theObjectNames,
Resource_DataMapOfAsciiStringAsciiString &  theNames,
bool  isPublished,
bool  isMultiFile,
bool  isHistoricalDump,
bool aValidScript,
TCollection_AsciiString &  theSavedTrace 
)

Creates a Dump Python script.

Parameters
[in,out]theObjectNames- map of an entry to a study and python name
[in]theNames- - map of an entry to a study name
[in]isPublished- true if dump of object publication in study is needed
[in]isMultiFile- true if dump of each module goes to a separate file
[in]isHistoricalDump- true if removed object should be dumped
[out]aValidScript- returns true if the returned script seems valid
[in,out]theSavedTrace- the dump stored in the study. It's cleared to decrease memory usage.
Returns
TCollection_AsciiString - the result dump script.

References ComponentDataType(), SMESH_2smeshpy::ConvertScript(), SMESH::TPythonDump::CutoutLongString(), end(), SMESH_2smeshpy::GenName(), GetGeomEngine(), getStudyServant(), Handle(), SMESH::TPythonDump::NotPublishedObjectName(), SMESH::printException(), SMESH::TVar::Quote(), SMESH_CATCH, SMESH_TRY, SMESH::TPythonDump::SMESHGenName(), and SMESH_2smeshpy::SmeshpyName().

Referenced by DumpPython().

◆ Evaluate()

SMESH::smIdType_array * SMESH_Gen_i::Evaluate ( SMESH::SMESH_Mesh_ptr  theMesh,
GEOM::GEOM_Object_ptr  theShapeObject 
)

◆ FindGeometryByMeshElement()

GEOM::GEOM_Object_ptr SMESH_Gen_i::FindGeometryByMeshElement ( SMESH::SMESH_Mesh_ptr  theMesh,
SMESH::smIdType  theElementID 
)

Return geometrical object the given element is built on.

Parameters
theMesh- the mesh the element is in
theElementID- the element ID
Return values
GEOM::GEOM_Object_ptr- the found or created (UnRegister()!) geom object

References SMDS_Mesh::FindElement(), GeomObjectToShape(), GetGeomEngine(), SMESH_Mesh_i::GetImpl(), SMESH_Mesh::GetMeshDS(), getStudyServant(), SMESHDS_Mesh::IndexToShape(), ObjectToSObject(), ShapeToGeomObject(), and SObjectToObject().

Referenced by GetGeometryByMeshElement().

◆ GeomObjectToShape()

◆ Get0DElementsGroupsTag()

long SMESH_Gen_i::Get0DElementsGroupsTag ( )
static

References SMESH::Tag_0DElementsGroups.

Referenced by Load(), and Save().

◆ GetAlgorithmsRootTag()

long SMESH_Gen_i::GetAlgorithmsRootTag ( )
static

◆ GetAlgoSO()

SALOMEDS::SObject_ptr SMESH_Gen_i::GetAlgoSO ( const ::SMESH_Algo algo)

◆ GetAlgoState()

SMESH::algo_error_array * SMESH_Gen_i::GetAlgoState ( SMESH::SMESH_Mesh_ptr  theMesh,
GEOM::GEOM_Object_ptr  theSubObject 
)

Returns errors of hypotheses definition.

Parameters
theMesh- the mesh
theSubObject- the main or sub- shape
Return values
SMESH::algo_error_array*- sequence of errors

References SMESH::AlgoStateError::algoDim, SMESH::AlgoStateError::algoName, SMESH_Mesh_i::ConvertHypothesisStatus(), GeomObjectToShape(), GetAlgoSO(), SMESH_Gen::GetAlgoState(), SMESH_Mesh_i::GetImpl(), SMESH::AlgoStateError::isGlobalAlgo, MESSAGE, myGen, SMESH_Mesh::PseudoShape(), and SMESH::AlgoStateError::state.

◆ GetAllParameters()

std::vector< std::string > SMESH_Gen_i::GetAllParameters ( const std::string &  theObjectEntry) const

Return all variables used to create an object.

Parameters
[in]theObjectEntry- an object entry in the current study
Returns
std::vector< std::string > - all variable names (or values of removed variables)

References getStudyServant().

Referenced by SMESH_NoteBook::InitObjectMap().

◆ GetBadInputElements()

SMESH::MeshPreviewStruct * SMESH_Gen_i::GetBadInputElements ( SMESH::SMESH_Mesh_ptr  theMesh,
CORBA::Short  theSubShapeID 
)

◆ GetBallElementsGroupsTag()

long SMESH_Gen_i::GetBallElementsGroupsTag ( )
static

References SMESH::Tag_BallElementsGroups.

Referenced by Load(), and Save().

◆ GetComputeErrors()

◆ GetEdgeGroupsTag()

long SMESH_Gen_i::GetEdgeGroupsTag ( )
static

References SMESH::Tag_EdgeGroups.

Referenced by Load(), and Save().

◆ GetFaceGroupsTag()

long SMESH_Gen_i::GetFaceGroupsTag ( )
static

References SMESH::Tag_FaceGroups.

Referenced by Load(), and Save().

◆ GetGeomEngine() [1/2]

virtual GEOM::GEOM_Gen_var SMESH_Gen_i::GetGeomEngine ( bool  isShaper)
pure virtual

◆ GetGeomEngine() [2/2]

GEOM::GEOM_Gen_var SMESH_Gen_i::GetGeomEngine ( GEOM::GEOM_Object_ptr  go)
static

◆ GetGeometryByMeshElement()

GEOM::GEOM_Object_ptr SMESH_Gen_i::GetGeometryByMeshElement ( SMESH::SMESH_Mesh_ptr  theMesh,
SMESH::smIdType  theElementID,
const char *  theGeomName 
)

Return geometrical object the given element is built on.

Parameters
theMesh- the mesh the element is in
theElementID- the element ID
theGeomName- the name of the result geom object if it is not yet published
Return values
GEOM::GEOM_Object_ptr- the found or just published geom object (no need to UnRegister())

References FindGeometryByMeshElement(), GetGeomEngine(), getStudyServant(), ObjectToSObject(), and SObjectToObject().

◆ GetGeomObjectByEntry()

GEOM::GEOM_Object_ptr SMESH_Gen_i::GetGeomObjectByEntry ( const std::string &  entry)
static

Get GEOM Object by its study entry.

References getStudyServant(), mySMESHGen, and SObjectToObject().

Referenced by Load().

◆ getHypothesisCreator()

GenericHypothesisCreator_i * SMESH_Gen_i::getHypothesisCreator ( const char *  theHypName,
const char *  theLibName,
std::string &  thePlatformLibName 
)
private

◆ GetHypothesisParameterValues()

SMESH::SMESH_Hypothesis_ptr SMESH_Gen_i::GetHypothesisParameterValues ( const char *  theHypType,
const char *  theLibName,
SMESH::SMESH_Mesh_ptr  theMesh,
GEOM::GEOM_Object_ptr  theGeom,
const SMESH::HypInitParams theParams 
)

Return a hypothesis holding parameter values corresponding either to the mesh existing on the given geometry or to size of the geometry.

Parameters
theHypType- hypothesis type name
theLibName- plugin library name
theMesh- The mesh of interest
theGeom- The shape to get parameter values from
Return values
SMESH::SMESH_Hypothesis_ptr- The returned hypothesis may be the one existing in a study and used to compute the mesh, or a temporary one created just to pass parameter values

References SMESH_Hypothesis::TDefaults::_diagonal, SMESH_Hypothesis::TDefaults::_elemLength, SMESH_Hypothesis::TDefaults::_nbSegments, SMESH_Hypothesis::TDefaults::_quadDominated, SMESH_Hypothesis::TDefaults::_shape, SMESH_Hypothesis::TDefaults::_way, SMESH::HypInitParams::averageLength, SMESH_Hypothesis::BY_GEOM, SMESH_Hypothesis::BY_MESH, createHypothesis(), GeomObjectToShape(), SMESH_Mesh::GetAncestors(), SMESH_Gen::GetBoundaryBoxSegmentation(), SMESH_Gen::GetDefaultNbSegments(), SMESH_Hypothesis::GetDim(), SMESH_Hypothesis_i::GetImpl(), SMESH_Mesh_i::GetImpl(), SMESHDS_Hypothesis::GetName(), SMESH::GetName(), SMESH_Mesh::GetShapeDiagonalSize(), SMESH_Gen::GetShapeDim(), myGen, SMESH_Mesh_i::NbNodes(), SMESH::HypInitParams::quadDominated, SMESH_Hypothesis::SetParametersByDefaults(), SMESH_Hypothesis::SetParametersByMesh(), ShapeToGeomObject(), and SMESH::HypInitParams::way.

Referenced by CreateHypothesisByAverageLength().

◆ GetHypothesisRootTag()

long SMESH_Gen_i::GetHypothesisRootTag ( )
static

Get...Tag [ static ].

Methods which determine SMESH data model structure

References SMESH::Tag_HypothesisRoot.

Referenced by SMESH_Mesh_i::onHypothesisModified(), PublishHypothesis(), and Save().

◆ GetInside()

SMESH::long_array * SMESH_Gen_i::GetInside ( SMESH::SMESH_IDSource_ptr  meshPart,
SMESH::ElementType  theElemType,
GEOM::GEOM_Object_ptr  theGeom,
CORBA::Double  theTolerance 
)

Collect indices of elements, which are located inside the geom object.

References _GetInside(), and GeomObjectToShape().

◆ GetInsideBox()

SMESH::long_array * SMESH_Gen_i::GetInsideBox ( SMESH::SMESH_IDSource_ptr  meshPart,
SMESH::ElementType  theElemType,
CORBA::Double  theX1,
CORBA::Double  theY1,
CORBA::Double  theZ1,
CORBA::Double  theX2,
CORBA::Double  theY2,
CORBA::Double  theZ2 
)

Collect indices of elements, which are located inside the box.

References _GetInside().

◆ GetInsideCylinder()

SMESH::long_array * SMESH_Gen_i::GetInsideCylinder ( SMESH::SMESH_IDSource_ptr  meshPart,
SMESH::ElementType  theElemType,
CORBA::Double  theX,
CORBA::Double  theY,
CORBA::Double  theZ,
CORBA::Double  theDX,
CORBA::Double  theDY,
CORBA::Double  theDZ,
CORBA::Double  theH,
CORBA::Double  theR 
)

Collect indices of elements, which are located inside the cylinder.

References _GetInside().

◆ GetInsideSphere()

SMESH::long_array * SMESH_Gen_i::GetInsideSphere ( SMESH::SMESH_IDSource_ptr  meshPart,
SMESH::ElementType  theElemType,
CORBA::Double  theX,
CORBA::Double  theY,
CORBA::Double  theZ,
CORBA::Double  theR 
)

Collect indices of elements, which are located inside the sphere.

References _GetInside().

◆ GetLastObjEntry()

const std::string & SMESH_Gen_i::GetLastObjEntry ( ) const

◆ GetLastParameters()

const std::vector< std::string > & SMESH_Gen_i::GetLastParameters ( ) const

◆ GetLastParamIndices()

const std::vector< int > & SMESH_Gen_i::GetLastParamIndices ( ) const

◆ GetLCC()

SALOME_LifeCycleCORBA * SMESH_Gen_i::GetLCC ( )
static

GetLCC [ static ].

Get SALOME_LifeCycleCORBA object

References GetNS(), and myLCC.

Referenced by SMESH_Gen_Session_i::GetGeomEngine().

◆ GetMEDFileVersion()

char * SMESH_Gen_i::GetMEDFileVersion ( )

Get version of MED format being used.

References MED::GetVersionRelease().

◆ GetMEDVersion()

char * SMESH_Gen_i::GetMEDVersion ( const char *  theFileName)

SMESH_Gen_i::GetMEDVersion.

Get MED version of the file by its name

References MED::GetMEDVersion().

◆ GetMeshNames()

SMESH::string_array * SMESH_Gen_i::GetMeshNames ( const char *  theFileName)

SMESH_Gen_i::GetMeshNames.

Get names of meshes defined in file with the specified name

References MED::CrWrapperR().

◆ GetMeshOrSubmeshByShape()

SALOMEDS::SObject_ptr SMESH_Gen_i::GetMeshOrSubmeshByShape ( SMESH::SMESH_Mesh_ptr  theMesh,
GEOM::GEOM_Object_ptr  theShape 
)

◆ getModuleCatalog()

virtual SALOME_ModuleCatalog::ModuleCatalog_var SMESH_Gen_i::getModuleCatalog ( ) const
pure virtual

Implemented in SMESH_Gen_No_Session_i, and SMESH_Gen_Session_i.

Referenced by PublishComponent().

◆ GetNewPythonLines()

TCollection_AsciiString SMESH_Gen_i::GetNewPythonLines ( )

GetNewPythonLines.

References Handle().

Referenced by SavePython().

◆ GetNodeGroupsTag()

long SMESH_Gen_i::GetNodeGroupsTag ( )
static

References SMESH::Tag_NodeGroups.

Referenced by Load(), PublishGroup(), and Save().

◆ GetNS()

SALOME_NamingService_Abstract * SMESH_Gen_i::GetNS ( )
static

GetNS [ static ].

Get SALOME_NamingService object

References GetORB(), and myNS.

Referenced by GetLCC(), SMESH_Gen_Session_i::getModuleCatalog(), SetOption(), SMESH_Gen_i(), and SPADDERPluginTester_i::testsmesh().

◆ GetObjectByOldId()

template<class TInterface >
TInterface::_var_type SMESH_Gen_i::GetObjectByOldId ( const int  oldID)

◆ GetObjectId()

CORBA::Long SMESH_Gen_i::GetObjectId ( CORBA::Object_ptr  theObject)

Return id of registered object.

Parameters
theObject- the Object
Return values
int- Object id

References StudyContext::findId(), GetORB(), and myStudyContext.

◆ getObjectInfo()

char * SMESH_Gen_i::getObjectInfo ( const char *  entry)

◆ GetOption()

char * SMESH_Gen_i::GetOption ( const char *  name)
virtual

◆ GetORB()

◆ GetParameters()

char * SMESH_Gen_i::GetParameters ( CORBA::Object_ptr  theObject)

◆ GetPattern()

SMESH::SMESH_Pattern_ptr SMESH_Gen_i::GetPattern ( )

SMESH_Gen_i::GetPattern.

Create pattern mapper

◆ GetPOA()

◆ GetRefOnAppliedAlgorithmsTag()

long SMESH_Gen_i::GetRefOnAppliedAlgorithmsTag ( )
static

◆ GetRefOnAppliedHypothesisTag()

long SMESH_Gen_i::GetRefOnAppliedHypothesisTag ( )
static

◆ GetRefOnShapeTag()

◆ GetServant()

◆ GetShapeReader()

◆ GetSMESHGen()

static SMESH_Gen_i * SMESH_Gen_i::GetSMESHGen ( )
static

Referenced by _pyGen::_pyGen(), SMESH_MeshEditor_i::AffectedElemGroupsInRegion(), SMESH::MG_ADAPT_i::compute(), StdMeshers_CartesianParameters3D_i::ComputeOptimalAxesDirs(), SMESH_Mesh_i::ConvertToStandalone(), CountInPyDump(), SMESH_MeshEditor_i::CreateHoleSkin(), SMESHGUI_MeshOp::createMesh(), SMESHHOMARD_I::HOMARD_Gen_i::DeleteResultInSmesh(), SMESH_MeshEditor_i::DoubleNodeElemGroupInRegion(), SMESH_MeshEditor_i::DoubleNodeElemGroupsInRegion(), SMESH_MeshEditor_i::DoubleNodeElemInRegion(), StdMeshers_ObjRefUlils::EntryOrShapeToGeomObject(), StdMeshers_ObjRefUlils::EntryToShape(), SMESH_MeshEditor_i::ExtrusionAlongPathObjects(), SMESH_PreMeshInfo::ForgetOrLoad(), SMESH_Mesh_i::generateMeshName(), StdMeshers_ObjRefUlils::GeomObjectToShape(), StdMeshersGUI_SubShapeSelectorWdg::GetGeomObjectByEntry(), SMESH::BelongToMeshGroup_i::GetGroup(), SMESH_Mesh_i::GetLastParameters(), SMESH_Mesh_i::GetParameters(), SMESH_NoteBook::GetReal(), getShapeByID(), getShapeByName(), SMESH_Hypothesis_i::GetVarParameter(), SMESH_NoteBook::InitObjectMap(), SMESH_Hypothesis_i::IsPublished(), SMESH_MeshEditor_i::LinearAnglesVariation(), StdMeshers_LayerDistribution_i::LoadFrom(), StdMeshers_ObjRefUlils::LoadFromStream(), StdMeshers_ObjRefUlils::LoadObjectFromStream(), SMESH_MeshEditor_i::MakeBoundaryElements(), SMESH_MeshEditor_i::makeMesh(), SMESH_MeshEditor_i::Offset(), SMESH::TPythonDump::operator<<(), SMESH_Mesh_i::prepareMeshNameAndGroups(), SMESHHOMARD_I::HOMARD_Gen_i::PublishResultInSmesh(), SMESHHOMARD_I::HOMARD_Gen_i::PythonDump(), SMESH_Mesh_i::RemoveGroup(), SMESH_PreMeshInfo::RemoveStudyFiles_TMP_METHOD(), SMESH_NoteBook::ReplaceVariables(), StdMeshers_ImportSource1D_i::SaveTo(), StdMeshers_ImportSource2D_i::SaveTo(), StdMeshers_ObjRefUlils::SaveToStream(), SMESH::BelongToGeom_i::SetGeom(), SMESH::LyingOnGeom_i::SetGeom(), SMESH::BelongToMeshGroup_i::SetGroupID(), StdMeshers_LayerDistribution_i::SetLayerDistribution(), SMESH_Hypothesis_i::setOldParameters(), SMESH_Mesh_i::SetParameters(), StdMeshers_ImportSource1D_i::SetSourceEdges(), StdMeshers_ImportSource2D_i::SetSourceFaces(), SMESH::BelongToSurface_i::SetSurface(), SMESH::BelongToGenSurface_i::SetSurface(), SMESH::ConnectedElements_i::SetThreshold(), SMESH_Hypothesis_i::SetVarParameter(), SMESH::ConnectedElements_i::SetVertex(), StdMeshers_ObjRefUlils::ShapeToGeomObject(), SPADDERPluginTester_i::testsmesh(), and SMESH::TPythonDump::~TPythonDump().

◆ GetSoleSubMeshUsingHyp()

CORBA::Boolean SMESH_Gen_i::GetSoleSubMeshUsingHyp ( SMESH::SMESH_Hypothesis_ptr  theHyp,
SMESH::SMESH_Mesh_out  theMesh,
GEOM::GEOM_Object_out  theShape 
)

Returns True if a hypothesis is assigned to a sole sub-mesh in a current Study.

Parameters
[in]theHyp- the hypothesis of interest
[out]theMesh- the sole mesh using theHyp
[out]theShape- the sole geometry theHyp is assigned to
Returns
boolean - True if theMesh and theShape are sole using theHyp

If two meshes on same shape have theHyp assigned to the same sub-shape, they are considered as SAME sub-mesh => result is true. This method ids used to initialize SMESHGUI_GenericHypothesisCreator with a shape to which an hyp being edited is assigned.

References ComponentDataType(), SMESHDS_Mesh::GetHypotheses(), SMESH_Mesh_i::GetImpl(), SMESH_Mesh::GetMeshDS(), SMESH_Mesh_i::GetShapeToMesh(), getStudyServant(), SMESH_Mesh_i::HasShapeToMesh(), ShapeToGeomObject(), and SObjectToObject().

◆ GetStudyContext()

StudyContext * SMESH_Gen_i::GetStudyContext ( )

◆ getStudyServant()

SALOMEDS::Study_var SMESH_Gen_i::getStudyServant ( ) const

Referenced by _pyGen::_pyGen(), addReference(), CanPublishInStudy(), SMESH_Mesh_i::CheckGeomGroupModif(), SMESH_Mesh_i::CheckGeomModif(), SMESH_Mesh_i::ConvertToStandalone(), CountInPyDump(), CreateEmptyMesh(), createInvalidSubMesh(), CreateMesh(), CreateMeshesFromCGNS(), CreateMeshesFromGMF(), CreateMeshesFromMED(), CreateMeshesFromMESHIO(), CreateMeshesFromSTL(), CreateMeshesFromUNV(), CreateParallelMesh(), SMESHHOMARD_I::HOMARD_Gen_i::DeleteResultInSmesh(), DumpPython(), DumpPython_impl(), StdMeshers_ObjRefUlils::EntryOrShapeToGeomObject(), StdMeshers_ObjRefUlils::EntryToShape(), FindGeometryByMeshElement(), SMESH_Mesh_i::generateMeshName(), GetAlgoSO(), GetAllParameters(), GetGeometryByMeshElement(), StdMeshersGUI_SubShapeSelectorWdg::GetGeomObjectByEntry(), GetGeomObjectByEntry(), SMESH_Mesh_i::GetLastParameters(), getObjectInfo(), SMESH_NoteBook::GetReal(), getShapeByID(), getShapeByName(), SMESH_Mesh_i::GetShapeToMesh(), GetSoleSubMeshUsingHyp(), highLightInvalid(), SMESH_NoteBook::InitObjectMap(), IsInvalid(), Load(), StdMeshers_ObjRefUlils::LoadFromStream(), Move(), SMESH_Mesh_i::newGroupShape(), ObjectToSObject(), SMESH_MeshEditor_i::Offset(), SMESH_Mesh_i::onHypothesisModified(), SMESH_Mesh_i::prepareMeshNameAndGroups(), publish(), PublishComponent(), SMESHHOMARD_I::HOMARD_Gen_i::PublishResultInSmesh(), PublishSubMesh(), ReloadMeshesFromCGNS(), ReloadMeshesFromGMF(), ReloadMeshesFromMED(), ReloadMeshesFromMESHIO(), ReloadMeshesFromSTL(), ReloadMeshesFromUNV(), ReloadMeshFromFile(), SMESH_Mesh_i::RemoveGroup(), RemoveHypothesisFromShape(), SMESH_PreMeshInfo::RemoveStudyFiles_TMP_METHOD(), SMESH_Mesh_i::RemoveSubMesh(), SMESH_Mesh_i::ReplaceShape(), SMESH_NoteBook::ReplaceVariables(), Save(), SavePython(), StdMeshers_ImportSource1D_i::SaveTo(), StdMeshers_ImportSource2D_i::SaveTo(), SMESH::BelongToMeshGroup_i::SetGroupID(), StdMeshers_LayerDistribution_i::SetLayerDistribution(), SetName(), SetPixMap(), SMESH::ConnectedElements_i::SetThreshold(), UpdateIcons(), UpdateParameters(), and UpdateStudy().

◆ getStudyServantVirtual()

virtual SALOMEDS::Study_var SMESH_Gen_i::getStudyServantVirtual ( ) const
pure virtual

◆ GetSubMeshOnCompoundTag()

long SMESH_Gen_i::GetSubMeshOnCompoundTag ( )
static

References SMESH::Tag_SubMeshOnCompound.

Referenced by Load(), PublishSubMesh(), and Save().

◆ GetSubMeshOnEdgeTag()

long SMESH_Gen_i::GetSubMeshOnEdgeTag ( )
static

References SMESH::Tag_SubMeshOnEdge.

Referenced by Load(), PublishSubMesh(), and Save().

◆ GetSubMeshOnFaceTag()

long SMESH_Gen_i::GetSubMeshOnFaceTag ( )
static

References SMESH::Tag_SubMeshOnFace.

Referenced by Load(), PublishSubMesh(), and Save().

◆ GetSubMeshOnShellTag()

long SMESH_Gen_i::GetSubMeshOnShellTag ( )
static

References SMESH::Tag_SubMeshOnShell.

Referenced by Load(), PublishSubMesh(), and Save().

◆ GetSubMeshOnSolidTag()

long SMESH_Gen_i::GetSubMeshOnSolidTag ( )
static

References SMESH::Tag_SubMeshOnSolid.

Referenced by Load(), PublishSubMesh(), and Save().

◆ GetSubMeshOnVertexTag()

long SMESH_Gen_i::GetSubMeshOnVertexTag ( )
static

References SMESH::Tag_SubMeshOnVertex.

Referenced by Load(), PublishSubMesh(), and Save().

◆ GetSubMeshOnWireTag()

long SMESH_Gen_i::GetSubMeshOnWireTag ( )
static

References SMESH::Tag_SubMeshOnWire.

Referenced by Load(), PublishSubMesh(), and Save().

◆ GetSubShapesId()

SMESH::long_array * SMESH_Gen_i::GetSubShapesId ( GEOM::GEOM_Object_ptr  theMainShapeObject,
const SMESH::object_array theListOfSubShapeObject 
)

SMESH_Gen_i::GetSubShapesId.

Get sub-shapes unique ID's list

References Edge, Face, GeomObjectToShape(), and MESSAGE.

◆ getVersion()

char * SMESH_Gen_i::getVersion ( )
virtual

◆ GetVolumeGroupsTag()

long SMESH_Gen_i::GetVolumeGroupsTag ( )
static

References SMESH::Tag_VolumeGroups.

Referenced by Load(), and Save().

◆ Handle()

SMESH_Gen_i::Handle ( TColStd_HSequenceOfAsciiString  )
private

◆ hasObjectInfo()

bool SMESH_Gen_i::hasObjectInfo ( )

◆ HighLightInvalid()

void SMESH_Gen_i::HighLightInvalid ( CORBA::Object_ptr  theObject,
bool  isInvalid 
)

◆ highLightInvalid()

void SMESH_Gen_i::highLightInvalid ( SALOMEDS::SObject_ptr  theSObject,
bool  isInvalid 
)
private

◆ IORToLocalPersistentID()

char * SMESH_Gen_i::IORToLocalPersistentID ( SALOMEDS::SObject_ptr  theSObject,
const char *  IORString,
CORBA::Boolean  isMultiFile,
CORBA::Boolean  isASCII 
)

SMESH_Gen_i::IORToLocalPersistentID.

Transform data from transient form to persistent

References StudyContext::findId(), MESSAGE, and myStudyContext.

◆ IsApplicable()

CORBA::Boolean SMESH_Gen_i::IsApplicable ( const char *  theAlgoType,
const char *  theLibName,
GEOM::GEOM_Object_ptr  theShapeObject,
CORBA::Boolean  toCheckAll 
)

◆ IsEmbeddedMode()

CORBA::Boolean SMESH_Gen_i::IsEmbeddedMode ( )

SMESH_Gen_i::IsEmbeddedMode.

Get current mode

References myIsEmbeddedMode.

◆ IsEnablePublish()

CORBA::Boolean SMESH_Gen_i::IsEnablePublish ( )

SMESH_Gen_i::IsEnablePublish.

Check enable publishing

References myIsEnablePublish.

◆ isGeomModifIcon()

bool SMESH_Gen_i::isGeomModifIcon ( SMESH::SMESH_Mesh_ptr  mesh)
private

Return true if mesh has ICON_SMESH_TREE_GEOM_MODIF icon.

References ObjectToSObject().

Referenced by Compute(), and getObjectInfo().

◆ IsInvalid()

bool SMESH_Gen_i::IsInvalid ( SALOMEDS::SObject_ptr  theObject)

◆ IsReadyToCompute()

CORBA::Boolean SMESH_Gen_i::IsReadyToCompute ( SMESH::SMESH_Mesh_ptr  theMesh,
GEOM::GEOM_Object_ptr  theShapeObject 
)

SMESH_Gen_i::IsReadyToCompute.

Return true if mesh contains enough data to be computed

References SMESH_Gen::CheckAlgoState(), GeomObjectToShape(), SMESH_Mesh_i::GetImpl(), GetServant(), MESSAGE, and myGen.

◆ Load()

bool SMESH_Gen_i::Load ( SALOMEDS::SComponent_ptr  theComponent,
const SALOMEDS::TMPFile &  theStream,
const char *  theURL,
bool  isMultiFile 
)

SMESH_Gen_i::Load.

Load SMESH module's data

References SMESH_Mesh_i::addHypothesis(), SMESH_Mesh_i::createGroup(), createHypothesis(), createMesh(), SMESH_Mesh_i::createSubMesh(), SMESH_Mesh_i::FileInfoFromString(), StudyContext::findId(), GeomObjectToShape(), SMESHUtils::ArrayDeleter< TOBJ >::get(), Get0DElementsGroupsTag(), GetBallElementsGroupsTag(), GetEdgeGroupsTag(), GetFaceGroupsTag(), GetGeomObjectByEntry(), SMESH_GroupBase_i::GetGroupDS(), SMESH_Mesh_i::GetImpl(), StudyContext::getIORbyOldId(), SMESH_Mesh::GetMeshDS(), GetNodeGroupsTag(), StudyContext::getOldId(), GetORB(), SMESH_GroupOnFilter_i::GetPredicate(), GetServant(), SMESH_Mesh_i::GetShapeToMesh(), SMESH_Mesh::GetShapeToMesh(), getStudyServant(), SMESH_Mesh::GetSubMesh(), GetSubMeshOnCompoundTag(), GetSubMeshOnEdgeTag(), GetSubMeshOnFaceTag(), GetSubMeshOnShellTag(), GetSubMeshOnSolidTag(), GetSubMeshOnVertexTag(), GetSubMeshOnWireTag(), GetVolumeGroupsTag(), SMESH_Mesh_i::HasShapeToMesh(), SMESH_Mesh::HasShapeToMesh(), SMESH_Hypothesis_i::LoadFrom(), SMESH_PreMeshInfo::LoadFromFile(), SMESH_Mesh_i::MainShapeTick(), StudyContext::mapOldToNew(), MESSAGE, myStudyContext, SMESH_Mesh::PseudoShape(), SMESH_Mesh::SetAutoColor(), SMESHDS_GroupBase::SetColor(), SMESH_Mesh::SetMeshOrder(), SMESHDS_Mesh::SetPersistentId(), SMESH_Mesh_i::SetShape(), SMESHDS_GroupBase::SetStoreName(), SObjectToObject(), SMESH_GroupOnFilter_i::StringToFilter(), SMESH_subMesh::SUBMESH_RESTORED, SMESH_Hypothesis_i::UpdateAsMeshesRestored(), and UpdateStudy().

Referenced by LoadASCII().

◆ LoadASCII()

bool SMESH_Gen_i::LoadASCII ( SALOMEDS::SComponent_ptr  theComponent,
const SALOMEDS::TMPFile &  theStream,
const char *  theURL,
bool  isMultiFile 
)

SMESH_Gen_i::LoadASCII.

Load SMESH module's data in ASCII format

References Load(), and MESSAGE.

◆ LocalPersistentIDToIOR()

char * SMESH_Gen_i::LocalPersistentIDToIOR ( SALOMEDS::SObject_ptr  theSObject,
const char *  aLocalPersistentID,
CORBA::Boolean  isMultiFile,
CORBA::Boolean  isASCII 
)

SMESH_Gen_i::LocalPersistentIDToIOR.

Transform data from persistent form to transient

References StudyContext::getIORbyOldId(), MESSAGE, and myStudyContext.

◆ MakeGroupsOfBadInputElements()

SMESH::ListOfGroups * SMESH_Gen_i::MakeGroupsOfBadInputElements ( SMESH::SMESH_Mesh_ptr  theMesh,
CORBA::Short  theSubShapeID,
const char *  theGroupName 
)

Create a group of elements preventing computation of a sub-shape.

◆ Move()

void SMESH_Gen_i::Move ( const SMESH::sobject_list what,
SALOMEDS::SObject_ptr  where,
CORBA::Long  row 
)

References getStudyServant().

◆ ObjectToSObject()

◆ PasteInto()

SALOMEDS::SObject_ptr SMESH_Gen_i::PasteInto ( const SALOMEDS::TMPFile &  ,
CORBA::Long  ,
SALOMEDS::SObject_ptr   
)

◆ PausePythonDumpRecording()

void SMESH_Gen_i::PausePythonDumpRecording ( )

SMESH_Gen_i::PausePythonDumpRecording.

CORBA wrapper to increment TPythonDump suppression counter (myCounter). Called from Python plugins to pause the record of intermediate operations.

References SMESH::TPythonDump::IncrementMyCounter().

◆ Precompute()

◆ publish()

SALOMEDS::SObject_ptr SMESH_Gen_i::publish ( CORBA::Object_ptr  theIOR,
SALOMEDS::SObject_ptr  theFatherObject,
const int  theTag = 0,
const char *  thePixMap = 0,
const bool  theSelectable = true 
)

◆ PublishComponent()

SALOMEDS::SComponent_ptr SMESH_Gen_i::PublishComponent ( )

◆ PublishGroup()

SALOMEDS::SObject_ptr SMESH_Gen_i::PublishGroup ( SMESH::SMESH_Mesh_ptr  theMesh,
SMESH::SMESH_GroupBase_ptr  theGroup,
GEOM::GEOM_Object_ptr  theShapeObject,
const char *  theName = 0 
)

◆ PublishHypothesis()

SALOMEDS::SObject_ptr SMESH_Gen_i::PublishHypothesis ( SMESH::SMESH_Hypothesis_ptr  theHyp,
const char *  theName = 0 
)

◆ PublishInStudy()

SALOMEDS::SObject_ptr SMESH_Gen_i::PublishInStudy ( SALOMEDS::SObject_ptr  theSObject,
CORBA::Object_ptr  theIOR,
const char *  theName 
)

◆ PublishMesh()

◆ PublishSubMesh()

◆ RegisterObject()

◆ ReloadMeshesFromCGNS()

◆ ReloadMeshesFromGMF()

SMESH::SMESH_Mesh_ptr SMESH_Gen_i::ReloadMeshesFromGMF ( const char *  theFileName,
SMESH::SMESH_Mesh_ptr  sourceMesh,
CORBA::Boolean  theMakeRequiredGroups,
SMESH::ComputeError_out  theError 
)

◆ ReloadMeshesFromMED()

◆ ReloadMeshesFromMESHIO()

◆ ReloadMeshesFromSTL()

SMESH::SMESH_Mesh_ptr SMESH_Gen_i::ReloadMeshesFromSTL ( const char *  theFileName,
SMESH::SMESH_Mesh_ptr  sourceMesh 
)

◆ ReloadMeshesFromUNV()

SMESH::SMESH_Mesh_ptr SMESH_Gen_i::ReloadMeshesFromUNV ( const char *  theFileName,
SMESH::SMESH_Mesh_ptr  sourceMesh 
)

◆ ReloadMeshFromFile()

◆ RemoveHypothesisFromShape()

bool SMESH_Gen_i::RemoveHypothesisFromShape ( SMESH::SMESH_Mesh_ptr  theMesh,
GEOM::GEOM_Object_ptr  theShapeObject,
SMESH::SMESH_Hypothesis_ptr  theHyp 
)

◆ RemoveLastFromPythonScript()

void SMESH_Gen_i::RemoveLastFromPythonScript ( )

RemoveLastFromPythonScript.

◆ ResumePythonDumpRecording()

void SMESH_Gen_i::ResumePythonDumpRecording ( )

SMESH_Gen_i::ResumePythonDumpRecording.

CORBA wrapper to decrement TPythonDump suppression counter (myCounter). Called from Python plugins to resume normal dump recording.

References SMESH::TPythonDump::DecrementMyCounter().

◆ Save()

SALOMEDS::TMPFile * SMESH_Gen_i::Save ( SALOMEDS::SComponent_ptr  theComponent,
const char *  theURL,
bool  isMultiFile 
)

SMESH_Gen_i::Save.

Save SMESH module's data

References DriverMED_W_SMESHDS_Mesh::AddGroup(), SMDS_Mesh::elementsIterator(), SMESH_Mesh_i::FileInfoToString(), StudyContext::findId(), Get0DElementsGroupsTag(), GetAlgorithmsRootTag(), SMESH_Mesh_i::GetAutoColor(), GetBallElementsGroupsTag(), SMESH_GroupBase_i::GetColor(), GetEdgeGroupsTag(), GetFaceGroupsTag(), SMESH_GroupBase_i::GetGroupDS(), SMESHDS_Mesh::GetHypothesis(), GetHypothesisRootTag(), SMDS_MeshElement::GetID(), SMESHDS_GroupBase::GetID(), SMESHDS_SubMesh::GetID(), SMESH_Mesh_i::GetImpl(), SMESH_Mesh::GetIsModified(), SMESH_GroupBase_i::GetLocalID(), SMESH_Mesh::GetMeshDS(), SMDS_Mesh::GetMeshInfo(), SMESH_Mesh::GetMeshOrder(), SMESH_GroupBase_i::GetName(), SMESH_Hypothesis_i::GetName(), GetNodeGroupsTag(), SMESHDS_SubMesh::GetNodes(), GetORB(), SMESHDS_Mesh::GetPersistentId(), SMDS_MeshNode::GetPosition(), GetRefOnAppliedAlgorithmsTag(), GetRefOnAppliedHypothesisTag(), GetRefOnShapeTag(), GetServant(), SMESHDS_GroupBase::GetStoreName(), getStudyServant(), GetSubMeshOnCompoundTag(), GetSubMeshOnEdgeTag(), GetSubMeshOnFaceTag(), GetSubMeshOnShellTag(), GetSubMeshOnSolidTag(), GetSubMeshOnVertexTag(), GetSubMeshOnWireTag(), GetVolumeGroupsTag(), SMESH_Mesh::HasShapeToMesh(), SMESHDS_Mesh::IndexToShape(), SMESHDS_SubMesh::IsComplexSubmesh(), SMESH_Mesh_i::MainShapeTick(), SMESHDS_Mesh::MaxShapeIndex(), myStudyContext, SMDS_MeshInfo::NbElements(), SMDS_Mesh::NbNodes(), SMESHDS_SubMesh::NbNodes(), NUM_TMP_FILES, ObjectToSObject(), DriverMED_W_SMESHDS_Mesh::Perform(), SMESH_Mesh::RemoveHypothesis(), SavePython(), SMESH_Hypothesis_i::SaveTo(), SMESH_PreMeshInfo::SaveToFile(), DriverMED_W_SMESHDS_Mesh::SetFile(), Driver_SMESHDS_Mesh::SetMesh(), Driver_Mesh::SetMeshId(), SMESHDS_GroupBase::SetStoreName(), ShapeToGeomObject(), SMESH_Mesh::ShapeToMesh(), SMESHDS_Mesh::ShapeToMesh(), SMDSAbs_All, SMDSAbs_Node, SObjectToObject(), SMESHDS_Mesh::SubMeshes(), and UpdateStudy().

Referenced by SaveASCII().

◆ SaveASCII()

SALOMEDS::TMPFile * SMESH_Gen_i::SaveASCII ( SALOMEDS::SComponent_ptr  theComponent,
const char *  theURL,
bool  isMultiFile 
)

SMESH_Gen_i::SaveASCII.

Save SMESH module's data in ASCII format

References MESSAGE, and Save().

◆ SavePython()

void SMESH_Gen_i::SavePython ( )

◆ SetBoundaryBoxSegmentation()

void SMESH_Gen_i::SetBoundaryBoxSegmentation ( CORBA::Long  theNbSegments)

Sets number of segments per diagonal of boundary box of geometry by which default segment length of appropriate 1D hypotheses is defined.

Set number of segments per diagonal of boundary box of geometry by which default segment length of appropriate 1D hypotheses is defined.

References myGen, and SMESH_Gen::SetBoundaryBoxSegmentation().

◆ SetDefaultNbSegments()

void SMESH_Gen_i::SetDefaultNbSegments ( CORBA::Long  theNbSegments)

Sets default number of segments per edge.

Set default number of segments per edge.

References myGen, and SMESH_Gen::SetDefaultNbSegments().

◆ SetEmbeddedMode()

void SMESH_Gen_i::SetEmbeddedMode ( CORBA::Boolean  theMode)

SMESH_Gen_i::SetEmbeddedMode.

Set current mode

References myIsEmbeddedMode.

Referenced by SMESH_Gen_i().

◆ SetEnablePublish()

void SMESH_Gen_i::SetEnablePublish ( CORBA::Boolean  theIsEnablePublish)

SMESH_Gen_i::SetEnablePublish.

Set enable publishing in the study

References myIsEnablePublish.

Referenced by StdMeshers_LayerDistribution_i::LoadFrom().

◆ SetGeomEngine()

void SMESH_Gen_i::SetGeomEngine ( GEOM::GEOM_Gen_ptr  geomcompo)

SMESH_Gen_i::SetGeomEngine.

Set GEOM::GEOM_Gen reference

References myGeomGen.

◆ SetName() [1/2]

◆ SetName() [2/2]

void SMESH_Gen_i::SetName ( SALOMEDS::SObject_ptr  theSObject,
const char *  theName,
const char *  theDefaultName = 0 
)

References getStudyServant().

◆ SetNS()

void SMESH_Gen_i::SetNS ( SALOME_NamingService_Abstract *  ns)
static

References myNS.

◆ SetOption()

void SMESH_Gen_i::SetOption ( const char *  name,
const char *  value 
)
virtual

◆ SetPixMap()

void SMESH_Gen_i::SetPixMap ( SALOMEDS::SObject_ptr  theSObject,
const char *  thePixMap 
)

◆ ShapeToGeomObject()

◆ SObjectToObject()

◆ ToForgetMeshDataOnHypModif()

bool SMESH_Gen_i::ToForgetMeshDataOnHypModif ( ) const

To load full mesh data from study at hyp modification or not.

◆ UpdateGroupIcon()

◆ UpdateIcons()

◆ UpdateParameters()

void SMESH_Gen_i::UpdateParameters ( CORBA::Object_ptr  theObject,
const char *  theParameters 
)

Stores names of variables that WILL be passes as parameters when calling some method of a given object.

Parameters
[in]theObject- the object whose a method WILL be called with theParameters.
[in]theParameters- a string containing parameters separated by ':'.

References getStudyServant(), myLastObj, myLastParameters, myLastParamIndex, and ObjectToSObject().

Referenced by SMESH_Mesh_i::SetParameters(), and SMESH::TPythonDump::~TPythonDump().

◆ UpdateStudy()

void SMESH_Gen_i::UpdateStudy ( )

Field Documentation

◆ myDefaultGroupColor

std::string SMESH_Gen_i::myDefaultGroupColor
private

Referenced by GetOption(), and SetOption().

◆ myGen

◆ myGeomGen

GEOM::GEOM_Gen_var SMESH_Gen_i::myGeomGen
staticprotected

◆ myHypCreatorMap

std::map<std::string, GenericHypothesisCreator_i*> SMESH_Gen_i::myHypCreatorMap
private

◆ myIsEmbeddedMode

CORBA::Boolean SMESH_Gen_i::myIsEmbeddedMode
private

◆ myIsEnablePublish

◆ myIsHistoricalPythonDump

bool SMESH_Gen_i::myIsHistoricalPythonDump
private

◆ myLastObj

std::string SMESH_Gen_i::myLastObj
private

Referenced by UpdateParameters().

◆ myLastParameters

std::vector< std::string > SMESH_Gen_i::myLastParameters
private

Referenced by UpdateParameters().

◆ myLastParamIndex

std::vector< int > SMESH_Gen_i::myLastParamIndex
private

Referenced by UpdateParameters().

◆ myLCC

SALOME_LifeCycleCORBA * SMESH_Gen_i::myLCC = nullptr
staticprivate

Referenced by GetLCC().

◆ myNS

SALOME_NamingService_Abstract * SMESH_Gen_i::myNS = nullptr
staticprotected

◆ myOrb

CORBA::ORB_var SMESH_Gen_i::myOrb
staticprivate

Referenced by SMESH_Gen_i().

◆ myPoa

PortableServer::POA_var SMESH_Gen_i::myPoa
staticprivate

Referenced by createHypothesis(), and SMESH_Gen_i().

◆ myShapeReader

GEOM_Client* SMESH_Gen_i::myShapeReader
private

◆ mySMESHGen

SMESH_Gen_i * SMESH_Gen_i::mySMESHGen = nullptr
staticprivate

◆ myStudyContext

◆ myToForgetMeshDataOnHypModif

bool SMESH_Gen_i::myToForgetMeshDataOnHypModif
private

Referenced by GetOption(), SetOption(), and SMESH_Gen_i().