Pivy_trackers 2D geometry library

Info about new community or project announcements, implemented features, classes, modules or APIs. Might get technical!
PLEASE DO NOT POST HELP REQUESTS OR OTHER DISCUSSIONS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Pivy_trackers 2D geometry library

Post by Joel_graff »

carlopav wrote: Sat Nov 02, 2019 11:09 am Congrats! I'd like to experiment it within draft edit one day...
I've designed it entirely around my use cases, then abstracted it to try to make it more generally useful. But I have no idea how useful it really is... :?

I think it can probably be adapted for a lot of different uses without having to rewrite existing code. I've tried to keep things as modular as possible so even if your use case isn't supported, you still get a pretty good starting point before having to write your own code for it.

I plan to use it in several different applications I have in mind. It's taken a lot of time to build it out, but, at least for me, it'll be a handy thing to have.
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Pivy_trackers 2D geometry library

Post by Joel_graff »

A few updates to the library recently. Most notable is the addition of the Timer trait, designed to trigger a callback at a specified interval. Intended for animation using pivy_trackers.

Looks like I need to do a v1.1 release soon. :)
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: Pivy_trackers 2D geometry library

Post by vocx »

Joel_graff wrote: Wed Oct 09, 2019 4:02 am ...
Unfortunately, in order to offer a more fully-featured system, I had to include some dependencies - like the DraftGui.todo class (which depends on QTimer), ...
I'm wondering, do you still have the DraftGui.todo or QtCore.QTimer classes?

Or what you just added supersedes it?
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Pivy_trackers 2D geometry library

Post by Joel_graff »

vocx wrote: Tue Nov 19, 2019 10:58 pm I'm wondering, do you still have the DraftGui.todo or QtCore.QTimer classes?
Yes. I suppose there's a way to get past that, but I copied DraftGui.todo into a separate class and cleaned up the code a bit, but it still depends on QTimer
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Pivy_trackers 2D geometry library

Post by Joel_graff »

Pivy_trackers v1.1 is available!

Not a lot to really show. Mostly just practice for me doing releases. :)

There's new features, a few bug fixes and other changes. The most notable feature is the addition of the Timer trait (and it's corresponding TimerSensor class), which permits basic animation.

Also added plumbing for the incomplete Widget trait to permit interfacing with Qt controls (likely will be the main subject for v1.2).
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Pivy_trackers 2D geometry library

Post by Kunda1 »

:clap::clap::clap:
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply