Back to index

salome-geom  6.5.0
Defines | Functions
GEOMBase_Helper.cxx File Reference
#include "GEOMBase_Helper.h"
#include "GEOMBase.h"
#include "GEOM_Operation.h"
#include <GeometryGUI.h>
#include <SUIT_Desktop.h>
#include <SUIT_Session.h>
#include <SUIT_ViewManager.h>
#include <SUIT_ViewWindow.h>
#include <SUIT_ViewModel.h>
#include <SUIT_MessageBox.h>
#include <SUIT_OverrideCursor.h>
#include <SUIT_ResourceMgr.h>
#include <SalomeApp_Module.h>
#include <SalomeApp_Application.h>
#include <SalomeApp_Study.h>
#include <LightApp_SelectionMgr.h>
#include <LightApp_DataOwner.h>
#include <SalomeApp_Tools.h>
#include <SALOME_ListIteratorOfListIO.hxx>
#include <SALOME_Prs.h>
#include <OCCViewer_ViewModel.h>
#include <SVTK_ViewModel.h>
#include <TColStd_MapOfInteger.hxx>
#include <TCollection_AsciiString.hxx>
#include <TColStd_IndexedMapOfInteger.hxx>

Go to the source code of this file.

Defines

#define WITHGENERICOBJ

Functions

static SUIT_ViewWindow * getActiveView ()
static bool typeInList (TopAbs_ShapeEnum type, const QList< TopAbs_ShapeEnum > &types)

Define Documentation

#define WITHGENERICOBJ

Definition at line 61 of file GEOMBase_Helper.cxx.


Function Documentation

static SUIT_ViewWindow* getActiveView ( ) [static]

Definition at line 67 of file GEOMBase_Helper.cxx.

{
  SUIT_Study* activeStudy = SUIT_Session::session()->activeApplication()->activeStudy();
  if ( activeStudy )
    return SUIT_Session::session()->activeApplication()->desktop()->activeWindow();

  return 0;
}
static bool typeInList ( TopAbs_ShapeEnum  type,
const QList< TopAbs_ShapeEnum > &  types 
) [static]

Definition at line 1234 of file GEOMBase_Helper.cxx.

{
  bool ok = false;
  for ( int i = 0; i < types.count() && !ok; i++ )
    ok = types[i] == TopAbs_SHAPE || types[i] == type;
  return ok;
}