#include <DrawSketchHandlerRectangle.h>
Public Types | |
enum | BoxMode { STATUS_SEEK_First , STATUS_SEEK_Second , STATUS_End } |
mode table More... | |
enum | ConstructionMethod { Diagonal , CenterAndCorner } |
Protected Attributes | |
Base::Vector2d | center |
ConstructionMethod | constructionMethod |
std::vector< Base::Vector2d > | EditCurve |
BoxMode | Mode |
std::vector< AutoConstraint > | sugConstr1 |
std::vector< AutoConstraint > | sugConstr2 |
Protected Attributes inherited from SketcherGui::DrawSketchHandler | |
ViewProviderSketch * | sketchgui |
QCursor | oldCursor |
QCursor | actCursor |
QPixmap | actCursorPixmap |
Additional Inherited Members | |
Protected Member Functions inherited from SketcherGui::DrawSketchHandler | |
virtual QString | getCrosshairCursorSVGName () const |
void | setCursor (const QPixmap &pixmap, int x, int y, bool autoScale=true) |
void | updateCursor () |
updates the actCursor with the icon by calling getCrosshairCursorSVGName(), enabling to set data member dependent icons (i.e. More... | |
void | unsetCursor (void) |
restitutes the cursor that was in use at the moment of starting the DrawSketchHandler (i.e. oldCursor) More... | |
void | applyCursor (void) |
restitutes the DSH cached cursor (e.g. without any tail due to autoconstraints, ...) More... | |
unsigned long | getCrosshairColor () |
returns the color to be used for the crosshair (configurable as a parameter) More... | |
qreal | devicePixelRatio () |
functions to set the cursor to a given svgName (to be migrated to NVI style) More... | |
void | drawEdit (const std::vector< Base::Vector2d > &EditCurve) |
void | drawEdit (const std::list< std::vector< Base::Vector2d > > &list) |
void | drawEdit (const std::vector< Part::Geometry * > &geometries) |
void | drawEditMarkers (const std::vector< Base::Vector2d > &EditMarkers, unsigned int augmentationlevel=0) |
void | setAxisPickStyle (bool on) |
void | moveCursorToSketchPoint (Base::Vector2d point) |
void | preselectAtPoint (Base::Vector2d point) |
void | drawPositionAtCursor (const Base::Vector2d &position) |
void | drawDirectionAtCursor (const Base::Vector2d &position, const Base::Vector2d &origin) |
int | getPreselectPoint (void) const |
int | getPreselectCurve (void) const |
int | getPreselectCross (void) const |
Sketcher::SketchObject * | getSketchObject () |
std::vector< QPixmap > | suggestedConstraintsPixmaps (std::vector< AutoConstraint > &suggestedConstraints) |
Returns constraints icons scaled to width. More... | |
SketcherGui::DrawSketchHandlerBox::DrawSketchHandlerBox | ( | ConstructionMethod | constrMethod = Diagonal | ) |
|
virtual |
|
overridevirtual |
Implements SketcherGui::DrawSketchHandler.
References SketcherGui::DrawSketchHandler::applyCursor(), center, CenterAndCorner, constructionMethod, Diagonal, SketcherGui::DrawSketchHandler::drawEdit(), EditCurve, Mode, SketcherGui::DrawSketchHandler::renderSuggestConstraintsCursor(), SketcherGui::DrawSketchHandler::seekAutoConstraint(), SketcherGui::DrawSketchHandler::setPositionText(), STATUS_SEEK_First, STATUS_SEEK_Second, sugConstr1, sugConstr2, Base::Vector2d::x, and Base::Vector2d::y.
|
overridevirtual |
|
overridevirtual |
Implements SketcherGui::DrawSketchHandler.
References Gui::Command::abortCommand(), SketcherGui::DrawSketchHandler::applyCursor(), center, CenterAndCorner, Gui::Command::commitCommand(), Base::Console(), SketcherGui::Construction, constructionMethod, SketcherGui::DrawSketchHandler::createAutoConstraints(), Diagonal, Gui::Command::Doc, SketcherGui::DrawSketchHandler::drawEdit(), EditCurve, Sketcher::end, Base::ConsoleSingleton::Error(), SketcherGui::geometryCreationMode, App::GetApplication(), ParameterGrp::GetBool(), SketcherGui::DrawSketchHandler::getHighestCurveIndex(), Gui::ViewProviderDocumentObject::getObject(), Gui::Command::getObjectCmd(), App::Application::GetParameterGroupByPath(), Mode, Gui::Command::openCommand(), SketcherGui::ViewProviderSketch::purgeHandler(), draftutils.translate::QT_TRANSLATE_NOOP, SketcherGui::DrawSketchHandler::resetPositionText(), SketcherGui::DrawSketchHandler::sketchgui, Sketcher::start, STATUS_End, STATUS_SEEK_First, sugConstr1, sugConstr2, SketcherGui::tryAutoRecomputeIfNotSolve(), SketcherGui::DrawSketchHandler::unsetCursor(), Base::Vector2d::x, and Base::Vector2d::y.
|
protected |
Referenced by drafttaskpanels.task_circulararray.TaskPanelCircularArray::accept(), drafttaskpanels.task_polararray.TaskPanelPolarArray::accept(), draftguitools.gui_arcs.Arc::action(), draftguitools.gui_dimensions.Dimension::action(), draftguitools.gui_offset.Offset::action(), draftguitools.gui_polygons.Polygon::action(), draftguitools.gui_rotate.Rotate::build_copy_subelements_command(), draftguitools.gui_scale.Scale::build_copy_subelements_command(), draftguitools.gui_rotate.Rotate::build_rotate_subelements_command(), draftguitools.gui_scale.Scale::build_scale_subelements_command(), draftguitools.gui_dimensions.Dimension::create_angle_dimension(), drafttaskpanels.task_circulararray.TaskPanelCircularArray::create_object(), drafttaskpanels.task_polararray.TaskPanelPolarArray::create_object(), draftguitools.gui_arcs.Arc::drawArc(), draftguitools.gui_polygons.Polygon::drawPolygon(), PathScripts.PathDressupAxisMap.ObjectDressup::execute(), draftguitools.gui_rotate.Rotate::handle_mouse_move_event(), mouseMove(), draftguitools.gui_arcs.Arc::numericInput(), draftguitools.gui_polygons.Polygon::numericInput(), draftguitools.gui_rotate.Rotate::numericInput(), draftguitools.gui_arcs.Arc::numericRadius(), draftguitools.gui_polygons.Polygon::numericRadius(), PathScripts.PathDressupAxisMap.ObjectDressup::onChanged(), pressButton(), drafttaskpanels.task_circulararray.TaskPanelCircularArray::print_messages(), drafttaskpanels.task_polararray.TaskPanelPolarArray::print_messages(), releaseButton(), drafttaskpanels.task_circulararray.TaskPanelCircularArray::reset_point(), drafttaskpanels.task_polararray.TaskPanelPolarArray::reset_point(), draftguitools.gui_rotate.Rotate::rotate_object(), draftguitools.gui_scale.Scale::scale_object(), draftguitools.gui_rotate.Rotate::set_center(), draftguitools.gui_rotate.Rotate::set_ghosts(), and draftguitools.gui_rotate.Rotate::set_rotation_angle().
|
protected |
Referenced by mouseMove(), pressButton(), and releaseButton().
|
protected |
Referenced by mouseMove(), pressButton(), and releaseButton().
|
protected |
Referenced by mouseMove(), pressButton(), and releaseButton().
|
protected |
Referenced by mouseMove(), and releaseButton().
|
protected |
Referenced by mouseMove(), and releaseButton().