Back to index

salome-smesh  6.5.0
Functions
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>

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.

{
    return myStudy;
}

Here is the caller graph for this function:

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.

{
  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;
}

Here is the caller graph for this function: