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

VisuGUI_ClippingPanel Class Reference

#include <VisuGUI_ClippingPanel.h>

Inheritance diagram for VisuGUI_ClippingPanel:
Inheritance graph

Public Types

enum  {
  OKBtn = 0x0001, ApplyBtn = 0x0002, CloseBtn = 0x0004, HelpBtn = 0x0008,
  AllBtn = OKBtn | ApplyBtn | CloseBtn | HelpBtn
}

Public Slots

void onPresentationCreate (VISU::Prs3d_i *thePrs)

Public Member Functions

 VisuGUI_ClippingPanel (VisuGUI *theModule, QWidget *theParent=0)
 ~VisuGUI_ClippingPanel ()
void init ()
virtual bool isValid (QString &theMessage)
 Verifies validity of input data.
virtual void clear ()
 Virtual methods should be redefined in derived classes and clears all GUI controls.

Protected Slots

virtual void onApply ()
 Virtual slot called when “Apply” button pressed emits corresponding signal.
virtual void onHelp ()
 Virtual slot called when “Help” button pressed emits corresponding signal.
virtual void onOK ()
 Virtual slot called when “OK” button pressed emits corresponding signal.
virtual void onClose ()
 Virtual slot called when “Close” button pressed emits corresponding signal.
virtual void onModuleActivated ()
virtual void onModuleDeactivated ()

Protected Member Functions

QWidgetmainFrame ()
 Gets frame inserted in scroll view. All controls of derived panels should use it as parent.

Protected Attributes

QScrollArea * myView
QWidgetmyMainFrame
QPushButton * myOK
QPushButton * myApply
QPushButton * myClose
QPushButton * myHelp
VisuGUImyModule

Private Slots

void onNew ()
void onNewPlane ()
void onEdit ()
void onPlaneEdited ()
void onPlaneDelete ()
void onCancelDialog ()
void setPlanesNonActive (bool theState)
void setPlanesVisible (bool theVisible)
void onWindowActivated (SUIT_ViewWindow *theWindow)
void onCellChanged (int row, int col)
void onObjectDelete (QString theEntry)
void onPrsSelected (int thePrs)
void onWindowDestroyed (QObject *theWnd)

Private Member Functions

void fillPrsList ()
void fillPlanesList ()
bool isAutoApply () const
VISU_ClippingPlaneMgrgetPlanesMgr () const
QString getPrsName (VISU::Prs3d_i *thePrs)
bool isVISUDataReady ()
void applyPlaneToPrs (int thePlaneNum, int thePrsNum, bool isChecked)
QStringList getPrsList (_PTR(Study) theStudy, _PTR(SObject) theObject)
VISU::Prs3d_igetPrs (QString theEntry)

Private Attributes

QListWidgetmyPrsList
QTableWidget * myPlanesList
QCheckBox * myShowPlanes
QCheckBox * myNonActivePlanes
QCheckBox * myAutoApply
QStringList myPresentations
ListOfPreview myPreview
VisuGUI_ClippingPlaneDlgmyPlaneDlg
SVTK_ViewWindow * myViewWindow
bool myIsApplied

Member Enumeration Documentation

anonymous enum [inherited]
Enumerator:
OKBtn 
ApplyBtn 
CloseBtn 
HelpBtn 
AllBtn 

Constructor & Destructor Documentation

VisuGUI_ClippingPanel::VisuGUI_ClippingPanel ( VisuGUI theModule,
QWidget theParent = 0 
)
VisuGUI_ClippingPanel::~VisuGUI_ClippingPanel ( )

Member Function Documentation

void VisuGUI_ClippingPanel::init ( )
void VisuGUI_ClippingPanel::onPresentationCreate ( VISU::Prs3d_i thePrs) [slot]
void VisuGUI_ClippingPanel::onApply ( ) [protected, virtual, slot]
void VisuGUI_ClippingPanel::onHelp ( ) [protected, virtual, slot]
See also:
onOK

Reimplemented from VisuGUI_Panel.

References VisuGUI_Panel.myModule.

void VisuGUI_ClippingPanel::onNew ( ) [private, slot]
void VisuGUI_ClippingPanel::onNewPlane ( ) [private, slot]
void VisuGUI_ClippingPanel::onEdit ( ) [private, slot]
void VisuGUI_ClippingPanel::onPlaneEdited ( ) [private, slot]
void VisuGUI_ClippingPanel::onPlaneDelete ( ) [private, slot]
void VisuGUI_ClippingPanel::onCancelDialog ( ) [private, slot]

References myPlaneDlg, and onNewPlane().

void VisuGUI_ClippingPanel::setPlanesNonActive ( bool  theState) [private, slot]
void VisuGUI_ClippingPanel::setPlanesVisible ( bool  theVisible) [private, slot]
void VisuGUI_ClippingPanel::onWindowActivated ( SUIT_ViewWindow *  theWindow) [private, slot]
void VisuGUI_ClippingPanel::onCellChanged ( int  row,
int  col 
) [private, slot]
void VisuGUI_ClippingPanel::onObjectDelete ( QString  theEntry) [private, slot]
void VisuGUI_ClippingPanel::onPrsSelected ( int  thePrs) [private, slot]
void VisuGUI_ClippingPanel::onWindowDestroyed ( QObject theWnd) [private, slot]

References myViewWindow.

void VisuGUI_ClippingPanel::fillPrsList ( ) [private]
void VisuGUI_ClippingPanel::fillPlanesList ( ) [private]
bool VisuGUI_ClippingPanel::isAutoApply ( ) const [private]

References myAutoApply.

VISU_ClippingPlaneMgr & VisuGUI_ClippingPanel::getPlanesMgr ( ) const [private]
QString VisuGUI_ClippingPanel::getPrsName ( VISU::Prs3d_i thePrs) [private]
bool VisuGUI_ClippingPanel::isVISUDataReady ( ) [private]
void VisuGUI_ClippingPanel::applyPlaneToPrs ( int  thePlaneNum,
int  thePrsNum,
bool  isChecked 
) [private]
QStringList VisuGUI_ClippingPanel::getPrsList ( _PTR(Study)  theStudy,
_PTR(SObject)  theObject 
) [private]
VISU::Prs3d_i * VisuGUI_ClippingPanel::getPrs ( QString  theEntry) [private]
bool VisuGUI_Panel::isValid ( QString &  theMessage) [virtual, inherited]

This virtual method should be redefined in derived classes. Usually operator corresponding to the sub-panel calls this method to check validity of input data when Apply/OK button is pressed.

Parameters:
theErrMsgError message.

If data is invalid when panel can return message using this parameter given clear explanation what is wrong

Returns:
TRUE if data is valid, FALSE otherwise
void VisuGUI_Panel::clear ( ) [virtual, inherited]
void VisuGUI_Panel::onOK ( ) [protected, virtual, slot, inherited]

This slot moves focus in OK button before emitting signal. Mainly it provides application with correct moving data from currently edited controls to internal structure. For example QTable moves data from cell editor to table item when focus is out.

References VisuGUI_Panel.myOK.

void VisuGUI_Panel::onClose ( ) [protected, virtual, slot, inherited]
See also:
onOK

Reimplemented in VisuGUI_FeatureEdgesPanel, and VisuGUI_SelectionPanel.

References VisuGUI_Panel.myClose.

void VisuGUI_Panel::onModuleActivated ( ) [protected, virtual, slot, inherited]
void VisuGUI_Panel::onModuleDeactivated ( ) [protected, virtual, slot, inherited]
QWidget * VisuGUI_Panel::mainFrame ( ) [protected, inherited]
Returns:
QFrame* object

References VisuGUI_Panel.myMainFrame.


Field Documentation

QTableWidget* VisuGUI_ClippingPanel.myPlanesList [private]
QCheckBox* VisuGUI_ClippingPanel.myShowPlanes [private]
QCheckBox* VisuGUI_ClippingPanel.myAutoApply [private]
SVTK_ViewWindow* VisuGUI_ClippingPanel.myViewWindow [private]
QScrollArea* VisuGUI_Panel.myView [protected, inherited]
QWidget* VisuGUI_Panel.myMainFrame [protected, inherited]
QPushButton* VisuGUI_Panel.myOK [protected, inherited]
QPushButton* VisuGUI_Panel.myApply [protected, inherited]
QPushButton* VisuGUI_Panel.myClose [protected, inherited]
QPushButton* VisuGUI_Panel.myHelp [protected, inherited]
VisuGUI* VisuGUI_Panel.myModule [protected, inherited]
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