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!
User avatar
Joel_graff
Posts: 1583
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Pivy_trackers 2D geometry library

Postby Joel_graff » Sat Nov 02, 2019 1:12 pm

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
Posts: 1583
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Pivy_trackers 2D geometry library

Postby Joel_graff » Tue Nov 19, 2019 8:38 pm

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
Posts: 1898
Joined: Thu Oct 18, 2018 9:18 pm

Re: Pivy_trackers 2D geometry library

Postby vocx » Tue Nov 19, 2019 10:58 pm

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?
User avatar
Joel_graff
Posts: 1583
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Pivy_trackers 2D geometry library

Postby Joel_graff » Tue Nov 19, 2019 11:32 pm

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
Posts: 1583
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Pivy_trackers 2D geometry library

Postby Joel_graff » Tue Dec 03, 2019 1:45 pm

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
Posts: 5937
Joined: Thu Jan 05, 2017 9:03 pm

Re: Pivy_trackers 2D geometry library

Postby Kunda1 » Wed Dec 04, 2019 12:56 pm

:clap::clap::clap:
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features