#include <EntityGUI_SketcherDlg.h>
Public Member Functions | |
EntityGUI_SketcherDlg (GeometryGUI *, QWidget *=0, bool=false, Qt::WindowFlags=0, const double=-1) | |
~EntityGUI_SketcherDlg () | |
bool | eventFilter (QObject *object, QEvent *event) |
bool | acceptMouseEvent () const |
void | OnPointSelected (Qt::KeyboardModifiers, const gp_Pnt &, bool isStart=true) |
Protected Member Functions | |
void | initSpinBox (SalomeApp_DoubleSpinBox *, double, double, double=0.1, const char *quantity="length_precision") |
virtual GEOM::GEOM_IOperations_ptr | createOperation () |
virtual bool | isValid (QString &) |
virtual bool | execute (ObjectList &) |
virtual void | addSubshapesToStudy () |
void | closeEvent (QCloseEvent *) |
void | keyPressEvent (QKeyEvent *) |
Private Types | |
enum | SketchState { FIRST_POINT, NEXT_POINT } |
enum | SketchType { PT_ABS, PT_RELATIVE, PT_SEL, PT_ABS_RADIUS, PT_REL_RADIUS, PT_SEL_RADIUS, PT_ABS_CENTER, PT_REL_CENTER, PT_SEL_CENTER, DIR_ANGLE_LENGTH, DIR_ANGLE_X, DIR_ANGLE_Y, DIR_PER_LENGTH, DIR_PER_X, DIR_PER_Y, DIR_TAN_LENGTH, DIR_TAN_X, DIR_TAN_Y, DIR_DXDY_LENGTH, DIR_DXDY_X, DIR_DXDY_Y } |
Private Slots | |
void | ClickOnEnd () |
void | ClickOnCancel () |
bool | ClickOnApply () |
void | ClickOnUndo () |
void | ClickOnRedo () |
void | ClickOnHelp () |
void | LineEditReturnPressed () |
void | SelectionIntoArgument () |
void | SetEditCurrentArgument () |
void | DeactivateActiveDialog () |
void | ActivateThisDialog () |
void | TypeClicked (int) |
void | RectClicked () |
void | DestClicked (int) |
void | PointClicked (int) |
void | Point2Clicked (int) |
void | Dir1Clicked (int) |
void | Dir2Clicked (int) |
void | CheckBoxClicked (int) |
void | ValueChangedInSpinBox (double) |
void | SetDoubleSpinBoxStep (double) |
void | AddLocalCS (GEOM::GEOM_Object_var) |
void | FindLocalCS () |
gp_Ax3 | GetActiveLocalCS () |
gp_Ax3 | WPlaneToLCS (GEOM::GEOM_Object_var) |
void | ActivateLocalCS () |
Private Member Functions | |
void | Init () |
void | enterEvent (QEvent *) |
void | InitClick () |
void | setEnabledUndo (bool) |
void | setEnabledRedo (bool) |
QString | GetNewCommand (QString &) |
virtual void | displayPreview (GEOM::GEOM_Object_ptr, const bool=false, const bool=false, const bool=true, const double=-1, const int=-1, const int=-1) |
void | displayPntPreview (const double=0.0, const double=0.0, bool=true, bool=true) |
bool | createShapes (GEOM::GEOM_Object_ptr, TopoDS_Shape &, TopoDS_Shape &) |
int | getPnt1ConstructorId () const |
int | getPnt2ConstructorId () const |
void | OnFirstPoint () |
void | OnNextPoint () |
Private Member Functions inherited from GEOMBase_Helper | |
GEOMBase_Helper (SUIT_Desktop *) | |
virtual | ~GEOMBase_Helper () |
void | display (const ObjectList &, const bool=true) |
void | display (GEOM::GEOM_Object_ptr, const bool=true) |
void | erase (const ObjectList &, const bool=true) |
void | erase (GEOM::GEOM_Object_ptr, const bool=true) |
void | redisplay (const ObjectList &, const bool=true, const bool=true) |
void | redisplay (GEOM::GEOM_Object_ptr, const bool=true, const bool=true) |
virtual void | displayPreview (const bool display, const bool activate=false, const bool update=true, const bool toRemoveFromEngine=true, const double lineWidth=-1, const int displayMode=-1, const int color=-1, const bool append=false) |
void | displayPreview (const SALOME_Prs *prs, const bool append=false, const bool=true) |
void | erasePreview (const bool=true) |
const PrsList & | getPreview () const |
void | localSelection (const ObjectList &, const std::list< int >) |
void | localSelection (const ObjectList &, const int) |
void | localSelection (GEOM::GEOM_Object_ptr, const std::list< int >) |
void | localSelection (GEOM::GEOM_Object_ptr, const int) |
void | localSelection (const std::list< int >) |
void | localSelection (const int) |
void | activate (const int) |
void | globalSelection (const int=GEOM_ALLOBJECTS, const bool=false) |
void | globalSelection (const TColStd_MapOfInteger &, const bool=false) |
void | globalSelection (const TColStd_MapOfInteger &, const QList< int > &, const bool=false) |
void | updateViewer () |
void | prepareSelection (const ObjectList &, const int) |
void | prepareSelection (GEOM::GEOM_Object_ptr, const int) |
QString | addInStudy (GEOM::GEOM_Object_ptr, const char *theName) |
bool | openCommand () |
bool | abortCommand () |
bool | commitCommand (const char *=0) |
bool | hasCommand () const |
void | updateObjBrowser () const |
int | getStudyId () const |
SalomeApp_Study * | getStudy () const |
bool | checkViewWindow () |
bool | onAccept (const bool publish=true, const bool useTransaction=true, bool erasePreviewFlag=true) |
void | showError () |
void | showError (const QString &msg) |
GEOM::GEOM_IOperations_ptr | getOperation () |
void | setPrefix (const QString &prefix) |
QString | getPrefix (GEOM::GEOM_Object_ptr=GEOM::GEOM_Object::_nil()) const |
bool | selectObjects (ObjectList &objects) |
virtual void | restoreSubShapes (SALOMEDS::Study_ptr theStudy, SALOMEDS::SObject_ptr theSObject) |
virtual GEOM::GEOM_Object_ptr | getFather (GEOM::GEOM_Object_ptr theObj) |
virtual QString | getNewObjectName (int CurrObj=-1) const |
virtual QString | getObjectName (GEOM::GEOM_Object_ptr object) const |
virtual bool | extractPrefix () const |
virtual QList< GEOM::GeomObjPtr > | getSourceObjects () |
GEOM::GEOM_Object_ptr | findObjectInFather (GEOM::GEOM_Object_ptr theFather, const QString &theName) |
GEOM::GEOM_Object_ptr | findObjectInFather (GEOM::GEOM_Object_ptr theFather, int theIndex) |
GEOM::GeomObjPtr | getSelected (TopAbs_ShapeEnum type) |
GEOM::GeomObjPtr | getSelected (const QList< TopAbs_ShapeEnum > &types) |
QList< GEOM::GeomObjPtr > | getSelected (TopAbs_ShapeEnum type, int count, bool strict=true) |
QList< GEOM::GeomObjPtr > | getSelected (const QList< TopAbs_ShapeEnum > &types, int count, bool strict=true) |
void | hideSourceObjects (QList< GEOM::GeomObjPtr > theObjectList) |
void | SetIsPreview (const bool thePreview) |
bool | IsPreview () |
GEOM_Displayer * | getDisplayer () |
SUIT_Desktop * | getDesktop () const |
virtual void | setIsApplyAndClose (const bool theFlag) |
virtual bool | isApplyAndClose () const |
virtual void | setIsOptimizedBrowsing (const bool theFlag) |
virtual bool | isOptimizedBrowsing () const |
virtual void | setIsWaitCursorEnabled (const bool theFlag) |
virtual bool | isWaitCursorEnabled () const |
virtual void | setIsDisableBrowsing (const bool theFlag) |
virtual bool | isDisableBrowsing () const |
virtual void | setIsDisplayResult (const bool theFlag) |
virtual bool | isDisplayResult () const |
Additional Inherited Members | |
Static Private Member Functions inherited from GEOMBase_Helper | |
static SUIT_ViewWindow * | getActiveView () |
static GEOM::GEOM_Gen_ptr | getGeomEngine () |
|
private |
|
private |
EntityGUI_SketcherDlg::EntityGUI_SketcherDlg | ( | GeometryGUI * | GUI, |
QWidget * | parent = 0 , |
||
bool | modal = false , |
||
Qt::WindowFlags | fl = 0 , |
||
const double | lineWidth = -1 |
||
) |
References ActivateLocalCS(), EntityGUI_Dir1::ButtonGroup, EntityGUI_Dir2::ButtonGroup, EntityGUI_Point::ButtonGroup, EntityGUI_Skeleton::ButtonGroup, CheckBoxClicked(), ClickOnApply(), ClickOnCancel(), ClickOnEnd(), ClickOnHelp(), ClickOnRedo(), ClickOnUndo(), ComboBox1, DeactivateActiveDialog(), DestClicked(), Dir1Clicked(), Dir2Clicked(), Group1Sel, Group1Sel1Spin, Group1Spin, Group2Sel, Group2Spin, Group3Spin, Group4Spin, GroupBox1, GroupD1, GroupD2, GroupPt, GroupPt2, GroupRect, Init(), LineEditReturnPressed(), MainWidget, myGeometryGUI, planeButton, Point2Clicked(), PointClicked(), selButton, GeometryGUI::SetActiveDialogBox(), SetDoubleSpinBoxStep(), SetEditCurrentArgument(), TypeClicked(), ValueChangedInSpinBox(), and WPlaneLineEdit.
EntityGUI_SketcherDlg::~EntityGUI_SketcherDlg | ( | ) |
References myGeometryGUI, and GeometryGUI::SetActiveDialogBox().
bool EntityGUI_SketcherDlg::acceptMouseEvent | ( | ) | const |
References getPnt1ConstructorId(), myConstructorId, and WPlaneLineEdit.
|
privateslot |
|
privateslot |
|
privateslot |
References ActivateLocalCS(), addSubshapesToStudy(), ComboBox1, GEOMBase::GetName(), myLCSList, myWPlane, myWPlaneList, and WPlaneToLCS().
|
protectedvirtual |
Reimplemented from GEOMBase_Helper.
References myWPlane, and GEOMBase::PublishSubObject().
|
privateslot |
References GEOMBase_Helper::displayPreview(), myCheckFlag, and myLineWidth.
|
privateslot |
References GEOMBase_Helper::displayPreview(), FIRST_POINT, GetNewCommand(), Group1Sel1Spin, Group1Spin, Group2Spin, Group3Spin, Group4Spin, myCommand, myIsApply, myLineWidth, myParameters, mySketchState, myUndoCommand, myUndoParameters, NEXT_POINT, OnNextPoint(), setEnabledRedo(), and setEnabledUndo().
|
privateslot |
|
privateslot |
|
privateslot |
References myGeometryGUI, and myHelpFileName.
|
privateslot |
|
privateslot |
|
protected |
References myGeometryGUI.
|
protectedvirtual |
Reimplemented from GEOMBase_Helper.
References GEOMBase_Helper::getGeomEngine(), and GEOMBase_Helper::getStudyId().
|
private |
References anEdge, GEOMBase::GetShape(), Group1Sel, Group1Sel1Spin, Group1Spin, Group2Sel, Group2Spin, Group3Spin, and Group4Spin.
|
privateslot |
References GEOMBase_Helper::globalSelection(), myGeometryGUI, and GeometryGUI::SetActiveDialogBox().
|
privateslot |
References Dir1Clicked(), Group3Spin, Group4Spin, GroupD1, GroupD2, GroupPt, GroupPt2, myAngle, myConstructorId, myDX, myDY, myLength, myRadius, and PointClicked().
|
privateslot |
References EntityGUI_Dir2::ButtonGroup, Dir2Clicked(), GroupD2, and myConstructorDirId.
|
privateslot |
References COORD_MAX, COORD_MIN, DIR_ANGLE_LENGTH, DIR_ANGLE_X, DIR_ANGLE_Y, DIR_DXDY_LENGTH, DIR_DXDY_X, DIR_DXDY_Y, DIR_PER_LENGTH, DIR_PER_X, DIR_PER_Y, DIR_TAN_LENGTH, DIR_TAN_X, DIR_TAN_Y, GEOMBase_Helper::displayPreview(), Group1Spin, Group2Spin, Group3Spin, Group4Spin, InitClick(), initSpinBox(), myAngle, myConstructorDirId, myConstructorId, myDX, myDY, myLength, myLineWidth, myRadius, mySketchType, myX, and myY.
|
private |
|
privatevirtual |
Reimplemented from GEOMBase_Helper.
References aColor, aPrs, GEOM_Displayer::BuildPrs(), createShapes(), GEOMBase_Helper::displayPreview(), GEOMBase_Helper::getDisplayer(), myConstructorId, myGeometryGUI, GEOM_Displayer::SetColor(), GEOM_Displayer::SetName(), GEOM_Displayer::SetToActivate(), GEOM_Displayer::SetWidth(), and GEOM_Displayer::UnsetName().
|
private |
References ActivateThisDialog().
bool EntityGUI_SketcherDlg::eventFilter | ( | QObject * | object, |
QEvent * | event | ||
) |
References Group1Sel1Spin, Group1Spin, Group2Spin, Group3Spin, and Group4Spin.
|
protectedvirtual |
Reimplemented from GEOMBase_Helper.
References ComboBox1, FIRST_POINT, GetNewCommand(), GEOMBase_Helper::getOperation(), Sketcher_Profile::GetShape(), Group1Sel, Group1Sel1Spin, Group1Spin, Group2Sel, Group2Spin, Group3Spin, Group4Spin, GEOMBase_Helper::IsPreview(), myCommand, myIsAllAdded, myLastX1, myLastX2, myLastY1, myLastY2, myParameters, mySketchState, mySketchType, myWPlane, myX, myY, NULL, PT_ABS_CENTER, PT_REL_CENTER, PT_SEL_CENTER, and GEOM::Vertices.
|
privateslot |
|
privateslot |
References ComboBox1, GeometryGUI::GetWorkingPlane(), myGeometryGUI, myLCSList, myWPlane, and myWPlaneList.
|
private |
References DIR_ANGLE_LENGTH, DIR_ANGLE_X, DIR_ANGLE_Y, DIR_DXDY_LENGTH, DIR_DXDY_X, DIR_DXDY_Y, DIR_PER_LENGTH, DIR_PER_X, DIR_PER_Y, DIR_TAN_LENGTH, DIR_TAN_X, DIR_TAN_Y, FIRST_POINT, myAngle, myAngleStr, myCheckFlag, myConstructorId, myDX, myDXc, myDXcStr, myDXStr, myDY, myDYc, myDYcStr, myDYStr, myLength, myLengthStr, myRadius, myRadiusStr, mySketchState, mySketchType, myX, myX1, myX1Str, myX2, myX2Str, myXc, myXcStr, myXStr, myY, myY1, myY1Str, myY2, myY2Str, myYc, myYcStr, myYStr, PT_ABS, PT_ABS_CENTER, PT_ABS_RADIUS, PT_REL_CENTER, PT_REL_RADIUS, PT_RELATIVE, PT_SEL, PT_SEL_CENTER, and PT_SEL_RADIUS.
|
private |
References EntityGUI_Point::ButtonGroup, and GroupPt.
|
private |
References EntityGUI_Point::ButtonGroup, and GroupPt2.
|
private |
References ActivateLocalCS(), autoApply, COORD_MAX, COORD_MIN, GEOMBase_Helper::displayPreview(), FindLocalCS(), FIRST_POINT, GEOM_FACE, GEOMBase_Helper::getGeomEngine(), GEOMBase_Helper::getStudyId(), GEOMBase_Helper::globalSelection(), Group1Sel1Spin, Group1Spin, Group2Spin, Group3Spin, Group4Spin, GroupRect, initSpinBox(), MainWidget, myCheckFlag, myCommand, myEditCurrentArgument, myGlobalCS, myHelpFileName, myLastX1, myLastX2, myLastY1, myLastY2, myLCSList, myLineWidth, mySketchState, myUndoCommand, myWPlane, OnFirstPoint(), SelectionIntoArgument(), setEnabledRedo(), setEnabledUndo(), GEOMBase_Helper::setIsWaitCursorEnabled(), GEOMBase_Helper::setPrefix(), TypeClicked(), WPlaneLineEdit, and WPlaneToLCS().
|
private |
|
protected |
|
protectedvirtual |
Reimplemented from GEOMBase_Helper.
References Group1Sel1Spin, Group1Spin, Group2Spin, Group3Spin, Group4Spin, GEOMBase_Helper::IsPreview(), myIsApply, and GEOMBase_Helper::showError().
|
protected |
References ClickOnHelp().
|
privateslot |
References Group1Sel, Group1Sel1Spin, Group2Sel, myEditCurrentArgument, myGeometryGUI, and GEOMBase::SelectionByNameInDialogs().
|
private |
References GroupPt2, and MainWidget.
|
private |
References MainWidget, myConstructorId, and TypeClicked().
void EntityGUI_SketcherDlg::OnPointSelected | ( | Qt::KeyboardModifiers | modifiers, |
const gp_Pnt & | thePnt, | ||
bool | isStart = true |
||
) |
|
privateslot |
References COORD_MAX, COORD_MIN, GEOMBase_Helper::displayPreview(), Group1Sel, Group1Sel1Spin, Group2Sel, Group2Spin, Group3Spin, Group4Spin, InitClick(), initSpinBox(), myConstructorPntId, myDX, myDXc, myDY, myDYc, myEditCurrentArgument, myGeometryGUI, myLineWidth, myRadius, mySketchType, myX, myXc, myY, myYc, PT_ABS, PT_ABS_CENTER, PT_ABS_RADIUS, PT_REL_CENTER, PT_REL_RADIUS, PT_RELATIVE, PT_SEL, PT_SEL_CENTER, PT_SEL_RADIUS, and SelectionIntoArgument().
|
privateslot |
References EntityGUI_Point::ButtonGroup, GroupPt, GroupPt2, myConstructorPntId, and Point2Clicked().
|
privateslot |
References GEOMBase_Helper::displayPreview(), GroupRect, InitClick(), myGeometryGUI, myLineWidth, myX1, myX2, myY1, myY2, and SelectionIntoArgument().
|
privateslot |
References AddLocalCS(), autoApply, ClickOnApply(), GEOMBase_Helper::displayPreview(), FIRST_POINT, GetActiveLocalCS(), GEOMBase::GetName(), GEOMBase_Helper::getSelected(), GEOMBase::GetShape(), Group2Spin, Group3Spin, Group4Spin, Handle(), myConstructorId, myEditCurrentArgument, myGeometryGUI, myLastX1, myLastY1, myLineWidth, mySketchState, mySketchType, myX, myXc, myY, myYc, PT_ABS, PT_ABS_CENTER, PT_ABS_RADIUS, PT_REL_CENTER, PT_REL_RADIUS, PT_RELATIVE, selButton, TypeClicked(), ValueChangedInSpinBox(), GEOMBase::VertexToPoint(), and WPlaneLineEdit.
|
privateslot |
References Group1Sel1Spin, Group1Spin, Group2Spin, Group3Spin, and Group4Spin.
|
privateslot |
|
private |
References Group1Sel, Group1Sel1Spin, Group1Spin, Group2Sel, Group2Spin, Group3Spin, and Group4Spin.
|
private |
References Group1Sel, Group1Sel1Spin, Group1Spin, Group2Sel, Group2Spin, Group3Spin, and Group4Spin.
|
privateslot |
References DestClicked(), FIRST_POINT, GroupD1, GroupD2, GroupPt, GroupPt2, GroupRect, MainWidget, myConstructorId, mySketchState, OnFirstPoint(), and RectClicked().
|
privateslot |
References autoApply, DIR_ANGLE_LENGTH, DIR_ANGLE_X, DIR_ANGLE_Y, DIR_DXDY_LENGTH, DIR_DXDY_X, DIR_DXDY_Y, DIR_PER_LENGTH, DIR_PER_X, DIR_PER_Y, DIR_TAN_LENGTH, DIR_TAN_X, DIR_TAN_Y, displayPntPreview(), GEOMBase_Helper::displayPreview(), Group1Sel1Spin, Group1Spin, Group2Spin, Group3Spin, Group4Spin, GroupRect, myAngle, myAngleStr, myConstructorId, myDX, myDXc, myDXcStr, myDXStr, myDY, myDYc, myDYcStr, myDYStr, myLastX1, myLastY1, myLength, myLengthStr, myLineWidth, myRadius, myRadiusStr, mySketchType, myX, myX1, myX1Str, myX2, myX2Str, myXc, myXcStr, myXStr, myY, myY1, myY1Str, myY2, myY2Str, myYc, myYcStr, myYStr, PT_ABS, PT_ABS_CENTER, PT_ABS_RADIUS, PT_REL_CENTER, PT_REL_RADIUS, PT_RELATIVE, and PT_SEL_RADIUS.
|
privateslot |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |