Commit graph

536 commits

Author SHA1 Message Date
Lars Brubaker
bcfb3f897e Subtract and replace enabled correctly
Clean up children names if needed
2019-02-13 14:03:57 -08:00
Lars Brubaker
9741ced755 Finishing up subtract and replace
issue: MatterHackers/MCCentral#4929
Move away from mesh wrapper to source item
2019-02-13 12:02:32 -08:00
Lars Brubaker
ac03a4fcfd Improving subtract object rendering 2019-02-13 10:26:02 -08:00
LarsBrubaker
76c4985111 Working to get subtract to show edit data better 2019-02-13 08:12:30 -08:00
Lars Brubaker
f70353a1ff Getting Subtract and Replace 2 working (almost) 2019-02-12 17:27:22 -08:00
Lars Brubaker
51d7193bf0 Subtract 2 is working well now and rebuilding
Cleaning up On Invalidate and rebuild

issue: MatterHackers/MCCentral#4965
Rebuild should directly call base.OnInvalidate to prevent re-entering this.OnInvalidate

issue: MatterHackers/MCCentral#4964
Rebuild should fire Invalidate if content is changed

issue: MatterHackers/MCCentral#4970
Consider if primitives should use background tasks in Rebuild

issue: MatterHackers/MCCentral#4966
async Rebuild calls must be awaited in Create methods
2019-02-12 16:06:32 -08:00
LarsBrubaker
7598c8bf9c Getting subtract object to work as source 2019-02-12 16:06:32 -08:00
Lars Brubaker
b73c4e5f63 Getting subtract 2 working 2019-02-12 16:06:31 -08:00
Lars Brubaker
73f733db91 Fixed a problem with base not rebuilding correctly. 2019-02-11 15:54:00 -08:00
Lars Brubaker
d0430bed92 Working on new circular fit to bounds
refactoring Transform Wrapper Object
2019-02-08 13:05:12 -08:00
Lars Brubaker
d129a75311 We can now move all the way through the initial setup on first run
Fixed a bug with timing of injecting regex replacements
moved T (extruder) tracking to queued command stream
check that we have loaded filament on extruder 1

issue: MatterHackers/MCCentral#5029
Don't do actual switch of extruders until there is a pending move command
2019-02-07 14:28:22 -08:00
Lars Brubaker
572fdd847a Getting switch extruder pre-gcode to run when needed
refactoring
2019-02-06 12:34:20 -08:00
John Lewin
57c5952308 Set sceneContext.ModelView when changing view modes
- Issue MatterHackers/MCCentral#5015
MeshViewer draws models in GCode3D view, lacks layer scrollbars
2019-02-06 09:31:07 -08:00
Lars Brubaker
9f55a1432c dual extrusion load / unload filament
unload filament is actually working on extruder 2
2019-02-05 13:43:04 -08:00
John Lewin
3cd7314452 Fix naming 2019-02-04 20:08:33 -08:00
John Lewin
386dd2fd54 Move render toggles into dedicated menu 2019-02-04 20:06:34 -08:00
John Lewin
4164b615df Restore GCode2D view 2019-02-04 16:18:07 -08:00
John Lewin
f6a2f89b1c Use new IAVolumeProviders from Revised Plugins 2019-02-04 16:18:07 -08:00
John Lewin
fd675ab07e Listen for scene selection change and lookup IAVolume overrides 2019-02-04 16:18:07 -08:00
John Lewin
1a33e8d074 Add mechanism to override default IAVolumes per type
- Change .InteractionVolumes from List to IEnumerable
- Add mappings of type -> IAVolument overrides
- Conditionally returned mapped IAVolume overrides
- Force IAVolume registration through .RegisterIAVolume()
2019-02-04 16:18:07 -08:00
John Lewin
d8c8be922d Change IAVolume processing from index to instance
- Support changing IAV lists at runtime without index-out-of-range
2019-02-04 16:18:07 -08:00
John Lewin
23396a6c6d Clean up on Close 2019-02-04 16:18:06 -08:00
John Lewin
6347287c85 Extract BVH rendering logic for BvhIterator for reuse
- Reduce dependency to Matrix/IBvhItem instead of BvhIterator
2019-02-04 16:18:06 -08:00
John Lewin
1faddfd80c Observe Drawable.Enabled and DrawStage 2019-02-04 16:18:06 -08:00
John Lewin
32ab931342 Add item TraceData renderer 2019-02-04 16:18:06 -08:00
John Lewin
02793f790b Simplify 2019-02-04 16:18:06 -08:00
John Lewin
330aba83f7 Add item Drawables to menu 2019-02-04 16:18:06 -08:00
John Lewin
e9b79e1099 Add common properties to IDrawableItem 2019-02-04 16:18:06 -08:00
John Lewin
f26a8758e5 Extract embedded types to new files 2019-02-04 16:18:06 -08:00
John Lewin
9543c1450e Rename for more specificity 2019-02-04 16:18:06 -08:00
John Lewin
cf4bece014 Extract selection rendering to new Drawable 2019-02-04 16:18:06 -08:00
John Lewin
a9bb99cd99 Adjust timing so that some stages are inside/outside of SetGLContext 2019-02-04 16:18:06 -08:00
John Lewin
2b797fb2f1 Printer widget should use printer bed rather than sceneContext 2019-02-04 16:18:06 -08:00
John Lewin
83712d7e08 Add and use new ISceneContext interface 2019-02-04 16:18:06 -08:00
John Lewin
3f02989e62 Remove redundant World dependency 2019-02-04 16:18:06 -08:00
John Lewin
6399686eed Remove UndoBuffer dependency from viewer 2019-02-04 16:18:06 -08:00
John Lewin
ae923cd484 Move AddTransformSnapshot to InteractiveScene 2019-02-04 16:18:06 -08:00
John Lewin
3e9b6d6fb0 Consolidate 2019-02-04 16:18:06 -08:00
John Lewin
3e7fcbbc09 Consolidate conditional color logic into existing GetItemColor() 2019-02-04 16:18:05 -08:00
John Lewin
2d1c6a560a Add toggles to Gui surface for demo 2019-02-04 16:18:05 -08:00
John Lewin
c7e76e1996 Add Enabled property to IDrawable 2019-02-04 16:18:05 -08:00
John Lewin
8aaa42d078 Invoke drawables at each stage 2019-02-04 16:18:05 -08:00
John Lewin
aaf543c2c7 Rename method to match behavior 2019-02-04 16:18:05 -08:00
John Lewin
316c15a844 Extract drawing from PPE to InteractionLayer
- Eliminate event bindings, invoke DrawEditor directly
2019-02-04 16:18:05 -08:00
John Lewin
0d895258aa Require additional metadata for Drawables 2019-02-04 16:18:05 -08:00
John Lewin
54b43faa2a Convert View3DWidget event handler into IDrawable interface 2019-02-04 16:18:05 -08:00
John Lewin
a33a7e8924 Fix alpha accumulation to 0 2019-02-04 16:18:05 -08:00
John Lewin
5c54285392 Remove unused DrawGlTransparentContent event 2019-02-04 16:18:05 -08:00
John Lewin
7293319e4e Collapse single use method into caller 2019-02-04 16:18:05 -08:00
John Lewin
ff7b8e40cf Add item Drawables list 2019-02-04 16:18:05 -08:00