Files
create/src/Mod/Draft/draftviewproviders
carlopav 3da68ba3c5 Draft: fix to statusbar import on wb Activated and Deactivated
Import statusbar related functions only if snapper is loaded
added new line at the end
2020-04-30 13:48:33 +02:00
..
2020-04-29 11:41:02 +02:00
2020-04-29 11:41:02 +02:00

2020 February

These files define the view provider classes of the "scripted objects" defined by the workbench. These scripted objects are originally defined in the big Draft.py file.

Each scripted object has a creation command like make_arc, a proxy class like Arc, and a view provider like ViewProviderArc. The view providers define the code that indicates how they are displayed in the tree view and in the 3D view, and visual properties such as line thickness, line color, face color, and transparency. These properties are only available when the graphical interface exists, otherwise they are ignored.

Each scripted object in draftobjects/ should import its corresponding view provider from this directory as long the graphical interface is available.

These modules should be split from the big Draft.py module.

At the moment the files in this directory aren't really used, but are used as placeholders for when the migration of classes happens.

For more information see the thread: [Discussion] Splitting Draft tools into their own modules