27 #ifndef MEASUREGUI_CREATEDIMENSIONDLG_H
28 #define MEASUREGUI_CREATEDIMENSIONDLG_H
38 #include <SOCC_ViewModel.h>
41 #include <AIS_Dimension.hxx>
47 class QAbstractButton;
81 Handle(AIS_Dimension) GetCreatedDimension() {
return myDimension; }
152 void Reset(
bool theOpenDefaultTab =
false );
172 QPushButton* theSelectorButton,
174 const int theTab = 0 );
Definition: GEOMBase_Skeleton.h:53
Definition: GeometryGUI.h:74
Definition: MeasureGUI_Widgets.h:146
Definition: MeasureGUI_Widgets.h:194
Definition: MeasureGUI_Widgets.h:210
Definition: MeasureGUI_CreateDimensionDlg.h:238
QTabWidget * myTabs
Definition: MeasureGUI_CreateDimensionDlg.h:257
GEOM::GeomObjPtr GetPoint3() const
Definition: MeasureGUI_CreateDimensionDlg.h:254
GEOM::GeomObjPtr GetEdge1() const
Definition: MeasureGUI_CreateDimensionDlg.h:250
MeasureGUI_2Sel_Frame * myTwoEdgesSelectors
Definition: MeasureGUI_CreateDimensionDlg.h:258
TabID
Definition: MeasureGUI_CreateDimensionDlg.h:243
@ TabID_ThreePoints
Definition: MeasureGUI_CreateDimensionDlg.h:245
@ TabID_TwoEdges
Definition: MeasureGUI_CreateDimensionDlg.h:244
GEOM::GeomObjPtr GetEdge2() const
Definition: MeasureGUI_CreateDimensionDlg.h:251
GEOM::GeomObjPtr GetPoint1() const
Definition: MeasureGUI_CreateDimensionDlg.h:252
AnglePane(QWidget *theParent)
Definition: MeasureGUI_CreateDimensionDlg.cxx:802
GEOM::GeomObjPtr GetPoint2() const
Definition: MeasureGUI_CreateDimensionDlg.h:253
MeasureGUI_3Sel_Frame * myThreePointsSelectors
Definition: MeasureGUI_CreateDimensionDlg.h:259
Definition: MeasureGUI_CreateDimensionDlg.h:136
GEOM::GeomObjPtr GetSelection(QLineEdit *theSelector) const
Definition: MeasureGUI_CreateDimensionDlg.cxx:956
void SelectionIntoArguments(const GEOM::GeomObjPtr &theSelected)
Definition: MeasureGUI_CreateDimensionDlg.cxx:902
void StartSelection(const QList< TopAbs_ShapeEnum > &theModes)
void Reset(bool theOpenDefaultTab=false)
Definition: MeasureGUI_CreateDimensionDlg.cxx:864
void SetTabWidget(QTabWidget *theTabs)
Definition: MeasureGUI_CreateDimensionDlg.cxx:1027
QLineEdit * myCurrentSelector
Definition: MeasureGUI_CreateDimensionDlg.h:183
QMap< int, QList< QLineEdit * > > mySelectors
Definition: MeasureGUI_CreateDimensionDlg.h:178
QList< TopAbs_ShapeEnum > SelectionModes
Definition: MeasureGUI_CreateDimensionDlg.h:140
QPixmap mySelectorIcon
Definition: MeasureGUI_CreateDimensionDlg.h:182
QMap< QLineEdit *, GEOM::GeomObjPtr > mySelectedShapes
Definition: MeasureGUI_CreateDimensionDlg.h:181
QMap< QLineEdit *, QPushButton * > mySelectionButtons
Definition: MeasureGUI_CreateDimensionDlg.h:179
void OnTabChanged()
Definition: MeasureGUI_CreateDimensionDlg.cxx:1003
void OnSelectorClicked()
Definition: MeasureGUI_CreateDimensionDlg.cxx:965
BaseSelectorPane(QWidget *theParent)
Definition: MeasureGUI_CreateDimensionDlg.cxx:852
QMap< QLineEdit *, SelectionModes > mySelectionModes
Definition: MeasureGUI_CreateDimensionDlg.h:180
int ActiveTab() const
Definition: MeasureGUI_CreateDimensionDlg.cxx:893
void RegisterSelector(QLineEdit *theSelectorEdit, QPushButton *theSelectorButton, const SelectionModes &theSelectorModes, const int theTab=0)
Definition: MeasureGUI_CreateDimensionDlg.cxx:1037
QTabWidget * myTabs
Definition: MeasureGUI_CreateDimensionDlg.h:177
Definition: MeasureGUI_CreateDimensionDlg.h:222
DiameterPane(QWidget *theParent)
Definition: MeasureGUI_CreateDimensionDlg.cxx:778
MeasureGUI_1Sel_Frame * myShapeSelector
Definition: MeasureGUI_CreateDimensionDlg.h:230
GEOM::GeomObjPtr GetShape() const
Definition: MeasureGUI_CreateDimensionDlg.h:227
Definition: MeasureGUI_CreateDimensionDlg.h:191
TabID
Definition: MeasureGUI_CreateDimensionDlg.h:196
@ TabID_SingleEdge
Definition: MeasureGUI_CreateDimensionDlg.h:197
@ TabID_ParallelEdges
Definition: MeasureGUI_CreateDimensionDlg.h:199
@ TabID_TwoPoints
Definition: MeasureGUI_CreateDimensionDlg.h:198
QTabWidget * myTabs
Definition: MeasureGUI_CreateDimensionDlg.h:211
GEOM::GeomObjPtr GetSingleEdge() const
Definition: MeasureGUI_CreateDimensionDlg.h:204
MeasureGUI_2Sel_Frame * myTwoPointsSelectors
Definition: MeasureGUI_CreateDimensionDlg.h:213
GEOM::GeomObjPtr GetPoint1() const
Definition: MeasureGUI_CreateDimensionDlg.h:205
MeasureGUI_1Sel_Frame * mySingleEdgeSelectors
Definition: MeasureGUI_CreateDimensionDlg.h:212
GEOM::GeomObjPtr GetEdge1() const
Definition: MeasureGUI_CreateDimensionDlg.h:207
GEOM::GeomObjPtr GetPoint2() const
Definition: MeasureGUI_CreateDimensionDlg.h:206
LengthPane(QWidget *theParent)
Definition: MeasureGUI_CreateDimensionDlg.cxx:726
MeasureGUI_2Sel_Frame * myParallelEdgesSelectors
Definition: MeasureGUI_CreateDimensionDlg.h:214
GEOM::GeomObjPtr GetEdge2() const
Definition: MeasureGUI_CreateDimensionDlg.h:208
Definition: MeasureGUI_CreateDimensionDlg.h:59
bool AddDimensionToOwner()
Definition: MeasureGUI_CreateDimensionDlg.cxx:677
GEOM::GeomObjPtr GetTopLevel(const GEOM::GeomObjPtr &theObject)
bool ClickOnApply()
Definition: MeasureGUI_CreateDimensionDlg.cxx:381
MeasureGUI_CreateDimensionDlg(const GEOM::GeomObjPtr &, GeometryGUI *, QWidget *)
Definition: MeasureGUI_CreateDimensionDlg.cxx:65
void Init()
Definition: MeasureGUI_CreateDimensionDlg.cxx:485
void StopLocalEditing()
Definition: MeasureGUI_CreateDimensionDlg.cxx:462
MeasureGUI_DimensionInteractor * myDimensionInteractor
Definition: MeasureGUI_CreateDimensionDlg.h:124
AnglePane * myAngleArgs
Definition: MeasureGUI_CreateDimensionDlg.h:122
void OnStartSelection(const QList< TopAbs_ShapeEnum > &theModes)
Definition: MeasureGUI_CreateDimensionDlg.cxx:257
void OnStopSelection()
Definition: MeasureGUI_CreateDimensionDlg.cxx:280
QString GenerateName(const QString &thePrefix)
Definition: MeasureGUI_CreateDimensionDlg.cxx:178
void ConstructTypeChanged(int theType)
Definition: MeasureGUI_CreateDimensionDlg.cxx:220
BaseSelectorPane * ActiveArgs()
Definition: MeasureGUI_CreateDimensionDlg.cxx:162
void OnSelectionDone()
Definition: MeasureGUI_CreateDimensionDlg.cxx:335
DiameterPane * myDiameterArgs
Definition: MeasureGUI_CreateDimensionDlg.h:121
int myEditingLayer
Definition: MeasureGUI_CreateDimensionDlg.h:127
void ClickOnOk()
Definition: MeasureGUI_CreateDimensionDlg.cxx:368
GEOM::GeomObjPtr myParentObj
Definition: MeasureGUI_CreateDimensionDlg.h:119
TypeButtonID
Definition: MeasureGUI_CreateDimensionDlg.h:70
@ TypeButtonID_Angle
Definition: MeasureGUI_CreateDimensionDlg.h:73
@ TypeButtonID_Diameter
Definition: MeasureGUI_CreateDimensionDlg.h:72
@ TypeButtonID_Length
Definition: MeasureGUI_CreateDimensionDlg.h:71
~MeasureGUI_CreateDimensionDlg()
Definition: MeasureGUI_CreateDimensionDlg.cxx:154
void OnArgumentTabChanged()
Definition: MeasureGUI_CreateDimensionDlg.cxx:247
SOCC_Viewer * myEditingViewer
Definition: MeasureGUI_CreateDimensionDlg.h:126
QList< TopAbs_ShapeEnum > mySelectionModes
Definition: MeasureGUI_CreateDimensionDlg.h:123
Handle(AIS_Dimension) CreateDimension()
void StartLocalEditing()
Definition: MeasureGUI_CreateDimensionDlg.cxx:411
void SelectionIntoArgument()
Definition: MeasureGUI_CreateDimensionDlg.cxx:294
Handle(AIS_Dimension) GetCreatedDimension()
Definition: MeasureGUI_CreateDimensionDlg.h:81
Handle(AIS_Dimension) myDimension
LengthPane * myLengthArgs
Definition: MeasureGUI_CreateDimensionDlg.h:120
Definition: MeasureGUI_DimensionInteractor.h:51
GenericObjPtr< GEOM::GEOM_Object > GeomObjPtr
Definition: GEOM_GenericObjPtr.h:218