Version: 8.3.0
SMESH_Gen_i Class Reference

#include <SMESH_Gen_i.hxx>

Inheritance diagram for SMESH_Gen_i:

Public Member Functions

GEOM::GEOM_Object_ptr ShapeToGeomObject (const TopoDS_Shape &theShape)
 
TopoDS_Shape GeomObjectToShape (GEOM::GEOM_Object_ptr theGeomObject)
 
 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)
 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 SetCurrentStudy (SALOMEDS::Study_ptr theStudy)
 SMESH_Gen_i::SetCurrentStudy. More...
 
SALOMEDS::Study_ptr GetCurrentStudy ()
 SMESH_Gen_i::GetCurrentStudy. More...
 
SMESH::SMESH_Hypothesis_ptr CreateHypothesis (const char *theHypType, const char *theLibName) throw ( SALOME::SALOME_Exception )
 SMESH_Gen_i::CreateHypothesis. More...
 
SMESH::SMESH_Hypothesis_ptr GetHypothesisParameterValues (const char *theHypType, const char *theLibName, SMESH::SMESH_Mesh_ptr theMesh, GEOM::GEOM_Object_ptr theGeom, CORBA::Boolean byMesh) throw ( SALOME::SALOME_Exception )
 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) throw ( SALOME::SALOME_Exception )
 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) throw ( SALOME::SALOME_Exception )
 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) throw ( SALOME::SALOME_Exception )
 SMESH_Gen_i::CreateMesh. More...
 
SMESH::SMESH_Mesh_ptr CreateEmptyMesh () throw ( SALOME::SALOME_Exception )
 SMESH_Gen_i::CreateEmptyMesh. More...
 
SMESH::SMESH_Mesh_ptr CreateMeshesFromUNV (const char *theFileName) throw ( SALOME::SALOME_Exception )
 SMESH_Gen_i::CreateMeshFromUNV. More...
 
SMESH::mesh_arrayCreateMeshesFromMED (const char *theFileName, SMESH::DriverMED_ReadStatus &theStatus) throw ( SALOME::SALOME_Exception )
 
SMESH::mesh_arrayCreateMeshesFromSAUV (const char *theFileName, SMESH::DriverMED_ReadStatus &theStatus) throw ( SALOME::SALOME_Exception )
 SMESH_Gen_i::CreateMeshFromSAUV. More...
 
SMESH::SMESH_Mesh_ptr CreateMeshesFromSTL (const char *theFileName) throw ( SALOME::SALOME_Exception )
 SMESH_Gen_i::CreateMeshFromSTL. More...
 
SMESH::mesh_arrayCreateMeshesFromCGNS (const char *theFileName, SMESH::DriverMED_ReadStatus &theStatus) throw ( SALOME::SALOME_Exception )
 Create meshes and import data from the CGSN file. More...
 
SMESH::SMESH_Mesh_ptr CreateMeshesFromGMF (const char *theFileName, CORBA::Boolean theMakeRequiredGroups, SMESH::ComputeError_out theError) throw ( SALOME::SALOME_Exception )
 Create a mesh and import data from a GMF file. 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 Compute (SMESH::SMESH_Mesh_ptr theMesh, GEOM::GEOM_Object_ptr theShapeObject) throw ( SALOME::SALOME_Exception )
 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) throw ( SALOME::SALOME_Exception )
 Return errors of mesh computation. More...
 
SMESH::long_arrayEvaluate (SMESH::SMESH_Mesh_ptr theMesh, GEOM::GEOM_Object_ptr theShapeObject) throw ( SALOME::SALOME_Exception )
 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) throw ( SALOME::SALOME_Exception )
 SMESH_Gen_i::IsReadyToCompute. More...
 
SMESH::MeshPreviewStructPrecompute (SMESH::SMESH_Mesh_ptr theMesh, GEOM::GEOM_Object_ptr theSubObject, SMESH::Dimension theDimension, SMESH::long_array &theShapesId) throw ( SALOME::SALOME_Exception )
 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) throw ( SALOME::SALOME_Exception )
 Returns errors of hypotheses definintion. More...
 
SMESH::MeshPreviewStructGetBadInputElements (SMESH::SMESH_Mesh_ptr theMesh, CORBA::Short theSubShapeID) throw ( SALOME::SALOME_Exception )
 Return mesh elements preventing computation of a subshape. More...
 
SMESH::ListOfGroupsMakeGroupsOfBadInputElements (SMESH::SMESH_Mesh_ptr theMesh, CORBA::Short theSubShapeID, const char *theGroupName) throw ( SALOME::SALOME_Exception )
 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) throw ( SALOME::SALOME_Exception )
 SMESH_Gen_i::GetSubShapesId. More...
 
GEOM::GEOM_Object_ptr GetGeometryByMeshElement (SMESH::SMESH_Mesh_ptr theMesh, CORBA::Long theElementID, const char *theGeomName) throw ( SALOME::SALOME_Exception )
 Return geometrical object the given element is built on. More...
 
GEOM::GEOM_Object_ptr FindGeometryByMeshElement (SMESH::SMESH_Mesh_ptr theMesh, CORBA::Long theElementID) throw ( SALOME::SALOME_Exception )
 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) throw ( SALOME::SALOME_Exception )
 SMESH_Gen_i::ConcatenateCommon. More...
 
SMESH::SMESH_Mesh_ptr Concatenate (const SMESH::ListOfIDSources &meshesArray, CORBA::Boolean uniteIdenticalGroups, CORBA::Boolean mergeNodesAndElements, CORBA::Double mergeTolerance) throw ( SALOME::SALOME_Exception )
 SMESH_Gen_i::Concatenate. More...
 
SMESH::SMESH_Mesh_ptr ConcatenateWithGroups (const SMESH::ListOfIDSources &meshesArray, CORBA::Boolean uniteIdenticalGroups, CORBA::Boolean mergeNodesAndElements, CORBA::Double mergeTolerance) throw ( SALOME::SALOME_Exception )
 SMESH_Gen_i::ConcatenateWithGroups. More...
 
CORBA::Boolean GetMEDVersion (const char *theFileName, SMESH::MED_VERSION &theVersion)
 SMESH_Gen_i::GetMEDVersion. 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::Study_ptr theStudy, SALOMEDS::SObject_ptr theSObject, CORBA::Object_ptr theObject, const char *theName) throw ( SALOME::SALOME_Exception )
 SMESH_Gen_i::PublishInStudy. More...
 
CORBA::Boolean CanCopy (SALOMEDS::SObject_ptr theObject)
 
SALOMEDS::TMPFile * CopyFrom (SALOMEDS::SObject_ptr theObject, CORBA::Long &theObjectID)
 
CORBA::Boolean CanPaste (const char *theComponentName, CORBA::Long theObjectID)
 
SALOMEDS::SObject_ptr PasteInto (const SALOMEDS::TMPFile &theStream, CORBA::Long theObjectID, SALOMEDS::SObject_ptr theObject)
 
virtual char * getVersion ()
 
virtual Engines::TMPFile * DumpPython (CORBA::Object_ptr theStudy, CORBA::Boolean isPublished, CORBA::Boolean isMultiFile, CORBA::Boolean &isValidScript)
 
void AddToPythonScript (int theStudyID, const TCollection_AsciiString &theString)
 AddToPythonScript. More...
 
void RemoveLastFromPythonScript (int theStudyID)
 RemoveLastFromPythonScript. More...
 
void SavePython (SALOMEDS::Study_ptr theStudy)
 
TCollection_AsciiString DumpPython_impl (SALOMEDS::Study_ptr theStudy, Resource_DataMapOfAsciiStringAsciiString &theObjectNames, Resource_DataMapOfAsciiStringAsciiString &theNames, bool isPublished, bool isMultiFile, bool isHistoricalDump, bool &aValidScript, TCollection_AsciiString &theSavedTrace)
 Createa a Dump Python script. More...
 
TCollection_AsciiString GetNewPythonLines (int theStudyID)
 GetNewPythonLines. More...
 
void CleanPythonTrace (int theStudyID)
 CleanPythonTrace. More...
 
GEOM_Client * GetShapeReader ()
 SMESH_Gen_i::GetShapeReader. More...
 
SALOMEDS::SComponent_ptr PublishComponent (SALOMEDS::Study_ptr theStudy)
 
SALOMEDS::SObject_ptr PublishMesh (SALOMEDS::Study_ptr theStudy, SMESH::SMESH_Mesh_ptr theMesh, const char *theName=0)
 
SALOMEDS::SObject_ptr PublishHypothesis (SALOMEDS::Study_ptr theStudy, SMESH::SMESH_Hypothesis_ptr theHyp, const char *theName=0)
 
SALOMEDS::SObject_ptr PublishSubMesh (SALOMEDS::Study_ptr theStudy, SMESH::SMESH_Mesh_ptr theMesh, SMESH::SMESH_subMesh_ptr theSubMesh, GEOM::GEOM_Object_ptr theShapeObject, const char *theName=0)
 
SALOMEDS::SObject_ptr PublishGroup (SALOMEDS::Study_ptr theStudy, SMESH::SMESH_Mesh_ptr theMesh, SMESH::SMESH_GroupBase_ptr theGroup, GEOM::GEOM_Object_ptr theShapeObject, const char *theName=0)
 
bool AddHypothesisToShape (SALOMEDS::Study_ptr theStudy, SMESH::SMESH_Mesh_ptr theMesh, GEOM::GEOM_Object_ptr theShapeObject, SMESH::SMESH_Hypothesis_ptr theHyp)
 
bool RemoveHypothesisFromShape (SALOMEDS::Study_ptr theStudy, SMESH::SMESH_Mesh_ptr theMesh, GEOM::GEOM_Object_ptr theShapeObject, SMESH::SMESH_Hypothesis_ptr theHyp)
 
SALOMEDS::SObject_ptr GetMeshOrSubmeshByShape (SALOMEDS::Study_ptr theStudy, SMESH::SMESH_Mesh_ptr theMesh, GEOM::GEOM_Object_ptr theShape)
 
StudyContextGetCurrentStudyContext ()
 SMESH_Gen_i::GetCurrentStudyContext. 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)
 
int GetCurrentStudyID ()
 
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)
 Returns true if algorithm can be used to mesh a given geometry. More...
 
SMESH::long_arrayGetInsideSphere (SMESH::SMESH_IDSource_ptr meshPart, SMESH::ElementType theElemType, CORBA::Double theX, CORBA::Double theY, CORBA::Double theZ, CORBA::Double theR)
 
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)
 
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)
 
SMESH::long_arrayGetInside (SMESH::SMESH_IDSource_ptr meshPart, SMESH::ElementType theElemType, GEOM::GEOM_Object_ptr theGeom, CORBA::Double theTolerance)
 

Static Public Member Functions

