#include <OCCViewer_CubeAxesDlg.h>
Classes | |
class | AxisWidget |
Axis tab widget of the "Graduated axis" dialog box. More... | |
Public Member Functions | |
OCCViewer_CubeAxesDlg (QtxAction *theAction, OCCViewer_ViewWindow *theParent, const char *theName) | |
virtual | ~OCCViewer_CubeAxesDlg () |
virtual void | initialize () |
void | GetData (bool &theIsVisible, OCCViewer_AxisWidget::AxisData theAxisData[3]) |
void | SetData (bool theIsVisible, OCCViewer_AxisWidget::AxisData theAxisData[3]) |
void | ApplyData (const Handle(V3d_View)&theView) |
virtual void | Update () |
Public Member Functions inherited from ViewerTools_CubeAxesDlgBase | |
ViewerTools_CubeAxesDlgBase (QtxAction *theAction, QWidget *theParent, const char *theName) | |
virtual | ~ViewerTools_CubeAxesDlgBase () |
Public Member Functions inherited from ViewerTools_DialogBase | |
ViewerTools_DialogBase (QtxAction *theAction, QWidget *theParent, const char *theName="", bool theModal=false, Qt::WindowFlags theWFalgs=0) | |
~ViewerTools_DialogBase () | |
Private Slots | |
virtual bool | onApply () |
Private Member Functions | |
virtual ViewerTools_AxisWidgetBase * | createAxisWidget (QWidget *) |
Private Attributes | |
OCCViewer_ViewWindow * | myMainWindow |
Additional Inherited Members | |
Protected Slots inherited from ViewerTools_CubeAxesDlgBase | |
virtual void | onOk () |
virtual bool | onApply () |
virtual void | onClose () |
Protected Member Functions inherited from ViewerTools_CubeAxesDlgBase | |
virtual QWidget * | createButtonFrame (QWidget *) |
virtual QWidget * | createMainFrame (QWidget *) |
virtual bool | isValid () const |
Protected Attributes inherited from ViewerTools_CubeAxesDlgBase | |
QTabWidget * | myTabWg |
QCheckBox * | myIsVisible |
QPushButton * | myOkBtn |
QPushButton * | myApplyBtn |
QPushButton * | myCloseBtn |
ViewerTools_AxisWidgetBase * | myAxes [3] |
Class : OCCViewer_CubeAxesDlg Description : Dialog for specifynig cube axes properties
OCCViewer_CubeAxesDlg::OCCViewer_CubeAxesDlg | ( | QtxAction * | theAction, |
OCCViewer_ViewWindow * | theParent, | ||
const char * | theName | ||
) |
Constructor
|
virtual |
Destructor
Apply graduated trihedron parameters
References OCCViewer_AxisWidget::AxisData::Color, OCCViewer_AxisWidget::AxisData::DrawName, OCCViewer_AxisWidget::AxisData::DrawTickmarks, OCCViewer_AxisWidget::AxisData::DrawValues, ViewerTools_CubeAxesDlgBase::myAxes, ViewerTools_CubeAxesDlgBase::myIsVisible, OCCViewer_AxisWidget::AxisData::Name, OCCViewer_AxisWidget::AxisData::NameColor, OCCViewer_AxisWidget::AxisData::NbValues, OCCViewer_AxisWidget::AxisData::Offset, and OCCViewer_AxisWidget::AxisData::TickmarkLength.
|
privatevirtual |
Create axis widget
Implements ViewerTools_CubeAxesDlgBase.
References ViewerTools_AxisWidgetBase::initialize().
void OCCViewer_CubeAxesDlg::GetData | ( | bool & | theIsVisible, |
OCCViewer_AxisWidget::AxisData | theAxisData[3] | ||
) |
Get graduated trihedron parameters
References ViewerTools_CubeAxesDlgBase::myAxes, and ViewerTools_CubeAxesDlgBase::myIsVisible.
|
virtual |
Update dialog fields, connect signals and slots, show dialog
Reimplemented from ViewerTools_CubeAxesDlgBase.
References OCCViewer_AxisWidget::AxisData::Color, OCCViewer_AxisWidget::AxisData::DrawName, OCCViewer_AxisWidget::AxisData::DrawTickmarks, OCCViewer_AxisWidget::AxisData::DrawValues, ViewerTools_CubeAxesDlgBase::initialize(), ViewerTools_CubeAxesDlgBase::myAxes, OCCViewer_AxisWidget::AxisData::Name, OCCViewer_AxisWidget::AxisData::NameColor, OCCViewer_AxisWidget::AxisData::NbValues, OCCViewer_AxisWidget::AxisData::Offset, and OCCViewer_AxisWidget::AxisData::TickmarkLength.
|
privatevirtualslot |
Verify validity of entry data
References ApplyData(), OCCViewer_ViewWindow::getViewPort(), Handle(), myMainWindow, and ViewerTools_CubeAxesDlgBase::onApply().
void OCCViewer_CubeAxesDlg::SetData | ( | bool | theIsVisible, |
OCCViewer_AxisWidget::AxisData | theAxisData[3] | ||
) |
Set graduated trihedron parameters
References ViewerTools_CubeAxesDlgBase::myAxes, and ViewerTools_CubeAxesDlgBase::myIsVisible.
|
virtual |
Update dialog fields, connect signals and slots, show dialog
Reimplemented from ViewerTools_CubeAxesDlgBase.
References ViewerTools_CubeAxesDlgBase::Update().
|
private |