Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advanced digitizing tools (aka CAD tools) #1624

Merged
merged 1 commit into from
Dec 9, 2014
Merged

Conversation

3nids
Copy link
Member

@3nids 3nids commented Oct 10, 2014

This integrates CAD tools in QGIS application.

This is roughly the port of CADinput plugin to core, with some fixes and improvements.

A QEP has been issued: qgis/QGIS-Enhancement-Proposals#8

@3nids 3nids added this to the 2.7 milestone Oct 13, 2014
@3nids 3nids force-pushed the cadtool_single branch 7 times, most recently from 22df49c to 0719074 Compare October 21, 2014 05:31
@3nids 3nids force-pushed the cadtool_single branch 3 times, most recently from 72806ce to 6eb0e21 Compare October 29, 2014 14:28
@3nids
Copy link
Member Author

3nids commented Oct 29, 2014

Thanks to intensive testing from @olivierdalang

@NathanW2
Copy link
Member

Nice. Going to build again and do some more testing.

On Thu Oct 30 2014 at 12:35:29 AM Denis Rouzaud notifications@github.com
wrote:

Thanks to intensive testing from @olivierdalang
https://github.com/olivierdalang, many bugs have been fixed (see last
commits messages) and 2 features were added:

  • common angles for snapping (30/45/90°)
  • preview of orthogonal/parallel direction when mouse over snapped
    segment (in orthogonal/parallel mode)


Reply to this email directly or view it on GitHub
#1624 (comment).

@3nids 3nids force-pushed the cadtool_single branch 4 times, most recently from 75038cd to f233001 Compare November 6, 2014 08:33
@3nids 3nids force-pushed the cadtool_single branch 2 times, most recently from 44e0c41 to 9a4f29d Compare December 2, 2014 07:05
@3nids 3nids changed the title CAD tools Advanced digitizing tools (aka CAD tools) Dec 2, 2014
this integrates advanced digitizing tools aka CAD tools in QGIS application and basically a port of CADinput plugin
* new class QgsMapToolAdvancedDigitizing shall be subsclassed if adv. digit. tools could be used in a map tool
* QgsAdvancedDigitizingDockWidget handles the interaction with the user and also perform the constraints (filters events)
* QgsAdvancedDigitizingCanvasItem paints construction lines on the canvas
}
else
{
// try to evalute expression
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@3nids might be worthwhile changing this part to use the new QgsExpression::evaluateToDouble method. You can see how it's used in QgsDoubleSpinBox::valueFromText. It's got full test coverage so should be safer to use than this duplicate code.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@3nids it's probably worth mentioning that I plan on adding a QgsLineEdit widget which has built in support for evaluating expressions too.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the feedback.
Just a remark, I would like to have another method as evaluateToDouble which has const QString& text, bool &ok as parameters since I only have the text from the line edit as input (so no fallback value).
What do you think?

3nids added a commit that referenced this pull request Dec 9, 2014
Advanced digitizing tools (aka CAD tools)
@3nids 3nids merged commit d65a6f7 into qgis:master Dec 9, 2014
@3nids 3nids deleted the cadtool_single branch December 9, 2014 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants