Version: 9.15.0
SALOME_Selection Class Reference

The class represents selection which can be used in Python. More...

#include <SalomePyQt.h>

Inheritance diagram for SALOME_Selection:
Inheritance graph

Signals

void currentSelectionChanged ()
 

Public Member Functions

 ~SALOME_Selection ()
 Destructor. More...
 
void Clear ()
 Clear the selection. More...
 
void ClearIObjects ()
 Clear the selection. More...
 
void ClearFilters ()
 

Static Public Member Functions

static SALOME_SelectionGetSelection (LightApp_Application *)
 Get the selection object for the specified application. More...
 

Private Slots

void onSelMgrDestroyed ()
 Called when selection manager is destroyed (usually when the study is closed). More...
 

Private Member Functions

 SALOME_Selection (QObject *)
 Constructor. More...
 

Private Attributes

LightApp_SelectionMgrmySelMgr
 

Detailed Description

The class represents selection which can be used in Python.

Constructor & Destructor Documentation

◆ ~SALOME_Selection()

SALOME_Selection::~SALOME_Selection ( )

Destructor.

◆ SALOME_Selection()

SALOME_Selection::SALOME_Selection ( QObject p)
private

Constructor.

Parameters
pparent object

References currentSelectionChanged(), mySelMgr, onSelMgrDestroyed(), and LightApp_Application::selectionMgr().

Member Function Documentation

◆ Clear()

void SALOME_Selection::Clear ( )

Clear the selection.

References SUIT_SelectionMgr::clearSelected(), mySelMgr, and ProcessVoidEvent().

◆ ClearFilters()

void SALOME_Selection::ClearFilters ( )

Removes all selection filters.

References SUIT_SelectionMgr::clearFilters(), mySelMgr, and ProcessVoidEvent().

◆ ClearIObjects()

void SALOME_Selection::ClearIObjects ( )

Clear the selection.

References Clear().

◆ currentSelectionChanged

void SALOME_Selection::currentSelectionChanged ( )
signal

◆ GetSelection()

SALOME_Selection * SALOME_Selection::GetSelection ( LightApp_Application app)
static

Get the selection object for the specified application.

Finds or creates the selection object (one per study).

Parameters
appapplication object
Returns
selection object or 0 if app is invalid

References SALOME_Selection().

◆ onSelMgrDestroyed

void SALOME_Selection::onSelMgrDestroyed ( )
privateslot

Called when selection manager is destroyed (usually when the study is closed).

References mySelMgr.

Member Data Documentation

◆ mySelMgr

LightApp_SelectionMgr* SALOME_Selection::mySelMgr
private

The documentation for this class was generated from the following files: