Version: 9.12.0
SALOMEGUI_Swig.cxx File Reference
#include "SALOMEGUI_Swig.hxx"
#include <SUIT_Session.h>
#include <SUIT_Desktop.h>
#include <SUIT_ViewWindow.h>
#include <SUIT_ViewManager.h>
#include <SUIT_ViewModel.h>
#include <SUIT_DataObjectIterator.h>
#include <CAM_DataModel.h>
#include <LightApp_Application.h>
#include <LightApp_Displayer.h>
#include <LightApp_Study.h>
#include <LightApp_Module.h>
#include <LightApp_DataObject.h>
#include <LightApp_SelectionMgr.h>
#include <LightApp_DataOwner.h>
#include <SALOME_Prs.h>
#include <SALOME_Event.h>
#include <SALOME_ListIO.hxx>
#include <SALOME_InteractiveObject.hxx>
#include <SOCC_ViewModel.h>
#include <SOCC_ViewWindow.h>
#include <SVTK_ViewModel.h>
#include <SVTK_ViewWindow.h>
#include <SVTK_Renderer.h>
#include <vtkCamera.h>
#include <vtkRenderer.h>
#include <SPlot2d_ViewWindow.h>
#include <utilities.h>

Classes

class  THasDesktopEvent
 
class  TGetActiveStudyNameEvent
 
class  TGetComponentNameEvent
 
class  TGetSelectedEvent
 
class  TIsInViewerEvent
 
class  TGetViewParameters
 

Enumerations

enum  {
  __ViewTop , __ViewBottom , __ViewLeft , __ViewRight ,
  __ViewFront , __ViewBack
}
 View operation type. More...
 
enum  { __CameraPosition , __CameraFocalPoint , __CameraViewUp , __ViewScale }
 View parameter type. More...
 

Functions

static LightApp_ApplicationgetApplication ()
 Get active application object. More...
 
static LightApp_StudygetActiveStudy ()
 Get active study object. More...
 
static void setView (int view)
 Change the view of the current view window. More...
 
static void setViewParameter (int parameter, QList< double > &values)
 Change the camera parameters of the current view window. More...
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

View operation type.

Enumerator
__ViewTop 

view top side

__ViewBottom 

view bottom side

__ViewLeft 

view left side

__ViewRight 

view right side

__ViewFront 

view front side

__ViewBack 

view back side

◆ anonymous enum

anonymous enum

View parameter type.

Enumerator
__CameraPosition 

position of the active camera

__CameraFocalPoint 

focal point of the active camera

__CameraViewUp 

view up of the active camera

__ViewScale 

scale of the view

Function Documentation

◆ getActiveStudy()

static LightApp_Study* getActiveStudy ( )
static

Get active study object.

Returns
active study or 0 if there is no study opened

References SUIT_Application::activeStudy(), and getApplication().

◆ getApplication()

static LightApp_Application* getApplication ( )
static

Get active application object.

Returns
active application or 0 if there is no any

References SUIT_Session::activeApplication(), and SUIT_Session::session().

◆ setView()

PyObject * setView ( int  type)
static

Change the view of the current view window.

Set view type for the current VTK viewer.

Parameters
viewview operation type

If there is no active VTK viewer, nothing happens.

Parameters
typeview type
Returns
nothing (Py_None)

References __ViewBack, __ViewBottom, __ViewFront, __ViewLeft, __ViewRight, __ViewTop, SALOME_Event::Execute(), SUIT_ViewManager::getActiveView(), getApplication(), and ProcessVoidEvent().

◆ setViewParameter()

static void setViewParameter ( int  parameter,
QList< double > &  values 
)
static

Change the camera parameters of the current view window.

NOTE: For the current moment implemented for VTK viewer only.

Parameters
parametertype of the parameter
valuesvalue of the parameter

References __CameraFocalPoint, __CameraPosition, __CameraViewUp, __ViewScale, SALOME_Event::Execute(), SUIT_ViewManager::getActiveView(), getApplication(), and ProcessVoidEvent().