Version: 6.3.1
Functions

src/PluginUtils/GeomSelectionTools.cxx File Reference

#include "GeomSelectionTools.h"
#include <LightApp_SelectionMgr.h>
#include <SalomeApp_Application.h>
#include <SUIT_Session.h>
#include <SALOME_ListIteratorOfListIO.hxx>
#include <GEOM_Client.hxx>
#include <SMESHGUI_Utils.h>
#include <boost/shared_ptr.hpp>
#include <GEOMImpl_Types.hxx>
#include <TopoDS.hxx>
#include <BRep_Tool.hxx>
#include <Handle_Geom_Surface.hxx>
#include <BRepAdaptor_Surface.hxx>
#include "utilities.h"
#include "SALOME_LifeCycleCORBA.hxx"
#include <sstream>
#include <QLocale>
#include <QRegExp>
Include dependency graph for GeomSelectionTools.cxx:

Go to the source code of this file.

Functions

 _PTR (Study) GeomSelectionTools
 Accessor to the Study used by this GeomSelectionTools object.
 Handle (SALOME_InteractiveObject) GeomSelectionTools
 Return the first selected Salome Interactive Object (Handle(Salome_InteractiveObject))

Function Documentation

_PTR ( Study  )

Accessor to the Study used by this GeomSelectionTools object.

Returns:
The study used by the GeomSelectionTools class

Definition at line 61 of file GeomSelectionTools.cxx.

Referenced by _PTR(), SMESHGUI.activateModule(), AutoColor(), SMESHGUI_GenericHypothesisCreator.buildStdFrame(), SMESHGUI_Displayer.canBeDisplayed(), CheckTypeObject(), SMESHGUI_TranslationDlg.ClickOnApply(), SMESHGUI_SymmetryDlg.ClickOnApply(), SMESHGUI_ScaleDlg.ClickOnApply(), SMESHGUI_RotationDlg.ClickOnApply(), SMESHGUI_CopyMeshDlg.ClickOnApply(), SMESHGUI_BuildCompoundDlg.ClickOnApply(), SMESHGUI.contextMenuPopup(), SMESHGUI_Selection.dim(), SMESHGUI_StandardMeshInfosDlg.DumpMeshInfos(), SMESHGUI_MeshInfosDlg.DumpMeshInfos(), elementType(), SMESHGUI_GroupDlg.GetDefaultName(), SMESHGUI_BuildCompoundDlg.GetDefaultName(), SMESH_NumberFilter.getGeom(), SMESHGUI_MeshOrderMgr.GetMeshOrder(), SMESHGUI.GetSMESHGen(), SMESHGUI.GetSMESHGUI(), SMESHGUI_Selection.groupType(), ImportMeshesFromFile(), SMESHGUI_Selection.init(), SMESHGUI_GroupDlg.init(), SMESHGUI.isActiveStudyLocked(), SMESHGUI_Selection.isAutoColor(), SMESHGUI_Selection.isComputable(), SMESHGUI_Selection.isImported(), SMESH_TypeFilter.isOk(), SMESHGUI_Selection.isPreComputable(), SMESHGUI_Selection.numberOfNodes(), SMESHGUI_GroupDlg.onAdd(), SMESHGUI_MeshPatternDlg.onApply(), SMESHGUI_DimGroupDlg.onApply(), SMESHGUI_CutGroupsDlg.onApply(), SMESHGUI_IntersectGroupsDlg.onApply(), SMESHGUI_UnionGroupsDlg.onApply(), SMESHGUI_GroupDlg.onApply(), SMESHGUI_GenericHypothesisCreator.onDialogFinished(), SMESHGUI.OnEditDelete(), SMESHGUI.OnGUIEvent(), SMESHGUI_GroupDlg.onObjectSelectionChanged(), SMESHGUI_GroupDlg.onPublishShapeByMeshDlg(), SMESHGUI_MeshPatternDlg.onSelectionDone(), SMESHGUI_CreatePatternDlg.onSelectionDone(), SMESHGUI.renameAllowed(), SMESHGUI.renameObject(), SMESHGUI.restoreVisualParameters(), SMESHGUI_GroupDlg.SetAppropriateActor(), SetDisplayMode(), SMESHGUI_MeshOrderMgr.SetMesh(), SMESHGUI_CreatePatternDlg.SetMesh(), SMESH_Swig.SetMeshIcon(), SMESHGUI_MeshOrderMgr.SetMeshOrder(), SMESHGUI_TranslationDlg.setNewMeshName(), SMESHGUI_SymmetryDlg.setNewMeshName(), SMESHGUI_ScaleDlg.setNewMeshName(), SMESHGUI_RotationDlg.setNewMeshName(), StdMeshersGUI_ObjectReferenceParamWdg.SetObject(), StdMeshersGUI_ObjectReferenceParamWdg.SetObjects(), SMESHGUI_MeshInfo.showInfo(), SMESHGUI.storeVisualParameters(), SMESHGUI.switchToOperation(), SMESHGUI_Selection.type(), and SMESHGUI_ClippingDlg.updateActorList().