static SMESH_Gen_iGetSMESHGen ()
 
static CORBA::ORB_var GetORB ()
 
static PortableServer::POA_var GetPOA ()
 
static SALOME_NamingService * GetNS ()
 GetNS [ static ]. More...
 
static SALOME_LifeCycleCORBA * GetLCC ()
 GetLCC [ static ]. More...
 
static GEOM::GEOM_Gen_var GetGeomEngine ()
 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 SALOMEDS::SObject_ptr ObjectToSObject (SALOMEDS::Study_ptr theStudy, CORBA::Object_ptr theObject)
 
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 void SetName (SALOMEDS::SObject_ptr theSObject, const char *theName, const char *theDefaultName=0)
 
static void SetPixMap (SALOMEDS::SObject_ptr theSObject, const char *thePixMap)
 

Private Member Functions

GenericHypothesisCreator_igetHypothesisCreator (const char *theHypName, const char *theLibName, std::string &thePlatformLibName) throw ( SALOME::SALOME_Exception )
 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 () throw ( SALOME::SALOME_Exception )
 SMESH_Gen_i::createMesh. More...
 
SMESH::mesh_arrayCreateMeshesFromMEDorSAUV (const char *theFileName, SMESH::DriverMED_ReadStatus &theStatus, const char *theCommandNameForPython, const char *theFileNameForPython)
 SMESH_Gen_i::CreateMeshFromMED. More...
 
void setCurrentStudy (SALOMEDS::Study_ptr theStudy, bool theStudyIsBeingClosed=false)
 
std::vector< long > _GetInside (SMESH::SMESH_IDSource_ptr meshPart, SMESH::ElementType theElemType, TopoDS_Shape &aShape, double *theTolerance=NULL)
 

Static Private Member Functions

static void loadGeomData (SALOMEDS::SComponent_ptr theCompRoot)
 SMESH_Gen_i::loadGeomData. More...
 

Private Attributes

::SMESH_Gen myGen
 
std::map< std::string,
GenericHypothesisCreator_i * > 
myHypCreatorMap
 
std::map< int, StudyContext * > myStudyContextMap
 
GEOM_Client * myShapeReader
 
SALOMEDS::Study_var myCurrentStudy
 
CORBA::Boolean myIsEmbeddedMode
 
std::string myDefaultGroupColor
 
bool myToForgetMeshDataOnHypModif
 
std::map< int, Handle(TColStd_HSequenceOfAsciiString) > myPythonScripts
 
bool myIsHistoricalPythonDump
 
std::vector< intmyLastParamIndex
 
std::vector< std::string > myLastParameters
 
std::string myLastObj
 

Static Private Attributes

static GEOM::GEOM_Gen_var myGeomGen = GEOM::GEOM_Gen::_nil()
 
static CORBA::ORB_var myOrb
 
static PortableServer::POA_var myPoa
 
static SALOME_NamingService * myNS = NULL
 
static SALOME_LifeCycleCORBA * myLCC = NULL
 
static SMESH_Gen_imySMESHGen = NULL
 

Constructor & Destructor Documentation

SMESH_Gen_i::SMESH_Gen_i ( )

SMESH_Gen_i::SMESH_Gen_i.

Default constructor: not for use

SMESH_Gen_i::SMESH_Gen_i ( CORBA::ORB_ptr  orb,
PortableServer::POA_ptr  poa,
PortableServer::ObjectId *  contId,
const char *  instanceName,
const char *  interfaceName 
)
SMESH_Gen_i::~SMESH_Gen_i ( )
virtual

Member Function Documentation

bool SMESH_Gen_i::AddHypothesisToShape ( SALOMEDS::Study_ptr  theStudy,
SMESH::SMESH_Mesh_ptr  theMesh,
GEOM::GEOM_Object_ptr  theShapeObject,
SMESH::SMESH_Hypothesis_ptr  theHyp 
)
void SMESH_Gen_i::AddToPythonScript ( int  theStudyID,
const TCollection_AsciiString &  theString 
)

AddToPythonScript.

References myPythonScripts.

Referenced by SMESH::TPythonDump::~TPythonDump().

void SMESH_Gen_i::CancelCompute ( SMESH::SMESH_Mesh_ptr  theMesh,
GEOM::GEOM_Object_ptr  theShapeObject 
)
CORBA::Boolean SMESH_Gen_i::CanCopy ( SALOMEDS::SObject_ptr  theObject)
CORBA::Boolean SMESH_Gen_i::CanPaste ( const char *  theComponentName,
CORBA::Long  theObjectID 
)
bool SMESH_Gen_i::CanPublishInStudy ( CORBA::Object_ptr  theIOR)

SMESH_Gen_i::CanPublishInStudy.

Returns true if object can be published in the study

References MESSAGE.

Referenced by CreateEmptyMesh(), CreateMeshesFromMEDorSAUV(), and SMESH::TPythonDump::operator<<().

void SMESH_Gen_i::CleanPythonTrace ( int  theStudyID)

CleanPythonTrace.

References myPythonScripts.

Referenced by SavePython().

void SMESH_Gen_i::Close ( SALOMEDS::SComponent_ptr  theComponent)
char * SMESH_Gen_i::ComponentDataType ( )
CORBA::Boolean SMESH_Gen_i::Compute ( SMESH::SMESH_Mesh_ptr  theMesh,
GEOM::GEOM_Object_ptr  theShapeObject 
) throw ( SALOME::SALOME_Exception )
SMESH::SMESH_Mesh_ptr SMESH_Gen_i::Concatenate ( const SMESH::ListOfIDSources theMeshesArray,
CORBA::Boolean  theUniteIdenticalGroups,
CORBA::Boolean  theMergeNodesAndElements,
CORBA::Double  theMergeTolerance 
) throw ( SALOME::SALOME_Exception )

