Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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_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  TGetActiveStudyIdEvent
 
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
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
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

static LightApp_Study* getActiveStudy ( )
static
Returns
active study or 0 if there is no study opened

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

static LightApp_Application* getApplication ( )
static
Returns
active application or 0 if there is no any

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

PyObject * setView ( int  type)
static

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, TEvent::Execute(), SUIT_ViewManager::getActiveView(), getApplication(), ProcessVoidEvent(), and TEvent::TEvent().

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

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

Parameters
parametertype of the parameter
valuesvalue of the parameter

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