{
    return myStudy;
}
Handle ( SALOME_InteractiveObject  )

Return the first selected Salome Interactive Object (Handle(Salome_InteractiveObject))

Returns:
the first selected Salome Interactive Object

Definition at line 108 of file GeomSelectionTools.cxx.

Referenced by SMESH_NoteBook.AddCommand(), VISCOUS._Shrinker1D.AddEdge(), SMESH_Pattern.Apply(), AutoColor(), CheckHomogeneousSelection(), StdMeshers_QuadToTriaAdaptor.CheckIntersection(), SMESH_MesherHelper.CheckNodeU(), SMESH_MesherHelper.CheckNodeUV(), SMESHGUI_SewingDlg.ClickOnApply(), VISCOUS._Shrinker1D.Compute(), StdMeshers_QuadToTriaAdaptor.Compute(), StdMeshers_Quadrangle_2D.Compute(), StdMeshers_Quadrangle_2D.ComputeQuadPref(), StdMeshers_Quadrangle_2D.ComputeReduced(), StdMeshers_MEFISTO_2D.ComputeScaleOnFace(), SMESH_Pattern.computeUVOnEdge(), SMESHGUI.contextMenuPopup(), Control(), DisableAutoColor(), SMESHGUI_MeshInfosDlg.DumpMeshInfos(), SMESH_Gen_i.DumpPython_impl(), SMESH_Algo.EdgeLength(), StdMeshers_Quadrangle_2D.EvaluateQuadPref(), ExportMeshToFile(), SMESH_MeshEditor_i.extrusionSweep(), SMESHGUI_MinDistance.firstEdited(), fixCommonVertexUV(), SMESH_MesherHelper.FixQuadraticElements(), SMESH_ElementSearcherImpl.getIntersParamOnLine(), SMESH_MesherHelper.GetMediumNode(), SMESH_MesherHelper.getMediumNodeOnComposedWire(), SMESH_MesherHelper.GetMiddleUV(), SMESH_Gen_i.GetNewPythonLines(), SMESH_MesherHelper.GetNodeUV(), SMESH_MesherHelper.GetNodeUVneedInFaceNode(), SMESH_Block.GetOrderedEdges(), StdMeshers_PrismAsBlock.TSideFace.GetPCurves(), SMESH_MesherHelper.GetProjector(), Handle(), SMESHGUI_MeshInfoDlg.idChanged(), SMESH_PreviewActorsCollection.Init(), SMESH_ActorDef.Init(), SMESHGUI_FilterDlg.insertFilterInViewer(), VISCOUS._LayerEdge.InvalidateStep(), isCorrectArg(), SMESHGUI_MultiEditDlg.isIdValid(), SMESH_Algo.IsReversedSubMesh(), SMESHGUI_FilterDlg.isValid(), VISCOUS._LayerEdge.LastSegment(), SMESH_MeshEditor.MakeEdgePathPoints(), SMESHGUI.OnEditDelete(), SMESHGUI.OnGUIEvent(), SMESHGUI_GroupDlg.onObjectSelectionChanged(), SMESHGUI_GroupDlg.onPublishShapeByMeshDlg(), SMESHGUI_TransparencyDlg.onSelectionChanged(), SMESHGUI_Preferences_ScalarBarDlg.onSelectionChanged(), StdMeshersGUI_ObjectReferenceParamWdg.onSelectionDone(), SMESHGUI_SingleEditDlg.onSelectionDone(), SMESHGUI_MultiEditDlg.onSelectionDone(), SMESHGUI_MoveNodesDlg.onSelectionDone(), SMESHGUI_MeshPatternDlg.onSelectionDone(), SMESHGUI_MakeNodeAtPointOp.onSelectionDone(), SMESHGUI_FilterDlg.onSelectionDone(), SMESHGUI_CreatePatternDlg.onSelectionDone(), SMESHGUI_WhatIsDlg.onTextChange(), SMESHGUI_TranslationDlg.onTextChange(), SMESHGUI_SymmetryDlg.onTextChange(), SMESHGUI_SingleEditDlg.onTextChange(), SMESHGUI_ScaleDlg.onTextChange(), SMESHGUI_RotationDlg.onTextChange(), SMESHGUI_RemoveNodesDlg.onTextChange(), SMESHGUI_RemoveElementsDlg.onTextChange(), SMESHGUI_MoveNodesDlg.onTextChange(), SMESHGUI_ExtrusionAlongPathDlg.onTextChange(), SMESHGUI_CopyMeshDlg.onTextChange(), PlotDistribution(), process(), SMESH_MeshEditor.QuadToTri(), VISCOUS._ViscousBuilder.refine(), SMESHGUI.renameObject(), SMESH_NoteBook.ReplaceVariables(), SMESHGUI.restoreVisualParameters(), SaveDistribution(), SMESHGUI_MinDistance.secondEdited(), SMESHGUI_FilterDlg.selectInViewer(), SMESHGUI_BoundingBox.selectionChanged(), SMESHGUI_MinDistance.selectionChanged(), StdMeshersGUI_SubShapeSelectorWdg.SelectionIntoArgument(), SMESHGUI_WhatIsDlg.SelectionIntoArgument(), SMESHGUI_TranslationDlg.SelectionIntoArgument(), SMESHGUI_SymmetryDlg.SelectionIntoArgument(), SMESHGUI_SewingDlg.SelectionIntoArgument(), SMESHGUI_ScaleDlg.SelectionIntoArgument(), SMESHGUI_RotationDlg.SelectionIntoArgument(), SMESHGUI_RenumberingDlg.SelectionIntoArgument(), SMESHGUI_RemoveNodesDlg.SelectionIntoArgument(), SMESHGUI_RemoveElementsDlg.SelectionIntoArgument(), SMESHGUI_NodesDlg.SelectionIntoArgument(), SMESHGUI_MergeDlg.SelectionIntoArgument(), SMESHGUI_ExtrusionAlongPathDlg.SelectionIntoArgument(), SMESHGUI_CopyMeshDlg.SelectionIntoArgument(), SMESHGUI_BuildCompoundDlg.SelectionIntoArgument(), SMESHGUI_AddQuadraticElementDlg.SelectionIntoArgument(), SMESHGUI_AddMeshElementDlg.SelectionIntoArgument(), SMESHGUI_MeshOp.selectObject(), SMESHGUI_PredicateFilter.SetActor(), SMESHGUI_GroupDlg.SetAppropriateActor(), SetDisplayEntity(), SetDisplayMode(), VISCOUS._ViscousBuilder.setEdgeData(), SMESH_Pattern.setFirstEdge(), StdMeshers_Arithmetic1D.SetParametersByMesh(), SMESH_MesherHelper.SetSubShape(), StdMeshers_NumberOfSegments.SetTableFunction(), SMESHGUI_TransparencyDlg.SetTransparency(), ShowDistribution(), VISCOUS._ViscousBuilder.shrink(), StdMeshers_Quadrangle_2D.Smooth(), VISCOUS._ViscousBuilder.smoothAnalyticEdge(), VISCOUS._ViscousBuilder.smoothAndCheck(), SMESHGUI_BoundingBox.sourceEdited(), StdMeshers_MEFISTO_2D.StoreResult(), SMESHGUI.storeVisualParameters(), SMESHGUI_ClippingDlg.updateActorList(), SMESHGUI_MeshInfoDlg.updateInfo(), SMESH_ActorDef.UpdatePlot2Histogram(), StdMeshers_PrismAsBlock.TSideFace.Value(), and Function.value().

{
  SALOME_ListIO selected;
  LightApp_SelectionMgr* aSel = selectionMgr();
  aSel->selectedObjects( selected, NULL, false );
  if (!selected.IsEmpty()){
    SALOME_ListIteratorOfListIO anIt(selected);
    Handle(SALOME_InteractiveObject) anIO;
    anIO = anIt.Value();
    return anIO;
  }
  return NULL;
}
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS