Version: 6.3.1
Public Member Functions | Protected Member Functions | Private Slots | Private Attributes

LightApp_Plot2dSelector Class Reference

#include <LightApp_Plot2dSelector.h>

Inheritance diagram for LightApp_Plot2dSelector:
Inheritance graph

Public Member Functions

 LightApp_Plot2dSelector (Plot2d_Viewer *, SUIT_SelectionMgr *)
virtual ~LightApp_Plot2dSelector ()
virtual QString type () const
SUIT_SelectionMgrselectionMgr () const
bool isEnabled () const
virtual void setEnabled (const bool)
bool autoBlock () const
virtual void setAutoBlock (const bool)
void selected (SUIT_DataOwnerPtrList &) const
void setSelected (const SUIT_DataOwnerPtrList &)
bool hasSelectionMode (const int) const
void selectionModes (QList< int > &) const

Protected Member Functions

virtual void getSelection (SUIT_DataOwnerPtrList &) const
virtual void setSelection (const SUIT_DataOwnerPtrList &)
void selectionChanged ()

Private Slots

void onSelectionChanged (const QString &)

Private Attributes

QString myCurEntry

Detailed Description

Custom selector to get/set selection from object browser


Constructor & Destructor Documentation

LightApp_Plot2dSelector::LightApp_Plot2dSelector ( Plot2d_Viewer v,
SUIT_SelectionMgr mgr 
)

Constructor

References onSelectionChanged().

LightApp_Plot2dSelector::~LightApp_Plot2dSelector ( ) [virtual]

Destructor


Member Function Documentation

virtual QString LightApp_Plot2dSelector.type ( ) const [virtual]

Return "ObjectBrowser"

Implements SUIT_Selector.

void LightApp_Plot2dSelector::onSelectionChanged ( const QString &  entry) [private, slot]

On selection changed.

References myCurEntry, and SUIT_Selector.selectionChanged().

void LightApp_Plot2dSelector::getSelection ( SUIT_DataOwnerPtrList theList) const [protected, virtual]

Gets selection.

Implements SUIT_Selector.

References SUIT_DataOwnerPtrList.append(), and myCurEntry.

void LightApp_Plot2dSelector::setSelection ( const SUIT_DataOwnerPtrList theList) [protected, virtual]

Sets selection.

Implements SUIT_Selector.

References myCurEntry.

SUIT_SelectionMgr * SUIT_Selector::selectionMgr ( ) const [inherited]

Gets selection manager.

References SUIT_Selector.mySelMgr.

bool SUIT_Selector::isEnabled ( ) const [inherited]

Checks: Is selctor enabled?

References SUIT_Selector.myEnabled.

void SUIT_Selector::setEnabled ( const bool  on) [virtual, inherited]

Sets selctor anbled to on.

References SUIT_Selector.myEnabled.

bool SUIT_Selector::autoBlock ( ) const [inherited]

Checks: Is selector auto block?

References SUIT_Selector.myAutoBlock.

void SUIT_Selector::setAutoBlock ( const bool  on) [virtual, inherited]

Sets selctor autoblock to on.

References SUIT_Selector.myAutoBlock.

void SUIT_Selector::selected ( SUIT_DataOwnerPtrList lst) const [inherited]

Puts to lst selection list of data owners.

References SUIT_DataOwnerPtrList.clear(), and SUIT_Selector.getSelection().

void SUIT_Selector::setSelected ( const SUIT_DataOwnerPtrList lst) [inherited]

Puts to selection list of data owners lst..

References SUIT_Selector.isEnabled(), SUIT_Selector.myBlock, and SUIT_Selector.setSelection().

bool SUIT_Selector::hasSelectionMode ( const int  mode) const [inherited]

Checks: Is selection manager has selection mode mode?

References SUIT_SelectionMgr.hasSelectionMode(), and SUIT_Selector.selectionMgr().

void SUIT_Selector::selectionModes ( QList< int > &  lst) const [inherited]

Puts to list lst selection modes from selection manager.

References SUIT_Selector.selectionMgr(), and SUIT_SelectionMgr.selectionModes().

void SUIT_Selector::selectionChanged ( ) [protected, inherited]

Field Documentation

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS