#include <qocccmdline2pt.h>
Inheritance diagram for QoccCmdLine2Pt:
Public Types | |
Point1 | |
Point2 | |
Done | |
enum | LineParameter { Point1, Point2, Done } |
Public Member Functions | |
QoccCmdLine2Pt (QAction *startingAction=NULL, QWidget *parent=NULL) | |
~QoccCmdLine2Pt () | |
virtual void | clickEvent (Qocc3dWidget *widget, QMouseEvent *e) |
virtual void | moveEvent (Qocc3dWidget *widget, QMouseEvent *e) |
Protected Member Functions | |
Handle (GEOM_Object) myStart | |
Handle (GEOM_Object) myEnd | |
Handle (GEOM_Object) myLine | |
Protected Attributes | |
QoccDocument * | myDocument |
LineParameter | myParameter |
gp_Pnt | myCurrentPoint |
gp_Pnt | myStartPoint |
Definition at line 47 of file qocccmdline2pt.h.
QoccCmdLine2Pt::QoccCmdLine2Pt | ( | QAction * | startingAction = NULL , |
|
QWidget * | parent = NULL | |||
) |
Definition at line 55 of file qocccmdline2pt.cpp.
References QoccCommand::myAction, myDocument, myParameter, and Point1.
QoccCmdLine2Pt::~QoccCmdLine2Pt | ( | ) |
Definition at line 66 of file qocccmdline2pt.cpp.
References QoccCommand::myAction, myDocument, and QoccDocument::RemovePresentation().
Here is the call graph for this function:
void QoccCmdLine2Pt::clickEvent | ( | Qocc3dWidget * | widget, | |
QMouseEvent * | e | |||
) | [virtual] |
Reimplemented from QoccCommand.
Definition at line 89 of file qocccmdline2pt.cpp.
References QoccController::clearLocalContext(), Qocc3dWidget::getController(), Qocc3dWidget::getDirection(), QoccController::getDocument(), Handle(), QoccController::hasLocalContext(), QoccDocument::id(), QoccController::localContext(), myCurrentPoint, myDocument, QoccCommand::myIsDrawing, myParameter, myStartPoint, Point1, Point2, qGeomApp, QoccDocument::RemovePresentation(), QoccController::setLocalContext(), QoccController::update(), Qocc3dWidget::x(), Qocc3dWidget::y(), and Qocc3dWidget::z().
Here is the call graph for this function:
QoccCmdLine2Pt::Handle | ( | GEOM_Object | ) | [protected] |
QoccCmdLine2Pt::Handle | ( | GEOM_Object | ) | [protected] |
QoccCmdLine2Pt::Handle | ( | GEOM_Object | ) | [protected] |
void QoccCmdLine2Pt::moveEvent | ( | Qocc3dWidget * | widget, | |
QMouseEvent * | e | |||
) | [virtual] |
Reimplemented from QoccCommand.
Definition at line 151 of file qocccmdline2pt.cpp.
References Qocc3dWidget::getController(), QoccController::getDocument(), QoccDocument::id(), myCurrentPoint, myParameter, myStartPoint, Point1, Point2, qGeomApp, QoccDocument::RemovePresentation(), Qocc3dWidget::x(), Qocc3dWidget::y(), and Qocc3dWidget::z().
Here is the call graph for this function:
gp_Pnt QoccCmdLine2Pt::myCurrentPoint [protected] |
QoccDocument* QoccCmdLine2Pt::myDocument [protected] |
Definition at line 67 of file qocccmdline2pt.h.
Referenced by clickEvent(), QoccCmdLine2Pt(), and ~QoccCmdLine2Pt().
LineParameter QoccCmdLine2Pt::myParameter [protected] |
Definition at line 71 of file qocccmdline2pt.h.
Referenced by clickEvent(), moveEvent(), and QoccCmdLine2Pt().
gp_Pnt QoccCmdLine2Pt::myStartPoint [protected] |