SMESH_Gen_i::Concatenate.

Concatenate the given meshes into one mesh

SMESH::SMESH_Mesh_ptr SMESH_Gen_i::ConcatenateCommon ( const SMESH::ListOfIDSources theMeshesArray,
CORBA::Boolean  theUniteIdenticalGroups,
CORBA::Boolean  theMergeNodesAndElements,
CORBA::Double  theMergeTolerance,
CORBA::Boolean  theCommonGroups 
) throw ( SALOME::SALOME_Exception )
SMESH::SMESH_Mesh_ptr SMESH_Gen_i::ConcatenateWithGroups ( const SMESH::ListOfIDSources theMeshesArray,
CORBA::Boolean  theUniteIdenticalGroups,
CORBA::Boolean  theMergeNodesAndElements,
CORBA::Double  theMergeTolerance 
) throw ( SALOME::SALOME_Exception )

SMESH_Gen_i::ConcatenateWithGroups.

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

SALOMEDS::TMPFile* SMESH_Gen_i::CopyFrom ( SALOMEDS::SObject_ptr  theObject,
CORBA::Long &  theObjectID 
)
SMESH::SMESH_Mesh_ptr SMESH_Gen_i::CopyMesh ( SMESH::SMESH_IDSource_ptr  meshPart,
const char *  meshName,
CORBA::Boolean  toCopyGroups,
CORBA::Boolean  toKeepIDs 
)
SMESH::SMESH_Mesh_ptr SMESH_Gen_i::CreateEmptyMesh ( ) throw ( SALOME::SALOME_Exception )
SMESH::FilterManager_ptr SMESH_Gen_i::CreateFilterManager ( )

SMESH_Gen_i::CreateFilterManager.

Create filter manager

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

SMESH_Gen_i::CreateHypothesis.

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

Referenced by StdMeshers_LayerDistribution_i::LoadFrom().

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

SMESH_Gen_i::CreateMeasurements.

Create measurement instance

SMESH::SMESH_Mesh_ptr SMESH_Gen_i::CreateMesh ( GEOM::GEOM_Object_ptr  theShapeObject) throw ( SALOME::SALOME_Exception )

SMESH_Gen_i::CreateMesh.

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

References MESSAGE, MYDEBUG, and SMESH_Mesh_i::SetShape().

Referenced by CopyMesh().

SMESH::SMESH_Mesh_ptr SMESH_Gen_i::createMesh ( ) throw ( SALOME::SALOME_Exception )
private
SMESH::mesh_array * SMESH_Gen_i::CreateMeshesFromCGNS ( const char *  theFileName,
SMESH::DriverMED_ReadStatus theStatus 
) throw ( SALOME::SALOME_Exception )
SMESH::SMESH_Mesh_ptr SMESH_Gen_i::CreateMeshesFromGMF ( const char *  theFileName,
CORBA::Boolean  theMakeRequiredGroups,
SMESH::ComputeError_out  theError 
) throw ( SALOME::SALOME_Exception )

Create a mesh and import data from a GMF file.

References SMESH_Mesh_i::GetImpl(), and SMESH_Mesh_i::ImportGMFFile().

SMESH::mesh_array * SMESH_Gen_i::CreateMeshesFromMED ( const char *  theFileName,
SMESH::DriverMED_ReadStatus theStatus 
) throw ( SALOME::SALOME_Exception )
SMESH::mesh_array * SMESH_Gen_i::CreateMeshesFromMEDorSAUV ( const char *  theFileName,
SMESH::DriverMED_ReadStatus theStatus,
const char *  theCommandNameForPython,
const char *  theFileNameForPython 
)
private
SMESH::mesh_array * SMESH_Gen_i::CreateMeshesFromSAUV ( const char *  theFileName,
SMESH::DriverMED_ReadStatus theStatus 
) throw ( SALOME::SALOME_Exception )

SMESH_Gen_i::CreateMeshFromSAUV.

Create mesh and import data from SAUV file

SMESH::SMESH_Mesh_ptr SMESH_Gen_i::CreateMeshesFromSTL ( const char *  theFileName) throw ( SALOME::SALOME_Exception )

SMESH_Gen_i::CreateMeshFromSTL.

Create mesh and import data from STL file

References SMESH_Mesh_i::GetImpl(), and SMESH_Mesh_i::ImportSTLFile().

SMESH::SMESH_Mesh_ptr SMESH_Gen_i::CreateMeshesFromUNV ( const char *  theFileName) throw ( SALOME::SALOME_Exception )

SMESH_Gen_i::CreateMeshFromUNV.

Create mesh and import data from UNV file

References SMESH_Mesh_i::GetGroups(), SMESH_Mesh_i::GetImpl(), and SMESH_Mesh_i::ImportUNVFile().

Engines::TMPFile * SMESH_Gen_i::DumpPython ( CORBA::Object_ptr  theStudy,
CORBA::Boolean  isPublished,
CORBA::Boolean  isMultiFile,
CORBA::Boolean &  isValidScript 
)
virtual
TCollection_AsciiString SMESH_Gen_i::DumpPython_impl ( SALOMEDS::Study_ptr  theStudy,
Resource_DataMapOfAsciiStringAsciiString &  theObjectNames,
Resource_DataMapOfAsciiStringAsciiString &  theNames,
bool  isPublished,
bool  isMultiFile,
bool  isHistoricalDump,
bool aValidScript,
TCollection_AsciiString &  theSavedTrace 
)

Createa a Dump Python script.

Parameters
[in]theStudy- the study to dump
[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 SMESH_2smeshpy::ConvertScript(), SMESH::TPythonDump::CutoutLongString(), SMESH_2smeshpy::GenName(), Handle(), SMESH::printException(), SMESH::TVar::Quote(), second, SMESH_CATCH, SMESH_TRY, SMESH::TPythonDump::SMESHGenName(), and SMESH_2smeshpy::SmeshpyName().

Referenced by DumpPython().

SMESH::long_array * SMESH_Gen_i::Evaluate ( SMESH::SMESH_Mesh_ptr  theMesh,
GEOM::GEOM_Object_ptr  theShapeObject 
) throw ( SALOME::SALOME_Exception )

Evaluate mesh on a shape and returns statistic of mesh elements Result array of number enityties.

SMESH_Gen_i::Evaluate.

Evaluate mesh on a shape

References SMESH_Mesh_i::CheckGeomModif(), COMPERR_ALGO_FAILED, SMESH::Entity_Last, SMESH::Entity_Node, SMESH_Mesh_i::GetImpl(), SMESH_Mesh_i::Load(), MESSAGE, MYDEBUG, and SMESH_Mesh::PseudoShape().

GEOM::GEOM_Object_ptr SMESH_Gen_i::FindGeometryByMeshElement ( SMESH::SMESH_Mesh_ptr  theMesh,
CORBA::Long  theElementID 
) throw ( SALOME::SALOME_Exception )

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(), SMESH_Mesh_i::GetImpl(), SMESHDS_Mesh::IndexToShape(), and SMESH::SObjectToObject().

long SMESH_Gen_i::Get0DElementsGroupsTag ( )
static

References SMESH::Tag_0DElementsGroups.

Referenced by Load(), and Save().

long SMESH_Gen_i::GetAlgorithmsRootTag ( )
static

References SMESH::Tag_AlgorithmsRoot.

Referenced by GetAlgoSO(), and Save().

SALOMEDS::SObject_ptr SMESH_Gen_i::GetAlgoSO ( const ::SMESH_Algo algo)
SMESH::algo_error_array * SMESH_Gen_i::GetAlgoState ( SMESH::SMESH_Mesh_ptr  theMesh,
GEOM::GEOM_Object_ptr  theSubObject 
) throw ( SALOME::SALOME_Exception )

Returns errors of hypotheses definintion.

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(), SMESH_Mesh_i::GetImpl(), SMESH::AlgoStateError::isGlobalAlgo, MESSAGE, MYDEBUG, SMESH_Mesh::PseudoShape(), and SMESH::AlgoStateError::state.

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)

Referenced by SMESH_NoteBook::InitObjectMap().

SMESH::MeshPreviewStruct * SMESH_Gen_i::GetBadInputElements ( SMESH::SMESH_Mesh_ptr  theMesh,
CORBA::Short  theSubShapeID 
) throw ( SALOME::SALOME_Exception )
long SMESH_Gen_i::GetBallElementsGroupsTag ( )
static

References SMESH::Tag_BallElementsGroups.

Referenced by Load(), and Save().

SMESH::compute_error_array * SMESH_Gen_i::GetComputeErrors ( SMESH::SMESH_Mesh_ptr  theMesh,
GEOM::GEOM_Object_ptr  theShapeObject 
) throw ( SALOME::SALOME_Exception )
long SMESH_Gen_i::GetEdgeGroupsTag ( )
static

References SMESH::Tag_EdgeGroups.

Referenced by Load(), and Save().

long SMESH_Gen_i::GetFaceGroupsTag ( )
static

References SMESH::Tag_FaceGroups.

Referenced by Load(), and Save().

GEOM::GEOM_Object_ptr SMESH_Gen_i::GetGeometryByMeshElement ( SMESH::SMESH_Mesh_ptr  theMesh,
CORBA::Long  theElementID,
const char *  theGeomName 
) throw ( SALOME::SALOME_Exception )

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 SMESH::SObjectToObject().

GenericHypothesisCreator_i * SMESH_Gen_i::getHypothesisCreator ( const char *  theHypName,
const char *  theLibName,
std::string &  thePlatformLibName 
) throw ( SALOME::SALOME_Exception )
private
SMESH::SMESH_Hypothesis_ptr SMESH_Gen_i::GetHypothesisParameterValues ( const char *  theHypType,
const char *  theLibName,
SMESH::SMESH_Mesh_ptr  theMesh,
GEOM::GEOM_Object_ptr  theGeom,
CORBA::Boolean  byMesh 
) throw ( SALOME::SALOME_Exception )

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::_elemLength, SMESH_Hypothesis::TDefaults::_nbSegments, SMESH_Hypothesis::TDefaults::_shape, SMESH_Hypothesis_i::GetImpl(), SMESH_Mesh_i::GetImpl(), SMESH_Mesh::GetShapeDiagonalSize(), and SMESH_Mesh_i::NbNodes().

long SMESH_Gen_i::GetHypothesisRootTag ( )
static

Get...Tag [ static ].

Methods which determine SMESH data model structure

References SMESH::Tag_HypothesisRoot.

Referenced by Save().

SMESH::long_array * SMESH_Gen_i::GetInside ( SMESH::SMESH_IDSource_ptr  meshPart,
SMESH::ElementType  theElemType,
GEOM::GEOM_Object_ptr  theGeom,
CORBA::Double  theTolerance 
)
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 
)

References _GetInside().

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 
)

References _GetInside(), and Abs().

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 
)

References _GetInside().

const std::string& SMESH_Gen_i::GetLastObjEntry ( ) const
const std::vector< std::string >& SMESH_Gen_i::GetLastParameters ( ) const
const std::vector< int >& SMESH_Gen_i::GetLastParamIndices ( ) const
SALOME_LifeCycleCORBA * SMESH_Gen_i::GetLCC ( )
static

GetLCC [ static ].

Get SALOME_LifeCycleCORBA object

CORBA::Boolean SMESH_Gen_i::GetMEDVersion ( const char *  theFileName,
SMESH::MED_VERSION theVersion 
)
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::CrWrapper().

SALOMEDS::SObject_ptr SMESH_Gen_i::GetMeshOrSubmeshByShape ( SALOMEDS::Study_ptr  theStudy,
SMESH::SMESH_Mesh_ptr  theMesh,
GEOM::GEOM_Object_ptr  theShape 
)
TCollection_AsciiString SMESH_Gen_i::GetNewPythonLines ( int  theStudyID)

GetNewPythonLines.

References Handle(), and myPythonScripts.

Referenced by SavePython().

long SMESH_Gen_i::GetNodeGroupsTag ( )
static

References SMESH::Tag_NodeGroups.

Referenced by Load(), and Save().

SALOME_NamingService * SMESH_Gen_i::GetNS ( )
static

GetNS [ static ].

Get SALOME_NamingService object

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

template<class TInterface >
TInterface::_var_type SMESH_Gen_i::GetObjectByOldId ( const int  oldID)
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(), GetCurrentStudyContext(), and GetORB().

char * SMESH_Gen_i::GetOption ( const char *  name)
virtual
char * SMESH_Gen_i::GetParameters ( CORBA::Object_ptr  theObject)
SMESH::SMESH_Pattern_ptr SMESH_Gen_i::GetPattern ( )

SMESH_Gen_i::GetPattern.

Create pattern mapper

long SMESH_Gen_i::GetRefOnAppliedAlgorithmsTag ( )
static

References SMESH::Tag_RefOnAppliedAlgorithms.

Referenced by Save().

long SMESH_Gen_i::GetRefOnAppliedHypothesisTag ( )
static

References SMESH::Tag_RefOnAppliedHypothesis.

Referenced by Save().

long SMESH_Gen_i::GetRefOnShapeTag ( )
static
PortableServer::ServantBase_var SMESH_Gen_i::GetServant ( CORBA::Object_ptr  theObject)
static
static SMESH_Gen_i* SMESH_Gen_i::GetSMESHGen ( )
static

Referenced by SMESH_MeshEditor_i::AffectedElemGroupsInRegion(), StdMeshers_CartesianParameters3D_i::ComputeOptimalAxesDirs(), SMESH_MeshEditor_i::CreateHoleSkin(), SMESH_MeshEditor_i::DoubleNodeElemGroupInRegion(), SMESH_MeshEditor_i::DoubleNodeElemGroupsInRegion(), SMESH_MeshEditor_i::DoubleNodeElemInRegion(), StdMeshers_ObjRefUlils::EntryOrShapeToGeomObject(), SMESH_MeshEditor_i::ExtrusionAlongPathObjects(), SMESH_PreMeshInfo::ForgetOrLoad(), StdMeshers_ObjRefUlils::GeomObjectToShape(), 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::TPythonDump::operator<<(), 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().

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(), GetCurrentStudyID(), SMESH_Mesh_i::GetImpl(), SMESH_Mesh_i::GetShapeToMesh(), SMESH_Mesh_i::HasShapeToMesh(), myCurrentStudy, ShapeToGeomObject(), and SObjectToObject().

long SMESH_Gen_i::GetSubMeshOnCompoundTag ( )
static

References SMESH::Tag_SubMeshOnCompound.

Referenced by Load(), and Save().

long SMESH_Gen_i::GetSubMeshOnEdgeTag ( )
static

References SMESH::Tag_SubMeshOnEdge.

Referenced by Load(), and Save().

long SMESH_Gen_i::GetSubMeshOnFaceTag ( )
static

References SMESH::Tag_SubMeshOnFace.

Referenced by Load(), and Save().

long SMESH_Gen_i::GetSubMeshOnShellTag ( )
static

References SMESH::Tag_SubMeshOnShell.

Referenced by Load(), and Save().

long SMESH_Gen_i::GetSubMeshOnSolidTag ( )
static

References SMESH::Tag_SubMeshOnSolid.

Referenced by Load(), and Save().

long SMESH_Gen_i::GetSubMeshOnVertexTag ( )
static

References SMESH::Tag_SubMeshOnVertex.

Referenced by Load(), and Save().

long SMESH_Gen_i::GetSubMeshOnWireTag ( )
static

References SMESH::Tag_SubMeshOnWire.

Referenced by Load(), and Save().

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

SMESH_Gen_i::GetSubShapesId.

Get sub-shapes unique ID's list

References Edge, Face, MESSAGE, and MYDEBUG.

char * SMESH_Gen_i::getVersion ( )
virtual
long SMESH_Gen_i::GetVolumeGroupsTag ( )
static

References SMESH::Tag_VolumeGroups.

Referenced by Load(), and Save().

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(), GetCurrentStudyContext(), MESSAGE, and MYDEBUG.

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

Returns true if algorithm can be used to mesh a given geometry.

Parameters
[in]theAlgoType- the algorithm type
[in]theLibName- a name of the Plug-in library implementing the algorithm
[in]theGeomObject- the geometry to mesh
[in]toCheckAll- if True, returns True if all shapes are meshable, else, returns True if at least one shape is meshable
Returns
CORBA::Boolean - can or can't

References SMESH::doNothing(), GeomObjectToShape(), getHypothesisCreator(), SMESH_CATCH, and SMESH_TRY.

CORBA::Boolean SMESH_Gen_i::IsEmbeddedMode ( )

SMESH_Gen_i::IsEmbeddedMode.

Get current mode

References myIsEmbeddedMode.

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

SMESH_Gen_i::IsReadyToCompute.

Returns true if mesh contains enough data to be computed

References SMESH_Mesh_i::GetImpl(), MESSAGE, and MYDEBUG.

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(), MESSAGE, and MYDEBUG.

void SMESH_Gen_i::loadGeomData ( SALOMEDS::SComponent_ptr  theCompRoot)
staticprivate

SMESH_Gen_i::loadGeomData.

Load GEOM module data

References GetGeomEngine().

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 GetCurrentStudyContext(), StudyContext::getIORbyOldId(), MESSAGE, and MYDEBUG.

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

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

void SMESH_Gen_i::Move ( const SMESH::sobject_list what,
SALOMEDS::SObject_ptr  where,
CORBA::Long  row 
)
SALOMEDS::SObject_ptr SMESH_Gen_i::PasteInto ( const SALOMEDS::TMPFile &  theStream,
CORBA::Long  theObjectID,
SALOMEDS::SObject_ptr  theObject 
)
SMESH::MeshPreviewStruct * SMESH_Gen_i::Precompute ( SMESH::SMESH_Mesh_ptr  theMesh,
GEOM::GEOM_Object_ptr  theShapeObject,
SMESH::Dimension  theDimension,
SMESH::long_array theShapesId 
) throw ( SALOME::SALOME_Exception )

Calculate Mesh as preview till indicated dimension on shape First, verify list of hypothesis associated with the subShape.

SMESH_Gen_i::Precompute.

Return mesh preview structure

Compute mesh as preview till indicated dimension on shape

References SMESH_Mesh_i::CheckGeomModif(), SMESH_Gen::COMPACT_MESH, SMESH::DIM_1D, SMESH::DIM_2D, SMESHDS_SubMesh::GetElements(), SMESH_Mesh_i::GetImpl(), SMDS_MeshElement::GetNode(), SMESHDS_SubMesh::GetNodes(), SMESH_Mesh_i::Load(), MESSAGE, MYDEBUG, SMDS_MeshElement::NbNodes(), SMDSAbs_Edge, SMDSAbs_Node, SMDS_MeshNode::X(), SMDS_MeshNode::Y(), and SMDS_MeshNode::Z().

SALOMEDS::SComponent_ptr SMESH_Gen_i::PublishComponent ( SALOMEDS::Study_ptr  theStudy)

References MESSAGE, and SMESH::SetName().

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

References MESSAGE, publish(), and SMESH::SetName().

SALOMEDS::SObject_ptr SMESH_Gen_i::PublishInStudy ( SALOMEDS::Study_ptr  theStudy,
SALOMEDS::SObject_ptr  theSObject,
CORBA::Object_ptr  theIOR,
const char *  theName 
) throw ( SALOME::SALOME_Exception )

SMESH_Gen_i::PublishInStudy.

Publish object in the study

References MESSAGE.

SALOMEDS::SObject_ptr SMESH_Gen_i::PublishMesh ( SALOMEDS::Study_ptr  theStudy,
SMESH::SMESH_Mesh_ptr  theMesh,
const char *  theName = 0 
)
SALOMEDS::SObject_ptr SMESH_Gen_i::PublishSubMesh ( SALOMEDS::Study_ptr  theStudy,
SMESH::SMESH_Mesh_ptr  theMesh,
SMESH::SMESH_subMesh_ptr  theSubMesh,
GEOM::GEOM_Object_ptr  theShapeObject,
const char *  theName = 0 
)
bool SMESH_Gen_i::RemoveHypothesisFromShape ( SALOMEDS::Study_ptr  theStudy,
SMESH::SMESH_Mesh_ptr  theMesh,
GEOM::GEOM_Object_ptr  theShapeObject,
SMESH::SMESH_Hypothesis_ptr  theHyp 
)
void SMESH_Gen_i::RemoveLastFromPythonScript ( int  theStudyID)

RemoveLastFromPythonScript.

References myPythonScripts.

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 SMDS_Mesh::elementsIterator(), StudyContext::findId(), Get0DElementsGroupsTag(), GetAlgorithmsRootTag(), SMESH_Mesh_i::GetAutoColor(), GetBallElementsGroupsTag(), SMESH_GroupBase_i::GetColor(), GetCurrentStudyContext(), GetCurrentStudyID(), GetEdgeGroupsTag(), GetFaceGroupsTag(), SMESH_GroupBase_i::GetGroupDS(), SMESHDS_Mesh::GetHypothesis(), GetHypothesisRootTag(), SMESHDS_GroupBase::GetID(), SMESHDS_SubMesh::GetID(), SMDS_MeshElement::GetID(), SMESH_Mesh_i::GetImpl(), SMDS_Mesh::GetMeshInfo(), SMESH_GroupBase_i::GetName(), GetNodeGroupsTag(), SMESHDS_SubMesh::GetNodes(), GetORB(), SMESHDS_Mesh::GetPersistentId(), SMDS_MeshNode::GetPosition(), GetRefOnAppliedAlgorithmsTag(), GetRefOnAppliedHypothesisTag(), GetRefOnShapeTag(), GetServant(), SMESHDS_GroupBase::GetStoreName(), GetSubMeshOnCompoundTag(), GetSubMeshOnEdgeTag(), GetSubMeshOnFaceTag(), GetSubMeshOnShellTag(), GetSubMeshOnSolidTag(), GetSubMeshOnVertexTag(), GetSubMeshOnWireTag(), SMDS_EdgePosition::GetUParameter(), SMDS_FacePosition::GetUParameter(), GetVolumeGroupsTag(), SMDS_FacePosition::GetVParameter(), SMESHDS_Mesh::IndexToShape(), SMESHDS_SubMesh::IsComplexSubmesh(), SMESHDS_Mesh::MaxShapeIndex(), myCurrentStudy, SMDS_MeshInfo::NbElements(), SMESHDS_SubMesh::NbNodes(), SMDS_Mesh::NbNodes(), NUM_TMP_FILES, SavePython(), SMESH_Hypothesis_i::SaveTo(), SMESH_PreMeshInfo::SaveToFile(), SetCurrentStudy(), DriverMED_W_SMESHDS_Mesh::SetFile(), SMESHDS_GroupBase::SetStoreName(), SMESHDS_Mesh::ShapeToMesh(), SMDSAbs_All, SMDSAbs_Node, SObjectToObject(), and SMESHDS_Mesh::SubMeshes().

Referenced by 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, MYDEBUG, and Save().

void SMESH_Gen_i::SavePython ( SALOMEDS::Study_ptr  theStudy)
void SMESH_Gen_i::SetBoundaryBoxSegmentation ( CORBA::Long  theNbSegments) throw ( SALOME::SALOME_Exception )

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

void SMESH_Gen_i::SetCurrentStudy ( SALOMEDS::Study_ptr  theStudy)
void SMESH_Gen_i::setCurrentStudy ( SALOMEDS::Study_ptr  theStudy,
bool  theStudyIsBeingClosed = false 
)
private
void SMESH_Gen_i::SetDefaultNbSegments ( CORBA::Long  theNbSegments) throw ( SALOME::SALOME_Exception )

Sets default number of segments per edge.

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

SMESH_Gen_i::SetEmbeddedMode.

Set current mode

References myIsEmbeddedMode.

Referenced by SMESH_Gen_i().

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

SMESH_Gen_i::SetGeomEngine.

Set GEOM::GEOM_Gen reference

References myGeomGen.

void SMESH_Gen_i::SetName ( const char *  theIOR,
const char *  theName 
)
void SMESH_Gen_i::SetName ( SALOMEDS::SObject_ptr  theSObject,
const char *  theName,
const char *  theDefaultName = 0 
)
static
void SMESH_Gen_i::SetOption ( const char *  name,
const char *  value 
)
virtual
void SMESH_Gen_i::SetPixMap ( SALOMEDS::SObject_ptr  theSObject,
const char *  thePixMap 
)
static
CORBA::Object_var SMESH_Gen_i::SObjectToObject ( SALOMEDS::SObject_ptr  theSObject)
static
bool SMESH_Gen_i::ToForgetMeshDataOnHypModif ( ) const

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

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 contating parameters separated by ':'.

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

Field Documentation

std::string SMESH_Gen_i::myDefaultGroupColor
private

Referenced by GetOption(), and SetOption().

::SMESH_Gen SMESH_Gen_i::myGen
private
GEOM::GEOM_Gen_var SMESH_Gen_i::myGeomGen = GEOM::GEOM_Gen::_nil()
staticprivate

Referenced by SetGeomEngine().

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

Referenced by createHypothesis(), and ~SMESH_Gen_i().

CORBA::Boolean SMESH_Gen_i::myIsEmbeddedMode
private
bool SMESH_Gen_i::myIsHistoricalPythonDump
private
std::string SMESH_Gen_i::myLastObj
private
std::vector< std::string > SMESH_Gen_i::myLastParameters
private
std::vector< int > SMESH_Gen_i::myLastParamIndex
private
SALOME_LifeCycleCORBA * SMESH_Gen_i::myLCC = NULL
staticprivate
SALOME_NamingService * SMESH_Gen_i::myNS = NULL
staticprivate
CORBA::ORB_var SMESH_Gen_i::myOrb
staticprivate

Referenced by SMESH_Gen_i().

PortableServer::POA_var SMESH_Gen_i::myPoa
staticprivate

Referenced by createHypothesis(), and SMESH_Gen_i().

std::map< int, Handle(TColStd_HSequenceOfAsciiString) > SMESH_Gen_i::myPythonScripts
private
GEOM_Client* SMESH_Gen_i::myShapeReader
private
SMESH_Gen_i * SMESH_Gen_i::mySMESHGen = NULL
staticprivate

Referenced by SMESH_Gen_i().

std::map<int, StudyContext*> SMESH_Gen_i::myStudyContextMap
private
bool SMESH_Gen_i::myToForgetMeshDataOnHypModif
private

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