Back to index

salome-geom  6.5.0
Classes | Functions
GeometryGUI_Swig.cxx File Reference
#include "GeometryGUI_Swig.hxx"
#include "GeometryGUI.h"
#include "SUIT_Desktop.h"
#include "SUIT_Session.h"
#include "SalomeApp_Application.h"
#include "SalomeApp_Study.h"
#include "OB_Browser.h"
#include "OCCViewer_ViewWindow.h"
#include "OCCViewer_ViewManager.h"
#include "SOCC_ViewModel.h"
#include <SOCC_Prs.h>
#include "SVTK_ViewModel.h"
#include "SVTK_ViewWindow.h"
#include "SVTK_View.h"
#include "SVTK_Renderer.h"
#include <SVTK_Prs.h>
#include "GEOM_Actor.h"
#include "GEOM_Client.hxx"
#include "GEOM_AISShape.hxx"
#include "GEOM_InteractiveObject.hxx"
#include "GEOM_Displayer.h"
#include "SALOME_Event.h"
#include <TopAbs.hxx>
#include <TopoDS_Shape.hxx>
#include <AIS_ListOfInteractive.hxx>
#include <AIS_ListIteratorOfListOfInteractive.hxx>
#include <AIS_Drawer.hxx>
#include <BRepTools.hxx>
#include <SALOMEconfig.h>
#include <vtkRenderer.h>

Go to the source code of this file.

Classes

class  TInitGeomGenEvent

Functions

static SHAPE_READER (ShapeReader)
OCCViewer_Viewer * GetOCCViewer (SUIT_Application *theApp)
SVTK_ViewWindow * GetSVTKViewWindow (SUIT_Application *theApp)

Function Documentation

OCCViewer_Viewer* GetOCCViewer ( SUIT_Application *  theApp) [inline]

Definition at line 73 of file GeometryGUI_Swig.cxx.

                                                               {
  SUIT_ViewWindow* window = theApp->desktop()->activeWindow();
  if(window && window->getViewManager()->getType() == OCCViewer_Viewer::Type()){
    OCCViewer_ViewWindow* vw = dynamic_cast<OCCViewer_ViewWindow*>( window );
    if ( vw ) {
      OCCViewer_ViewManager* vm = dynamic_cast<OCCViewer_ViewManager*>( vw->getViewManager() );
      if ( vm )
        return vm->getOCCViewer();
    }
  }

  return 0;
}
SVTK_ViewWindow* GetSVTKViewWindow ( SUIT_Application *  theApp) [inline]

Definition at line 87 of file GeometryGUI_Swig.cxx.

                                                                   {
  SUIT_ViewWindow* window = theApp->desktop()->activeWindow();
  if(window && window->getViewManager()->getType() == SVTK_Viewer::Type())
    return dynamic_cast<SVTK_ViewWindow*>( window );

  return 0;
}
static SHAPE_READER ( ShapeReader  ) [static]