Packages | |
| package | Controls |
Data Structures | |
| class | Functor_i |
| class | NumericalFunctor_i |
| class | MinimumAngle_i |
| class | AspectRatio_i |
| class | AspectRatio3D_i |
| class | Warping_i |
| class | Taper_i |
| class | Skew_i |
| class | Area_i |
| class | Volume3D_i |
| class | MaxElementLength2D_i |
| class | MaxElementLength3D_i |
| class | Length_i |
| class | Length2D_i |
| class | MultiConnection_i |
| class | MultiConnection2D_i |
| class | Predicate_i |
| class | BadOrientedVolume_i |
| class | BareBorderVolume_i |
| class | BareBorderFace_i |
| class | OverConstrainedVolume_i |
| class | OverConstrainedFace_i |
| class | BelongToGeom_i |
| class | BelongToSurface_i |
| class | BelongToPlane_i |
| class | BelongToCylinder_i |
| class | BelongToGenSurface_i |
| class | LyingOnGeom_i |
| class | FreeBorders_i |
| class | FreeEdges_i |
| class | FreeFaces_i |
| class | FreeNodes_i |
| class | RangeOfIds_i |
| class | LinearOrQuadratic_i |
| class | GroupColor_i |
| class | ElemGeomType_i |
| class | CoplanarFaces_i |
| class | Comparator_i |
| class | LessThan_i |
| class | MoreThan_i |
| class | EqualTo_i |
| class | LogicalNOT_i |
| class | LogicalBinary_i |
| class | LogicalAND_i |
| class | LogicalOR_i |
| class | Filter_i |
| class | FilterLibrary_i |
| class | FilterManager_i |
| class | Measurements_i |
| class | TPythonDump |
| Utility helping in storing SMESH engine calls as python commands. More... | |
| struct | ClippingPlaneInfo |
| class | TElementSimulation |
| class | OrientedPlane |
| struct | TPlaneData |
| struct | MemoryReserve |
| Allocate some memory at construction and release it at destruction. More... | |
| class | TShapeDisplayer |
| Class showing shapes without publishing. More... | |
| class | TPolySimulation |
| class | TIdPreview |
| class | TNodeSimulation |
| struct | HistogramRectangle |
| Parameters of a reclangle of histogram. More... | |
| interface | Functor |
| Base interface for all functors ( i.e. More... | |
| interface | NumericalFunctor |
| Numerical functors are intended for calculating value by Id of mesh entity. More... | |
| interface | MinimumAngle |
| interface | AspectRatio |
| interface | AspectRatio3D |
| interface | Warping |
| interface | Taper |
| interface | Skew |
| interface | Area |
| interface | Volume3D |
| interface | MaxElementLength2D |
| interface | MaxElementLength3D |
| interface | Length |
| interface | Length2D |
| interface | MultiConnection |
| interface | MultiConnection2D |
| interface | Predicate |
| Predicates are intended for verification of criteria, must return bool value by mesh id. More... | |
| interface | BadOrientedVolume |
| Logical functor (predicate) "Bad Oriented Volume". More... | |
| interface | BareBorderVolume |
| Logical functor (predicate) "Volumes with bare border". More... | |
| interface | BareBorderFace |
| Logical functor (predicate) "Faces with bare border". More... | |
| interface | OverConstrainedVolume |
| Logical functor (predicate) "Over-constrained Volume" Verify whether a mesh volume has only one facet shared with other volumes. More... | |
| interface | OverConstrainedFace |
| Logical functor (predicate) "Over-constrained Face". More... | |
| interface | BelongToGeom |
| Logical functor (predicate) "Belong To Geometry". More... | |
| interface | BelongToSurface |
| Logical functor (predicate) "Belong To Surface". More... | |
| interface | BelongToPlane |
| Logical functor (predicate) "Belong To Plane". More... | |
| interface | BelongToCylinder |
| Logical functor (predicate) "Belong To Cylinder". More... | |
| interface | BelongToGenSurface |
| Logical functor (predicate) "Belong To Generic Surface". More... | |
| interface | LyingOnGeom |
| Logical functor (predicate) "Lying On Geometry". More... | |
| interface | FreeBorders |
| Logical functor (predicate) "Free borders". More... | |
| interface | FreeEdges |
| Logical functor (predicate) "Free edges". More... | |
| interface | FreeNodes |
| Logical functor (predicate) "Free nodes". More... | |
| interface | FreeFaces |
| Logical functor (predicate) "Free faces". More... | |
| interface | RangeOfIds |
| Abstract logical functor (predicate) "RangeOfIds". More... | |
| interface | Comparator |
| Comparator. More... | |
| interface | LessThan |
| interface | MoreThan |
| interface | EqualTo |
| interface | Logical |
| Logical predicates are intended for compose predicates using boolean operations. More... | |
| interface | LogicalNOT |
| interface | LogicalBinary |
| interface | LogicalAND |
| interface | LogicalOR |
| interface | LinearOrQuadratic |
| Logical functor (predicate) "Is element Linear or Quadratic". More... | |
| interface | GroupColor |
| Functor "Group Color" Returns color of group to which mesh element belongs to. More... | |
| interface | ElemGeomType |
| Functor "Element geometry type" Returns is element has indicated geometry type. More... | |
| interface | CoplanarFaces |
| Functor "Coplanar faces" Returns true if a mesh face is a coplanar neighbour to a given one. More... | |
| interface | Filter |
| Filter. More... | |
| interface | FilterLibrary |
| Interface for working with library of filters. More... | |
| interface | FilterManager |
| Interface of Filter manager. More... | |
| struct | AlgoStateError |
| Hypothesis definintion error. More... | |
| struct | ComputeError |
| interface | SMESH_Gen |
| interface | SMESH_GroupBase |
| SMESH_Group: base interface of group object. More... | |
| interface | SMESH_Group |
| SMESH_Group: interface of group object. More... | |
| interface | SMESH_GroupOnGeom |
| SMESH_Group: interface of group object linked to geometry. More... | |
| interface | SMESH_Hypothesis |
| interface | SMESH_Algo |
| interface | SMESH_0D_Algo |
| interface | SMESH_1D_Algo |
| interface | SMESH_2D_Algo |
| interface | SMESH_3D_Algo |
| struct | Measure |
| interface | Measurements |
| struct | log_block |
| struct | PointStruct |
| struct | DirStruct |
| struct | AxisStruct |
| struct | NodePosition |
| Node location on a shape. More... | |
| struct | ElementSubType |
| Structure used in mesh edit preview data (MeshPreviewStruct) More... | |
| struct | MeshPreviewStruct |
| Structure containing mesh edit preview data. More... | |
| interface | SMESH_IDSource |
| interface | SMESH_Mesh |
| interface | SMESH_subMesh |
| interface | SMESH_MeshEditor |
| interface | SMESH_Pattern |
| SMESH_Pattern: interface of mesh pattern. More... | |
Typedefs | |
| typedef vtkSmartPointer < OrientedPlane > | TPlane |
| typedef std::list< vtkActor * > | TActorList |
| typedef std::vector< TPlane > | TPlaneVector |
| typedef std::vector< TPlaneData > | TPlaneDataVector |
| typedef QMap< QString, HypothesisData * > | THypothesisDataMap |
| typedef std::vector< _PTR(SObject)> | SObjectList |
| typedef std::map < TKeyOfVisualObj, TVisualObjPtr > | TVisualObjCont |
| typedef std::pair< int, std::string > | TKeyOfVisualObj |
| typedef sequence < HistogramRectangle > | Histogram |
| typedef sequence < GEOM::GEOM_Object > | object_array |
| typedef sequence< SMESH_Mesh > | mesh_array |
| typedef sequence< AlgoStateError > | algo_error_array |
| typedef sequence< ComputeError > | compute_error_array |
| typedef sequence< string > | ListOfParameters |
| typedef sequence< string > | ListOfHypothesisName |
| typedef sequence < SMESH_Hypothesis > | ListOfHypothesis |
| typedef sequence< SMESH_GroupBase > | ListOfGroups |
| typedef sequence< SMESH_IDSource > | ListOfIDSources |
| typedef sequence< double > | double_array |
| typedef sequence< long > | long_array |
| typedef sequence< string > | string_array |
| typedef sequence< long_array > | array_of_long_array |
| typedef sequence< PointStruct > | nodes_array |
| typedef sequence< ElementType > | array_of_ElementType |
| typedef sequence< log_block > | log_array |
| typedef sequence< ElementSubType > | types_array |
| typedef sequence< SMESH_subMesh > | submesh_array |
| typedef sequence< submesh_array > | submesh_array_array |
| typedef sequence < SMESH::PointStruct > | point_array |
Enumerations | |
| enum | Viewer2dActionType { UpdateIn2dViewer = 0, RemoveFrom2dViewer } |
| enum | Orientation { XY, YZ, ZX } |
| enum | SMESHGUI_FilterType { UnknownFilter = -1, NodeFilter = 0, EdgeFilter = 1, FaceFilter = 2, VolumeFilter = 3, AllElementsFilter = 4, QuadFilter = 5, TriaFilter = 6, LastFilter } |
| enum | EDisplaing { eDisplayAll, eDisplay, eDisplayOnly, eErase, eEraseAll } |
| enum | FunctorType { FT_AspectRatio, FT_AspectRatio3D, FT_Warping, FT_MinimumAngle, FT_Taper, FT_Skew, FT_Area, FT_Volume3D, FT_MaxElementLength2D, FT_MaxElementLength3D, FT_FreeBorders, FT_FreeEdges, FT_FreeNodes, FT_FreeFaces, FT_MultiConnection, FT_MultiConnection2D, FT_Length, FT_Length2D, FT_BelongToGeom, FT_BelongToPlane, FT_BelongToCylinder, FT_BelongToGenSurface, FT_LyingOnGeom, FT_RangeOfIds, FT_BadOrientedVolume, FT_BareBorderVolume, FT_BareBorderFace, FT_OverConstrainedVolume, FT_OverConstrainedFace, FT_LinearOrQuadratic, FT_GroupColor, FT_ElemGeomType, FT_CoplanarFaces, FT_LessThan, FT_MoreThan, FT_EqualTo, FT_LogicalNOT, FT_LogicalAND, FT_LogicalOR, FT_Undefined } |
Enumeration of functor types. More... | |
| enum | ComputeErrorName { COMPERR_OK, COMPERR_BAD_INPUT_MESH, COMPERR_STD_EXCEPTION, COMPERR_OCC_EXCEPTION, COMPERR_SLM_EXCEPTION, COMPERR_EXCEPTION, COMPERR_MEMORY_PB, COMPERR_ALGO_FAILED, COMPERR_BAD_SHAPE } |
Mesh computation error. More... | |
| enum | Dimension { DIM_0D, DIM_1D, DIM_2D, DIM_3D } |
| enum | log_command { ADD_NODE, ADD_EDGE, ADD_TRIANGLE, ADD_QUADRANGLE, ADD_POLYGON, ADD_TETRAHEDRON, ADD_PYRAMID, ADD_PRISM, ADD_HEXAHEDRON, ADD_POLYHEDRON, REMOVE_NODE, REMOVE_ELEMENT, MOVE_NODE, CHANGE_ELEMENT_NODES, CHANGE_POLYHEDRON_NODES, RENUMBER, CLEAR_MESH, ADD_QUADEDGE, ADD_QUADTRIANGLE, ADD_QUADQUADRANGLE, ADD_QUADTETRAHEDRON, ADD_QUADPYRAMID, ADD_QUADPENTAHEDRON, ADD_QUADHEXAHEDRON, ADD_ELEM0D } |
| enum | ElementType { ALL, NODE, EDGE, FACE, VOLUME, ELEM0D } |
Enumeration for element type, like in SMDS. More... | |
| enum | GeometryType { Geom_POINT, Geom_EDGE, Geom_TRIANGLE, Geom_QUADRANGLE, Geom_POLYGON, Geom_TETRA, Geom_PYRAMID, Geom_HEXA, Geom_PENTA, Geom_POLYHEDRA } |
Enumeration for element geometry type, like in SMDS. More... | |
| enum | ElementOrder { ORDER_ANY, ORDER_LINEAR, ORDER_QUADRATIC } |
ElementOrder points out entities of what order are requested. More... | |
| enum | EntityType { Entity_Node, Entity_0D, Entity_Edge, Entity_Quad_Edge, Entity_Triangle, Entity_Quad_Triangle, Entity_Quadrangle, Entity_Quad_Quadrangle, Entity_Polygon, Entity_Quad_Polygon, Entity_Tetra, Entity_Quad_Tetra, Entity_Pyramid, Entity_Quad_Pyramid, Entity_Hexa, Entity_Quad_Hexa, Entity_Penta, Entity_Quad_Penta, Entity_Polyhedra, Entity_Quad_Polyhedra, Entity_Last } |
Enumeration of entity type uses in mesh info array, and should be synchronised with enum in SMDS. More... | |
| enum | Hypothesis_Status { HYP_OK, HYP_MISSING, HYP_CONCURENT, HYP_BAD_PARAMETER, HYP_HIDDEN_ALGO, HYP_HIDING_ALGO, HYP_UNKNOWN_FATAL, HYP_INCOMPATIBLE, HYP_NOTCONFORM, HYP_ALREADY_EXIST, HYP_BAD_DIM, HYP_BAD_SUBSHAPE, HYP_BAD_GEOMETRY, HYP_NEED_SHAPE } |
Enumeration for hypothesis status (used by AddHypothesis() and RemoveHypothesis() methods) More... | |
| enum | DriverMED_ReadStatus { DRS_OK, DRS_EMPTY, DRS_WARN_RENUMBER, DRS_WARN_SKIP_ELEM, DRS_FAIL } |
Enumeration for DriverMED read status (used by ImportMEDFile() method) More... | |
| enum | MED_VERSION { MED_V2_1, MED_V2_2 } |
Enumeration for DriverMED (used by Perform() method) More... | |
| enum | Bnd_Dimension { BND_2DFROM3D, BND_1DFROM3D, BND_1DFROM2D } |
Functions | |
| vtkFloatingPointType | GetFloat (const QString &theValue, vtkFloatingPointType theDefault) |
| vtkFloatingPointType | GetFloat (const QString &theValue, const QString &theSection, vtkFloatingPointType theDefault) |
| void | WriteUnstructuredGrid (vtkUnstructuredGrid *theGrid, const char *theFileName) |
| QColor | GetColor (const QString &theSect, const QString &theName, const QColor &def) |
| void | GetColor (const QString &theSect, const QString &theName, int &r, int &g, int &b, const QColor &def) |
| void | GetColor (const QString &theSect, const QString &theName, vtkFloatingPointType &r, vtkFloatingPointType &g, vtkFloatingPointType &b, const QColor &def) |
| void | ProcessIn2DViewers (SMESH_Actor *theActor, Viewer2dActionType aType) |
| Get histogram from the input actor Repaint/Remove the histogram in/from each opened Plot2D Viewer. | |
| template<class TArray > | |
| void | DumpArray (const TArray &theArray, TPythonDump &theStream) |
| TCollection_AsciiString | myLongStringStart ("TPythonDump::LongStringStart") |
| TCollection_AsciiString | myLongStringEnd ("TPythonDump::LongStringEnd") |
| Predicate_i * | GetPredicate (Predicate_ptr thePredicate) |
| Predicate_i * | GetPredicate (SMESH::Predicate_ptr thePredicate) |
| template<class T > | |
| T | DownCast (CORBA::Object_ptr theArg) |
| void | ReverseConnectivity (std::vector< vtkIdType > &ids, int type) |
| QString | errorText (int errCode, const char *comment) |
| _PTR (SObject) getSubShapeSO(int subShapeID = SMESH::FindSObject(aMainShape) | |
| Return SO of a subshape. | |
| if (subShapeID==1||!so) return so | |
| _PTR (ChildIterator) it | |
| if (_PTR(Study) study=SMESH::GetActiveStudyDocument()) it | |
| if (it) | |
| GEOM::GEOM_Object_ptr | getSubShape (int subShapeID, GEOM::GEOM_Object_var aMainShape) |
| Return subshape by ID. | |
| QString | shapeTypeName (GEOM::GEOM_Object_var aShape, const char *dflt="") |
| QString | shapeText (int subShapeID, GEOM::GEOM_Object_var aMainShape) |
| Return text describing a subshape. | |
| int | getSelectedRows (QTableWidget *table, QList< int > &rows) |
| Return a list of selected rows. | |
| SMESH::FilterManager_var & | GetFilterManager () |
| GEOM::GEOM_Gen_var | GetGEOMGen () |
| GEOM::GEOM_Object_var | GetShapeOnMeshOrSubMesh (_PTR(SObject) theMeshOrSubmesh, bool *isMesh) |
| GEOM::GEOM_Object_ptr | GetGeom (_PTR(SObject) theSO) |
| GEOM::GEOM_Object_ptr | GetSubShape (GEOM::GEOM_Object_ptr theMainShape, long theID) |
| SMESH::SMESH_Group_var | AddGroup (SMESH::SMESH_Mesh_ptr theMesh, SMESH::ElementType theType, const QString &theGroupName) |
| void | processHypothesisStatus (const int theHypStatus, SMESH::SMESH_Hypothesis_ptr theHyp, const bool theIsAddition) |
| static QString | mangledHypoSetName (HypothesesSet *hypSet) |
| Prepends dimension and appends '[custom]' to the name of hypothesis set. | |
| static QString | demangledHypoSetName (QString name) |
| Removes dimension and '[custom]' from the name of hypothesis set. | |
| void | InitAvailableHypotheses () |
| QStringList | GetAvailableHypotheses (const bool isAlgo, const int theDim, const bool isAux, const bool isNeedGeometry) |
| QStringList | GetHypothesesSets (int maxDim) |
| HypothesesSet * | GetHypothesesSet (const QString &theSetName) |
| HypothesisData * | GetHypothesisData (const QString &aHypType) |
| bool | IsAvailableHypothesis (const HypothesisData *algoData, const QString &hypType, bool &isAuxiliary) |
| bool | IsCompatibleAlgorithm (const HypothesisData *algo1Data, const HypothesisData *algo2Data) |
| SMESHGUI_GenericHypothesisCreator * | GetHypothesisCreator (const QString &aHypType) |
| SMESH::SMESH_Hypothesis_ptr | CreateHypothesis (const QString &aHypType, const QString &aHypName, const bool isAlgo) |
| bool | AddHypothesisOnMesh (SMESH::SMESH_Mesh_ptr aMesh, SMESH::SMESH_Hypothesis_ptr aHyp) |
| bool | AddHypothesisOnSubMesh (SMESH::SMESH_subMesh_ptr aSubMesh, SMESH::SMESH_Hypothesis_ptr aHyp) |
| bool | RemoveHypothesisOrAlgorithmOnMesh (const Handle(SALOME_InteractiveObject)&IObject) |
| bool | RemoveHypothesisOrAlgorithmOnMesh (_PTR(SObject) MorSM, SMESH::SMESH_Hypothesis_ptr anHyp) |
| SObjectList | GetMeshesUsingAlgoOrHypothesis (SMESH::SMESH_Hypothesis_ptr AlgoOrHyp) |
| QString | GetMessageOnAlgoStateErrors (const algo_error_array &errors) |
| SMESH_Mesh_var | GetMeshByIO (const Handle(SALOME_InteractiveObject)&theIO) |
| QString | UniqueMeshName (const QString &theBaseName, const QString &thePostfix) |
| QString | UniqueName (const QString &theBaseName, _PTR(SObject) theParent, const QString &thePostfix) |
| SMESH::Measurements_var & | GetMeasurements () |
| long | AddNode (SMESH::SMESH_Mesh_ptr theMesh, float x, float y, float z, const QStringList &theParameters) |
| SMESH::SMESH_Pattern_var | GetPattern () |
| SUIT_Desktop * | GetDesktop (const CAM_Module *theModule) |
| LightApp_SelectionMgr * | GetSelectionMgr (const SalomeApp_Module *theModule) |
| SUIT_ResourceMgr * | GetResourceMgr (const SalomeApp_Module *) |
| GetCStudy (const SalomeApp_Study *theStudy) | |
| CORBA::Object_var | DataOwnerToObject (const LightApp_DataOwnerPtr &theOwner) |
| SUIT_Study * | GetActiveStudy () |
| SUIT_ViewWindow * | GetActiveWindow () |
| _PTR (Study) GetActiveStudyDocument() | |
| void | SetName (_PTR(SObject) theSObject, const QString &theName) |
| void | SetValue (_PTR(SObject) theSObject, const QString &theValue) |
| void | setFileName (_PTR(SObject) theSObject, const QString &theValue) |
| void | setFileType (_PTR(SObject) theSObject, const QString &theValue) |
| CORBA::Object_var | SObjectToObject (_PTR(SObject) theSObject, _PTR(Study) theStudy) |
| CORBA::Object_var | SObjectToObject (_PTR(SObject) theSObject) |
| CORBA::Object_var | IObjectToObject (const Handle(SALOME_InteractiveObject)&theIO) |
| CORBA::Object_var | IORToObject (const QString &theIOR) |
| int | GetNameOfSelectedIObjects (LightApp_SelectionMgr *theMgr, QString &theName) |
| void | ModifiedMesh (_PTR(SObject) theSObject, bool theIsNotModif, bool isEmptyMesh) |
| void | ShowHelpFile (const QString &theHelpFileName) |
| gp_XYZ | getNormale (const SMDS_MeshFace *theFace) |
| Return normale to a given face. | |
| SalomeApp_Study * | GetAppStudy (const CAM_Module *) |
| template<class TInterface > | |
| TInterface::_var_type | DataOwnerToInterface (const LightApp_DataOwnerPtr &theDataOwner) |
| template<class TInterface > | |
| TInterface::_var_type | SObjectToInterface (_PTR(SObject) theSObject) |
| template<class TInterface > | |
| TInterface::_var_type | IObjectToInterface (const Handle(SALOME_InteractiveObject)&theIO) |
| template<class TInterface > | |
| TInterface::_var_type | IORToInterface (const QString &theIOR) |
| void | RemoveVisualObjectWithActors (const char *theEntry, bool fromAllViews) |
| Remove VisualObj and its actor from all views. | |
| void | RemoveAllObjectsWithActors () |
| Remove all VisualObjs and their actors from all views. | |
| void | RemoveVisuData (int studyID) |
| Remove all VisualObjs of a study. | |
| void | OnVisuException () |
| Notify the user on problems during visualization. | |
| TVisualObjPtr | GetVisualObj (int theStudyId, const char *theEntry, bool nulData) |
| Returns an updated visual object. | |
| SVTK_ViewWindow * | GetViewWindow (const SalomeApp_Module *theModule, bool createIfNotFound) |
| Return active view window, if it instantiates SVTK_ViewWindow class, overwise find or create corresponding view window, make it active and return it. | |
| SVTK_ViewWindow * | FindVtkViewWindow (SUIT_ViewManager *theMgr, SUIT_ViewWindow *theWindow) |
| SVTK_ViewWindow * | GetVtkViewWindow (SUIT_ViewWindow *theWindow) |
| SVTK_ViewWindow * | GetCurrentVtkView () |
| void | RepaintCurrentView () |
| void | RepaintViewWindow (SVTK_ViewWindow *theWindow) |
| void | RenderViewWindow (SVTK_ViewWindow *theWindow) |
| void | FitAll () |
| SMESH_Actor * | FindActorByEntry (SUIT_ViewWindow *theWindow, const char *theEntry) |
| SMESH_Actor * | FindActorByEntry (const char *theEntry) |
| SMESH_Actor * | FindActorByObject (CORBA::Object_ptr theObject) |
| SMESH_Actor * | CreateActor (_PTR(Study) theStudy, const char *theEntry, int theIsClear) |
| void | DisplayActor (SUIT_ViewWindow *theWnd, SMESH_Actor *theActor) |
| void | RemoveActor (SUIT_ViewWindow *theWnd, SMESH_Actor *theActor) |
| bool | noSmeshActors (SUIT_ViewWindow *theWnd) |
| Return true if there are no SMESH actors in a view. | |
| bool | UpdateView (SUIT_ViewWindow *theWnd, EDisplaing theAction, const char *theEntry) |
| bool | UpdateView (EDisplaing theAction, const char *theEntry) |
| void | UpdateView () |
| bool | Update (const Handle(SALOME_InteractiveObject)&theIO, bool theDisplay) |
| bool | UpdateNulData (const Handle(SALOME_InteractiveObject)&theIO, bool theDisplay) |
| void | UpdateSelectionProp (SMESHGUI *theModule) |
| SVTK_Selector * | GetSelector (SUIT_ViewWindow *theWindow) |
| void | SetFilter (const Handle(VTKViewer_Filter)&theFilter, SVTK_Selector *theSelector) |
| Handle (VTKViewer_Filter) GetFilter(int theId | |
| void | SetPointRepresentation (bool) |
| void | SetPickable (SMESH_Actor *=0) |
| SVTK_Selector *bool | IsFilterPresent (int, SVTK_Selector *=GetSelector()) |
| void | RemoveFilter (int, SVTK_Selector *=GetSelector()) |
| void | RemoveFilters (SVTK_Selector *=GetSelector()) |
| bool | IsValid (SALOME_Actor *, int, SVTK_Selector *=GetSelector()) |
| int | GetNameOfSelectedNodes (SVTK_Selector *, const Handle(SALOME_InteractiveObject)&, QString &) |
| int | GetNameOfSelectedElements (SVTK_Selector *, const Handle(SALOME_InteractiveObject)&, QString &) |
| int | GetEdgeNodes (SVTK_Selector *, const TVisualObjPtr &, int &, int &) |
| int | GetNameOfSelectedNodes (LightApp_SelectionMgr *, const Handle(SALOME_InteractiveObject)&, QString &) |
| int | GetNameOfSelectedNodes (LightApp_SelectionMgr *, QString &) |
| int | GetNameOfSelectedElements (LightApp_SelectionMgr *, const Handle(SALOME_InteractiveObject)&, QString &) |
| int | GetNameOfSelectedElements (LightApp_SelectionMgr *, QString &) |
| int | GetSelected (LightApp_SelectionMgr *, TColStd_IndexedMapOfInteger &, const bool=true) |
| int | GetEdgeNodes (LightApp_SelectionMgr *, int &, int &) |
| void | SetControlsPrecision (const long) |
| void | ClearPlot2Viewers (SUIT_ViewWindow *theWindow) |
| bool | ComputeClippingPlaneParameters (std::list< vtkActor * > theActorList, vtkFloatingPointType theNormal[3], vtkFloatingPointType theDist, vtkFloatingPointType theBounds[6], vtkFloatingPointType theOrigin[3]) |
Variables | |
| const vtkIdType | DeleteActorEvent = vtkCommand::UserEvent + 100 |
| return | subSO |
| THypothesisDataMap | myHypothesesMap |
| THypothesisDataMap | myAlgorithmsMap |
| QList< HypothesesSet * > | myListOfHypothesesSets |
| static TVisualObjCont | VISUAL_OBJ_CONT |
| static MemoryReserve * | theVISU_MemoryReserve = new MemoryReserve |
| const long | Tag_HypothesisRoot = 1 |
| Tags definition. | |
| const long | Tag_AlgorithmsRoot = 2 |
| const long | Tag_FirstMeshRoot = 3 |
| const long | Tag_RefOnShape = 1 |
| const long | Tag_RefOnAppliedHypothesis = 2 |
| const long | Tag_RefOnAppliedAlgorithms = 3 |
| const long | Tag_FirstSubMesh = 4 |
| const long | Tag_SubMeshOnVertex = 4 |
| const long | Tag_SubMeshOnEdge = 5 |
| const long | Tag_SubMeshOnWire = 6 |
| const long | Tag_SubMeshOnFace = 7 |
| const long | Tag_SubMeshOnShell = 8 |
| const long | Tag_SubMeshOnSolid = 9 |
| const long | Tag_SubMeshOnCompound = 10 |
| const long | Tag_LastSubMesh = 10 |
| const long | Tag_FirstGroup = 11 |
| const long | Tag_NodeGroups = 11 |
| const long | Tag_EdgeGroups = 12 |
| const long | Tag_FaceGroups = 13 |
| const long | Tag_VolumeGroups = 14 |
| const long | Tag_0DElementsGroups = 15 |
| const long | Tag_LastGroup = 15 |
| const long | EXTRUSION_FLAG_BOUNDARY = 1 |
| Auxilary flags for advanced extrusion. | |
| const long | EXTRUSION_FLAG_SEW = 2 |
| typedef sequence<AlgoStateError> SMESH.algo_error_array |
Definition at line 86 of file SMESH_Gen.idl.
| typedef sequence<ElementType> SMESH.array_of_ElementType |
Definition at line 121 of file SMESH_Mesh.idl.
| typedef sequence<long_array> SMESH.array_of_long_array |
Definition at line 46 of file SMESH_Mesh.idl.
| typedef sequence<ComputeError> SMESH.compute_error_array |
Definition at line 111 of file SMESH_Gen.idl.
| typedef sequence<double > SMESH.double_array |
Definition at line 43 of file SMESH_Mesh.idl.
| typedef sequence<HistogramRectangle> SMESH.Histogram |
Definition at line 93 of file SMESH_Filter.idl.
| typedef sequence<SMESH_GroupBase> SMESH.ListOfGroups |
Definition at line 38 of file SMESH_Mesh.idl.
| typedef sequence<SMESH_Hypothesis> SMESH.ListOfHypothesis |
Definition at line 36 of file SMESH_Mesh.idl.
| typedef sequence<string> SMESH.ListOfHypothesisName |
Definition at line 96 of file SMESH_Hypothesis.idl.
| typedef sequence<SMESH_IDSource> SMESH.ListOfIDSources |
Definition at line 40 of file SMESH_Mesh.idl.
| typedef sequence<string> SMESH.ListOfParameters |
Definition at line 43 of file SMESH_Hypothesis.idl.
| typedef sequence<log_block> SMESH.log_array |
Definition at line 224 of file SMESH_Mesh.idl.
| typedef sequence<long > SMESH.long_array |
Definition at line 44 of file SMESH_Mesh.idl.
| typedef sequence<SMESH_Mesh> SMESH.mesh_array |
Definition at line 40 of file SMESH_Gen.idl.
| typedef sequence<PointStruct> SMESH.nodes_array |
Definition at line 89 of file SMESH_Mesh.idl.
| typedef sequence<GEOM::GEOM_Object> SMESH.object_array |
Definition at line 39 of file SMESH_Gen.idl.
| typedef sequence<SMESH::PointStruct> SMESH.point_array |
Definition at line 36 of file SMESH_Pattern.idl.
| typedef std::vector<_PTR(SObject)> SMESH.SObjectList |
Definition at line 109 of file SMESHGUI_HypothesesUtils.h.
| typedef sequence<string > SMESH.string_array |
Definition at line 45 of file SMESH_Mesh.idl.
| typedef sequence<SMESH_subMesh> SMESH.submesh_array |
Definition at line 281 of file SMESH_Mesh.idl.
| typedef sequence<submesh_array> SMESH.submesh_array_array |
Definition at line 284 of file SMESH_Mesh.idl.
| typedef std::list<vtkActor*> SMESH.TActorList |
Definition at line 106 of file SMESHGUI_ClippingDlg.h.
| typedef QMap<QString,HypothesisData*> SMESH.THypothesisDataMap |
Definition at line 83 of file SMESHGUI_HypothesesUtils.cxx.
| typedef std::pair<int,std::string> SMESH.TKeyOfVisualObj |
Definition at line 65 of file SMESHGUI_VTKUtils.h.
| typedef vtkSmartPointer<OrientedPlane> SMESH.TPlane |
Definition at line 105 of file SMESHGUI_ClippingDlg.h.
| typedef std::vector<TPlaneData> SMESH.TPlaneDataVector |
Definition at line 121 of file SMESHGUI_ClippingDlg.h.
| typedef std::vector<TPlane> SMESH.TPlaneVector |
Definition at line 120 of file SMESHGUI_ClippingDlg.h.
| typedef std::map<TKeyOfVisualObj,TVisualObjPtr> SMESH.TVisualObjCont |
Definition at line 80 of file SMESHGUI_VTKUtils.cxx.
| typedef sequence<ElementSubType> SMESH.types_array |
Definition at line 242 of file SMESH_Mesh.idl.
| enum SMESH::Bnd_Dimension |
Definition at line 31 of file SMESH_MeshEditor.idl.
{ BND_2DFROM3D, BND_1DFROM3D, BND_1DFROM2D };
Mesh computation error.
| COMPERR_OK | |
| COMPERR_BAD_INPUT_MESH | |
| COMPERR_STD_EXCEPTION | |
| COMPERR_OCC_EXCEPTION | |
| COMPERR_SLM_EXCEPTION | |
| COMPERR_EXCEPTION | |
| COMPERR_MEMORY_PB | |
| COMPERR_ALGO_FAILED | |
| COMPERR_BAD_SHAPE |
Definition at line 91 of file SMESH_Gen.idl.
{
COMPERR_OK ,
COMPERR_BAD_INPUT_MESH, // wrong mesh on lower submesh
COMPERR_STD_EXCEPTION , // some std exception raised
COMPERR_OCC_EXCEPTION , // OCC exception raised
COMPERR_SLM_EXCEPTION , // SALOME exception raised
COMPERR_EXCEPTION , // other exception raised
COMPERR_MEMORY_PB , // memory allocation problem
COMPERR_ALGO_FAILED , // computation failed
COMPERR_BAD_SHAPE // bad geometry
};
| enum SMESH::Dimension |
Enumeration for DriverMED read status (used by ImportMEDFile() method)
Definition at line 205 of file SMESH_Mesh.idl.
{
DRS_OK,
DRS_EMPTY, // a MED file contains no mesh with the given name
DRS_WARN_RENUMBER, // a MED file has overlapped ranges of element numbers,
// so the numbers from the file are ignored
DRS_WARN_SKIP_ELEM, // some elements were skipped due to incorrect file data
DRS_FAIL // general failure (exception etc.)
};
| enum SMESH::EDisplaing |
Definition at line 114 of file SMESHGUI_VTKUtils.h.
{ eDisplayAll, eDisplay, eDisplayOnly, eErase, eEraseAll };
| enum SMESH::ElementOrder |
ElementOrder points out entities of what order are requested.
| ORDER_ANY | |
| ORDER_LINEAR |
entities of any order |
| ORDER_QUADRATIC |
entities of 1st order entities of 2nd order |
Definition at line 143 of file SMESH_Mesh.idl.
{
ORDER_ANY,
ORDER_LINEAR,
ORDER_QUADRATIC
};
| enum SMESH::ElementType |
| enum SMESH::EntityType |
Enumeration of entity type uses in mesh info array, and should be synchronised with enum in SMDS.
Definition at line 154 of file SMESH_Mesh.idl.
{
Entity_Node,
Entity_0D,
Entity_Edge,
Entity_Quad_Edge,
Entity_Triangle,
Entity_Quad_Triangle,
Entity_Quadrangle,
Entity_Quad_Quadrangle,
Entity_Polygon,
Entity_Quad_Polygon,
Entity_Tetra,
Entity_Quad_Tetra,
Entity_Pyramid,
Entity_Quad_Pyramid,
Entity_Hexa,
Entity_Quad_Hexa,
Entity_Penta,
Entity_Quad_Penta,
Entity_Polyhedra,
Entity_Quad_Polyhedra,
Entity_Last
};
| enum SMESH::FunctorType |
Enumeration of functor types.
Definition at line 40 of file SMESH_Filter.idl.
{
FT_AspectRatio,
FT_AspectRatio3D,
FT_Warping,
FT_MinimumAngle,
FT_Taper,
FT_Skew,
FT_Area,
FT_Volume3D,
FT_MaxElementLength2D,
FT_MaxElementLength3D,
FT_FreeBorders,
FT_FreeEdges,
FT_FreeNodes,
FT_FreeFaces,
FT_MultiConnection,
FT_MultiConnection2D,
FT_Length,
FT_Length2D,
FT_BelongToGeom,
FT_BelongToPlane,
FT_BelongToCylinder,
FT_BelongToGenSurface,
FT_LyingOnGeom,
FT_RangeOfIds,
FT_BadOrientedVolume,
FT_BareBorderVolume,
FT_BareBorderFace,
FT_OverConstrainedVolume,
FT_OverConstrainedFace,
FT_LinearOrQuadratic,
FT_GroupColor,
FT_ElemGeomType,
FT_CoplanarFaces,
FT_LessThan,
FT_MoreThan,
FT_EqualTo,
FT_LogicalNOT,
FT_LogicalAND,
FT_LogicalOR,
FT_Undefined
};
| enum SMESH::GeometryType |
Enumeration for element geometry type, like in SMDS.
| Geom_POINT | |
| Geom_EDGE | |
| Geom_TRIANGLE | |
| Geom_QUADRANGLE | |
| Geom_POLYGON | |
| Geom_TETRA | |
| Geom_PYRAMID | |
| Geom_HEXA | |
| Geom_PENTA | |
| Geom_POLYHEDRA |
Definition at line 126 of file SMESH_Mesh.idl.
Enumeration for hypothesis status (used by AddHypothesis() and RemoveHypothesis() methods)
Definition at line 183 of file SMESH_Mesh.idl.
{
HYP_OK,
HYP_MISSING, // algo misses a hypothesis
HYP_CONCURENT, // several applicable hypotheses
HYP_BAD_PARAMETER,// hypothesis has a bad parameter value
HYP_HIDDEN_ALGO, // an algo is hidden by an upper dim algo generating all-dim elements
HYP_HIDING_ALGO, // an algo hides lower dim algos by generating all-dim elements
HYP_UNKNOWN_FATAL,// --- all statuses below should be considered as fatal
// for Add/RemoveHypothesis operations
HYP_INCOMPATIBLE, // hypothesis does not fit algo
HYP_NOTCONFORM, // not conform mesh is produced appling a hypothesis
HYP_ALREADY_EXIST,// such hypothesis already exist
HYP_BAD_DIM, // bad dimension
HYP_BAD_SUBSHAPE, // shape is neither the main one, nor its subshape, nor a group
HYP_BAD_GEOMETRY, // geometry mismatches algorithm's expectation
HYP_NEED_SHAPE // algorithm can work on shape only
};
| enum SMESH::log_command |
Definition at line 48 of file SMESH_Mesh.idl.
{
ADD_NODE,
ADD_EDGE,
ADD_TRIANGLE,
ADD_QUADRANGLE,
ADD_POLYGON,
ADD_TETRAHEDRON,
ADD_PYRAMID,
ADD_PRISM,
ADD_HEXAHEDRON,
ADD_POLYHEDRON,
REMOVE_NODE,
REMOVE_ELEMENT,
MOVE_NODE,
CHANGE_ELEMENT_NODES,
CHANGE_POLYHEDRON_NODES,
RENUMBER,
CLEAR_MESH,
ADD_QUADEDGE,
ADD_QUADTRIANGLE,
ADD_QUADQUADRANGLE,
ADD_QUADTETRAHEDRON,
ADD_QUADPYRAMID,
ADD_QUADPENTAHEDRON,
ADD_QUADHEXAHEDRON,
ADD_ELEM0D
};
| enum SMESH::MED_VERSION |
Enumeration for DriverMED (used by Perform() method)
Definition at line 218 of file SMESH_Mesh.idl.
| enum SMESH::Orientation |
| UnknownFilter | |
| NodeFilter | |
| EdgeFilter | |
| FaceFilter | |
| VolumeFilter | |
| AllElementsFilter | |
| QuadFilter | |
| TriaFilter | |
| LastFilter |
Definition at line 44 of file SMESHGUI_Filter.h.
{
UnknownFilter = -1,
NodeFilter = 0,
EdgeFilter = 1,
FaceFilter = 2,
VolumeFilter = 3,
AllElementsFilter = 4,
QuadFilter = 5,
TriaFilter = 6,
LastFilter
};
Definition at line 78 of file SMESH_ActorUtils.h.
| SMESH::_PTR | ( | SObject | ) | = SMESH::FindSObject(aMainShape) |
Return SO of a subshape.
Definition at line 124 of file SMESHGUI_Utils.cxx.
Referenced by _PTR(), AddHypothesisOnMesh(), AddHypothesisOnSubMesh(), AddNode(), CreateActor(), CreateHypothesis(), DataOwnerToObject(), FindActorByObject(), GetGeom(), GetMeshesUsingAlgoOrHypothesis(), GetSubShape(), getSubShape(), GetVisualObj(), IObjectToObject(), ModifiedMesh(), processHypothesisStatus(), RemoveHypothesisOrAlgorithmOnMesh(), setFileName(), setFileType(), SetName(), SetValue(), shapeText(), SObjectToObject(), UniqueMeshName(), UniqueName(), Update(), UpdateNulData(), and UpdateView().
{
SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>
(SUIT_Session::session()->activeApplication());
if (app && !CORBA::is_nil(theObject)) {
if(_PTR(Study) aStudy = GetActiveStudyDocument()){
CORBA::String_var anIOR = app->orb()->object_to_string(theObject);
if (strcmp(anIOR.in(), "") != 0)
return aStudy->FindObjectIOR(anIOR.in());
}
}
return _PTR(SObject)();
}
| SMESH._PTR | ( | ChildIterator | ) |
| SMESH::_PTR | ( | Study | ) |
Definition at line 115 of file SMESHGUI_Utils.cxx.
References _PTR(), and GetActiveStudy().
{
SalomeApp_Study* aStudy = dynamic_cast<SalomeApp_Study*>(GetActiveStudy());
if (aStudy)
return aStudy->studyDS();
else
return _PTR(Study)();
}
| SMESH::SMESH_Group_var SMESH::AddGroup | ( | SMESH::SMESH_Mesh_ptr | theMesh, |
| SMESH::ElementType | theType, | ||
| const QString & | theGroupName | ||
| ) |
Definition at line 38 of file SMESHGUI_GroupUtils.cxx.
References SMESH_controls.aGroup, and SMESHGUI.GetSMESHGUI().
Referenced by SMESHGUI_NodesDlg.ClickOnApply(), SMESHGUI_CreatePolyhedralVolumeDlg.ClickOnApply(), SMESHGUI_AddQuadraticElementDlg.ClickOnApply(), SMESHGUI_AddMeshElementDlg.ClickOnApply(), SMESH_Mesh.MEDToMesh(), SMESHGUI_GroupDlg.onApply(), SMESHGUI.OnGUIEvent(), and SMESH_Mesh.UNVToMesh().
{
SMESH::SMESH_Group_var aGroup;
try {
if ( !theMesh->_is_nil() )
aGroup = theMesh->CreateGroup( theType, theGroupName.toLatin1().data() );
}
catch( const SALOME::SALOME_Exception& S_ex ) {
SalomeApp_Tools::QtCatchCorbaException( S_ex );
}
SMESHGUI::GetSMESHGUI()->updateObjBrowser();
return aGroup._retn();
}
| bool SMESH::AddHypothesisOnMesh | ( | SMESH::SMESH_Mesh_ptr | aMesh, |
| SMESH::SMESH_Hypothesis_ptr | aHyp | ||
| ) |
Definition at line 486 of file SMESHGUI_HypothesesUtils.cxx.
References _PTR(), GetShapeOnMeshOrSubMesh(), HYP_OK, HYP_UNKNOWN_FATAL, MESSAGE, ModifiedMesh(), processHypothesisStatus(), and SMESH_AdvancedEditor.res.
Referenced by SMESHGUI_MeshOp.createMesh(), and SMESHGUI_MeshOp.editMeshOrSubMesh().
{
if(MYDEBUG) MESSAGE ("SMESHGUI::AddHypothesisOnMesh");
int res = SMESH::HYP_UNKNOWN_FATAL;
SUIT_OverrideCursor wc;
if (!aMesh->_is_nil()) {
_PTR(SObject) SM = SMESH::FindSObject(aMesh);
GEOM::GEOM_Object_var aShapeObject = SMESH::GetShapeOnMeshOrSubMesh(SM);
try {
res = aMesh->AddHypothesis(aShapeObject, aHyp);
if (res < SMESH::HYP_UNKNOWN_FATAL) {
_PTR(SObject) aSH = SMESH::FindSObject(aHyp);
if (SM && aSH) {
SMESH::ModifiedMesh(SM, false, aMesh->NbNodes()==0);
}
}
if (res > SMESH::HYP_OK) {
wc.suspend();
processHypothesisStatus(res, aHyp, true);
wc.resume();
}
}
catch(const SALOME::SALOME_Exception& S_ex) {
wc.suspend();
SalomeApp_Tools::QtCatchCorbaException(S_ex);
res = SMESH::HYP_UNKNOWN_FATAL;
}
}
return res < SMESH::HYP_UNKNOWN_FATAL;
}
| bool SMESH::AddHypothesisOnSubMesh | ( | SMESH::SMESH_subMesh_ptr | aSubMesh, |
| SMESH::SMESH_Hypothesis_ptr | aHyp | ||
| ) |
Definition at line 519 of file SMESHGUI_HypothesesUtils.cxx.
References _PTR(), GetShapeOnMeshOrSubMesh(), HYP_OK, HYP_UNKNOWN_FATAL, MESSAGE, ModifiedMesh(), processHypothesisStatus(), and SMESH_AdvancedEditor.res.
Referenced by SMESHGUI_MeshOp.createSubMesh(), and SMESHGUI_MeshOp.editMeshOrSubMesh().
{
if(MYDEBUG) MESSAGE("SMESHGUI::AddHypothesisOnSubMesh() ");
int res = SMESH::HYP_UNKNOWN_FATAL;
SUIT_OverrideCursor wc;
if (!aSubMesh->_is_nil() && ! aHyp->_is_nil()) {
try {
SMESH::SMESH_Mesh_var aMesh = aSubMesh->GetFather();
_PTR(SObject) SsubM = SMESH::FindSObject(aSubMesh);
GEOM::GEOM_Object_var aShapeObject = SMESH::GetShapeOnMeshOrSubMesh(SsubM);
if (!aMesh->_is_nil() && SsubM && !aShapeObject->_is_nil()) {
res = aMesh->AddHypothesis(aShapeObject, aHyp);
if (res < SMESH::HYP_UNKNOWN_FATAL) {
_PTR(SObject) meshSO = SMESH::FindSObject(aMesh);
if (meshSO)
SMESH::ModifiedMesh(meshSO, false, aMesh->NbNodes()==0);
}
if (res > SMESH::HYP_OK) {
wc.suspend();
processHypothesisStatus(res, aHyp, true);
wc.resume();
}
}
else {
SCRUTE(aHyp->_is_nil());
SCRUTE(aMesh->_is_nil());
SCRUTE(!SsubM);
SCRUTE(aShapeObject->_is_nil());
}
}
catch(const SALOME::SALOME_Exception& S_ex) {
wc.suspend();
SalomeApp_Tools::QtCatchCorbaException(S_ex);
res = SMESH::HYP_UNKNOWN_FATAL;
}
}
else {
SCRUTE(aSubMesh->_is_nil());
SCRUTE(aHyp->_is_nil());
}
return res < SMESH::HYP_UNKNOWN_FATAL;
}
| long SMESH.AddNode | ( | SMESH::SMESH_Mesh_ptr | theMesh, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| const QStringList & | theParameters | ||
| ) |
Definition at line 96 of file SMESHGUI_NodesDlg.cxx.
References _PTR(), and GetVisualObj().
Referenced by SMESHGUI_NodesDlg.ClickOnApply().
{
long aNodeId = -1;
SUIT_OverrideCursor wc;
try {
_PTR(SObject) aSobj = SMESH::FindSObject( theMesh );
SMESH::SMESH_MeshEditor_var aMeshEditor = theMesh->GetMeshEditor();
aNodeId = aMeshEditor->AddNode( x, y, z );
theMesh->SetParameters( theParameters.join(":").toLatin1().constData() );
_PTR(Study) aStudy = GetActiveStudyDocument();
CORBA::Long anId = aStudy->StudyId();
if (TVisualObjPtr aVisualObj = SMESH::GetVisualObj( anId, aSobj->GetID().c_str() ) ) {
aVisualObj->Update( true );
}
}
catch ( SALOME::SALOME_Exception& exc ) {
INFOS( "Follow exception was cought:\n\t" << exc.details.text );
}
catch ( const std::exception& exc ) {
INFOS( "Follow exception was cought:\n\t" << exc.what() );
}
catch ( ... ) {
INFOS( "Unknown exception was cought !!!" );
}
return aNodeId;
}
| void SMESH.ClearPlot2Viewers | ( | SUIT_ViewWindow * | theWindow | ) |
Referenced by SMESHGUI.onViewClosed().
| bool SMESH.ComputeClippingPlaneParameters | ( | std::list< vtkActor * > | theActorList, |
| vtkFloatingPointType | theNormal[3], | ||
| vtkFloatingPointType | theDist, | ||
| vtkFloatingPointType | theBounds[6], | ||
| vtkFloatingPointType | theOrigin[3] | ||
| ) |
Referenced by SMESHGUI_ClippingDlg.AddPlane(), and SMESHGUI_ClippingDlg.SetCurrentPlaneParam().
| SMESH_Actor * SMESH::CreateActor | ( | _PTR(Study) | theStudy, |
| const char * | theEntry, | ||
| int | theIsClear | ||
| ) |
Definition at line 594 of file SMESHGUI_VTKUtils.cxx.
References _PTR(), SMESH_controls.aGroup, EDGE, ELEM0D, GetColor(), SMESHGUI.GetSMESHGUI(), GetVisualObj(), MESSAGE, SMESH_Actor.New(), NODE, SMESH_Actor.Set0DColor(), SMESH_Actor.SetEdgeColor(), SMESH_Actor.SetNodeColor(), SMESH_Actor.SetSufaceColor(), and SObjectToObject().
Referenced by SMESHGUI_Displayer.buildPresentation(), SMESHGUI_BuildCompoundDlg.ClickOnApply(), SMESHGUI_MeshPatternDlg.onApply(), and UpdateView().
{
SMESH_Actor *anActor = NULL;
CORBA::Long anId = theStudy->StudyId();
if(TVisualObjPtr aVisualObj = GetVisualObj(anId,theEntry)){
_PTR(SObject) aSObj = theStudy->FindObjectID(theEntry);
if(aSObj){
_PTR(GenericAttribute) anAttr;
if(aSObj->FindAttribute(anAttr,"AttributeName")){
_PTR(AttributeName) aName = anAttr;
std::string aNameVal = aName->Value();
anActor = SMESH_Actor::New(aVisualObj,theEntry,aNameVal.c_str(),theIsClear);
}
SMESH::SMESH_GroupBase_var aGroup = SMESH::SMESH_GroupBase::_narrow( SMESH::SObjectToObject( aSObj ));
if(!CORBA::is_nil(aGroup) && anActor)
{
SALOMEDS::Color aColor = aGroup->GetColor();
if( !( aColor.R > 0 || aColor.G > 0 || aColor.B > 0 ) )
{
int r = 0, g = 0, b = 0;
SMESH::GetColor( "SMESH", "fill_color", r, g, b, QColor( 0, 170, 255 ) );
aColor.R = (float)r / 255.0;
aColor.G = (float)g / 255.0;
aColor.B = (float)b / 255.0;
aGroup->SetColor( aColor );
}
if( aGroup->GetType() == SMESH::NODE )
anActor->SetNodeColor( aColor.R, aColor.G, aColor.B );
else if( aGroup->GetType() == SMESH::EDGE )
anActor->SetEdgeColor( aColor.R, aColor.G, aColor.B );
else if( aGroup->GetType() == SMESH::ELEM0D )
anActor->Set0DColor( aColor.R, aColor.G, aColor.B );
else
anActor->SetSufaceColor( aColor.R, aColor.G, aColor.B );
}
}
}
MESSAGE("CreateActor " << anActor);
if( anActor )
if( SMESHGUI* aSMESHGUI = SMESHGUI::GetSMESHGUI() )
aSMESHGUI->addActorAsObserver( anActor );
return anActor;
}
| SMESH::SMESH_Hypothesis_ptr SMESH::CreateHypothesis | ( | const QString & | aHypType, |
| const QString & | aHypName, | ||
| const bool | isAlgo | ||
| ) |
Definition at line 456 of file SMESHGUI_HypothesesUtils.cxx.
References _PTR(), GetHypothesisData(), SMESHGUI.GetSMESHGen(), SMESHGUI.GetSMESHGUI(), MESSAGE, SMESHGUI.Modified(), and SetName().
Referenced by SMESHGUI_GenericHypothesisCreator.create(), SMESHGUI_MeshOp.createHypothesis(), and SMESHGUI_MeshOp.getAlgo().
{
if(MYDEBUG) MESSAGE("Create " << aHypType.toLatin1().data() <<
" with name " << aHypName.toLatin1().data());
HypothesisData* aHypData = GetHypothesisData(aHypType);
QString aServLib = aHypData->ServerLibName;
try {
SMESH::SMESH_Hypothesis_var aHypothesis;
aHypothesis = SMESHGUI::GetSMESHGen()->CreateHypothesis(aHypType.toLatin1().data(),
aServLib.toLatin1().data());
if (!aHypothesis->_is_nil()) {
_PTR(SObject) aHypSObject = SMESH::FindSObject(aHypothesis.in());
if (aHypSObject) {
if (!aHypName.isEmpty())
SMESH::SetName(aHypSObject, aHypName);
SMESHGUI::Modified();
SMESHGUI::GetSMESHGUI()->updateObjBrowser();
return aHypothesis._retn();
}
}
} catch (const SALOME::SALOME_Exception & S_ex) {
SalomeApp_Tools::QtCatchCorbaException(S_ex);
}
return SMESH::SMESH_Hypothesis::_nil();
}
| TInterface::_var_type SMESH.DataOwnerToInterface | ( | const LightApp_DataOwnerPtr & | theDataOwner | ) |
Definition at line 88 of file SMESHGUI_Utils.h.
References DataOwnerToObject().
{
CORBA::Object_var anObj = DataOwnerToObject(theDataOwner);
if(!CORBA::is_nil(anObj))
return TInterface::_narrow(anObj);
return TInterface::_nil();
}
| CORBA::Object_var SMESH::DataOwnerToObject | ( | const LightApp_DataOwnerPtr & | theOwner | ) |
Definition at line 80 of file SMESHGUI_Utils.cxx.
References _PTR(), Handle(), and SObjectToObject().
Referenced by DataOwnerToInterface().
{
CORBA::Object_var anObj;
if(theOwner){
const Handle(SALOME_InteractiveObject)& anIO = theOwner->IO();
if(!anIO.IsNull()){
if(anIO->hasEntry()){
_PTR(Study) aStudy = GetActiveStudyDocument();
_PTR(SObject) aSObj = aStudy->FindObjectID(anIO->getEntry());
anObj = SObjectToObject(aSObj,aStudy);
}
}
}
return anObj;
}
| static QString SMESH.demangledHypoSetName | ( | QString | name | ) | [static] |
Removes dimension and '[custom]' from the name of hypothesis set.
Definition at line 158 of file SMESHGUI_HypothesesUtils.cxx.
References ex21_lamp.name.
Referenced by GetHypothesesSet().
| void SMESH::DisplayActor | ( | SUIT_ViewWindow * | theWnd, |
| SMESH_Actor * | theActor | ||
| ) |
Definition at line 642 of file SMESHGUI_VTKUtils.cxx.
References GetVtkViewWindow(), MESSAGE, and OnVisuException().
Referenced by SMESHGUI_Displayer.buildPresentation(), SMESHGUI_BuildCompoundDlg.ClickOnApply(), SMESHGUI_MeshPatternDlg.onApply(), and UpdateView().
{
if(SVTK_ViewWindow* vtkWnd = GetVtkViewWindow(theWnd)){
try {
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
OCC_CATCH_SIGNALS;
#endif
MESSAGE("DisplayActor " << theActor);
vtkWnd->AddActor(theActor);
vtkWnd->Repaint();
}
catch (...) {
#ifdef _DEBUG_
MESSAGE ( "Exception in SMESHGUI_VTKUtils::DisplayActor()" );
#endif
OnVisuException();
}
}
}
| T SMESH.DownCast | ( | CORBA::Object_ptr | theArg | ) |
Definition at line 575 of file SMESH_Gen_i.hxx.
References SMESH_Gen_i.GetServant().
Referenced by _pyMesh.Flush(), SMESH_MesherHelper.GetMiddleUV(), Handle(), isCorrectArg(), SMESHGUI_MultiEditDlg.isIdValid(), SMESHGUI.restoreVisualParameters(), and VISCOUS._ViscousBuilder.smoothAnalyticEdge().
{
return dynamic_cast<T>(SMESH_Gen_i::GetServant(theArg).in());
}
| void SMESH.DumpArray | ( | const TArray & | theArray, |
| TPythonDump & | theStream | ||
| ) |
Definition at line 153 of file SMESH_DumpPython.cxx.
Referenced by SMESH.TPythonDump.operator<<().
{
theStream << "[ ";
for (int i = 1; i <= theArray.length(); i++) {
theStream << theArray[i-1];
if ( i < theArray.length() )
theStream << ", ";
}
theStream << " ]";
}
| QString SMESH.errorText | ( | int | errCode, |
| const char * | comment | ||
| ) |
Definition at line 336 of file SMESHGUI_ComputeDlg.cxx.
References CASE2TEXT, COMPERR_ALGO_FAILED, COMPERR_BAD_INPUT_MESH, COMPERR_BAD_SHAPE, COMPERR_EXCEPTION, COMPERR_MEMORY_PB, COMPERR_OCC_EXCEPTION, COMPERR_OK, COMPERR_SLM_EXCEPTION, and COMPERR_STD_EXCEPTION.
Referenced by SMESHGUI_BaseComputeOp.showComputeResult(), and SMESHGUI_BaseComputeOp.showEvaluateResult().
{
QString text;
switch ( errCode ) {
CASE2TEXT( COMPERR_OK );
CASE2TEXT( COMPERR_BAD_INPUT_MESH);
CASE2TEXT( COMPERR_STD_EXCEPTION );
CASE2TEXT( COMPERR_OCC_EXCEPTION );
case SMESH::COMPERR_SLM_EXCEPTION: break; // avoid double "Salome exception"
CASE2TEXT( COMPERR_EXCEPTION );
CASE2TEXT( COMPERR_MEMORY_PB );
CASE2TEXT( COMPERR_BAD_SHAPE );
case SMESH::COMPERR_ALGO_FAILED:
if ( strlen(comment) == 0 )
text = QObject::tr("COMPERR_ALGO_FAILED");
break;
default:
text = QString("#%1").arg( -errCode );
}
if ( text.length() > 0 ) text += ". ";
return text + comment;
}
| SMESH_Actor * SMESH::FindActorByEntry | ( | SUIT_ViewWindow * | theWindow, |
| const char * | theEntry | ||
| ) |
Definition at line 548 of file SMESHGUI_VTKUtils.cxx.
References GetVtkViewWindow(), and Handle().
Referenced by AutoColor(), SMESHGUI_Displayer.buildPresentation(), SMESHGUI_Make2DFrom3DOp.compute2DMesh(), Control(), SMESHGUI_FilterDlg.filterSelectionSource(), FindActorByEntry(), FindActorByObject(), SMESHGUI_Selection.isVisible(), SMESHGUI_MeshPatternDlg.onApply(), SMESHGUI_GroupDlg.onApply(), SMESHGUI.OnEditDelete(), SMESHGUI.OnGUIEvent(), SMESHGUI_TransparencyDlg.onSelectionChanged(), SMESHGUI_Preferences_ScalarBarDlg.onSelectionChanged(), SMESHGUI_SingleEditDlg.onSelectionDone(), SMESHGUI_MultiEditDlg.onSelectionDone(), SMESHGUI_MoveNodesDlg.onSelectionDone(), SMESHGUI_MakeNodeAtPointOp.onSelectionDone(), PlotDistribution(), RemoveVisualObjectWithActors(), SMESHGUI.renameObject(), SaveDistribution(), SMESHGUI_BoundingBox.selectionChanged(), SMESHGUI_MinDistance.selectionChanged(), SMESHGUI_WhatIsDlg.SelectionIntoArgument(), SMESHGUI_TranslationDlg.SelectionIntoArgument(), SMESHGUI_SymmetryDlg.SelectionIntoArgument(), SMESHGUI_SewingDlg.SelectionIntoArgument(), SMESHGUI_ScaleDlg.SelectionIntoArgument(), SMESHGUI_RotationDlg.SelectionIntoArgument(), SMESHGUI_RevolutionDlg.SelectionIntoArgument(), SMESHGUI_RemoveNodesDlg.SelectionIntoArgument(), SMESHGUI_RemoveElementsDlg.SelectionIntoArgument(), SMESHGUI_MergeDlg.SelectionIntoArgument(), SMESHGUI_CopyMeshDlg.SelectionIntoArgument(), SMESHGUI_AddQuadraticElementDlg.SelectionIntoArgument(), SMESHGUI_AddMeshElementDlg.SelectionIntoArgument(), SetDisplayEntity(), SetDisplayMode(), SMESHGUI_TransparencyDlg.SetTransparency(), ShowDistribution(), SMESHGUI_MeshInfoDlg.showInfo(), and UpdateView().
{
if(SVTK_ViewWindow* aViewWindow = GetVtkViewWindow(theWindow)){
vtkRenderer *aRenderer = aViewWindow->getRenderer();
VTK::ActorCollectionCopy aCopy(aRenderer->GetActors());
vtkActorCollection *aCollection = aCopy.GetActors();
aCollection->InitTraversal();
while(vtkActor *anAct = aCollection->GetNextActor()){
if(SMESH_Actor *anActor = dynamic_cast<SMESH_Actor*>(anAct)){
if(anActor->hasIO()){
Handle(SALOME_InteractiveObject) anIO = anActor->getIO();
if(anIO->hasEntry() && strcmp(anIO->getEntry(),theEntry) == 0){
return anActor;
}
}
}
}
}
return NULL;
}
| SMESH_Actor * SMESH::FindActorByEntry | ( | const char * | theEntry | ) |
Definition at line 571 of file SMESHGUI_VTKUtils.cxx.
References FindActorByEntry(), and GetActiveWindow().
{
return FindActorByEntry(GetActiveWindow(),theEntry);
}
| SMESH_Actor * SMESH::FindActorByObject | ( | CORBA::Object_ptr | theObject | ) |
Definition at line 576 of file SMESHGUI_VTKUtils.cxx.
References _PTR(), and FindActorByEntry().
Referenced by SMESHGUI_MeshPatternDlg.activateSelection(), SMESHGUI_SelectionOp.actor(), SMESHGUI_CreatePolyhedralVolumeDlg.checkEditLine(), SMESHGUI_RenumberingDlg.ClickOnApply(), SMESHGUI_MeshPatternDlg.displayPreview(), SMESHGUI_ShapeByMeshOp.onElemIdChanged(), SMESHGUI_MultiEditDlg.onListSelectionChanged(), SMESHGUI_GroupDlg.onObjectSelectionChanged(), SMESHGUI_MultiEditDlg.onSelectionDone(), SMESHGUI_ExtrusionAlongPathDlg.onTextChange(), SMESHGUI_MeshPatternDlg.onTextChanged(), SMESHGUI_GroupDlg.restoreShowEntityMode(), SMESHGUI_FilterDlg.selectInViewer(), SMESHGUI_WhatIsDlg.SelectionIntoArgument(), SMESHGUI_TranslationDlg.SelectionIntoArgument(), SMESHGUI_SymmetryDlg.SelectionIntoArgument(), SMESHGUI_SmoothingDlg.SelectionIntoArgument(), SMESHGUI_ScaleDlg.SelectionIntoArgument(), SMESHGUI_RotationDlg.SelectionIntoArgument(), SMESHGUI_RevolutionDlg.SelectionIntoArgument(), SMESHGUI_NodesDlg.SelectionIntoArgument(), SMESHGUI_MergeDlg.SelectionIntoArgument(), SMESHGUI_ExtrusionDlg.SelectionIntoArgument(), SMESHGUI_ExtrusionAlongPathDlg.SelectionIntoArgument(), SMESHGUI_CreatePolyhedralVolumeDlg.SelectionIntoArgument(), SMESHGUI_CopyMeshDlg.SelectionIntoArgument(), SMESHGUI_GroupDlg.SetAppropriateActor(), SMESHGUI_ExtrusionAlongPathDlg.SetEditCurrentArgument(), and SMESHGUI_GroupDlg.setShowEntityMode().
{
SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>( SUIT_Session::session()->activeApplication() );
if( !app )
return NULL;
if(!CORBA::is_nil(theObject)){
_PTR(Study) aStudy = GetActiveStudyDocument();
CORBA::String_var anIOR = app->orb()->object_to_string( theObject );
_PTR(SObject) aSObject = aStudy->FindObjectIOR(anIOR.in());
if(aSObject){
CORBA::String_var anEntry = aSObject->GetID().c_str();
return FindActorByEntry(anEntry.in());
}
}
return NULL;
}
| SVTK_ViewWindow * SMESH::FindVtkViewWindow | ( | SUIT_ViewManager * | theMgr, |
| SUIT_ViewWindow * | theWindow | ||
| ) |
Definition at line 441 of file SMESHGUI_VTKUtils.cxx.
References GetVtkViewWindow().
Referenced by SMESH.TShapeDisplayer.hasViewWindow(), and SMESH.TElementSimulation.~TElementSimulation().
{
if( !theMgr )
return NULL;
QVector<SUIT_ViewWindow*> views = theMgr->getViews();
if( views.contains( theWindow ) )
return GetVtkViewWindow( theWindow );
else
return NULL;
}
| void SMESH::FitAll | ( | ) |
Definition at line 529 of file SMESHGUI_VTKUtils.cxx.
References GetCurrentVtkView(), MESSAGE, and OnVisuException().
Referenced by SMESHGUI_MeshPatternDlg.onApply(), and UpdateView().
{
if(SVTK_ViewWindow* wnd = GetCurrentVtkView() ){
try {
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
OCC_CATCH_SIGNALS;
#endif
wnd->onFitAll();
wnd->Repaint();
}
catch (...) {
#ifdef _DEBUG_
MESSAGE ( "Exception in SMESHGUI_VTKUtils::FitAll()" );
#endif
OnVisuException();
}
}
}
| SUIT_Study * SMESH::GetActiveStudy | ( | ) |
Definition at line 96 of file SMESHGUI_Utils.cxx.
Referenced by _PTR(), and UpdateView().
{
SUIT_Application* app = SUIT_Session::session()->activeApplication();
if (app)
return app->activeStudy();
else
return NULL;
}
| SUIT_ViewWindow * SMESH::GetActiveWindow | ( | ) |
Definition at line 105 of file SMESHGUI_Utils.cxx.
Referenced by SMESHGUI_BuildCompoundDlg.ClickOnApply(), FindActorByEntry(), GetCurrentVtkView(), and SMESHGUI_MeshPatternDlg.onApply().
{
SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>
(SUIT_Session::session()->activeApplication());
if (app && app->desktop() )
return app->desktop()->activeWindow();
else
return NULL;
}
| SalomeApp_Study* SMESH.GetAppStudy | ( | const CAM_Module * | ) |
| QStringList SMESH::GetAvailableHypotheses | ( | const bool | isAlgo, |
| const int | theDim, | ||
| const bool | isAux, | ||
| const bool | isNeedGeometry | ||
| ) |
Definition at line 260 of file SMESHGUI_HypothesesUtils.cxx.
References InitAvailableHypotheses(), HypothesisData.IsAux, HypothesisData.IsNeedGeometry, myAlgorithmsMap, and myHypothesesMap.
Referenced by SMESHGUI_MeshOp.availableHyps(), and StdMeshersGUI_LayerDistributionParamWdg.init().
{
QStringList aHypList;
// Init list of available hypotheses, if needed
InitAvailableHypotheses();
bool checkGeometry = ( !isNeedGeometry && isAlgo );
// fill list of hypotheses/algorithms
THypothesisDataMap& pMap = isAlgo ? myAlgorithmsMap : myHypothesesMap;
THypothesisDataMap::iterator anIter;
for ( anIter = pMap.begin(); anIter != pMap.end(); anIter++ ) {
HypothesisData* aData = anIter.value();
if ( ( theDim < 0 || aData->Dim.contains( theDim ) ) && aData->IsAux == isAux) {
if (checkGeometry) {
if (aData->IsNeedGeometry == isNeedGeometry)
aHypList.append(anIter.key());
}
else {
aHypList.append(anIter.key());
}
}
}
return aHypList;
}
| void SMESH::GetColor | ( | const QString & | theSect, |
| const QString & | theName, | ||
| int & | r, | ||
| int & | g, | ||
| int & | b, | ||
| const QColor & | def | ||
| ) |
Definition at line 110 of file SMESH_ActorUtils.cxx.
{
QColor c = def;
SUIT_ResourceMgr* mgr = SUIT_Session::session()->resourceMgr();
if ( mgr )
c = mgr->colorValue( theSect, theName, def );
SUIT_Tools::rgbSet( SUIT_Tools::rgbSet( c ), r, g, b );
}
| QColor SMESH::GetColor | ( | const QString & | theSect, |
| const QString & | theName, | ||
| const QColor & | def | ||
| ) |
Definition at line 98 of file SMESH_ActorUtils.cxx.
Referenced by CreateActor(), GetColor(), SMESH.OrientedPlane.Init(), SMESH.TElementSimulation.TElementSimulation(), SMESH.TNodeSimulation.TNodeSimulation(), and SMESH.TPolySimulation.TPolySimulation().
{
QColor c = def;
SUIT_ResourceMgr* mgr = SUIT_Session::session()->resourceMgr();
if ( mgr )
c = mgr->colorValue( theSect, theName, def );
return c;
}
| void SMESH::GetColor | ( | const QString & | theSect, |
| const QString & | theName, | ||
| vtkFloatingPointType & | r, | ||
| vtkFloatingPointType & | g, | ||
| vtkFloatingPointType & | b, | ||
| const QColor & | def | ||
| ) |
Definition at line 126 of file SMESH_ActorUtils.cxx.
References GetColor(), and SMESH_test.ir.
| SMESH::GetCStudy | ( | const SalomeApp_Study * | theStudy | ) |
Definition at line 74 of file SMESHGUI_Utils.cxx.
{
return theStudy->studyDS();
}
| SVTK_ViewWindow * SMESH::GetCurrentVtkView | ( | ) |
Definition at line 470 of file SMESHGUI_VTKUtils.cxx.
References GetActiveWindow(), and GetVtkViewWindow().
Referenced by SMESHGUI_NodesDlg.ClickOnApply(), SMESHGUI_TranslationDlg.ClickOnCancel(), SMESHGUI_SymmetryDlg.ClickOnCancel(), SMESHGUI_SmoothingDlg.ClickOnCancel(), SMESHGUI_ScaleDlg.ClickOnCancel(), SMESHGUI_RotationDlg.ClickOnCancel(), SMESHGUI_RemoveNodesDlg.ClickOnCancel(), SMESHGUI_RemoveElementsDlg.ClickOnCancel(), SMESHGUI_RevolutionDlg.closeEvent(), SMESHGUI_ExtrusionDlg.closeEvent(), SMESHGUI_CuttingOfQuadsDlg.displayPreview(), SMESHGUI_MeshPatternDlg.displayPreview(), SMESHGUI_CuttingOfQuadsDlg.erasePreview(), SMESHGUI_MeshPatternDlg.erasePreview(), FitAll(), SMESHGUI_GroupDlg.IsActorVisible(), SMESHGUI_Selection.isVisible(), SMESHGUI_GroupDlg.onClose(), SMESHGUI_ExtrusionAlongPathDlg.reject(), RepaintCurrentView(), SMESHGUI_GroupDlg.SetAppropriateActor(), and UpdateView().
{
return GetVtkViewWindow( GetActiveWindow() );
}
| SUIT_Desktop * SMESH::GetDesktop | ( | const CAM_Module * | theModule | ) |
Definition at line 56 of file SMESHGUI_Utils.cxx.
Referenced by SMESHGUI_SingleEditDlg.onApply(), and SMESHGUI.OnGUIEvent().
{
return theModule->application()->desktop();
}
| int SMESH.GetEdgeNodes | ( | SVTK_Selector * | , |
| const TVisualObjPtr & | , | ||
| int & | , | ||
| int & | |||
| ) |
Referenced by SMESHGUI_SingleEditDlg.onSelectionDone().
| SMESH::FilterManager_var & SMESH::GetFilterManager | ( | ) |
Definition at line 34 of file SMESHGUI_FilterUtils.cxx.
References SMESHGUI.GetSMESHGen().
Referenced by SMESHGUI_FilterLibraryDlg.createFilter(), SMESHGUI_FilterDlg.createFilter(), SMESHGUI_MultiEditDlg.getNumericalFunctor(), SMESHGUI_GroupDlg.onAdd(), SMESHGUI_FilterLibraryDlg.processNewLibrary(), SMESHGUI.SMESHGUI(), and SMESHGUI.~SMESHGUI().
{
static SMESH::FilterManager_var aFilterManager;
if (CORBA::is_nil(aFilterManager)) {
aFilterManager = SMESHGUI::GetSMESHGen()->CreateFilterManager();
}
return aFilterManager;
}
| vtkFloatingPointType SMESH::GetFloat | ( | const QString & | theValue, |
| const QString & | theSection, | ||
| vtkFloatingPointType | theDefault | ||
| ) |
Definition at line 71 of file SMESH_ActorUtils.cxx.
{
vtkFloatingPointType val = theDefault;
SUIT_ResourceMgr* mgr = SUIT_Session::session()->resourceMgr();
if( mgr )
val = (vtkFloatingPointType) mgr->doubleValue( theSection, theValue, theDefault );
return val;
}
| vtkFloatingPointType SMESH::GetFloat | ( | const QString & | theValue, |
| vtkFloatingPointType | theDefault | ||
| ) |
Definition at line 55 of file SMESH_ActorUtils.cxx.
References ex21_lamp.name.
Referenced by SMESHGUI_MeshPatternDlg.displayPreview(), SMESH_ActorDef.Init(), SMESHGUI_BaseComputeOp.onShowBadMesh(), SMESH_ActorDef.SMESH_ActorDef(), SMESHGUI_MakeNodeAtPointOp.startOperation(), SMESHGUI_FindElemByPointOp.startOperation(), and SMESH.TNodeSimulation.TNodeSimulation().
| GEOM::GEOM_Object_ptr SMESH::GetGeom | ( | _PTR(SObject) | theSO | ) |
Definition at line 81 of file SMESHGUI_GEOMGenUtils.cxx.
References _PTR().
Referenced by SMESHGUI_MeshPatternDlg.onSelectionDone(), SMESHGUI_CreatePatternDlg.onSelectionDone(), SMESHGUI_ShapeByMeshOp.SetMesh(), and SMESHGUI_CreatePatternDlg.SetMesh().
{
if (!theSO)
return GEOM::GEOM_Object::_nil();
_PTR(Study) aStudy = SMESH::GetActiveStudyDocument();
if (!aStudy)
return GEOM::GEOM_Object::_nil();
_PTR(ChildIterator) anIter (aStudy->NewChildIterator(theSO));
for ( ; anIter->More(); anIter->Next()) {
_PTR(SObject) aSObject = anIter->Value();
_PTR(SObject) aRefSOClient;
GEOM::GEOM_Object_var aMeshShape;
if (aSObject->ReferencedObject(aRefSOClient)) {
SALOMEDS_SObject* aRefSO = _CAST(SObject,aRefSOClient);
aMeshShape = GEOM::GEOM_Object::_narrow(aRefSO->GetObject());
} else {
SALOMEDS_SObject* aSO = _CAST(SObject,aSObject);
aMeshShape = GEOM::GEOM_Object::_narrow(aSO->GetObject());
}
if (!aMeshShape->_is_nil())
return aMeshShape._retn();
}
return GEOM::GEOM_Object::_nil();
}
| GEOM::GEOM_Gen_var SMESH::GetGEOMGen | ( | ) |
Definition at line 43 of file SMESHGUI_GEOMGenUtils.cxx.
Referenced by SMESHGUI_ShapeByMeshOp.commitOperation(), SMESHGUI_MeshOp.createSubMesh(), elementType(), GetSubShape(), SMESHGUI_MeshOp.isSubshapeOk(), SMESHGUI_GroupDlg.onAdd(), SMESHGUI_GroupDlg.onApply(), SMESHGUI_GroupDlg.onObjectSelectionChanged(), and SMESHGUI_BaseComputeOp.onPublishShape().
{
static GEOM::GEOM_Gen_var aGEOMGen;
if(CORBA::is_nil(aGEOMGen)) {
if ( GeometryGUI::GetGeomGen()->_is_nil() )
GeometryGUI::InitGeomGen();
aGEOMGen = GeometryGUI::GetGeomGen();
}
return aGEOMGen;
}
| HypothesesSet * SMESH::GetHypothesesSet | ( | const QString & | theSetName | ) |
Definition at line 318 of file SMESHGUI_HypothesesUtils.cxx.
References demangledHypoSetName(), myListOfHypothesesSets, HypothesesSet.name(), and ex21_lamp.name.
Referenced by SMESHGUI_MeshOp.onHypoSet().
{
QString name = demangledHypoSetName( theSetName );
QList<HypothesesSet*>::iterator hypoSet;
for ( hypoSet = myListOfHypothesesSets.begin();
hypoSet != myListOfHypothesesSets.end();
++hypoSet ) {
HypothesesSet* aSet = *hypoSet;
if ( aSet && aSet->name() == name )
return aSet;
}
return 0;
}
| QStringList SMESH::GetHypothesesSets | ( | int | maxDim | ) |
Definition at line 289 of file SMESHGUI_HypothesesUtils.cxx.
References HypothesesSet.count(), InitAvailableHypotheses(), mangledHypoSetName(), HypothesesSet.maxDim(), and myListOfHypothesesSets.
Referenced by SMESHGUI_MeshOp.selectionDone().
{
QStringList aSetNameList;
// Init list of available hypotheses, if needed
InitAvailableHypotheses();
QList<HypothesesSet*>::iterator hypoSet;
for ( hypoSet = myListOfHypothesesSets.begin();
hypoSet != myListOfHypothesesSets.end();
++hypoSet ) {
HypothesesSet* aSet = *hypoSet;
if ( aSet &&
( aSet->count( true ) || aSet->count( false )) &&
aSet->maxDim() <= maxDim)
{
aSetNameList.append( mangledHypoSetName( aSet ));
}
}
aSetNameList.sort();
// reverse order of aSetNameList
QStringList reversedNames;
for ( int i = 0; i < aSetNameList.count(); ++i )
reversedNames.prepend( aSetNameList[i] );
return reversedNames;
}
| SMESHGUI_GenericHypothesisCreator * SMESH::GetHypothesisCreator | ( | const QString & | aHypType | ) |
Definition at line 381 of file SMESHGUI_HypothesesUtils.cxx.
References HypothesisData.ClientLibName, GetHypothesisData(), GetProc, InitAvailableHypotheses(), LibHandle, LoadLib, MESSAGE, HypothesisData.ServerLibName, and UnLoadLib.
Referenced by SMESHGUI_MeshOp.createHypothesis(), SMESH_Gen_i.createHypothesis(), SMESHGUI_MeshOp.getAlgo(), StdMeshersGUI_LayerDistributionParamWdg.onEdit(), SMESHGUI_MeshOp.onEditHyp(), and SMESHGUI.OnGUIEvent().
{
if(MYDEBUG) MESSAGE("Get HypothesisCreator for " << aHypType.toLatin1().data());
SMESHGUI_GenericHypothesisCreator* aCreator = 0;
// check, if creator for this hypothesis type already exists
// BUG 0020378
//if (myHypCreatorMap.find(aHypType) != myHypCreatorMap.end()) {
// aCreator = myHypCreatorMap[aHypType];
//}
//else
{
// 1. Init list of available hypotheses, if needed
InitAvailableHypotheses();
// 2. Get names of plugin libraries
HypothesisData* aHypData = GetHypothesisData(aHypType);
if (!aHypData)
return aCreator;
QString aClientLibName = aHypData->ClientLibName;
QString aServerLibName = aHypData->ServerLibName;
// 3. Load Client Plugin Library
try {
// load plugin library
if(MYDEBUG) MESSAGE("Loading client meshers plugin library ...");
LibHandle libHandle = LoadLib( aClientLibName.toLatin1().data() );
if (!libHandle) {
// report any error, if occured
if ( MYDEBUG ) {
#ifdef WIN32
const char* anError = "Can't load client meshers plugin library";
#else
const char* anError = dlerror();
#endif
MESSAGE(anError);
}
}
else {
// get method, returning hypothesis creator
if(MYDEBUG) MESSAGE("Find GetHypothesisCreator() method ...");
typedef SMESHGUI_GenericHypothesisCreator* (*GetHypothesisCreator) \
( const QString& );
GetHypothesisCreator procHandle =
(GetHypothesisCreator)GetProc(libHandle, "GetHypothesisCreator");
if (!procHandle) {
if(MYDEBUG) MESSAGE("bad hypothesis client plugin library");
UnLoadLib(libHandle);
}
else {
// get hypothesis creator
if(MYDEBUG) MESSAGE("Get Hypothesis Creator for " << aHypType.toLatin1().data());
aCreator = procHandle( aHypType );
if (!aCreator) {
if(MYDEBUG) MESSAGE("no such a hypothesis in this plugin");
}
else {
// map hypothesis creator to a hypothesis name
// BUG 0020378
//myHypCreatorMap[aHypType] = aCreator;
}
}
}
}
catch (const SALOME::SALOME_Exception& S_ex) {
SalomeApp_Tools::QtCatchCorbaException(S_ex);
}
}
return aCreator;
}
| HypothesisData * SMESH::GetHypothesisData | ( | const QString & | aHypType | ) |
Definition at line 332 of file SMESHGUI_HypothesesUtils.cxx.
References InitAvailableHypotheses(), myAlgorithmsMap, and myHypothesesMap.
Referenced by SMESHGUI_MeshOp.availableHyps(), SMESHGUI_MeshOp.createHypothesis(), CreateHypothesis(), SMESHGUI_MeshOp.existingHyps(), SMESHGUI_MeshOp.getAlgo(), GetHypothesisCreator(), StdMeshersGUI_LayerDistributionParamWdg.init(), SMESHGUI_MeshOp.isSubmeshIgnored(), HypothesesSet.maxDim(), SMESHGUI_MeshOp.onAlgoSelected(), StdMeshersGUI_LayerDistributionParamWdg.onHypTypePopup(), processHypothesisStatus(), SMESHGUI_MeshOp.processSet(), SMESHGUI_MeshOp.readMesh(), and StdMeshersGUI_StdHypothesisCreator.stdParams().
{
HypothesisData* aHypData = 0;
// Init list of available hypotheses, if needed
InitAvailableHypotheses();
if (myHypothesesMap.find(aHypType) != myHypothesesMap.end()) {
aHypData = myHypothesesMap[aHypType];
}
else if (myAlgorithmsMap.find(aHypType) != myAlgorithmsMap.end()) {
aHypData = myAlgorithmsMap[aHypType];
}
return aHypData;
}
| SMESH::Measurements_var & SMESH::GetMeasurements | ( | ) |
Definition at line 128 of file SMESHGUI_MeshUtils.cxx.
References SMESHGUI.GetSMESHGen().
Referenced by SMESHGUI.SMESHGUI(), and SMESHGUI.~SMESHGUI().
{
static SMESH::Measurements_var aMeasurements;
if (CORBA::is_nil(aMeasurements)) {
aMeasurements = SMESHGUI::GetSMESHGen()->CreateMeasurements();
}
return aMeasurements;
}
| SMESH_Mesh_var SMESH::GetMeshByIO | ( | const Handle(SALOME_InteractiveObject)& | theIO | ) |
Definition at line 46 of file SMESHGUI_MeshUtils.cxx.
References SMESH_controls.aGroup, and IObjectToObject().
Referenced by SMESHGUI_StandardMeshInfosDlg.DumpMeshInfos(), SMESHGUI_BaseComputeOp.getMesh(), SMESHGUI_MeshOrderOp.initDialog(), SMESHGUI_SelectionOp.mesh(), SMESHGUI_SingleEditDlg.onApply(), SMESHGUI_MoveNodesDlg.onApply(), SMESHGUI_MakeNodeAtPointOp.onApply(), SMESHGUI.OnGUIEvent(), SMESHGUI_ShapeByMeshOp.onSelectionDone(), SMESHGUI_MultiEditDlg.onSelectionDone(), SMESHGUI_FindElemByPointOp.onSelectionDone(), SMESHGUI_MakeNodeAtPointOp.redisplayPreview(), SMESHGUI_WhatIsDlg.SelectionIntoArgument(), SMESHGUI_TranslationDlg.SelectionIntoArgument(), SMESHGUI_SymmetryDlg.SelectionIntoArgument(), SMESHGUI_SmoothingDlg.SelectionIntoArgument(), SMESHGUI_SewingDlg.SelectionIntoArgument(), SMESHGUI_ScaleDlg.SelectionIntoArgument(), SMESHGUI_RotationDlg.SelectionIntoArgument(), SMESHGUI_RevolutionDlg.SelectionIntoArgument(), SMESHGUI_RemoveNodesDlg.SelectionIntoArgument(), SMESHGUI_RemoveElementsDlg.SelectionIntoArgument(), SMESHGUI_NodesDlg.SelectionIntoArgument(), SMESHGUI_MergeDlg.SelectionIntoArgument(), SMESHGUI_ExtrusionDlg.SelectionIntoArgument(), SMESHGUI_ExtrusionAlongPathDlg.SelectionIntoArgument(), SMESHGUI_CreatePolyhedralVolumeDlg.SelectionIntoArgument(), SMESHGUI_CopyMeshDlg.SelectionIntoArgument(), SMESHGUI_AddQuadraticElementDlg.SelectionIntoArgument(), SMESHGUI_AddMeshElementDlg.SelectionIntoArgument(), and SMESHGUI_BaseComputeOp.startOperation().
{
CORBA::Object_var anObj = IObjectToObject(theIO);
if(!CORBA::is_nil(anObj)){
SMESH_Mesh_var aMesh = SMESH_Mesh::_narrow(anObj);
if(!CORBA::is_nil(aMesh))
return aMesh;
SMESH_GroupBase_var aGroup = SMESH_GroupBase::_narrow(anObj);
if(!CORBA::is_nil(aGroup))
return aGroup->GetMesh();
SMESH_subMesh_var aSubMesh = SMESH_subMesh::_narrow(anObj);
if(!CORBA::is_nil(aSubMesh))
return aSubMesh->GetFather();
}
return SMESH_Mesh::_nil();
}
| SObjectList SMESH::GetMeshesUsingAlgoOrHypothesis | ( | SMESH::SMESH_Hypothesis_ptr | AlgoOrHyp | ) |
Definition at line 648 of file SMESHGUI_HypothesesUtils.cxx.
References _PTR(), SMESHGUI.activeStudy(), and MESSAGE.
Referenced by SMESHGUI_GenericHypothesisCreator.onDialogFinished(), and RemoveHypothesisOrAlgorithmOnMesh().
{
SObjectList listSOmesh;
listSOmesh.resize(0);
unsigned int index = 0;
if (!AlgoOrHyp->_is_nil()) {
_PTR(SObject) SO_Hypothesis = SMESH::FindSObject(AlgoOrHyp);
if (SO_Hypothesis) {
SObjectList listSO =
SMESHGUI::activeStudy()->studyDS()->FindDependances(SO_Hypothesis);
if(MYDEBUG) MESSAGE("SMESHGUI::GetMeshesUsingAlgoOrHypothesis(): dependency number ="<<listSO.size());
for (unsigned int i = 0; i < listSO.size(); i++) {
_PTR(SObject) SO = listSO[i];
if (SO) {
_PTR(SObject) aFather = SO->GetFather();
if (aFather) {
_PTR(SObject) SOfatherFather = aFather->GetFather();
if (SOfatherFather) {
if(MYDEBUG) MESSAGE("SMESHGUI::GetMeshesUsingAlgoOrHypothesis(): dependency added to list");
index++;
listSOmesh.resize(index);
listSOmesh[index - 1] = SOfatherFather;
}
}
}
}
}
}
if (MYDEBUG) MESSAGE("SMESHGUI::GetMeshesUsingAlgoOrHypothesis(): completed");
return listSOmesh;
}
| QString SMESH::GetMessageOnAlgoStateErrors | ( | const algo_error_array & | errors | ) |
Definition at line 683 of file SMESHGUI_HypothesesUtils.cxx.
References SMESH.AlgoStateError.algoDim, SMESH.AlgoStateError.algoName, CASE2MESSAGE, HYP_BAD_GEOMETRY, HYP_BAD_PARAMETER, HYP_MISSING, HYP_NOTCONFORM, SMESH.AlgoStateError.isGlobalAlgo, and SMESH.AlgoStateError.state.
Referenced by SMESHGUI_BaseComputeOp.computeMesh(), SMESHGUI_BaseComputeOp.evaluateMesh(), and SMESHGUI_PrecomputeOp.onPreview().
{
QString resMsg; // PAL14861 = QObject::tr("SMESH_WRN_MISSING_PARAMETERS") + ":\n";
for ( int i = 0; i < errors.length(); ++i ) {
const SMESH::AlgoStateError & error = errors[ i ];
const bool hasAlgo = ( strlen( error.algoName ) != 0 );
QString msg;
if ( !hasAlgo )
msg = QObject::tr( "STATE_ALGO_MISSING" );
else
switch( error.state ) {
CASE2MESSAGE( HYP_MISSING );
CASE2MESSAGE( HYP_NOTCONFORM );
CASE2MESSAGE( HYP_BAD_PARAMETER );
CASE2MESSAGE( HYP_BAD_GEOMETRY );
default: continue;
}
// apply args to message:
// %1 - algo name
if ( hasAlgo )
msg = msg.arg( error.algoName.in() );
// %2 - dimension
msg = msg.arg( error.algoDim );
// %3 - global/local
msg = msg.arg( QObject::tr( error.isGlobalAlgo ? "GLOBAL_ALGO" : "LOCAL_ALGO" ));
// %4 - hypothesis dim == algoDim
msg = msg.arg( error.algoDim );
if ( i ) resMsg += ";\n";
resMsg += msg;
}
return resMsg;
}
| int SMESH.GetNameOfSelectedElements | ( | SVTK_Selector * | , |
| const Handle(SALOME_InteractiveObject)& | , | ||
| QString & | |||
| ) |
Referenced by SMESHGUI_GroupDlg.onAdd(), SMESHGUI_GroupDlg.onObjectSelectionChanged(), SMESHGUI_ShapeByMeshOp.onSelectionDone(), SMESHGUI_MultiEditDlg.onSelectionDone(), SMESHGUI_MeshPatternDlg.onSelectionDone(), SMESHGUI_MakeNodeAtPointOp.onSelectionDone(), SMESHGUI_FilterDlg.onSelectionDone(), SMESHGUI_BoundingBox.selectionChanged(), SMESHGUI_MinDistance.selectionChanged(), SMESHGUI_WhatIsDlg.SelectionIntoArgument(), SMESHGUI_TranslationDlg.SelectionIntoArgument(), SMESHGUI_SymmetryDlg.SelectionIntoArgument(), SMESHGUI_SewingDlg.SelectionIntoArgument(), SMESHGUI_ScaleDlg.SelectionIntoArgument(), SMESHGUI_RotationDlg.SelectionIntoArgument(), SMESHGUI_RevolutionDlg.SelectionIntoArgument(), SMESHGUI_RemoveElementsDlg.SelectionIntoArgument(), SMESHGUI_ExtrusionAlongPathDlg.SelectionIntoArgument(), SMESHGUI_CreatePolyhedralVolumeDlg.SelectionIntoArgument(), SMESHGUI_CopyMeshDlg.SelectionIntoArgument(), and SMESHGUI_MeshInfoDlg.showInfo().
| int SMESH.GetNameOfSelectedElements | ( | LightApp_SelectionMgr * | , |
| const Handle(SALOME_InteractiveObject)& | , | ||
| QString & | |||
| ) |
| int SMESH.GetNameOfSelectedElements | ( | LightApp_SelectionMgr * | , |
| QString & | |||
| ) |
| int SMESH::GetNameOfSelectedIObjects | ( | LightApp_SelectionMgr * | theMgr, |
| QString & | theName | ||
| ) |
Definition at line 243 of file SMESHGUI_Utils.cxx.
References Handle().
Referenced by SMESHGUI_StandardMeshInfosDlg.DumpMeshInfos(), SMESHGUI_MultiEditDlg.onSelectionDone(), SMESHGUI_MeshPatternDlg.onSelectionDone(), SMESHGUI_CreatePatternDlg.onSelectionDone(), SMESHGUI_BoundingBox.selectionChanged(), SMESHGUI_MinDistance.selectionChanged(), SMESHGUI_TranslationDlg.SelectionIntoArgument(), SMESHGUI_SymmetryDlg.SelectionIntoArgument(), SMESHGUI_SmoothingDlg.SelectionIntoArgument(), SMESHGUI_ScaleDlg.SelectionIntoArgument(), SMESHGUI_RotationDlg.SelectionIntoArgument(), SMESHGUI_RevolutionDlg.SelectionIntoArgument(), SMESHGUI_RenumberingDlg.SelectionIntoArgument(), SMESHGUI_MergeDlg.SelectionIntoArgument(), SMESHGUI_ExtrusionDlg.SelectionIntoArgument(), SMESHGUI_ExtrusionAlongPathDlg.SelectionIntoArgument(), SMESHGUI_CopyMeshDlg.SelectionIntoArgument(), and SMESHGUI_BuildCompoundDlg.SelectionIntoArgument().
{
if (!theMgr)
return 0;
SALOME_ListIO selected;
theMgr->selectedObjects(selected);
int aNbSel = selected.Extent();
if (aNbSel == 1) {
Handle(SALOME_InteractiveObject) anIObject = selected.First();
theName = anIObject->getName();
} else {
theName = QObject::tr("SMESH_OBJECTS_SELECTED").arg(aNbSel);
}
return aNbSel;
}
| int SMESH.GetNameOfSelectedNodes | ( | LightApp_SelectionMgr * | , |
| const Handle(SALOME_InteractiveObject)& | , | ||
| QString & | |||
| ) |
| int SMESH.GetNameOfSelectedNodes | ( | LightApp_SelectionMgr * | , |
| QString & | |||
| ) |
| int SMESH.GetNameOfSelectedNodes | ( | SVTK_Selector * | , |
| const Handle(SALOME_InteractiveObject)& | , | ||
| QString & | |||
| ) |
Referenced by SMESHGUI_GroupDlg.onAdd(), SMESHGUI_MergeDlg.onAddElement(), SMESHGUI_MergeDlg.onAddGroup(), SMESHGUI_GroupDlg.onObjectSelectionChanged(), SMESHGUI_MoveNodesDlg.onSelectionDone(), SMESHGUI_BoundingBox.selectionChanged(), SMESHGUI_MinDistance.selectionChanged(), SMESHGUI_TranslationDlg.SelectionIntoArgument(), SMESHGUI_SymmetryDlg.SelectionIntoArgument(), SMESHGUI_SmoothingDlg.SelectionIntoArgument(), SMESHGUI_SewingDlg.SelectionIntoArgument(), SMESHGUI_ScaleDlg.SelectionIntoArgument(), SMESHGUI_RotationDlg.SelectionIntoArgument(), SMESHGUI_RevolutionDlg.SelectionIntoArgument(), SMESHGUI_RemoveNodesDlg.SelectionIntoArgument(), SMESHGUI_NodesDlg.SelectionIntoArgument(), SMESHGUI_ExtrusionAlongPathDlg.SelectionIntoArgument(), SMESHGUI_CreatePolyhedralVolumeDlg.SelectionIntoArgument(), SMESHGUI_AddQuadraticElementDlg.SelectionIntoArgument(), SMESHGUI_AddMeshElementDlg.SelectionIntoArgument(), and SMESHGUI_MeshInfoDlg.showInfo().
| gp_XYZ SMESH::getNormale | ( | const SMDS_MeshFace * | theFace | ) |
Return normale to a given face.
Return the normal to a face.
| theFace | - input face |
| gp_XYZ | - normal to a face |
Definition at line 357 of file SMESHGUI_Utils.cxx.
References SMDS_MeshElement.NbNodes(), SMDS_MeshElement.nodesIterator(), SMDS_MeshNode.X(), SMDS_MeshNode.Y(), and SMDS_MeshNode.Z().
Referenced by SMESH.Controls.ManifoldPart.findConnected(), SMESH.Controls.ManifoldPart.isInPlane(), and SMESH.Controls.CoplanarFaces.IsSatisfy().
{
gp_XYZ n;
int aNbNode = theFace->NbNodes();
TColgp_Array1OfXYZ anArrOfXYZ(1,4);
SMDS_ElemIteratorPtr aNodeItr = theFace->nodesIterator();
int i = 1;
for ( ; aNodeItr->more() && i <= 4; i++ ) {
SMDS_MeshNode* aNode = (SMDS_MeshNode*)aNodeItr->next();
anArrOfXYZ.SetValue(i, gp_XYZ( aNode->X(), aNode->Y(), aNode->Z() ) );
}
gp_XYZ q1 = anArrOfXYZ.Value(2) - anArrOfXYZ.Value(1);
gp_XYZ q2 = anArrOfXYZ.Value(3) - anArrOfXYZ.Value(1);
n = q1 ^ q2;
if ( aNbNode > 3 ) {
gp_XYZ q3 = anArrOfXYZ.Value(4) - anArrOfXYZ.Value(1);
n += q2 ^ q3;
}
double len = n.Modulus();
if ( len > 0 )
n /= len;
return n;
}
| SMESH::SMESH_Pattern_var SMESH::GetPattern | ( | ) |
Definition at line 34 of file SMESHGUI_PatternUtils.cxx.
References SMESHGUI.GetSMESHGen().
Referenced by SMESHGUI_MeshPatternDlg.Init(), SMESHGUI_MeshPatternDlg.loadFromFile(), SMESHGUI_CreatePatternDlg.loadFromObject(), SMESHGUI_MeshPatternDlg.onTypeChanged(), and SMESHGUI.SMESHGUI().
{
return SMESHGUI::GetSMESHGen()->GetPattern();
}
| Predicate_i* SMESH.GetPredicate | ( | Predicate_ptr | thePredicate | ) |
Definition at line 71 of file SMESH_Filter_i.cxx.
Referenced by SMESH_Group_i.AddByPredicate(), SMESHGUI_FilterDlg.onApply(), and SMESH_Group_i.RemoveByPredicate().
{
return DownCast<Predicate_i*>(thePredicate);
}
| Predicate_i* SMESH.GetPredicate | ( | SMESH::Predicate_ptr | thePredicate | ) |
| SUIT_ResourceMgr * SMESH::GetResourceMgr | ( | const SalomeApp_Module * | ) |
Definition at line 68 of file SMESHGUI_Utils.cxx.
Referenced by SMESHGUI_BaseComputeOp.computeMesh(), SMESHGUI_FilterDlg.createFilter(), SMESHGUI_SingleEditDlg.createMainFrame(), SMESHGUI_MultiEditDlg.createMainFrame(), SMESHGUI_MoveNodesDlg.createMainFrame(), SMESHGUI_MeshPatternDlg.createMainFrame(), SMESHGUI_MakeNodeAtPointDlg.createMainFrame(), SMESHGUI_CreatePatternDlg.createMainFrame(), SMESHGUI.createPreferences(), StdMeshersGUI_ObjectReferenceParamWdg.init(), SMESHGUI_GroupDlg.initDialog(), SMESHGUI_Preferences_ScalarBarDlg.initScalarBarFromResources(), SMESHGUI_FilterTable.onCriterionChanged(), SMESHGUI_PrecomputeOp.onPreview(), SMESHGUI.preferencesChanged(), SMESHGUI.SMESHGUI(), SMESHGUI_AddMeshElementDlg.SMESHGUI_AddMeshElementDlg(), SMESHGUI_AddQuadraticElementDlg.SMESHGUI_AddQuadraticElementDlg(), SMESHGUI_CopyMeshDlg.SMESHGUI_CopyMeshDlg(), SMESHGUI_CreatePolyhedralVolumeDlg.SMESHGUI_CreatePolyhedralVolumeDlg(), SMESHGUI_CutGroupsDlg.SMESHGUI_CutGroupsDlg(), SMESHGUI_DuplicateNodesDlg.SMESHGUI_DuplicateNodesDlg(), SMESHGUI_ExtrusionAlongPathDlg.SMESHGUI_ExtrusionAlongPathDlg(), SMESHGUI_ExtrusionDlg.SMESHGUI_ExtrusionDlg(), SMESHGUI_MergeDlg.SMESHGUI_MergeDlg(), SMESHGUI_MeshInfosDlg.SMESHGUI_MeshInfosDlg(), SMESHGUI_NodesDlg.SMESHGUI_NodesDlg(), SMESHGUI_Preferences_ScalarBarDlg.SMESHGUI_Preferences_ScalarBarDlg(), SMESHGUI_RemoveElementsDlg.SMESHGUI_RemoveElementsDlg(), SMESHGUI_RemoveNodesDlg.SMESHGUI_RemoveNodesDlg(), SMESHGUI_RenumberingDlg.SMESHGUI_RenumberingDlg(), SMESHGUI_RevolutionDlg.SMESHGUI_RevolutionDlg(), SMESHGUI_RotationDlg.SMESHGUI_RotationDlg(), SMESHGUI_ScaleDlg.SMESHGUI_ScaleDlg(), SMESHGUI_SewingDlg.SMESHGUI_SewingDlg(), SMESHGUI_SmoothingDlg.SMESHGUI_SmoothingDlg(), SMESHGUI_SymmetryDlg.SMESHGUI_SymmetryDlg(), SMESHGUI_TranslationDlg.SMESHGUI_TranslationDlg(), StdMeshersGUI_SubShapeSelectorWdg.StdMeshersGUI_SubShapeSelectorWdg(), and UpdateSelectionProp().
{
return SUIT_Session::session()->resourceMgr();
}
| int SMESH.GetSelected | ( | LightApp_SelectionMgr * | , |
| TColStd_IndexedMapOfInteger & | , | ||
| const bool | = true |
||
| ) |
| int SMESH.getSelectedRows | ( | QTableWidget * | table, |
| QList< int > & | rows | ||
| ) |
Return a list of selected rows.
Definition at line 442 of file SMESHGUI_ComputeDlg.cxx.
Referenced by SMESHGUI_BaseComputeOp.currentCellChanged(), SMESHGUI_BaseComputeOp.onPreviewShape(), SMESHGUI_BaseComputeOp.onPublishShape(), and SMESHGUI_BaseComputeOp.onShowBadMesh().
{
rows.clear();
QList<QTableWidgetSelectionRange> selRanges = table->selectedRanges();
QTableWidgetSelectionRange range;
foreach( range, selRanges )
{
for ( int row = range.topRow(); row <= range.bottomRow(); ++row )
rows.append( row );
}
if ( rows.isEmpty() && table->currentRow() > -1 )
rows.append( table->currentRow() );
return rows.count();
}
| LightApp_SelectionMgr * SMESH::GetSelectionMgr | ( | const SalomeApp_Module * | theModule | ) |
Definition at line 62 of file SMESHGUI_Utils.cxx.
Referenced by StdMeshersGUI_SubShapeSelectorWdg.init(), and StdMeshersGUI_ObjectReferenceParamWdg.init().
{
return theModule->getApp()->selectionMgr();
}
| SVTK_Selector * SMESH::GetSelector | ( | SUIT_ViewWindow * | theWindow | ) |
Definition at line 952 of file SMESHGUI_VTKUtils.cxx.
References GetVtkViewWindow().
Referenced by StdMeshersGUI_SubShapeSelectorWdg.init(), SMESHGUI_MergeDlg.Init(), SMESHGUI_FilterDlg.insertFilterInViewer(), SMESHGUI_MultiEditDlg.isIdValid(), SMESHGUI_MultiEditDlg.onSelectionDone(), SMESHGUI_AddMeshElementDlg.SMESHGUI_AddMeshElementDlg(), SMESHGUI_AddQuadraticElementDlg.SMESHGUI_AddQuadraticElementDlg(), SMESHGUI_CopyMeshDlg.SMESHGUI_CopyMeshDlg(), SMESHGUI_CreatePolyhedralVolumeDlg.SMESHGUI_CreatePolyhedralVolumeDlg(), SMESHGUI_ExtrusionAlongPathDlg.SMESHGUI_ExtrusionAlongPathDlg(), SMESHGUI_ExtrusionDlg.SMESHGUI_ExtrusionDlg(), SMESHGUI_GroupOpDlg.SMESHGUI_GroupOpDlg(), SMESHGUI_MeshPatternDlg.SMESHGUI_MeshPatternDlg(), SMESHGUI_MoveNodesDlg.SMESHGUI_MoveNodesDlg(), SMESHGUI_RevolutionDlg.SMESHGUI_RevolutionDlg(), SMESHGUI_RotationDlg.SMESHGUI_RotationDlg(), SMESHGUI_ScaleDlg.SMESHGUI_ScaleDlg(), SMESHGUI_SewingDlg.SMESHGUI_SewingDlg(), SMESHGUI_SmoothingDlg.SMESHGUI_SmoothingDlg(), SMESHGUI_SymmetryDlg.SMESHGUI_SymmetryDlg(), SMESHGUI_TranslationDlg.SMESHGUI_TranslationDlg(), and SMESHGUI_WhatIsDlg.SMESHGUI_WhatIsDlg().
{
if(SVTK_ViewWindow* aWnd = GetVtkViewWindow(theWindow))
return aWnd->GetSelector();
return NULL;
}
| GEOM::GEOM_Object_var SMESH::GetShapeOnMeshOrSubMesh | ( | _PTR(SObject) | theMeshOrSubmesh, |
| bool * | isMesh | ||
| ) |
Definition at line 55 of file SMESHGUI_GEOMGenUtils.cxx.
Referenced by AddHypothesisOnMesh(), AddHypothesisOnSubMesh(), SMESHGUI_MeshOp.createHypothesis(), SMESHGUI_MeshOp.getInitParamsHypothesis(), SMESHGUI_Selection.isComputable(), SMESHGUI_MeshOp.onEditHyp(), SMESHGUI_MeshOp.readMesh(), RemoveHypothesisOrAlgorithmOnMesh(), and SMESHGUI_MeshOp.selectionDone().
{
SALOMEDS_SObject* aMeshOrSubmesh = _CAST(SObject,theMeshOrSubmesh);
if(aMeshOrSubmesh) {
CORBA::Object_var Obj = aMeshOrSubmesh->GetObject();
if ( !CORBA::is_nil( Obj ) ) {
SMESH::SMESH_Mesh_var aMesh =
SObjectToInterface<SMESH::SMESH_Mesh>( theMeshOrSubmesh );
if ( !aMesh->_is_nil() )
{
if ( isMesh ) *isMesh = true;
return aMesh->GetShapeToMesh();
}
SMESH::SMESH_subMesh_var aSubmesh =
SObjectToInterface<SMESH::SMESH_subMesh>( theMeshOrSubmesh );
if ( !aSubmesh->_is_nil() )
{
if ( isMesh ) *isMesh = false;
return aSubmesh->GetSubShape();
}
}
}
return GEOM::GEOM_Object::_nil();
}
| GEOM::GEOM_Object_ptr SMESH::GetSubShape | ( | GEOM::GEOM_Object_ptr | theMainShape, |
| long | theID | ||
| ) |
Definition at line 110 of file SMESHGUI_GEOMGenUtils.cxx.
References _PTR(), and GetGEOMGen().
Referenced by getSubShape(), and SMESH_Mesh.IsUsedHypothesis().
{
GEOM::GEOM_Gen_var geomGen = SMESH::GetGEOMGen();
_PTR(Study) aStudy = SMESH::GetActiveStudyDocument();
if (!aStudy || geomGen->_is_nil())
return GEOM::GEOM_Object::_nil();
GEOM::GEOM_IShapesOperations_var aShapesOp = geomGen->GetIShapesOperations(aStudy->StudyId());
if (aShapesOp->_is_nil())
return GEOM::GEOM_Object::_nil();
GEOM::GEOM_Object_var subShape = aShapesOp->GetSubShape (theMainShape,theID);
return subShape._retn();
}
| GEOM::GEOM_Object_ptr SMESH.getSubShape | ( | int | subShapeID, |
| GEOM::GEOM_Object_var | aMainShape | ||
| ) |
Return subshape by ID.
Definition at line 387 of file SMESHGUI_ComputeDlg.cxx.
References _PTR(), and GetSubShape().
Referenced by SMESHGUI_BaseComputeOp.onPublishShape(), and shapeText().
{
GEOM::GEOM_Object_var aSubShape;
if ( subShapeID == 1 )
aSubShape = aMainShape;
else if ( _PTR(SObject) so = getSubShapeSO( subShapeID, aMainShape ))
aSubShape = SMESH::SObjectToInterface<GEOM::GEOM_Object>( so );
else
aSubShape = SMESH::GetSubShape( aMainShape, subShapeID );
return aSubShape._retn();
}
| SVTK_ViewWindow * SMESH::GetViewWindow | ( | const SalomeApp_Module * | theModule, |
| bool | createIfNotFound | ||
| ) |
Return active view window, if it instantiates SVTK_ViewWindow class, overwise find or create corresponding view window, make it active and return it.
Definition at line 412 of file SMESHGUI_VTKUtils.cxx.
Referenced by StdMeshersGUI_ObjectReferenceParamWdg.activateSelection(), SMESHGUI_MeshPatternDlg.activateSelection(), SMESHGUI_CreatePatternDlg.activateSelection(), SMESHGUI_WhatIsDlg.ActivateThisDialog(), SMESHGUI_TranslationDlg.ActivateThisDialog(), SMESHGUI_SymmetryDlg.ActivateThisDialog(), SMESHGUI_SmoothingDlg.ActivateThisDialog(), SMESHGUI_ScaleDlg.ActivateThisDialog(), SMESHGUI_RotationDlg.ActivateThisDialog(), SMESHGUI_RemoveNodesDlg.ActivateThisDialog(), SMESHGUI_RemoveElementsDlg.ActivateThisDialog(), SMESHGUI_NodesDlg.ActivateThisDialog(), SMESHGUI_CreatePolyhedralVolumeDlg.ActivateThisDialog(), SMESHGUI_AddQuadraticElementDlg.ActivateThisDialog(), SMESHGUI_AddMeshElementDlg.ActivateThisDialog(), SMESHGUI_WhatIsDlg.ClickOnCancel(), SMESHGUI_TranslationDlg.ClickOnCancel(), SMESHGUI_SymmetryDlg.ClickOnCancel(), SMESHGUI_SmoothingDlg.ClickOnCancel(), SMESHGUI_SewingDlg.ClickOnCancel(), SMESHGUI_ScaleDlg.ClickOnCancel(), SMESHGUI_RotationDlg.ClickOnCancel(), SMESHGUI_RemoveNodesDlg.ClickOnCancel(), SMESHGUI_RemoveElementsDlg.ClickOnCancel(), SMESHGUI_NodesDlg.ClickOnCancel(), SMESHGUI_MergeDlg.ClickOnCancel(), SMESHGUI_CreatePolyhedralVolumeDlg.ClickOnCancel(), SMESHGUI_CopyMeshDlg.ClickOnCancel(), SMESHGUI_AddQuadraticElementDlg.ClickOnCancel(), SMESHGUI_AddMeshElementDlg.ClickOnCancel(), SMESHGUI_RevolutionDlg.closeEvent(), SMESHGUI_MoveNodesDlg.closeEvent(), SMESHGUI_ExtrusionDlg.closeEvent(), SMESHGUI_TranslationDlg.ConstructorsClicked(), SMESHGUI_SymmetryDlg.ConstructorsClicked(), SMESHGUI_SewingDlg.ConstructorsClicked(), SMESHGUI_ScaleDlg.ConstructorsClicked(), SMESHGUI_RevolutionDlg.ConstructorsClicked(), SMESHGUI_ExtrusionDlg.ConstructorsClicked(), SMESHGUI_ExtrusionAlongPathDlg.ConstructorsClicked(), SMESHGUI_CreatePolyhedralVolumeDlg.ConstructorsClicked(), SMESHGUI_BoundingBox.displayPreview(), SMESHGUI_MinDistance.displayPreview(), SMESHGUI_SingleEditDlg.enterEvent(), SMESHGUI_MoveNodesDlg.enterEvent(), SMESHGUI_GroupOpDlg.enterEvent(), SMESHGUI_DuplicateNodesDlg.enterEvent(), SMESHGUI_DeleteGroupDlg.enterEvent(), SMESHGUI_MoveNodesDlg.erasePreview(), SMESHGUI_BoundingBox.erasePreview(), SMESHGUI_MinDistance.erasePreview(), SMESHGUI_MinDistance.firstEdited(), SMESHGUI_MeshInfoDlg.idChanged(), StdMeshersGUI_SubShapeSelectorWdg.init(), SMESHGUI_WhatIsDlg.Init(), SMESHGUI_SingleEditDlg.Init(), SMESHGUI_RemoveNodesDlg.Init(), SMESHGUI_RemoveElementsDlg.Init(), SMESHGUI_NodesDlg.Init(), SMESHGUI_MoveNodesDlg.Init(), SMESHGUI_MergeDlg.Init(), SMESHGUI_GroupOpDlg.Init(), SMESHGUI_DuplicateNodesDlg.Init(), SMESHGUI_DeleteGroupDlg.Init(), SMESHGUI_AddQuadraticElementDlg.Init(), SMESHGUI_AddMeshElementDlg.Init(), SMESHGUI_SingleEditDlg.onClose(), SMESHGUI_MultiEditDlg.onClose(), SMESHGUI_MoveNodesDlg.onClose(), SMESHGUI_MeshPatternDlg.onClose(), SMESHGUI_GroupOpDlg.onClose(), SMESHGUI_GroupDlg.onClose(), SMESHGUI_FilterDlg.onClose(), SMESHGUI_DeleteGroupDlg.onClose(), SMESHGUI_CreatePatternDlg.onClose(), SMESHGUI_MultiEditDlg.onListSelectionChanged(), SMESHGUI_CreatePolyhedralVolumeDlg.onListSelectionChanged(), SMESHGUI_CreatePatternDlg.onOk(), SMESHGUI_PrecomputeOp.onPreview(), SMESHGUI_CreatePatternDlg.onSave(), SMESHGUI_CopyMeshDlg.onSelectIdSource(), SMESHGUI_TranslationDlg.onSelectMesh(), SMESHGUI_SymmetryDlg.onSelectMesh(), SMESHGUI_SmoothingDlg.onSelectMesh(), SMESHGUI_ScaleDlg.onSelectMesh(), SMESHGUI_RotationDlg.onSelectMesh(), SMESHGUI_RevolutionDlg.onSelectMesh(), SMESHGUI_ExtrusionDlg.onSelectMesh(), SMESHGUI_RevolutionDlg.onSelectVectorMenu(), SMESHGUI_BaseComputeOp.onShowBadMesh(), SMESHGUI_WhatIsDlg.onTextChange(), SMESHGUI_TranslationDlg.onTextChange(), SMESHGUI_SymmetryDlg.onTextChange(), SMESHGUI_SmoothingDlg.onTextChange(), SMESHGUI_SingleEditDlg.onTextChange(), SMESHGUI_SewingDlg.onTextChange(), SMESHGUI_ScaleDlg.onTextChange(), SMESHGUI_RotationDlg.onTextChange(), SMESHGUI_RevolutionDlg.onTextChange(), SMESHGUI_RemoveNodesDlg.onTextChange(), SMESHGUI_RemoveElementsDlg.onTextChange(), SMESHGUI_MoveNodesDlg.onTextChange(), SMESHGUI_ExtrusionDlg.onTextChange(), SMESHGUI_ExtrusionAlongPathDlg.onTextChange(), SMESHGUI_CreatePolyhedralVolumeDlg.onTextChange(), SMESHGUI_CopyMeshDlg.onTextChange(), SMESHGUI_AddQuadraticElementDlg.onTextChange(), SMESHGUI_AddMeshElementDlg.onTextChange(), SMESHGUI_MeshPatternDlg.onTextChanged(), SMESHGUI_MergeDlg.onTypeChanged(), SMESHGUI_MoveNodesDlg.redisplayPreview(), SMESHGUI_MeshInfoDlg.reject(), SMESHGUI_MeasureDlg.reject(), SMESHGUI_ExtrusionAlongPathDlg.reject(), SMESHGUI_MinDistance.secondEdited(), SMESHGUI_FilterDlg.selectInViewer(), SMESHGUI_BoundingBox.selectionChanged(), SMESHGUI_MinDistance.selectionChanged(), SMESHGUI_WhatIsDlg.SelectionIntoArgument(), SMESHGUI_MergeDlg.SelectionIntoArgument(), SMESHGUI_WhatIsDlg.SelectionsClicked(), SetDisplayMode(), SMESHGUI_TranslationDlg.SetEditCurrentArgument(), SMESHGUI_SymmetryDlg.SetEditCurrentArgument(), SMESHGUI_SmoothingDlg.SetEditCurrentArgument(), SMESHGUI_SewingDlg.SetEditCurrentArgument(), SMESHGUI_ScaleDlg.SetEditCurrentArgument(), SMESHGUI_RotationDlg.SetEditCurrentArgument(), SMESHGUI_RevolutionDlg.SetEditCurrentArgument(), SMESHGUI_MergeDlg.SetEditCurrentArgument(), SMESHGUI_ExtrusionDlg.SetEditCurrentArgument(), SMESHGUI_ExtrusionAlongPathDlg.SetEditCurrentArgument(), SMESHGUI_MultiEditDlg.setSelectionMode(), SMESHGUI_GroupDlg.setSelectionMode(), SMESH.TShapeDisplayer.Show(), SMESHGUI_MeshInfoDlg.showInfo(), StdMeshersGUI_SubShapeSelectorWdg.showPreview(), SMESHGUI_AddMeshElementDlg.SMESHGUI_AddMeshElementDlg(), SMESHGUI_AddQuadraticElementDlg.SMESHGUI_AddQuadraticElementDlg(), SMESHGUI_CopyMeshDlg.SMESHGUI_CopyMeshDlg(), SMESHGUI_CreatePatternDlg.SMESHGUI_CreatePatternDlg(), SMESHGUI_CreatePolyhedralVolumeDlg.SMESHGUI_CreatePolyhedralVolumeDlg(), SMESHGUI_ExtrusionAlongPathDlg.SMESHGUI_ExtrusionAlongPathDlg(), SMESHGUI_ExtrusionDlg.SMESHGUI_ExtrusionDlg(), SMESHGUI_FilterDlg.SMESHGUI_FilterDlg(), SMESHGUI_GroupOpDlg.SMESHGUI_GroupOpDlg(), SMESHGUI_MergeDlg.SMESHGUI_MergeDlg(), SMESHGUI_MeshPatternDlg.SMESHGUI_MeshPatternDlg(), SMESHGUI_MoveNodesDlg.SMESHGUI_MoveNodesDlg(), SMESHGUI_NodesDlg.SMESHGUI_NodesDlg(), SMESHGUI_PreviewDlg.SMESHGUI_PreviewDlg(), SMESHGUI_RevolutionDlg.SMESHGUI_RevolutionDlg(), SMESHGUI_RotationDlg.SMESHGUI_RotationDlg(), SMESHGUI_ScaleDlg.SMESHGUI_ScaleDlg(), SMESHGUI_SewingDlg.SMESHGUI_SewingDlg(), SMESHGUI_SmoothingDlg.SMESHGUI_SmoothingDlg(), SMESHGUI_SymmetryDlg.SMESHGUI_SymmetryDlg(), SMESHGUI_TranslationDlg.SMESHGUI_TranslationDlg(), SMESHGUI_WhatIsDlg.SMESHGUI_WhatIsDlg(), SMESHGUI_BoundingBox.sourceEdited(), SMESHGUI_MakeNodeAtPointOp.startOperation(), SMESHGUI_FindElemByPointOp.startOperation(), SMESHGUI_MeshInfoDlg.updateSelection(), SMESHGUI_BoundingBox.updateSelection(), SMESHGUI_MinDistance.updateSelection(), StdMeshersGUI_SubShapeSelectorWdg.updateState(), SMESHGUI_SelectionOp.viewWindow(), and StdMeshersGUI_SubShapeSelectorWdg.~StdMeshersGUI_SubShapeSelectorWdg().
{
SalomeApp_Application* anApp;
if (theModule)
anApp = theModule->getApp();
else
anApp = dynamic_cast<SalomeApp_Application*>
(SUIT_Session::session()->activeApplication());
if (anApp) {
if (SVTK_ViewWindow* aView = dynamic_cast<SVTK_ViewWindow*>(anApp->desktop()->activeWindow()))
return aView;
SUIT_ViewManager* aViewManager =
anApp->getViewManager(SVTK_Viewer::Type(), createIfNotFound);
if (aViewManager) {
if (SUIT_ViewWindow* aViewWindow = aViewManager->getActiveView()) {
if (SVTK_ViewWindow* aView = dynamic_cast<SVTK_ViewWindow*>(aViewWindow)) {
aViewWindow->raise();
aViewWindow->setFocus();
return aView;
}
}
}
}
return NULL;
}
| TVisualObjPtr SMESH::GetVisualObj | ( | int | theStudyId, |
| const char * | theEntry, | ||
| bool | nulData | ||
| ) |
Returns an updated visual object.
Definition at line 284 of file SMESHGUI_VTKUtils.cxx.
References _PTR(), SMESHGUI.activeStudy(), SMESH_controls.aGroup, SMDS_Mesh.CheckMemory(), SMESHGUI.desktop(), MESSAGE, OnVisuException(), RemoveVisualObjectWithActors(), and VISUAL_OBJ_CONT.
Referenced by AddNode(), CreateActor(), Update(), UpdateNulData(), and UpdateView().
{
TVisualObjPtr aVisualObj;
TVisualObjCont::key_type aKey(theStudyId,theEntry);
try{
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
OCC_CATCH_SIGNALS;
#endif
TVisualObjCont::iterator anIter = VISUAL_OBJ_CONT.find(aKey);
if(anIter != VISUAL_OBJ_CONT.end()){
aVisualObj = anIter->second;
}else{
SalomeApp_Application* app =
dynamic_cast<SalomeApp_Application*>( SMESHGUI::activeStudy()->application() );
_PTR(Study) aStudy = SMESHGUI::activeStudy()->studyDS();
_PTR(SObject) aSObj = aStudy->FindObjectID(theEntry);
if(aSObj){
_PTR(GenericAttribute) anAttr;
if(aSObj->FindAttribute(anAttr,"AttributeIOR")){
_PTR(AttributeIOR) anIOR = anAttr;
CORBA::String_var aVal = anIOR->Value().c_str();
CORBA::Object_var anObj = app->orb()->string_to_object( aVal.in() );
if(!CORBA::is_nil(anObj)){
//Try narrow to SMESH_Mesh interface
SMESH::SMESH_Mesh_var aMesh = SMESH::SMESH_Mesh::_narrow(anObj);
if(!aMesh->_is_nil()){
aVisualObj.reset(new SMESH_MeshObj(aMesh));
TVisualObjCont::value_type aValue(aKey,aVisualObj);
VISUAL_OBJ_CONT.insert(aValue);
}
//Try narrow to SMESH_Group interface
SMESH::SMESH_GroupBase_var aGroup = SMESH::SMESH_GroupBase::_narrow(anObj);
if(!aGroup->_is_nil()){
_PTR(SObject) aFatherSObj = aSObj->GetFather();
if(!aFatherSObj) return aVisualObj;
aFatherSObj = aFatherSObj->GetFather();
if(!aFatherSObj) return aVisualObj;
CORBA::String_var anEntry = aFatherSObj->GetID().c_str();
TVisualObjPtr aVisObj = GetVisualObj(theStudyId,anEntry.in());
if(SMESH_MeshObj* aMeshObj = dynamic_cast<SMESH_MeshObj*>(aVisObj.get())){
aVisualObj.reset(new SMESH_GroupObj(aGroup,aMeshObj));
TVisualObjCont::value_type aValue(aKey,aVisualObj);
VISUAL_OBJ_CONT.insert(aValue);
}
}
//Try narrow to SMESH_subMesh interface
SMESH::SMESH_subMesh_var aSubMesh = SMESH::SMESH_subMesh::_narrow(anObj);
if(!aSubMesh->_is_nil()){
_PTR(SObject) aFatherSObj = aSObj->GetFather();
if(!aFatherSObj) return aVisualObj;
aFatherSObj = aFatherSObj->GetFather();
if(!aFatherSObj) return aVisualObj;
CORBA::String_var anEntry = aFatherSObj->GetID().c_str();
TVisualObjPtr aVisObj = GetVisualObj(theStudyId,anEntry.in());
if(SMESH_MeshObj* aMeshObj = dynamic_cast<SMESH_MeshObj*>(aVisObj.get())){
aVisualObj.reset(new SMESH_subMeshObj(aSubMesh,aMeshObj));
TVisualObjCont::value_type aValue(aKey,aVisualObj);
VISUAL_OBJ_CONT.insert(aValue);
}
}
}
}
}
}
}catch(...){
INFOS("GetMeshObj - There is no SMESH_Mesh object for the SALOMEDS::Strudy and Entry!!!");
return TVisualObjPtr();
}
// Update object
bool objModified = false;
if ( aVisualObj ) {
try {
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
OCC_CATCH_SIGNALS;
#endif
//MESSAGE("GetVisualObj");
if (nulData)
objModified = aVisualObj->NulData();
else
objModified = aVisualObj->Update();
}
catch (...) {
#ifdef _DEBUG_
MESSAGE ( "Exception in SMESHGUI_VTKUtils::GetVisualObj()" );
#endif
RemoveVisualObjectWithActors( theEntry ); // remove this object
OnVisuException();
aVisualObj.reset();
}
}
if ( objModified ) {
// PAL16631. Mesurements showed that to show aVisualObj in SHADING(default) mode,
// ~5 times more memory is used than it occupies.
// Warn the user if there is less free memory than 30 sizes of a grid
// TODO: estimate memory usage in other modes and take current mode into account
int freeMB = SMDS_Mesh::CheckMemory(true);
int usedMB = aVisualObj->GetUnstructuredGrid()->GetActualMemorySize() / 1024;
MESSAGE("SMESHGUI_VTKUtils::GetVisualObj(), freeMB=" << freeMB << ", usedMB=" <<usedMB);
if ( freeMB > 0 && usedMB * 5 > freeMB ) {
bool continu = false;
if ( usedMB * 3 > freeMB )
// even dont try to show
SUIT_MessageBox::warning(SMESHGUI::desktop(), QObject::tr("SMESH_WRN_WARNING"),
QObject::tr("SMESH_NO_MESH_VISUALIZATION"));
else
// there is a chance to succeed
continu = SUIT_MessageBox::warning
(SMESHGUI::desktop(),
QObject::tr("SMESH_WRN_WARNING"),
QObject::tr("SMESH_CONTINUE_MESH_VISUALIZATION"),
SUIT_MessageBox::Yes | SUIT_MessageBox::No,
SUIT_MessageBox::Yes ) == SUIT_MessageBox::Yes;
if ( !continu ) {
// remove the corresponding actors from all views
RemoveVisualObjectWithActors( theEntry );
aVisualObj.reset();
}
}
}
return aVisualObj;
}
| SVTK_ViewWindow * SMESH::GetVtkViewWindow | ( | SUIT_ViewWindow * | theWindow | ) |
Definition at line 454 of file SMESHGUI_VTKUtils.cxx.
Referenced by DisplayActor(), FindActorByEntry(), FindVtkViewWindow(), GetCurrentVtkView(), GetSelector(), noSmeshActors(), RemoveActor(), RemoveAllObjectsWithActors(), RemoveVisualObjectWithActors(), RemoveVisuData(), SMESH.TElementSimulation.TElementSimulation(), UpdateSelectionProp(), and UpdateView().
{
return dynamic_cast<SVTK_ViewWindow*>(theWindow);
}
| SMESH::Handle | ( | VTKViewer_Filter | ) |
| SMESH.if | ( | subShapeID | = =1||!so | ) |
Referenced by SMESH_subMesh.DeleteEventListener(), fixOverlappedLinkUV(), and SMESH_Mesh_i.GetNodePosition().
| SMESH.if | ( | _PTR(Study) | study = SMESH::GetActiveStudyDocument() | ) |
| SMESH.if | ( | it | ) |
Definition at line 371 of file SMESHGUI_ComputeDlg.cxx.
References SMESH_box.geom, and SMESH_demo_hexa2_upd.list.
{
for ( it->InitEx(true); !subSO && it->More(); it->Next() ) {
GEOM::GEOM_Object_var geom = SMESH::SObjectToInterface<GEOM::GEOM_Object>( it->Value() );
if ( !geom->_is_nil() ) {
GEOM::ListOfLong_var list = geom->GetSubShapeIndices();
if ( list->length() == 1 && list[0] == subShapeID )
subSO = it->Value();
}
}
}
| void SMESH::InitAvailableHypotheses | ( | ) |
Definition at line 165 of file SMESHGUI_HypothesesUtils.cxx.
References SMESHGUI.desktop(), SMESHGUI_XmlHandler.errorProtocol(), SMESH_flight_skin.filePath, SMESHGUI_XmlHandler.myAlgorithmsMap, myAlgorithmsMap, SMESHGUI_XmlHandler.myHypothesesMap, myHypothesesMap, SMESHGUI_XmlHandler.myListOfHypothesesSets, myListOfHypothesesSets, and SMESHGUI.resourceMgr().
Referenced by GetAvailableHypotheses(), GetHypothesesSets(), GetHypothesisCreator(), GetHypothesisData(), and SMESHGUI.SMESHGUI().
{
SUIT_OverrideCursor wc;
if (myHypothesesMap.empty() && myAlgorithmsMap.empty()) {
// Resource manager
SUIT_ResourceMgr* resMgr = SMESHGUI::resourceMgr();
if (!resMgr) return;
// Find name of a resource XML file ("SMESH_Meshers.xml");
QString HypsXml;
char* cenv = getenv("SMESH_MeshersList");
if (cenv)
HypsXml.sprintf("%s", cenv);
QStringList HypsXmlList = HypsXml.split(":", QString::SkipEmptyParts);
if (HypsXmlList.count() == 0) {
SUIT_MessageBox::critical(SMESHGUI::desktop(),
QObject::tr("SMESH_WRN_WARNING"),
QObject::tr("MESHERS_FILE_NO_VARIABLE"));
return;
}
// get full names of xml files from HypsXmlList
QStringList xmlFiles;
xmlFiles.append( QDir::home().filePath("CustomMeshers.xml")); // may be inexistent
for (int i = 0; i < HypsXmlList.count(); i++) {
QString HypsXml = HypsXmlList[ i ];
// Find full path to the resource XML file
QString xmlFile = resMgr->path("resources", "SMESH", HypsXml + ".xml");
if ( xmlFile.isEmpty() ) // try PLUGIN resources
xmlFile = resMgr->path("resources", HypsXml, HypsXml + ".xml");
if ( !xmlFile.isEmpty() )
xmlFiles.append( xmlFile );
}
// loop on xmlFiles
QString aNoAccessFiles;
for (int i = 0; i < xmlFiles.count(); i++)
{
QString xmlFile = xmlFiles[ i ];
QFile file (xmlFile);
if (file.exists() && file.open(QIODevice::ReadOnly))
{
file.close();
SMESHGUI_XmlHandler* aXmlHandler = new SMESHGUI_XmlHandler();
ASSERT(aXmlHandler);
QXmlInputSource source (&file);
QXmlSimpleReader reader;
reader.setContentHandler(aXmlHandler);
reader.setErrorHandler(aXmlHandler);
bool ok = reader.parse(source);
file.close();
if (ok) {
myHypothesesMap.unite( aXmlHandler->myHypothesesMap );
myAlgorithmsMap.unite( aXmlHandler->myAlgorithmsMap );
QList<HypothesesSet*>::iterator it, pos = myListOfHypothesesSets.begin();
for ( it = aXmlHandler->myListOfHypothesesSets.begin();
it != aXmlHandler->myListOfHypothesesSets.end();
++it )
{
(*it)->setIsCustom( i == 0 );
myListOfHypothesesSets.insert( pos, *it );
}
}
else {
SUIT_MessageBox::critical(SMESHGUI::desktop(),
QObject::tr("INF_PARSE_ERROR"),
QObject::tr(aXmlHandler->errorProtocol().toLatin1().data()));
}
delete aXmlHandler;
}
else if ( i > 0 ) { // 1st is ~/CustomMeshers.xml
if (aNoAccessFiles.isEmpty())
aNoAccessFiles = xmlFile;
else
aNoAccessFiles += ", " + xmlFile;
}
} // end loop on xmlFiles
if (!aNoAccessFiles.isEmpty()) {
QString aMess = QObject::tr("MESHERS_FILE_CANT_OPEN") + " " + aNoAccessFiles + "\n";
aMess += QObject::tr("MESHERS_FILE_CHECK_VARIABLE");
wc.suspend();
SUIT_MessageBox::warning(SMESHGUI::desktop(),
QObject::tr("SMESH_WRN_WARNING"),
aMess);
wc.resume();
}
}
}
| TInterface::_var_type SMESH.IObjectToInterface | ( | const Handle(SALOME_InteractiveObject)& | theIO | ) |
Definition at line 139 of file SMESHGUI_Utils.h.
References IObjectToObject().
{
CORBA::Object_var anObj = IObjectToObject(theIO);
if(!CORBA::is_nil(anObj))
return TInterface::_narrow(anObj);
return TInterface::_nil();
}
| CORBA::Object_var SMESH.IObjectToObject | ( | const Handle(SALOME_InteractiveObject)& | theIO | ) |
Definition at line 224 of file SMESHGUI_Utils.cxx.
References _PTR(), and SObjectToObject().
Referenced by GetMeshByIO(), IObjectToInterface(), and StdMeshersGUI_ObjectReferenceParamWdg.onSelectionDone().
{
if (!theIO.IsNull()) {
if (theIO->hasEntry()) {
_PTR(Study) aStudy = GetActiveStudyDocument();
_PTR(SObject) anObj = aStudy->FindObjectID(theIO->getEntry());
return SObjectToObject(anObj,aStudy);
}
}
return CORBA::Object::_nil();
}
| TInterface::_var_type SMESH.IORToInterface | ( | const QString & | theIOR | ) |
Definition at line 151 of file SMESHGUI_Utils.h.
References IORToObject().
{
CORBA::Object_var anObj = IORToObject( theIOR );
if ( !CORBA::is_nil( anObj ) )
return TInterface::_narrow( anObj );
return TInterface::_nil();
}
| CORBA::Object_var SMESH::IORToObject | ( | const QString & | theIOR | ) |
Definition at line 236 of file SMESHGUI_Utils.cxx.
Referenced by IORToInterface().
{
SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>
(SUIT_Session::session()->activeApplication());
return app->orb()->string_to_object(theIOR.toLatin1().data());
}
| bool SMESH::IsAvailableHypothesis | ( | const HypothesisData * | algoData, |
| const QString & | hypType, | ||
| bool & | isAuxiliary | ||
| ) |
Definition at line 348 of file SMESHGUI_HypothesesUtils.cxx.
References HypothesisData.NeededHypos, and HypothesisData.OptionalHypos.
Referenced by StdMeshersGUI_LayerDistributionParamWdg.init(), isCompatible(), and SMESHGUI_MeshOp.onAlgoSelected().
{
isAuxiliary = false;
if ( !algoData )
return false;
if ( algoData->NeededHypos.contains( hypType ))
return true;
if ( algoData->OptionalHypos.contains( hypType)) {
isAuxiliary = true;
return true;
}
return false;
}
| bool SMESH::IsCompatibleAlgorithm | ( | const HypothesisData * | algo1Data, |
| const HypothesisData * | algo2Data | ||
| ) |
Definition at line 364 of file SMESHGUI_HypothesesUtils.cxx.
References HypothesisData.Dim, and HypothesisData.OutputTypes.
Referenced by isCompatible().
{
if ( !algo1Data || !algo2Data )
return false;
const HypothesisData* algoIn = algo1Data, *algoMain = algo2Data;
if ( algoIn->Dim.first() > algoMain->Dim.first() ) {
algoIn = algo2Data; algoMain = algo1Data;
}
// look for any output type of algoIn between input types of algoMain
QStringList::const_iterator inElemType = algoIn->OutputTypes.begin();
for ( ; inElemType != algoIn->OutputTypes.end(); ++inElemType )
if ( algoMain->InputTypes.contains( *inElemType ))
return true;
return false;
}
| bool SMESH.IsValid | ( | SALOME_Actor * | , |
| int | , | ||
| SVTK_Selector * | = GetSelector() |
||
| ) |
| static QString SMESH.mangledHypoSetName | ( | HypothesesSet * | hypSet | ) | [static] |
Prepends dimension and appends '[custom]' to the name of hypothesis set.
Definition at line 136 of file SMESHGUI_HypothesesUtils.cxx.
References HypothesesSet.getIsCustom(), HypothesesSet.maxDim(), HypothesesSet.name(), and ex21_lamp.name.
Referenced by GetHypothesesSets().
{
QString name = hypSet->name();
// prepend 'xD: '
int dim = hypSet->maxDim();
if ( dim > -1 )
name = QString("%1D: %2").arg(dim).arg(name);
// custom
if ( hypSet->getIsCustom() )
name = QString("%1 [custom]").arg(name);
return name;
}
Definition at line 274 of file SMESHGUI_Utils.cxx.
References _PTR(), batchmode_smesh.aPixmap, GROUP, and SMESHGUI_Selection.type().
Referenced by AddHypothesisOnMesh(), AddHypothesisOnSubMesh(), SMESHGUI_BaseComputeOp.computeMesh(), SMESHGUI_GenericHypothesisCreator.onDialogFinished(), SMESHGUI.OnEditDelete(), SMESHGUI.OnGUIEvent(), RemoveHypothesisOrAlgorithmOnMesh(), SMESH_Swig.SetMeshIcon(), and SMESHGUI_MeshOrderMgr.SetMeshOrder().
{
_PTR(Study) aStudy = GetActiveStudyDocument();
if (aStudy->GetProperties()->IsLocked())
return;
_PTR(StudyBuilder) aBuilder = aStudy->NewBuilder();
_PTR(GenericAttribute) anAttr =
aBuilder->FindOrCreateAttribute(theSObject,"AttributePixMap");
_PTR(AttributePixMap) aPixmap = anAttr;
std::string pmName;
if (theIsNotModif)
pmName = "ICON_SMESH_TREE_MESH";
else if ( isEmptyMesh )
pmName = "ICON_SMESH_TREE_MESH_WARN";
else
pmName = "ICON_SMESH_TREE_MESH_PARTIAL";
aPixmap->SetPixMap( pmName );
_PTR(ChildIterator) anIter = aStudy->NewChildIterator(theSObject);
for (int i = 1; anIter->More(); anIter->Next(), i++) {
_PTR(SObject) aSObj = anIter->Value();
if (i >= 4) {
_PTR(ChildIterator) anIter1 = aStudy->NewChildIterator(aSObj);
for ( ; anIter1->More(); anIter1->Next())
{
_PTR(SObject) aSObj1 = anIter1->Value();
anAttr = aBuilder->FindOrCreateAttribute(aSObj1, "AttributePixMap");
aPixmap = anAttr;
std::string entry = aSObj1->GetID();
int objType = SMESHGUI_Selection::type( entry.c_str(), aStudy );
SMESH::SMESH_IDSource_var idSrc = SObjectToInterface<SMESH::SMESH_IDSource>( aSObj1 );
if ( !idSrc->_is_nil() )
{
SMESH::array_of_ElementType_var elemTypes = idSrc->GetTypes();
const bool isEmpty = ( elemTypes->length() == 0 );
if ( isEmpty )
aPixmap->SetPixMap("ICON_SMESH_TREE_MESH_WARN");
else if ( objType == GROUP )
aPixmap->SetPixMap( "ICON_SMESH_TREE_GROUP" );
else
aPixmap->SetPixMap( "ICON_SMESH_TREE_MESH" );
}
else
{
if ( !theIsNotModif )
aPixmap->SetPixMap( pmName );
else if ( objType == GROUP )
aPixmap->SetPixMap( "ICON_SMESH_TREE_GROUP" );
else
aPixmap->SetPixMap( "ICON_SMESH_TREE_MESH" );
}
}
}
}
}
| TCollection_AsciiString SMESH.myLongStringEnd | ( | "TPythonDump::LongStringEnd" | ) |
Referenced by SMESH.TPythonDump.CutoutLongString(), and SMESH.TPythonDump.LongStringEnd().
| TCollection_AsciiString SMESH.myLongStringStart | ( | "TPythonDump::LongStringStart" | ) |
Referenced by SMESH.TPythonDump.CutoutLongString(), and SMESH.TPythonDump.LongStringStart().
| bool SMESH.noSmeshActors | ( | SUIT_ViewWindow * | theWnd | ) |
Return true if there are no SMESH actors in a view.
Definition at line 687 of file SMESHGUI_VTKUtils.cxx.
References GetVtkViewWindow().
Referenced by UpdateView().
{
if(SVTK_ViewWindow* aViewWindow = GetVtkViewWindow(theWnd)) {
vtkRenderer *aRenderer = aViewWindow->getRenderer();
VTK::ActorCollectionCopy aCopy(aRenderer->GetActors());
vtkActorCollection *aCollection = aCopy.GetActors();
aCollection->InitTraversal();
while(vtkActor *anAct = aCollection->GetNextActor())
if(dynamic_cast<SMESH_Actor*>(anAct))
return false;
}
return true;
}
| void SMESH::OnVisuException | ( | ) |
Notify the user on problems during visualization.
Definition at line 252 of file SMESHGUI_VTKUtils.cxx.
References SMESHGUI.desktop(), RemoveAllObjectsWithActors(), and theVISU_MemoryReserve.
Referenced by SMESHGUI_BaseComputeOp.computeMesh(), DisplayActor(), FitAll(), GetVisualObj(), SMESHGUI.OnGUIEvent(), RenderViewWindow(), RepaintCurrentView(), and RepaintViewWindow().
{
try {
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
OCC_CATCH_SIGNALS;
#endif
// PAL16774 (Crash after display of many groups). Salome sometimes crashes just
// after or at showing this message, so we do an additional check of available memory
// char* buf = new char[100*1024];
// delete [] buf;
SUIT_MessageBox::warning(SMESHGUI::desktop(), QObject::tr("SMESH_WRN_WARNING"),
QObject::tr("SMESH_VISU_PROBLEM"));
} catch (...) {
// no more memory at all: last resort
MESSAGE_BEGIN ( "SMESHGUI_VTKUtils::OnVisuException(), exception even at showing a message!!!" <<
std::endl << "Try to remove all visual data..." );
if (theVISU_MemoryReserve) {
delete theVISU_MemoryReserve;
theVISU_MemoryReserve = 0;
}
RemoveAllObjectsWithActors();
SUIT_MessageBox::warning(SMESHGUI::desktop(), QObject::tr("SMESH_WRN_WARNING"),
QObject::tr("SMESH_VISU_PROBLEM_CLEAR"));
MESSAGE_END ( "...done" );
}
}
| void SMESH.processHypothesisStatus | ( | const int | theHypStatus, |
| SMESH::SMESH_Hypothesis_ptr | theHyp, | ||
| const bool | theIsAddition | ||
| ) |
Definition at line 93 of file SMESHGUI_HypothesesUtils.cxx.
References _PTR(), SMESHGUI.desktop(), GetHypothesisData(), HYP_HIDDEN_ALGO, HYP_OK, and HYP_UNKNOWN_FATAL.
Referenced by AddHypothesisOnMesh(), AddHypothesisOnSubMesh(), and RemoveHypothesisOrAlgorithmOnMesh().
{
if (theHypStatus > SMESH::HYP_OK) {
// get Hyp name
QString aHypName ("NULL Hypothesis");
if (!CORBA::is_nil(theHyp)) {
_PTR(SObject) Shyp = SMESH::FindSObject(theHyp);
if (Shyp)
// name in study
aHypName = Shyp->GetName().c_str();
else
// label in xml file
aHypName = GetHypothesisData(theHyp->GetName())->Label;
}
// message
bool isFatal = (theHypStatus >= SMESH::HYP_UNKNOWN_FATAL);
QString aMsg;
if (theIsAddition)
aMsg = (isFatal ? "SMESH_CANT_ADD_HYP" : "SMESH_ADD_HYP_WRN");
else
aMsg = (isFatal ? "SMESH_CANT_RM_HYP" : "SMESH_RM_HYP_WRN");
aMsg = QObject::tr(aMsg.toLatin1().data()).arg(aHypName) +
QObject::tr(QString("SMESH_HYP_%1").arg(theHypStatus).toLatin1().data());
if ( theHypStatus == SMESH::HYP_HIDDEN_ALGO ) // PAL18501
aMsg = aMsg.arg( GetHypothesisData(theHyp->GetName())->Dim[0] );
SUIT_MessageBox::warning(SMESHGUI::desktop(),
QObject::tr("SMESH_WRN_WARNING"),
aMsg);
}
}
| void SMESH::ProcessIn2DViewers | ( | SMESH_Actor * | theActor, |
| Viewer2dActionType | aType | ||
| ) |
Get histogram from the input actor Repaint/Remove the histogram in/from each opened Plot2D Viewer.
Definition at line 147 of file SMESH_ActorUtils.cxx.
References SMESH_Actor.GetPlot2Histogram(), RemoveFrom2dViewer, UpdateIn2dViewer, and SMESH_Actor.UpdatePlot2Histogram().
Referenced by Control(), SMESHGUI_Preferences_ScalarBarDlg.onApply(), SMESHGUI.OnGUIEvent(), SMESH_ActorDef.SetVisibility(), and SMESH_ActorDef.~SMESH_ActorDef().
{
SalomeApp_Application* anApp = dynamic_cast<SalomeApp_Application*>(SUIT_Session::session()->activeApplication());
if(!anApp || !theActor)
return;
SPlot2d_Histogram* aHistogram = 0;
if(theActor->GetPlot2Histogram())
if(aType == UpdateIn2dViewer)
aHistogram = theActor->UpdatePlot2Histogram();
else
aHistogram = theActor->GetPlot2Histogram();
else
return;
ViewManagerList aViewManagerList;
anApp->viewManagers(SPlot2d_Viewer::Type(), aViewManagerList);
aType = aHistogram->getPointList().empty() ? RemoveFrom2dViewer : aType;
SUIT_ViewManager* aViewManager;
foreach( aViewManager, aViewManagerList ) {
if (Plot2d_ViewManager* aManager = dynamic_cast<Plot2d_ViewManager*>(aViewManager)) {
if (SPlot2d_Viewer* aViewer = dynamic_cast<SPlot2d_Viewer*>(aManager->getViewModel())) {
if (Plot2d_ViewFrame* aViewFrame = aViewer->getActiveViewFrame()) {
if(aType == UpdateIn2dViewer )
aViewFrame->displayObject(aHistogram, true);
else if (aType == RemoveFrom2dViewer)
aViewFrame->eraseObject(aHistogram, true);
}
}
}
}
}
| void SMESH::RemoveActor | ( | SUIT_ViewWindow * | theWnd, |
| SMESH_Actor * | theActor | ||
| ) |
Definition at line 662 of file SMESHGUI_VTKUtils.cxx.
References ex30_groupsOp.aStudyId, GetVtkViewWindow(), Handle(), MESSAGE, and VISUAL_OBJ_CONT.
Referenced by SMESHGUI_Displayer.buildPresentation(), and SMESHGUI.OnEditDelete().
{
if(SVTK_ViewWindow* vtkWnd = GetVtkViewWindow(theWnd)){
MESSAGE("RemoveActor " << theActor);
vtkWnd->RemoveActor(theActor);
if(theActor->hasIO()){
Handle(SALOME_InteractiveObject) anIO = theActor->getIO();
if(anIO->hasEntry()){
std::string anEntry = anIO->getEntry();
SalomeApp_Study* aStudy = dynamic_cast<SalomeApp_Study*>( vtkWnd->getViewManager()->study() );
int aStudyId = aStudy->id();
TVisualObjCont::key_type aKey(aStudyId,anEntry);
VISUAL_OBJ_CONT.erase(aKey);
}
}
theActor->Delete();
vtkWnd->Repaint();
}
}
| void SMESH.RemoveAllObjectsWithActors | ( | ) |
Remove all VisualObjs and their actors from all views.
Definition at line 161 of file SMESHGUI_VTKUtils.cxx.
References GetVtkViewWindow(), and VISUAL_OBJ_CONT.
Referenced by OnVisuException().
{
SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>
( SUIT_Session::session()->activeApplication() );
if (!app) return;
ViewManagerList viewMgrs = app->viewManagers();
for ( int iM = 0; iM < viewMgrs.count(); ++iM ) {
SUIT_ViewManager* aViewManager = viewMgrs.at( iM );
if ( aViewManager && aViewManager->getType() == SVTK_Viewer::Type()) {
QVector<SUIT_ViewWindow*> views = aViewManager->getViews();
for ( int iV = 0; iV < views.count(); ++iV ) {
if(SVTK_ViewWindow* vtkWnd = GetVtkViewWindow(views[iV])) {
vtkRenderer *aRenderer = vtkWnd->getRenderer();
VTK::ActorCollectionCopy aCopy(aRenderer->GetActors());
vtkActorCollection *actors = aCopy.GetActors();
for (int i = 0; i < actors->GetNumberOfItems(); ++i ) {
// size of actors changes inside the loop
if (SMESH_Actor *actor = dynamic_cast<SMESH_Actor*>(actors->GetItemAsObject(i)))
{
vtkWnd->RemoveActor(actor);
actor->Delete();
}
}
}
}
}
}
TVisualObjCont::iterator anIter = VISUAL_OBJ_CONT.begin();
for ( ; anIter != VISUAL_OBJ_CONT.end(); ++anIter ) {
// for unknown reason, object destructor is not called, so clear object manually
anIter->second->GetUnstructuredGrid()->SetCells(0,0,0,0,0);
anIter->second->GetUnstructuredGrid()->SetPoints(0);
}
VISUAL_OBJ_CONT.clear();
}
| void SMESH.RemoveFilter | ( | int | , |
| SVTK_Selector * | = GetSelector() |
||
| ) |
Referenced by SMESHGUI_FilterDlg.insertFilterInViewer(), and SMESHGUI_FilterDlg.selectInViewer().
| void SMESH.RemoveFilters | ( | SVTK_Selector * | = GetSelector() | ) |
Referenced by SMESHGUI_TranslationDlg.ClickOnCancel(), SMESHGUI_SymmetryDlg.ClickOnCancel(), SMESHGUI_SmoothingDlg.ClickOnCancel(), SMESHGUI_ScaleDlg.ClickOnCancel(), SMESHGUI_RotationDlg.ClickOnCancel(), SMESHGUI_RemoveNodesDlg.ClickOnCancel(), SMESHGUI_RemoveElementsDlg.ClickOnCancel(), SMESHGUI_RevolutionDlg.closeEvent(), SMESHGUI_ExtrusionDlg.closeEvent(), SMESHGUI_MultiEditDlg.onClose(), SMESHGUI_GroupDlg.onClose(), SMESHGUI_ExtrusionAlongPathDlg.reject(), and SMESHGUI_MultiEditDlg.setSelectionMode().
| bool SMESH::RemoveHypothesisOrAlgorithmOnMesh | ( | _PTR(SObject) | MorSM, |
| SMESH::SMESH_Hypothesis_ptr | anHyp | ||
| ) |
Definition at line 598 of file SMESHGUI_HypothesesUtils.cxx.
References _PTR(), GetShapeOnMeshOrSubMesh(), HYP_OK, HYP_UNKNOWN_FATAL, ModifiedMesh(), processHypothesisStatus(), and SMESH_AdvancedEditor.res.
{
SALOMEDS::GenericAttribute_var anAttr;
SALOMEDS::AttributeIOR_var anIOR;
int res = SMESH::HYP_UNKNOWN_FATAL;
SUIT_OverrideCursor wc;
if (MorSM) {
try {
GEOM::GEOM_Object_var aShapeObject = SMESH::GetShapeOnMeshOrSubMesh(MorSM);
SMESH::SMESH_Mesh_var aMesh = SMESH::SObjectToInterface<SMESH::SMESH_Mesh>(MorSM);
SMESH::SMESH_subMesh_var aSubMesh = SMESH::SObjectToInterface<SMESH::SMESH_subMesh>(MorSM);
if (!aSubMesh->_is_nil())
aMesh = aSubMesh->GetFather();
if (!aMesh->_is_nil()) {
if (aMesh->HasShapeToMesh() && !aShapeObject->_is_nil()) {
res = aMesh->RemoveHypothesis(aShapeObject, anHyp);
if (res < SMESH::HYP_UNKNOWN_FATAL) {
_PTR(SObject) meshSO = SMESH::FindSObject(aMesh);
if (meshSO)
SMESH::ModifiedMesh(meshSO, false, aMesh->NbNodes()==0);
}
}
else if(!aMesh->HasShapeToMesh()){
res = aMesh->RemoveHypothesis(aShapeObject, anHyp);
if (res < SMESH::HYP_UNKNOWN_FATAL) {
_PTR(SObject) meshSO = SMESH::FindSObject(aMesh);
if (meshSO)
SMESH::ModifiedMesh(meshSO, false, aMesh->NbNodes()==0);
}
}
if (res > SMESH::HYP_OK) {
wc.suspend();
processHypothesisStatus(res, anHyp, false);
wc.resume();
}
}
} catch(const SALOME::SALOME_Exception& S_ex) {
wc.suspend();
SalomeApp_Tools::QtCatchCorbaException(S_ex);
res = SMESH::HYP_UNKNOWN_FATAL;
}
}
return res < SMESH::HYP_UNKNOWN_FATAL;
}
| bool SMESH::RemoveHypothesisOrAlgorithmOnMesh | ( | const Handle(SALOME_InteractiveObject)& | IObject | ) |
Definition at line 563 of file SMESHGUI_HypothesesUtils.cxx.
References _PTR(), GetMeshesUsingAlgoOrHypothesis(), HYP_UNKNOWN_FATAL, SMESH_AdvancedEditor.res, and SObjectToObject().
Referenced by SMESHGUI_MeshOp.editMeshOrSubMesh(), SMESHGUI.OnEditDelete(), and SMESHGUI.OnGUIEvent().
{
int res = SMESH::HYP_UNKNOWN_FATAL;
SUIT_OverrideCursor wc;
try {
_PTR(Study) aStudy = GetActiveStudyDocument();
_PTR(SObject) aHypObj = aStudy->FindObjectID( IObject->getEntry() );
if( aHypObj )
{
_PTR(SObject) MorSM = SMESH::GetMeshOrSubmesh( aHypObj );
_PTR(SObject) aRealHypo;
if( aHypObj->ReferencedObject( aRealHypo ) )
{
SMESH_Hypothesis_var hypo = SMESH_Hypothesis::_narrow( SObjectToObject( aRealHypo ) );
RemoveHypothesisOrAlgorithmOnMesh( MorSM, hypo );
}
else
{
SMESH_Hypothesis_var hypo = SMESH_Hypothesis::_narrow( SObjectToObject( aHypObj ) );
SObjectList meshList = GetMeshesUsingAlgoOrHypothesis( hypo );
for( int i = 0; i < meshList.size(); i++ )
RemoveHypothesisOrAlgorithmOnMesh( meshList[ i ], hypo );
}
}
}
catch(const SALOME::SALOME_Exception& S_ex)
{
wc.suspend();
SalomeApp_Tools::QtCatchCorbaException(S_ex);
res = SMESH::HYP_UNKNOWN_FATAL;
}
return res < SMESH::HYP_UNKNOWN_FATAL;
}
| void SMESH::RemoveVisualObjectWithActors | ( | const char * | theEntry, |
| bool | fromAllViews | ||
| ) |
Remove VisualObj and its actor from all views.
Definition at line 106 of file SMESHGUI_VTKUtils.cxx.
References ex30_groupsOp.aStudyId, FindActorByEntry(), GetVtkViewWindow(), and VISUAL_OBJ_CONT.
Referenced by GetVisualObj(), and SMESHGUI.OnGUIEvent().
{
SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>(SUIT_Session::session()->activeApplication());
if(!app)
return;
SalomeApp_Study* aStudy = dynamic_cast<SalomeApp_Study*>(app->activeStudy());
if(!aStudy)
return;
ViewManagerList aList;
if(fromAllViews) {
app->viewManagers(SVTK_Viewer::Type() , aList);
} else {
SUIT_ViewManager* aVM = app->getViewManager(SVTK_Viewer::Type(), true);
if(aVM)
aList.append(aVM);
}
bool actorRemoved = false;
ViewManagerList::ConstIterator it = aList.begin();
SUIT_ViewManager* aViewManager = 0;
for( ; it!=aList.end();it++) {
aViewManager = *it;
QVector<SUIT_ViewWindow*> views = aViewManager->getViews();
for ( int iV = 0; iV < views.count(); ++iV ) {
if ( SMESH_Actor* actor = FindActorByEntry( views[iV], theEntry)) {
if(SVTK_ViewWindow* vtkWnd = GetVtkViewWindow(views[iV])) {
vtkWnd->RemoveActor(actor);
actorRemoved = true;
}
actor->Delete();
}
}
}
if (aViewManager ) {
int aStudyId = aViewManager->study()->id();
TVisualObjCont::key_type aKey(aStudyId,theEntry);
TVisualObjCont::iterator anIter = VISUAL_OBJ_CONT.find(aKey);
if(anIter != VISUAL_OBJ_CONT.end()) {
// for unknown reason, object destructor is not called, so clear object manually
anIter->second->GetUnstructuredGrid()->SetCells(0,0,0,0,0);
anIter->second->GetUnstructuredGrid()->SetPoints(0);
}
VISUAL_OBJ_CONT.erase(aKey);
}
if(actorRemoved)
aStudy->setVisibilityState(theEntry, Qtx::HiddenState);
}
| void SMESH::RemoveVisuData | ( | int | studyID | ) |
Remove all VisualObjs of a study.
Definition at line 203 of file SMESHGUI_VTKUtils.cxx.
References GetVtkViewWindow(), and VISUAL_OBJ_CONT.
Referenced by SMESHGUI.studyClosed().
{
SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>
( SUIT_Session::session()->activeApplication() );
if (!app) return;
ViewManagerList viewMgrs = app->viewManagers();
for ( int iM = 0; iM < viewMgrs.count(); ++iM ) {
SUIT_ViewManager* aViewManager = viewMgrs.at( iM );
if ( aViewManager && aViewManager->getType() == SVTK_Viewer::Type() &&
aViewManager->study()->id() == studyID ) {
QVector<SUIT_ViewWindow*> views = aViewManager->getViews();
for ( int iV = 0; iV < views.count(); ++iV ) {
if(SVTK_ViewWindow* vtkWnd = GetVtkViewWindow(views[iV])) {
vtkRenderer *aRenderer = vtkWnd->getRenderer();
VTK::ActorCollectionCopy aCopy(aRenderer->GetActors());
vtkActorCollection *actors = aCopy.GetActors();
for (int i = 0; i < actors->GetNumberOfItems(); ++i ) {
// size of actors changes inside the loop
if(SMESH_Actor *actor = dynamic_cast<SMESH_Actor*>(actors->GetItemAsObject(i)))
{
vtkWnd->RemoveActor(actor);
actor->Delete();
}
}
}
}
}
}
TVisualObjCont::iterator anIter = VISUAL_OBJ_CONT.begin();
for ( ; anIter != VISUAL_OBJ_CONT.end(); ) {
int curId = anIter->first.first;
if ( curId == studyID ) {
// for unknown reason, object destructor is not called, so clear object manually
anIter->second->GetUnstructuredGrid()->SetCells(0,0,0,0,0);
anIter->second->GetUnstructuredGrid()->SetPoints(0);
VISUAL_OBJ_CONT.erase( anIter++ ); // anIter++ returns a copy of self before incrementing
}
else {
anIter++;
}
}
}
| void SMESH::RenderViewWindow | ( | SVTK_ViewWindow * | theWindow | ) |
Definition at line 512 of file SMESHGUI_VTKUtils.cxx.
References MESSAGE, and OnVisuException().
Referenced by SMESHGUI_ClippingDlg.ClickOnApply(), SMESHGUI_ClippingDlg.ClickOnDelete(), SMESHGUI_ClippingDlg.OnPreviewToggle(), SMESHGUI_ClippingDlg.SetCurrentPlaneParam(), and SMESHGUI_ClippingDlg.~SMESHGUI_ClippingDlg().
{
try {
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
OCC_CATCH_SIGNALS;
#endif
theWindow->getRenderer()->Render();
theWindow->Repaint();
}
catch (...) {
#ifdef _DEBUG_
MESSAGE ( "Exception in SMESHGUI_VTKUtils::RenderViewWindow(SVTK_ViewWindow*)" );
#endif
OnVisuException();
}
}
| void SMESH::RepaintCurrentView | ( | ) |
Definition at line 475 of file SMESHGUI_VTKUtils.cxx.
References GetCurrentVtkView(), MESSAGE, and OnVisuException().
Referenced by AutoColor(), SMESHGUI_Make2DFrom3DOp.compute2DMesh(), Control(), SMESHGUI_Preferences_ScalarBarDlg.onApply(), SetDisplayMode(), SMESH.TNodeSimulation.SetVisibility(), SMESHGUI_MeshEditPreview.SetVisibility(), SMESH.TPolySimulation.SetVisibility(), SMESH.TShapeDisplayer.SetVisibility(), SMESH.TElementSimulation.SetVisibility(), SMESHGUI_MakeNodeAtPointOp.startOperation(), SMESHGUI_MakeNodeAtPointOp.stopOperation(), and UpdateView().
{
if (SVTK_ViewWindow* wnd = GetCurrentVtkView())
{
try {
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
OCC_CATCH_SIGNALS;
#endif
wnd->getRenderer()->Render();
wnd->Repaint(false);
}
catch (...) {
#ifdef _DEBUG_
MESSAGE ( "Exception in SMESHGUI_VTKUtils::RepaintCurrentView()" );
#endif
OnVisuException();
}
}
}
| void SMESH::RepaintViewWindow | ( | SVTK_ViewWindow * | theWindow | ) |
Definition at line 495 of file SMESHGUI_VTKUtils.cxx.
References MESSAGE, and OnVisuException().
{
try {
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
OCC_CATCH_SIGNALS;
#endif
theWindow->getRenderer()->Render();
theWindow->Repaint();
}
catch (...) {
#ifdef _DEBUG_
MESSAGE ( "Exception in SMESHGUI_VTKUtils::RepaintViewWindow(SVTK_ViewWindow*)" );
#endif
OnVisuException();
}
}
| void SMESH.ReverseConnectivity | ( | std::vector< vtkIdType > & | ids, |
| int | type | ||
| ) |
Definition at line 96 of file SMESHGUI_AddQuadraticElementDlg.cxx.
References QUAD_EDGE, QUAD_HEXAHEDRON, QUAD_PENTAHEDRON, QUAD_PYRAMID, QUAD_QUADRANGLE, QUAD_TETRAHEDRON, QUAD_TRIANGLE, and reverse().
Referenced by SMESHGUI_AddQuadraticElementDlg.ClickOnApply(), and SMESH.TElementSimulation.SetPosition().
{
// for reverse connectivity of other types keeping the first id, see
// void SMESH_VisualObjDef::buildElemPrs() in SMESH_Object.cxx:900
const int* conn = 0;
switch ( type ) {
case QUAD_TETRAHEDRON: {
static int aConn[] = {0,2,1,3,6,5,4,7,9,8};
conn = aConn;
break;
}
case QUAD_PYRAMID: {
static int aConn[] = {0,3,2,1,4,8,7,6,5,9,12,11,10};
conn = aConn;
break;
}
case QUAD_PENTAHEDRON: {
static int aConn[] = {0,2,1,3,5,4,8,7,6,11,10,9,12,14,13};
conn = aConn;
break;
}
case QUAD_HEXAHEDRON: {
static int aConn[] = {0,3,2,1,4,7,6,5,11,10,9,8,15,14,13,12,16,19,18,17};
conn = aConn;
break;
}
case QUAD_EDGE: {
static int aConn[] = {1,0,2};
conn = aConn;
break;
}
case QUAD_TRIANGLE: {
static int aConn[] = {0,2,1,5,4,3};
conn = aConn;
break;
}
case QUAD_QUADRANGLE: {
static int aConn[] = {0,3,2,1,7,6,5,4};
conn = aConn;
break;
}
default:;
}
if ( !conn ) {
reverse( ids.begin(), ids.end() );
}
else {
std::vector<vtkIdType> aRevIds( ids.size() );
for ( int i = 0; i < ids.size(); i++)
aRevIds[ i ] = ids[ conn[ i ]];
ids = aRevIds;
}
}
| void SMESH.SetControlsPrecision | ( | const long | ) |
| void SMESH::setFileName | ( | _PTR(SObject) | theSObject, |
| const QString & | theValue | ||
| ) |
Definition at line 159 of file SMESHGUI_Utils.cxx.
References _PTR(), and SMESH_test5.aFileName.
{
_PTR(Study) aStudy = GetActiveStudyDocument();
if (aStudy->GetProperties()->IsLocked())
return;
_PTR(StudyBuilder) aBuilder = aStudy->NewBuilder();
_PTR(GenericAttribute) anAttr =
aBuilder->FindOrCreateAttribute(theSObject, "AttributeExternalFileDef");
_PTR(AttributeExternalFileDef) aFileName = anAttr;
if (aFileName)
aFileName->SetValue(theValue.toLatin1().data());
}
| void SMESH::setFileType | ( | _PTR(SObject) | theSObject, |
| const QString & | theValue | ||
| ) |
Definition at line 172 of file SMESHGUI_Utils.cxx.
References _PTR().
Referenced by SMESHGUI_GroupDlg.onApply().
{
_PTR(Study) aStudy = GetActiveStudyDocument();
if (aStudy->GetProperties()->IsLocked())
return;
_PTR(StudyBuilder) aBuilder = aStudy->NewBuilder();
_PTR(GenericAttribute) anAttr =
aBuilder->FindOrCreateAttribute(theSObject, "AttributeFileType");
_PTR(AttributeFileType) aFileType = anAttr;
if (aFileType)
aFileType->SetValue(theValue.toLatin1().data());
}
| void SMESH::SetFilter | ( | const Handle(VTKViewer_Filter)& | theFilter, |
| SVTK_Selector * | theSelector | ||
| ) |
Definition at line 960 of file SMESHGUI_VTKUtils.cxx.
Referenced by SMESHGUI_FilterDlg.insertFilterInViewer(), SMESHGUI_FilterDlg.selectInViewer(), and SMESHGUI_MultiEditDlg.setSelectionMode().
{
if (theSelector)
theSelector->SetFilter(theFilter);
}
| void SMESH.SetName | ( | _PTR(SObject) | theSObject, |
| const QString & | theName | ||
| ) |
Definition at line 138 of file SMESHGUI_Utils.cxx.
References _PTR(), and SMESHGUI.GetSMESHGen().
Referenced by CreateHypothesis(), and ImportMeshesFromFile().
| void SMESH.SetPickable | ( | SMESH_Actor * | = 0 | ) |
Referenced by SMESHGUI_MeshPatternDlg.activateSelection(), SMESHGUI_SmoothingDlg.ClickOnCancel(), SMESHGUI_ExtrusionDlg.closeEvent(), SMESHGUI_ExtrusionAlongPathDlg.ConstructorsClicked(), SMESHGUI_MultiEditDlg.onClose(), SMESHGUI_MeshPatternDlg.onClose(), SMESHGUI_GroupDlg.onClose(), SMESHGUI_ExtrusionAlongPathDlg.reject(), and SMESHGUI_ExtrusionAlongPathDlg.SetEditCurrentArgument().
| void SMESH.SetPointRepresentation | ( | bool | ) |
Referenced by SMESHGUI_MakeNodeAtPointOp.activateSelection(), SMESHGUI_RemoveNodesDlg.ActivateThisDialog(), SMESHGUI_NodesDlg.ActivateThisDialog(), SMESHGUI_AddQuadraticElementDlg.ActivateThisDialog(), SMESHGUI_AddMeshElementDlg.ActivateThisDialog(), SMESHGUI_RemoveNodesDlg.ClickOnApply(), SMESHGUI_NodesDlg.ClickOnApply(), SMESHGUI_WhatIsDlg.ClickOnCancel(), SMESHGUI_TranslationDlg.ClickOnCancel(), SMESHGUI_SymmetryDlg.ClickOnCancel(), SMESHGUI_SmoothingDlg.ClickOnCancel(), SMESHGUI_SewingDlg.ClickOnCancel(), SMESHGUI_ScaleDlg.ClickOnCancel(), SMESHGUI_RotationDlg.ClickOnCancel(), SMESHGUI_RemoveNodesDlg.ClickOnCancel(), SMESHGUI_NodesDlg.ClickOnCancel(), SMESHGUI_MergeDlg.ClickOnCancel(), SMESHGUI_CreatePolyhedralVolumeDlg.ClickOnCancel(), SMESHGUI_AddQuadraticElementDlg.ClickOnCancel(), SMESHGUI_AddMeshElementDlg.ClickOnCancel(), SMESHGUI_RevolutionDlg.closeEvent(), SMESHGUI_ExtrusionDlg.closeEvent(), SMESHGUI_TranslationDlg.ConstructorsClicked(), SMESHGUI_SymmetryDlg.ConstructorsClicked(), SMESHGUI_SewingDlg.ConstructorsClicked(), SMESHGUI_ScaleDlg.ConstructorsClicked(), SMESHGUI_RevolutionDlg.ConstructorsClicked(), SMESHGUI_ExtrusionAlongPathDlg.ConstructorsClicked(), SMESHGUI_CreatePolyhedralVolumeDlg.ConstructorsClicked(), SMESHGUI_MoveNodesDlg.enterEvent(), SMESHGUI_RemoveNodesDlg.Init(), SMESHGUI_NodesDlg.Init(), SMESHGUI_MoveNodesDlg.Init(), SMESHGUI_AddQuadraticElementDlg.Init(), SMESHGUI_AddMeshElementDlg.Init(), SMESHGUI_MoveNodesDlg.onClose(), SMESHGUI_GroupDlg.onClose(), SMESHGUI_CopyMeshDlg.onSelectIdSource(), SMESHGUI_TranslationDlg.onSelectMesh(), SMESHGUI_SymmetryDlg.onSelectMesh(), SMESHGUI_SmoothingDlg.onSelectMesh(), SMESHGUI_ScaleDlg.onSelectMesh(), SMESHGUI_RotationDlg.onSelectMesh(), SMESHGUI_RevolutionDlg.onSelectMesh(), SMESHGUI_RevolutionDlg.onSelectVectorMenu(), SMESHGUI_SewingDlg.onTextChange(), SMESHGUI_MergeDlg.onTypeChanged(), SMESHGUI_MeshInfoDlg.reject(), SMESHGUI_MeasureDlg.reject(), SMESHGUI_ExtrusionAlongPathDlg.reject(), SMESHGUI_FilterDlg.selectInViewer(), SMESHGUI_NodesDlg.SelectionIntoArgument(), SMESHGUI_MergeDlg.SelectionIntoArgument(), SMESHGUI_WhatIsDlg.SelectionsClicked(), SMESHGUI_TranslationDlg.SetEditCurrentArgument(), SMESHGUI_SymmetryDlg.SetEditCurrentArgument(), SMESHGUI_SmoothingDlg.SetEditCurrentArgument(), SMESHGUI_SewingDlg.SetEditCurrentArgument(), SMESHGUI_ScaleDlg.SetEditCurrentArgument(), SMESHGUI_RotationDlg.SetEditCurrentArgument(), SMESHGUI_RevolutionDlg.SetEditCurrentArgument(), SMESHGUI_MergeDlg.SetEditCurrentArgument(), SMESHGUI_ExtrusionAlongPathDlg.SetEditCurrentArgument(), SMESHGUI_GroupDlg.setSelectionMode(), SMESHGUI_MeshInfoDlg.updateSelection(), SMESHGUI_BoundingBox.updateSelection(), and SMESHGUI_MinDistance.updateSelection().
| void SMESH::SetValue | ( | _PTR(SObject) | theSObject, |
| const QString & | theValue | ||
| ) |
Definition at line 146 of file SMESHGUI_Utils.cxx.
References _PTR().
Referenced by SMESHGUI_FilterTable.AdditionalWidget.SetDouble(), SMESHGUI_FilterTable.AdditionalWidget.SetInteger(), and SMESHGUI_FilterTable.AdditionalWidget.SetString().
{
_PTR(Study) aStudy = GetActiveStudyDocument();
if (aStudy->GetProperties()->IsLocked())
return;
_PTR(StudyBuilder) aBuilder = aStudy->NewBuilder();
_PTR(GenericAttribute) anAttr =
aBuilder->FindOrCreateAttribute(theSObject, "AttributeComment");
_PTR(AttributeComment) aComment = anAttr;
if (aComment)
aComment->SetValue(theValue.toLatin1().data());
}
| QString SMESH.shapeText | ( | int | subShapeID, |
| GEOM::GEOM_Object_var | aMainShape | ||
| ) |
Return text describing a subshape.
Definition at line 425 of file SMESHGUI_ComputeDlg.cxx.
References _PTR(), getSubShape(), and shapeTypeName().
Referenced by SMESHGUI_BaseComputeOp.showComputeResult(), and SMESHGUI_BaseComputeOp.showEvaluateResult().
{
QString text;
if ( _PTR(SObject) aSO = getSubShapeSO( subShapeID, aMainShape ))
text = aSO->GetName().c_str();
else {
text = QString("#%1").arg( subShapeID );
QString typeName = shapeTypeName( getSubShape( subShapeID, aMainShape ));
if ( typeName.length() )
text += QString(" (%1)").arg(typeName);
}
return text;
}
| QString SMESH.shapeTypeName | ( | GEOM::GEOM_Object_var | aShape, |
| const char * | dflt = "" |
||
| ) |
Definition at line 403 of file SMESHGUI_ComputeDlg.cxx.
References CASE2NAME, EDGE, FACE, and ex21_lamp.name.
Referenced by SMESHGUI_BaseComputeOp.onPublishShape(), and shapeText().
| void SMESH::ShowHelpFile | ( | const QString & | theHelpFileName | ) |
Definition at line 335 of file SMESHGUI_Utils.cxx.
References SMESHGUI.GetSMESHGUI().
Referenced by SMESHGUI_MeshInfoDlg.help(), and SMESHGUI_MeasureDlg.help().
{
LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
if (app) {
SMESHGUI* gui = SMESHGUI::GetSMESHGUI();
app->onHelpContextModule(gui ? app->moduleName(gui->moduleName()) : QString(""),
theHelpFileName);
}
else {
SUIT_MessageBox::warning(0, QObject::tr("WRN_WARNING"),
QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
arg(app->resourceMgr()->stringValue("ExternalBrowser",
"application")).
arg(theHelpFileName));
}
}
| TInterface::_var_type SMESH.SObjectToInterface | ( | _PTR(SObject) | theSObject | ) |
Definition at line 124 of file SMESHGUI_Utils.h.
References SObjectToObject().
{
CORBA::Object_var anObj = SObjectToObject(theSObject);
if(!CORBA::is_nil(anObj))
return TInterface::_narrow(anObj);
return TInterface::_nil();
}
| CORBA::Object_var SMESH::SObjectToObject | ( | _PTR(SObject) | theSObject | ) |
Definition at line 204 of file SMESHGUI_Utils.cxx.
References _PTR(), and SObjectToObject().
{
_PTR(Study) aStudy = GetActiveStudyDocument();
return SObjectToObject(theSObject,aStudy);
}
| CORBA::Object_var SMESH::SObjectToObject | ( | _PTR(SObject) | theSObject, |
| _PTR(Study) | theStudy | ||
| ) |
Definition at line 185 of file SMESHGUI_Utils.cxx.
References _PTR().
Referenced by SMESHGUI_Displayer.canBeDisplayed(), CreateActor(), DataOwnerToObject(), SMESHGUI_Selection.dim(), SMESHGUI_StandardMeshInfosDlg.DumpMeshInfos(), SMESHGUI_MeshInfosDlg.DumpMeshInfos(), SMESH_Gen_i.FindGeometryByMeshElement(), SMESH_Gen_i.GetGeometryByMeshElement(), SMESHGUI_Selection.groupType(), SMESH_NoteBook.InitObjectMap(), IObjectToObject(), SMESHGUI_Selection.isAutoColor(), SMESHGUI_Selection.isComputable(), SMESHGUI_Selection.isImported(), SMESHGUI_FilterDlg.isValid(), SMESHGUI_Selection.numberOfNodes(), SMESHGUI.OnEditDelete(), SMESHGUI.OnGUIEvent(), RemoveHypothesisOrAlgorithmOnMesh(), StdMeshersGUI_ObjectReferenceParamWdg.SetObjects(), SObjectToInterface(), and SObjectToObject().
{
SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>
(SUIT_Session::session()->activeApplication());
if (theSObject) {
_PTR(GenericAttribute) anAttr;
if (theSObject->FindAttribute(anAttr, "AttributeIOR")) {
_PTR(AttributeIOR) anIOR = anAttr;
CORBA::String_var aVal = anIOR->Value().c_str();
// string_to_object() DOC: If the input string is not valid ...
// a CORBA::SystemException is thrown.
if ( aVal && strlen( aVal ) > 0 )
return app->orb()->string_to_object(aVal);
}
}
return CORBA::Object::_nil();
}
| QString SMESH::UniqueMeshName | ( | const QString & | theBaseName, |
| const QString & | thePostfix | ||
| ) |
Definition at line 63 of file SMESHGUI_MeshUtils.cxx.
References _PTR(), ex21_lamp.name, and SMESH_reg.names.
Referenced by SMESHGUI_CopyMeshDlg.Init(), SMESHGUI_TranslationDlg.setNewMeshName(), SMESHGUI_SymmetryDlg.setNewMeshName(), SMESHGUI_ScaleDlg.setNewMeshName(), and SMESHGUI_RotationDlg.setNewMeshName().
{
QString baseName = thePostfix.isEmpty() ?
theBaseName : theBaseName + "_" + thePostfix;
if ( _PTR(Study) aStudy = GetActiveStudyDocument() ) {
QString name = baseName;
while ( !aStudy->FindObjectByName( name.toLatin1().data(), "SMESH" ).empty() ) {
int nb = 0;
QStringList names = name.split("_", QString::KeepEmptyParts);
if ( names.count() > 0 ) {
bool ok;
int index = names.last().toInt( &ok );
if ( ok ) {
nb = index;
names.removeLast();
}
}
names.append( QString::number( nb+1 ) );
name = names.join( "_" );
}
return name;
}
return baseName;
}
| QString SMESH::UniqueName | ( | const QString & | theBaseName, |
| _PTR(SObject) | theParent, | ||
| const QString & | thePostfix | ||
| ) |
Definition at line 88 of file SMESHGUI_MeshUtils.cxx.
References _PTR(), ex21_lamp.name, and SMESH_reg.names.
Referenced by SMESHGUI_Make2DFrom3DOp.onApply(), and SMESHGUI_Make2DFrom3DOp.startOperation().
{
QString baseName = thePostfix.isEmpty() ?
theBaseName : theBaseName + "_" + thePostfix;
QString name = baseName;
if ( _PTR(Study) aStudy = GetActiveStudyDocument() ) {
_PTR(SObject) p = theParent;
if ( !p ) p = aStudy->FindComponent( "SMESH" );
if ( p ) {
_PTR(ChildIterator) iter = aStudy->NewChildIterator( p );
int idx = 0;
while( true ) {
bool found = false;
for ( ; iter->More(); iter->Next() ) {
_PTR(SObject) so = iter->Value();
if ( !so ) continue; // skip bad objects
_PTR(SObject) ref;
if ( so->ReferencedObject( ref ) ) continue; // skip references
QString n = so->GetName().c_str();
if ( !n.isEmpty() && n == name ) {
QStringList names = name.split("_", QString::KeepEmptyParts);
if ( names.count() > 0 ) {
bool ok;
names.last().toInt( &ok );
if ( ok )
names.removeLast();
}
names.append( QString::number( ++idx ) );
name = names.join( "_" );
found = true;
break;
}
}
if ( !found ) break;
}
}
}
return name;
}
Definition at line 842 of file SMESHGUI_VTKUtils.cxx.
References _PTR(), eDisplay, GetVisualObj(), MESSAGE, and UpdateView().
Referenced by SMESHGUI_SmoothingDlg.ClickOnApply(), SMESHGUI_RevolutionDlg.ClickOnApply(), SMESHGUI_ExtrusionDlg.ClickOnApply(), SMESHGUI_ExtrusionAlongPathDlg.ClickOnApply(), SMESHGUI_Make2DFrom3DOp.compute2DMesh(), SMESHGUI_BaseComputeOp.computeMesh(), and UpdateView().
{
MESSAGE("Update");
_PTR(Study) aStudy = GetActiveStudyDocument();
CORBA::Long anId = aStudy->StudyId();
if ( TVisualObjPtr aVisualObj = SMESH::GetVisualObj(anId,theIO->getEntry())) {
if ( theDisplay )
UpdateView(SMESH::eDisplay,theIO->getEntry());
return true;
}
return false;
}
Definition at line 855 of file SMESHGUI_VTKUtils.cxx.
References _PTR(), eDisplay, GetVisualObj(), MESSAGE, and UpdateView().
{
MESSAGE("UpdateNulData");
_PTR(Study) aStudy = GetActiveStudyDocument();
CORBA::Long anId = aStudy->StudyId();
if ( TVisualObjPtr aVisualObj = SMESH::GetVisualObj(anId,theIO->getEntry(), true)) {
if ( theDisplay )
UpdateView(SMESH::eDisplay,theIO->getEntry());
return true;
}
return false;
}
| void SMESH::UpdateSelectionProp | ( | SMESHGUI * | theModule | ) |
Definition at line 868 of file SMESHGUI_VTKUtils.cxx.
References GetResourceMgr(), GetVtkViewWindow(), and MESSAGE.
Referenced by SMESHGUI.onViewManagerActivated(), and SMESHGUI.preferencesChanged().
{
if( !theModule )
return;
SalomeApp_Application* app = dynamic_cast< SalomeApp_Application* >( theModule->application() );
if( !app )
{
MESSAGE( "UpdateSelectionProp: Application is null" );
return;
}
SUIT_ViewManager* vm = app->activeViewManager();
if( !vm )
{
MESSAGE( "UpdateSelectionProp: View manager is null" );
return;
}
QVector<SUIT_ViewWindow*> views = vm->getViews();
SUIT_ResourceMgr* mgr = SMESH::GetResourceMgr( theModule );
if( !mgr )
{
MESSAGE( "UpdateSelectionProp: Resource manager is null" );
return;
}
QColor aHiColor = mgr->colorValue( "SMESH", "selection_object_color", Qt::white ),
aSelColor = mgr->colorValue( "SMESH", "selection_element_color", Qt::yellow ),
aPreColor = mgr->colorValue( "SMESH", "highlight_color", Qt::cyan );
int SW = mgr->integerValue( "SMESH", "selection_width", 5 ),
PW = mgr->integerValue( "SMESH", "highlight_width", 5 );
// adjust highlight_width to the width of mesh entities
int aElem0DSize = mgr->integerValue("SMESH", "elem0d_size", 5);
int aLineWidth = mgr->integerValue("SMESH", "element_width", 1);
int maxSize = aElem0DSize;
if (aElem0DSize > maxSize) maxSize = aElem0DSize;
if (aLineWidth > maxSize) maxSize = aLineWidth;
if (PW < maxSize + 2) PW = maxSize + 2;
double SP1 = mgr->doubleValue( "SMESH", "selection_precision_node", 0.025 ),
SP2 = mgr->doubleValue( "SMESH", "selection_precision_element", 0.001 ),
SP3 = mgr->doubleValue( "SMESH", "selection_precision_object", 0.025 );
for ( int i=0, n=views.count(); i<n; i++ ){
// update VTK viewer properties
if(SVTK_ViewWindow* aVtkView = GetVtkViewWindow( views[i] )){
// mesh element selection
aVtkView->SetSelectionProp(aSelColor.red()/255.,
aSelColor.green()/255.,
aSelColor.blue()/255.,
SW );
// tolerances
aVtkView->SetSelectionTolerance(SP1, SP2, SP3);
// pre-selection
aVtkView->SetPreselectionProp(aPreColor.red()/255.,
aPreColor.green()/255.,
aPreColor.blue()/255.,
PW);
// update actors
vtkRenderer* aRenderer = aVtkView->getRenderer();
VTK::ActorCollectionCopy aCopy(aRenderer->GetActors());
vtkActorCollection *aCollection = aCopy.GetActors();
aCollection->InitTraversal();
while(vtkActor *anAct = aCollection->GetNextActor()){
if(SMESH_Actor *anActor = dynamic_cast<SMESH_Actor*>(anAct)){
anActor->SetHighlightColor(aHiColor.red()/255.,
aHiColor.green()/255.,
aHiColor.blue()/255.);
anActor->SetPreHighlightColor(aPreColor.red()/255.,
aPreColor.green()/255.,
aPreColor.blue()/255.);
}
}
}
}
}
| void SMESH::UpdateView | ( | ) |
Definition at line 812 of file SMESHGUI_VTKUtils.cxx.
References GetCurrentVtkView(), Handle(), RepaintCurrentView(), SMESHGUI.selectionMgr(), and Update().
{
if(SVTK_ViewWindow* aWnd = SMESH::GetCurrentVtkView()){
LightApp_SelectionMgr* mgr = SMESHGUI::selectionMgr();
SALOME_ListIO selected; mgr->selectedObjects( selected );
if( selected.Extent() == 0){
vtkRenderer* aRenderer = aWnd->getRenderer();
VTK::ActorCollectionCopy aCopy(aRenderer->GetActors());
vtkActorCollection *aCollection = aCopy.GetActors();
aCollection->InitTraversal();
while(vtkActor *anAct = aCollection->GetNextActor()){
if(SMESH_Actor *anActor = dynamic_cast<SMESH_Actor*>(anAct)){
if(anActor->hasIO())
if (!Update(anActor->getIO(),anActor->GetVisibility()))
break; // avoid multiple warinings if visu failed
}
}
}else{
SALOME_ListIteratorOfListIO anIter( selected );
for( ; anIter.More(); anIter.Next()){
Handle(SALOME_InteractiveObject) anIO = anIter.Value();
if ( !Update(anIO,true) )
break; // avoid multiple warinings if visu failed
}
}
RepaintCurrentView();
}
}
| bool SMESH::UpdateView | ( | SUIT_ViewWindow * | theWnd, |
| EDisplaing | theAction, | ||
| const char * | theEntry | ||
| ) |
Definition at line 701 of file SMESHGUI_VTKUtils.cxx.
References _PTR(), CreateActor(), DisplayActor(), eDisplay, eDisplayAll, eDisplayOnly, eErase, eEraseAll, FindActorByEntry(), FitAll(), GetVisualObj(), GetVtkViewWindow(), Handle(), MESSAGE, and noSmeshActors().
Referenced by SMESHGUI.BuildPresentation(), SMESHGUI_TranslationDlg.ClickOnApply(), SMESHGUI_SymmetryDlg.ClickOnApply(), SMESHGUI_SewingDlg.ClickOnApply(), SMESHGUI_ScaleDlg.ClickOnApply(), SMESHGUI_RotationDlg.ClickOnApply(), SMESHGUI_RevolutionDlg.ClickOnApply(), SMESHGUI_RenumberingDlg.ClickOnApply(), SMESHGUI_RemoveNodesDlg.ClickOnApply(), SMESHGUI_RemoveElementsDlg.ClickOnApply(), SMESHGUI_NodesDlg.ClickOnApply(), SMESHGUI_MergeDlg.ClickOnApply(), SMESHGUI_CreatePolyhedralVolumeDlg.ClickOnApply(), SMESHGUI_BuildCompoundDlg.ClickOnApply(), SMESHGUI_AddQuadraticElementDlg.ClickOnApply(), SMESHGUI_AddMeshElementDlg.ClickOnApply(), SMESHGUI_WhatIsDlg.ClickOnOk(), SMESHGUI_CreatePolyhedralVolumeDlg.displaySimulation(), SMESHGUI_AddQuadraticElementDlg.displaySimulation(), SMESHGUI_AddMeshElementDlg.displaySimulation(), ExportMeshToFile(), SMESHGUI_SingleEditDlg.onApply(), SMESHGUI_MultiEditDlg.onApply(), SMESHGUI_MoveNodesDlg.onApply(), SMESHGUI_MeshPatternDlg.onApply(), SMESHGUI_MakeNodeAtPointOp.onApply(), SMESHGUI_GroupDlg.onApply(), SMESHGUI_DuplicateNodesDlg.onApply(), SMESHGUI_DeleteGroupDlg.onApply(), SMESHGUI.OnGUIEvent(), SMESHGUI_MergeDlg.onTypeChanged(), Update(), SMESHGUI.update(), UpdateNulData(), and UpdateView().
{
//MESSAGE("UpdateView");
bool OK = false;
SVTK_ViewWindow* aViewWnd = GetVtkViewWindow(theWnd);
if (!aViewWnd)
return OK;
SVTK_ViewWindow* vtkWnd = GetVtkViewWindow(theWnd);
if (!vtkWnd)
return OK;
SalomeApp_Study* aStudy = dynamic_cast<SalomeApp_Study*>( vtkWnd->getViewManager()->study() );
if (!aStudy)
return OK;
{
OK = true;
vtkRenderer *aRenderer = aViewWnd->getRenderer();
VTK::ActorCollectionCopy aCopy(aRenderer->GetActors());
vtkActorCollection *aCollection = aCopy.GetActors();
aCollection->InitTraversal();
switch (theAction) {
case eDisplayAll: {
while (vtkActor *anAct = aCollection->GetNextActor()) {
if (SMESH_Actor *anActor = dynamic_cast<SMESH_Actor*>(anAct)) {
MESSAGE("--- display " << anActor);
anActor->SetVisibility(true);
if(anActor->hasIO()){
Handle(SALOME_InteractiveObject) anIO = anActor->getIO();
if(anIO->hasEntry()){
aStudy->setVisibilityState(anIO->getEntry(), Qtx::ShownState);
}
}
}
}
break;
}
case eDisplayOnly:
case eEraseAll: {
//MESSAGE("---case eDisplayOnly");
while (vtkActor *anAct = aCollection->GetNextActor()) {
if (SMESH_Actor *anActor = dynamic_cast<SMESH_Actor*>(anAct)) {
//MESSAGE("--- erase " << anActor);
anActor->SetVisibility(false);
}
}
aStudy->setVisibilityStateForAll(Qtx::HiddenState);
}
default: {
if (SMESH_Actor *anActor = FindActorByEntry(theWnd,theEntry)) {
switch (theAction) {
case eDisplay:
case eDisplayOnly:
//MESSAGE("--- display " << anActor);
anActor->Update();
anActor->SetVisibility(true);
if (theAction == eDisplayOnly) aRenderer->ResetCameraClippingRange();
aStudy->setVisibilityState(theEntry, Qtx::ShownState);
break;
case eErase:
//MESSAGE("--- erase " << anActor);
anActor->SetVisibility(false);
aStudy->setVisibilityState(theEntry, Qtx::HiddenState);
break;
}
} else {
switch (theAction) {
case eDisplay:
case eDisplayOnly:
{
//MESSAGE("---");
SalomeApp_Study* aStudy = dynamic_cast<SalomeApp_Study*>(theWnd->getViewManager()->study());
_PTR(Study) aDocument = aStudy->studyDS();
// Pass non-visual objects (hypotheses, etc.), return true in this case
CORBA::Long anId = aDocument->StudyId();
TVisualObjPtr aVisualObj;
if ( (aVisualObj = GetVisualObj(anId,theEntry)) && aVisualObj->IsValid())
{
if ((anActor = CreateActor(aDocument,theEntry,true))) {
bool needFitAll = noSmeshActors(theWnd); // fit for the first object only
DisplayActor(theWnd,anActor);
aStudy->setVisibilityState(theEntry, Qtx::ShownState);
// FitAll(); - PAL16770(Display of a group performs an automatic fit all)
if (needFitAll) FitAll();
} else {
OK = false;
}
}
break;
}
}
}
}
}
}
return OK;
}
| bool SMESH::UpdateView | ( | EDisplaing | theAction, |
| const char * | theEntry | ||
| ) |
Definition at line 804 of file SMESHGUI_VTKUtils.cxx.
References GetActiveStudy(), and UpdateView().
{
//MESSAGE("UpdateView");
SalomeApp_Study* aStudy = dynamic_cast< SalomeApp_Study* >( GetActiveStudy() );
SalomeApp_Application* app = dynamic_cast< SalomeApp_Application* >( aStudy->application() );
SUIT_ViewWindow *aWnd = app->activeViewManager()->getActiveView();
return UpdateView(aWnd,theAction,theEntry);
}
| void SMESH::WriteUnstructuredGrid | ( | vtkUnstructuredGrid * | theGrid, |
| const char * | theFileName | ||
| ) |
Definition at line 84 of file SMESH_ActorUtils.cxx.
Referenced by SMESH_VisualObjDef.buildPrs().
{
vtkXMLUnstructuredGridWriter* aWriter = vtkXMLUnstructuredGridWriter::New();
aWriter->SetFileName(theFileName);
aWriter->SetInput(theGrid);
aWriter->SetDataModeToAscii();
if(theGrid->GetNumberOfCells()){
aWriter->Write();
}
aWriter->Delete();
}
| const vtkIdType SMESH.DeleteActorEvent = vtkCommand::UserEvent + 100 |
Definition at line 50 of file SMESH_Actor.h.
Referenced by SMESHGUI.addActorAsObserver(), SMESHGUI.ProcessEvents(), and SMESH_ActorDef.~SMESH_ActorDef().
| const long SMESH.EXTRUSION_FLAG_BOUNDARY = 1 |
Auxilary flags for advanced extrusion.
BOUNDARY: create or not boundary for result of extrusion SEW: try to use existing nodes or create new nodes in any case
Definition at line 232 of file SMESH_Mesh.idl.
Referenced by SMESH_MeshEditor.ExtrusionSweep().
| const long SMESH.EXTRUSION_FLAG_SEW = 2 |
Definition at line 233 of file SMESH_Mesh.idl.
Referenced by SMESH_MeshEditor.ExtrusionSweep().
Definition at line 85 of file SMESHGUI_HypothesesUtils.cxx.
Referenced by GetAvailableHypotheses(), GetHypothesisData(), and InitAvailableHypotheses().
Definition at line 84 of file SMESHGUI_HypothesesUtils.cxx.
Referenced by GetAvailableHypotheses(), GetHypothesisData(), and InitAvailableHypotheses().
Definition at line 91 of file SMESHGUI_HypothesesUtils.cxx.
Referenced by GetHypothesesSet(), GetHypothesesSets(), and InitAvailableHypotheses().
| return SMESH.subSO |
Definition at line 381 of file SMESHGUI_ComputeDlg.cxx.
| const long SMESH.Tag_0DElementsGroups = 15 |
Definition at line 73 of file SMESH_Gen.idl.
Referenced by SMESH_Gen_i.Get0DElementsGroupsTag().
| const long SMESH.Tag_AlgorithmsRoot = 2 |
Definition at line 51 of file SMESH_Gen.idl.
Referenced by SMESHGUI_MeshOp.existingHyps(), and SMESHGUI_Selection.type().
| const long SMESH.Tag_EdgeGroups = 12 |
Definition at line 70 of file SMESH_Gen.idl.
Referenced by SMESHGUI_StandardMeshInfosDlg.DumpMeshInfos(), SMESH_Gen_i.GetEdgeGroupsTag(), and SMESH_TypeFilter.isOk().
| const long SMESH.Tag_FaceGroups = 13 |
Definition at line 71 of file SMESH_Gen.idl.
Referenced by SMESHGUI_StandardMeshInfosDlg.DumpMeshInfos(), SMESH_Gen_i.GetFaceGroupsTag(), and SMESH_TypeFilter.isOk().
| const long SMESH.Tag_FirstGroup = 11 |
Definition at line 68 of file SMESH_Gen.idl.
Referenced by SMESH_TypeFilter.isOk(), and SMESHGUI_Selection.type().
| const long SMESH.Tag_FirstMeshRoot = 3 |
Definition at line 52 of file SMESH_Gen.idl.
Referenced by SMESH_TypeFilter.isOk(), and SMESHGUI_Selection.type().
| const long SMESH.Tag_FirstSubMesh = 4 |
Definition at line 58 of file SMESH_Gen.idl.
Referenced by SMESH_TypeFilter.isOk(), and SMESHGUI_MeshOrderMgr.SetMeshOrder().
| const long SMESH.Tag_HypothesisRoot = 1 |
Tags definition.
Definition at line 50 of file SMESH_Gen.idl.
Referenced by SMESHGUI_Selection.type().
| const long SMESH.Tag_LastGroup = 15 |
Definition at line 74 of file SMESH_Gen.idl.
| const long SMESH.Tag_LastSubMesh = 10 |
Definition at line 66 of file SMESH_Gen.idl.
Referenced by SMESH_TypeFilter.isOk(), and SMESHGUI_MeshOrderMgr.SetMeshOrder().
| const long SMESH.Tag_NodeGroups = 11 |
Definition at line 69 of file SMESH_Gen.idl.
Referenced by SMESHGUI_StandardMeshInfosDlg.DumpMeshInfos(), SMESH_Gen_i.GetNodeGroupsTag(), and SMESH_TypeFilter.isOk().
| const long SMESH.Tag_RefOnAppliedAlgorithms = 3 |
Definition at line 56 of file SMESH_Gen.idl.
Referenced by SMESHGUI_MeshOp.existingHyps().
| const long SMESH.Tag_RefOnAppliedHypothesis = 2 |
Definition at line 55 of file SMESH_Gen.idl.
| const long SMESH.Tag_RefOnShape = 1 |
Definition at line 54 of file SMESH_Gen.idl.
Referenced by SMESH_Swig.SetShape().
| const long SMESH.Tag_SubMeshOnCompound = 10 |
Definition at line 65 of file SMESH_Gen.idl.
Referenced by _PTR(), and SMESHGUI_Selection.type().
| const long SMESH.Tag_SubMeshOnEdge = 5 |
Definition at line 60 of file SMESH_Gen.idl.
Referenced by _PTR(), and SMESHGUI_Selection.type().
| const long SMESH.Tag_SubMeshOnFace = 7 |
Definition at line 62 of file SMESH_Gen.idl.
Referenced by _PTR(), and SMESHGUI_Selection.type().
| const long SMESH.Tag_SubMeshOnShell = 8 |
Definition at line 63 of file SMESH_Gen.idl.
Referenced by _PTR(), and SMESH_Gen_i.GetSubMeshOnShellTag().
| const long SMESH.Tag_SubMeshOnSolid = 9 |
Definition at line 64 of file SMESH_Gen.idl.
Referenced by _PTR(), and SMESHGUI_Selection.type().
| const long SMESH.Tag_SubMeshOnVertex = 4 |
Definition at line 59 of file SMESH_Gen.idl.
Referenced by _PTR(), and SMESHGUI_Selection.type().
| const long SMESH.Tag_SubMeshOnWire = 6 |
Definition at line 61 of file SMESH_Gen.idl.
Referenced by _PTR(), and SMESH_Gen_i.GetSubMeshOnWireTag().
| const long SMESH.Tag_VolumeGroups = 14 |
Definition at line 72 of file SMESH_Gen.idl.
Referenced by SMESHGUI_StandardMeshInfosDlg.DumpMeshInfos(), SMESH_Gen_i.GetVolumeGroupsTag(), and SMESH_TypeFilter.isOk().
MemoryReserve* SMESH.theVISU_MemoryReserve = new MemoryReserve [static] |
Definition at line 98 of file SMESHGUI_VTKUtils.cxx.
Referenced by OnVisuException().
TVisualObjCont SMESH.VISUAL_OBJ_CONT [static] |
Definition at line 81 of file SMESHGUI_VTKUtils.cxx.
Referenced by GetVisualObj(), RemoveActor(), RemoveAllObjectsWithActors(), RemoveVisualObjectWithActors(), and RemoveVisuData().