qocccmdline2pt.h

Go to the documentation of this file.
00001 /************************************************************************************
00002 **
00003 ** This file is part of the QtOPENCASCADE Toolkit.
00004 **
00005 ** Copyright (C) 2006, 2007, 2008 QtOCC Team Members
00006 **               Peter Dolbey, Marc Britten, Stephane Routelous
00007 **               Stefan Boeykens, Pawel Dobrolowski, Walter Steffe
00008 **               Álvaro Castro Castilla, Dirk Burski, Fotis Sioutis
00009 **
00010 ** This library is free software; you can redistribute it and/or
00011 ** modify it under the terms of the GNU Lesser General Public
00012 ** License as published by the Free Software Foundation; either
00013 ** version 2.1 of the License, or (at your option) any later version.
00014 ** 
00015 ** This library is distributed in the hope that it will be useful,
00016 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018 ** Lesser General Public License for more details.
00019 ** 
00020 ** You should have received a copy of the GNU Lesser General Public
00021 ** License along with this library; if not, write to the Free Software
00022 ** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00023 **
00024 ***********************************************************************************/
00025 #ifndef QoccCmdLine2Pt_H
00026 #define QoccCmdLine2Pt_H
00027 
00028 #include <QtCore/QObject>
00029 #include "qocc.h"
00030 #include "qoccapplication.h"
00031 #include "qocccommand.h"
00032 
00033 class QOCC_DECLSPEC QoccDlgLine2Pt : public QObject
00034 {
00035         Q_OBJECT
00036 
00037 public:
00038 
00039     QoccDlgLine2Pt( );
00040     ~QoccDlgLine2Pt( );
00041 
00042 private: 
00043 
00044         
00045 };
00046 
00047 class QOCC_DECLSPEC QoccCmdLine2Pt : public QoccCommand
00048 {
00049         Q_OBJECT
00050 
00051 public: //Enumerations
00052         enum LineParameter
00053         {
00054                 Point1, Point2, Done
00055         };
00056 
00057 public: //Methods
00058 
00059     QoccCmdLine2Pt( QAction* startingAction = NULL, QWidget* parent = NULL );
00060     ~QoccCmdLine2Pt( );
00061 
00062         virtual void clickEvent(Qocc3dWidget* widget, QMouseEvent* e);
00063         virtual void moveEvent(Qocc3dWidget*  widget, QMouseEvent* e);
00064 
00065 protected: //Attributes
00066 
00067         QoccDocument*           myDocument;
00068         Handle(GEOM_Object) myStart;
00069         Handle(GEOM_Object) myEnd;
00070         Handle(GEOM_Object) myLine;
00071         LineParameter           myParameter;
00072 
00073         gp_Pnt          myCurrentPoint;
00074         gp_Pnt          myStartPoint;
00075 
00076 };
00077 
00078 
00079 #endif // QoccCmdLine2Pt_H

Generated on Sat Feb 23 21:22:15 2008 for QtGEOM by  doxygen 1.4.7