Public Types | |
enum SelectMode { STATUS_SEEK_First, STATUS_End } | |
mode table More... | |
Public Member Functions | |
virtual void activated (ViewProviderSketch *sketchgui) | |
DrawSketchHandlerRectangularArray (string geoidlist, int origingeoid, Sketcher::PointPos originpos, int nelements, bool clone, int rows, int cols, bool constraintSeparation, bool equalVerticalHorizontalSpacing) | |
virtual void mouseMove (Base::Vector2d onSketchPos) | |
virtual bool pressButton (Base::Vector2d onSketchPos) | |
virtual bool releaseButton (Base::Vector2d onSketchPos) | |
virtual ~DrawSketchHandlerRectangularArray () | |
![]() | |
void createAutoConstraints (const std::vector< AutoConstraint > &autoConstrs, int geoId, Sketcher::PointPos pointPos=Sketcher::none, bool createowncommand=true) | |
virtual void deactivated (ViewProviderSketch *) | |
DrawSketchHandler () | |
int getHighestCurveIndex (void) | |
int getHighestVertexIndex (void) | |
virtual bool onSelectionChanged (const Gui::SelectionChanges &) | |
virtual void quit (void) | |
virtual void registerPressedKey (bool, int) | |
void renderSuggestConstraintsCursor (std::vector< AutoConstraint > &suggestedConstraints) | |
void resetPositionText (void) | |
int seekAutoConstraint (std::vector< AutoConstraint > &suggestedConstraints, const Base::Vector2d &Pos, const Base::Vector2d &Dir, AutoConstraint::TargetType type=AutoConstraint::VERTEX) | |
void setPositionText (const Base::Vector2d &Pos) | |
void setPositionText (const Base::Vector2d &Pos, const SbString &text) | |
virtual ~DrawSketchHandler () | |
Protected Attributes | |
bool Clone | |
int Cols | |
bool ConstraintSeparation | |
std::vector< Base::Vector2d > EditCurve | |
bool EqualVerticalHorizontalSpacing | |
string geoIdList | |
SelectMode Mode | |
int nElements | |
Base::Vector3d Origin | |
int OriginGeoId | |
Sketcher::PointPos OriginPos | |
int Rows | |
std::vector< AutoConstraint > sugConstr1 | |
![]() | |
QCursor actCursor | |
QCursor oldCursor | |
ViewProviderSketch * sketchgui | |
Additional Inherited Members | |
![]() | |
void applyCursor (QCursor &newCursor) | |
void applyCursor (void) | |
void setCrosshairColor () | |
void setCursor (const QPixmap &p, int x, int y) | |
void unsetCursor (void) | |
Member Enumeration Documentation
◆ SelectMode
Constructor & Destructor Documentation
◆ DrawSketchHandlerRectangularArray()
DrawSketchHandlerRectangularArray::DrawSketchHandlerRectangularArray | ( | string | geoidlist, |
int | origingeoid, | ||
Sketcher::PointPos | originpos, | ||
int | nelements, | ||
bool | clone, | ||
int | rows, | ||
int | cols, | ||
bool | constraintSeparation, | ||
bool | equalVerticalHorizontalSpacing | ||
) |
◆ ~DrawSketchHandlerRectangularArray()
|
virtual |
Member Function Documentation
◆ activated()
|
virtual |
Reimplemented from SketcherGui::DrawSketchHandler.
References EditCurve, Gui::ViewProviderDocumentObject::getObject(), Origin, OriginGeoId, OriginPos, SketcherGui::DrawSketchHandler::setCursor(), SketcherGui::DrawSketchHandler::sketchgui, Base::Vector3< _Precision >::x, and Base::Vector3< _Precision >::y.
◆ mouseMove()
|
virtual |
Implements SketcherGui::DrawSketchHandler.
References SketcherGui::DrawSketchHandler::applyCursor(), SketcherGui::ViewProviderSketch::drawEdit(), EditCurve, Mode, SketcherGui::DrawSketchHandler::renderSuggestConstraintsCursor(), SketcherGui::DrawSketchHandler::seekAutoConstraint(), SketcherGui::DrawSketchHandler::setPositionText(), SketcherGui::DrawSketchHandler::sketchgui, STATUS_SEEK_First, and sugConstr1.
◆ pressButton()
|
virtual |
Implements SketcherGui::DrawSketchHandler.
References SketcherGui::ViewProviderSketch::drawEdit(), EditCurve, Mode, SketcherGui::DrawSketchHandler::sketchgui, STATUS_End, and STATUS_SEEK_First.
◆ releaseButton()
|
virtual |
Implements SketcherGui::DrawSketchHandler.
References Gui::Command::abortCommand(), Clone, Gui::cmdAppObjectArgs(), Cols, Gui::Command::commitCommand(), Base::Console(), ConstraintSeparation, SketcherGui::DrawSketchHandler::createAutoConstraints(), SketcherGui::ViewProviderSketch::drawEdit(), EditCurve, EqualVerticalHorizontalSpacing, Base::ConsoleSingleton::Error(), geoIdList, Gui::ViewProviderDocumentObject::getObject(), Mode, nElements, Gui::Command::openCommand(), OriginGeoId, OriginPos, SketcherGui::ViewProviderSketch::purgeHandler(), SketcherGui::DrawSketchHandler::resetPositionText(), Rows, SketcherGui::DrawSketchHandler::sketchgui, STATUS_End, sugConstr1, SketcherGui::tryAutoRecomputeIfNotSolve(), SketcherGui::DrawSketchHandler::unsetCursor(), Base::Vector2d::x, and Base::Vector2d::y.
Member Data Documentation
◆ Clone
|
protected |
Referenced by releaseButton().
◆ Cols
|
protected |
Referenced by releaseButton().
◆ ConstraintSeparation
|
protected |
Referenced by releaseButton().
◆ EditCurve
|
protected |
Referenced by activated(), mouseMove(), pressButton(), and releaseButton().
◆ EqualVerticalHorizontalSpacing
|
protected |
Referenced by releaseButton().
◆ geoIdList
|
protected |
Referenced by releaseButton().
◆ Mode
|
protected |
Referenced by mouseMove(), pressButton(), and releaseButton().
◆ nElements
|
protected |
Referenced by releaseButton().
◆ Origin
|
protected |
Referenced by activated().
◆ OriginGeoId
|
protected |
Referenced by activated(), and releaseButton().
◆ OriginPos
|
protected |
Referenced by activated(), and releaseButton().
◆ Rows
|
protected |
Referenced by releaseButton().
◆ sugConstr1
|
protected |
Referenced by mouseMove(), and releaseButton().
The documentation for this class was generated from the following file:
- src/Mod/Sketcher/Gui/CommandSketcherTools.cpp