class EntityGUI_Dir1;
class EntityGUI_Dir2;
class EntityGUI_Skeleton;
+class DlgRef_4Spin;
class GeometryGUI;
#ifndef COORD_MIN
public:
EntityGUI_SketcherDlg( GeometryGUI*, QWidget* = 0, bool = false, Qt::WindowFlags = 0,
- const double = 2. );
+ const double = -1 );
~EntityGUI_SketcherDlg();
bool eventFilter (QObject* object, QEvent* event);
- bool acceptMouseEvent() const { return ( getPnt1ConstructorId() == 1 ); } //accept mouse event only on absolute selection mode
- void OnPointSelected( Qt::KeyboardModifiers, const gp_Pnt& ); // called by EntityGUI::OnMousePress()
+ bool acceptMouseEvent() const; // called by EntityGUI::OnMousePress()
+ void OnPointSelected( Qt::KeyboardModifiers, const gp_Pnt&, bool isStart = true );
protected:
void initSpinBox( SalomeApp_DoubleSpinBox*,
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
-
+ virtual void addSubshapesToStudy();
+
void closeEvent( QCloseEvent* );
void keyPressEvent( QKeyEvent* );
const double = -1,
const int = -1,
const int = -1);
+
+ void displayPntPreview( const double = 0.0,
+ const double = 0.0,
+ bool /*append*/ = true,
+ bool /*update*/ = true
+ );
bool createShapes( GEOM::GEOM_Object_ptr,
TopoDS_Shape&,
TopoDS_Shape& );
int getPnt1ConstructorId() const;
int getPnt2ConstructorId() const;
+ void OnFirstPoint();
+ void OnNextPoint();
+
private:
int myConstructorId;
bool myIsAllAdded;
bool myIsApply;
+ bool autoApply;
QLineEdit* myEditCurrentArgument; /* Current LineEdit */
QStringList myUndoParameters;
Standard_Real myX, myY, myDX, myDY;
+ Standard_Real myX1, myY1, myX2, myY2;
Standard_Real myXc, myYc, myDXc, myDYc;
Standard_Real myLength, myAngle, myRadius;
Standard_Real myLastX1, myLastY1;
Standard_Real myLastX2, myLastY2;
QString myXStr, myYStr, myDXStr, myDYStr;
+ QString myX1Str, myY1Str, myX2Str, myY2Str;
QString myXcStr, myYcStr, myDXcStr, myDYcStr;
QString myLengthStr, myAngleStr, myRadiusStr;
QString myLastX1Str, myLastY1Str;
EntityGUI_2Spin* Group2Spin;
EntityGUI_3Spin1Check* Group3Spin;
EntityGUI_4Spin1Check* Group4Spin;
+ DlgRef_4Spin* GroupRect;
QLabel* myErrLabel;
QGroupBox* GroupBox1;
QComboBox* ComboBox1;
QPushButton* planeButton;
+ QPushButton* selButton;
+
+ QLineEdit* WPlaneLineEdit;
GeometryGUI* myGeometryGUI;
double myLineWidth;
QList<gp_Ax3> myLCSList;
+ GEOM::GEOM_Object_var myGlobalCS;
+ GEOM::GEOM_Object_var myWPlane;
+ QList< GEOM::GEOM_Object_var > myWPlaneList;
int myCheckFlag;
void DeactivateActiveDialog();
void ActivateThisDialog();
void TypeClicked( int );
+ void RectClicked();
void DestClicked( int );
void PointClicked( int );
void Point2Clicked( 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();
};