#include <VisuGUI_ClippingPanel.h>

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 | |
| QWidget * | mainFrame () |
| Gets frame inserted in scroll view. All controls of derived panels should use it as parent. | |
Protected Attributes | |
| QScrollArea * | myView |
| QWidget * | myMainFrame |
| QPushButton * | myOK |
| QPushButton * | myApply |
| QPushButton * | myClose |
| QPushButton * | myHelp |
| VisuGUI * | myModule |
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_ClippingPlaneMgr & | getPlanesMgr () 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_i * | getPrs (QString theEntry) |
Private Attributes | |
| QListWidget * | myPrsList |
| QTableWidget * | myPlanesList |
| QCheckBox * | myShowPlanes |
| QCheckBox * | myNonActivePlanes |
| QCheckBox * | myAutoApply |
| QStringList | myPresentations |
| ListOfPreview | myPreview |
| VisuGUI_ClippingPlaneDlg * | myPlaneDlg |
| SVTK_ViewWindow * | myViewWindow |
| bool | myIsApplied |
References VISU.GetDesktop(), VisuGUI_Panel.mainFrame(), VisuGUI_Panel.myApply, myAutoApply, VisuGUI_Panel.myModule, myNonActivePlanes, myPlanesList, myPrsList, myShowPlanes, onCellChanged(), onEdit(), onNew(), onObjectDelete(), onPlaneDelete(), onPresentationCreate(), onPrsSelected(), onWindowActivated(), setPlanesNonActive(), and setPlanesVisible().
| VisuGUI_ClippingPanel::~VisuGUI_ClippingPanel | ( | ) |
| void VisuGUI_ClippingPanel::init | ( | ) |
References fillPlanesList(), fillPrsList(), VisuGUI_Panel.myModule, myViewWindow, and onWindowDestroyed().
| void VisuGUI_ClippingPanel::onPresentationCreate | ( | VISU::Prs3d_i * | thePrs | ) | [slot] |
References VISU_ClippingPlaneMgr.ApplyClippingPlane(), VISU_ClippingPlaneMgr.GetClippingPlane(), VISU_ClippingPlaneMgr.GetClippingPlanesNb(), VISU.RemovableObject_i.GetEntry(), VISU.ColoredPrs3d_i.GetHolderEntry(), getPlanesMgr(), getPrsName(), VISU_CutPlaneFunction.isAuto(), myPresentations, and myPrsList.
| void VisuGUI_ClippingPanel::onApply | ( | ) | [protected, virtual, slot] |
Reimplemented from VisuGUI_Panel.
References applyPlaneToPrs(), VISU_ClippingPlaneMgr.GetClippingPlane(), VISU_ClippingPlaneMgr.GetClippingPlanesNb(), getPlanesMgr(), myIsApplied, VisuGUI_Panel.myModule, myPlanesList, myPrsList, myViewWindow, VISU_CutPlaneFunction.setActive(), and VISU.UpdateObjBrowser().
| void VisuGUI_ClippingPanel::onHelp | ( | ) | [protected, virtual, slot] |
| void VisuGUI_ClippingPanel::onNew | ( | ) | [private, slot] |
References isVISUDataReady(), VisuGUI_Panel.myModule, myPlaneDlg, onCancelDialog(), and onNewPlane().
| void VisuGUI_ClippingPanel::onNewPlane | ( | ) | [private, slot] |
References VISU_ClippingPlaneMgr.GetClippingPlane(), VISU_CutPlaneFunction.getName(), getPlanesMgr(), VISU_CutPlaneFunction.isAuto(), myNonActivePlanes, myPlaneDlg, myPlanesList, myShowPlanes, myViewWindow, onCancelDialog(), onCellChanged(), VisuGUI_ClippingPlaneDlg.planeId(), VISU_CutPlaneFunction.setActive(), and setPlanesVisible().
| void VisuGUI_ClippingPanel::onEdit | ( | ) | [private, slot] |
| void VisuGUI_ClippingPanel::onPlaneEdited | ( | ) | [private, slot] |
References VISU_ClippingPlaneMgr.ContainsPlane(), VISU_ClippingPlaneMgr.GetClippingPlane(), VISU_CutPlaneFunction.getName(), getPlanesMgr(), getPrs(), VISU_CutPlaneFunction.isAuto(), VisuGUI_Panel.myModule, myPlaneDlg, myPlanesList, myPresentations, myPrsList, myShowPlanes, myViewWindow, onCancelDialog(), onCellChanged(), onNewPlane(), VisuGUI_ClippingPlaneDlg.planeId(), setPlanesVisible(), and VISU.UpdateObjBrowser().
| void VisuGUI_ClippingPanel::onPlaneDelete | ( | ) | [private, slot] |
References _PTR(), VISU_ClippingPlaneMgr.DeleteClippingPlane(), VISU.GetAppStudy(), VISU_ClippingPlaneMgr.GetClippingPlane(), VISU.GetDesktop(), VISU_CutPlaneFunction.getName(), getPlanesMgr(), isVISUDataReady(), VisuGUI_Panel.myModule, myPlaneDlg, myPlanesList, myViewWindow, and VISU.UpdateObjBrowser().
| 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] |
References VISU.ComputeVisiblePropBounds(), getPlanesMgr(), myPreview, myViewWindow, and PreviewPlane.setVisible().
| void VisuGUI_ClippingPanel::onWindowActivated | ( | SUIT_ViewWindow * | theWindow | ) | [private, slot] |
References myShowPlanes, myViewWindow, onWindowDestroyed(), and setPlanesVisible().
| 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] |
References _PTR(), VISU_ClippingPlaneMgr.ContainsPlane(), VISU.GetAppStudy(), VISU_ClippingPlaneMgr.GetClippingPlane(), VISU_ClippingPlaneMgr.GetClippingPlanesNb(), VISU_CutPlaneFunction.getName(), getPlanesMgr(), getPrs(), VISU_CutPlaneFunction.isAuto(), VisuGUI_Panel.myModule, myNonActivePlanes, myPlanesList, myPresentations, myPrsList, myViewWindow, and onCellChanged().
| bool VisuGUI_ClippingPanel::isAutoApply | ( | ) | const [private] |
References myAutoApply.
| VISU_ClippingPlaneMgr & VisuGUI_ClippingPanel::getPlanesMgr | ( | ) | const [private] |
References VISU.GetVisuGen(), and VisuGUI_Panel.myModule.
| QString VisuGUI_ClippingPanel::getPrsName | ( | VISU::Prs3d_i * | thePrs | ) | [private] |
| bool VisuGUI_ClippingPanel::isVISUDataReady | ( | ) | [private] |
References _PTR(), VISU.GetAppStudy(), and VisuGUI_Panel.myModule.
| void VisuGUI_ClippingPanel::applyPlaneToPrs | ( | int | thePlaneNum, |
| int | thePrsNum, | ||
| bool | isChecked | ||
| ) | [private] |
References visu_apply_properties.aPrs, getPlanesMgr(), getPrs(), and myPresentations.
| 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.
| theErrMsg | Error message. |
If data is invalid when panel can return message using this parameter given clear explanation what is wrong
| 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] |
Reimplemented in VisuGUI_FeatureEdgesPanel, and VisuGUI_SelectionPanel.
References VisuGUI_Panel.myClose.
| void VisuGUI_Panel::onModuleActivated | ( | ) | [protected, virtual, slot, inherited] |
Reimplemented in VisuGUI_FeatureEdgesPanel, and VisuGUI_SelectionPanel.
| void VisuGUI_Panel::onModuleDeactivated | ( | ) | [protected, virtual, slot, inherited] |
Reimplemented in VisuGUI_FeatureEdgesPanel, and VisuGUI_SelectionPanel.
| QWidget * VisuGUI_Panel::mainFrame | ( | ) | [protected, inherited] |
References VisuGUI_Panel.myMainFrame.
QListWidget* VisuGUI_ClippingPanel.myPrsList [private] |
QTableWidget* VisuGUI_ClippingPanel.myPlanesList [private] |
QCheckBox* VisuGUI_ClippingPanel.myShowPlanes [private] |
QCheckBox* VisuGUI_ClippingPanel.myNonActivePlanes [private] |
QCheckBox* VisuGUI_ClippingPanel.myAutoApply [private] |
QStringList VisuGUI_ClippingPanel.myPresentations [private] |
ListOfPreview VisuGUI_ClippingPanel.myPreview [private] |
SVTK_ViewWindow* VisuGUI_ClippingPanel.myViewWindow [private] |
bool VisuGUI_ClippingPanel.myIsApplied [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] |