Commit graph

688 commits

Author SHA1 Message Date
John Lewin
c92c95fa64 Filter out history files less than 500b
- Issue MatterHackers/MCCentral#3682
Part History folder does not sync with the home screen parts list.

- Issue MatterHackers/MCCentral#3683
Plate History folder shows a lot of broken workspaces instead of
syncing with home screen plate list
2018-06-22 16:51:43 -07:00
John Lewin
a6272635b4 Load from library thumbnail cache 2018-06-21 21:52:47 -07:00
John Lewin
9bcb02db5b Create content and library thumbnails on raytrace success 2018-06-21 21:52:01 -07:00
John Lewin
eab6844f41 Inline return value, move caching logic to caller 2018-06-21 21:51:09 -07:00
John Lewin
b347d588f2 Limit to private scope until need returns 2018-06-21 21:48:53 -07:00
John Lewin
4ab59d0aa8 Return the default image if rules prevent thumbnail generation 2018-06-21 21:44:44 -07:00
LarsBrubaker
e9e55f874e Making Object3D classes consistent
issue: MatterHackers/MCCentral#3702
Consider adding 'Object3D' suffix to Object3D types or use consistent format
2018-06-21 21:03:13 -07:00
John Lewin
6dea15a6d7 Consolidate thumbnails behavior into new Thumbnails class 2018-06-21 10:50:40 -07:00
John Lewin
262ef1ebb0 Simplify naming 2018-06-21 10:03:13 -07:00
John Lewin
b491cc8e5a Add type for thumbnail cache, move to ApplicationController 2018-06-21 10:03:13 -07:00
John Lewin
1e8359a66f Leave scaling to caller
- Issue MatterHackers/MCCentral#3696
Large MeshContentProvider default thumbnails after load from cache
2018-06-20 22:53:47 -07:00
John Lewin
69490d206c Only cache raytraced images at the content cache key
- Issue MatterHackers/MCCentral#3698
Thumbnails generated for both LibaryItem.ID and content ID
2018-06-20 22:43:59 -07:00
John Lewin
a71ced7dcd Move raytracePending reset into MeshContentProvider result assignment 2018-06-20 22:34:24 -07:00
John Lewin
0e574131a9 Revise IContentProvider GetThumbnail signature
- Issue MatterHackers/MCCentral#3695
ContentProvider GetThumbnail fails for non-mesh content
2018-06-20 22:34:24 -07:00
John Lewin
7f93da2a0d Simplify 2018-06-20 21:11:38 -07:00
John Lewin
5760ac0166 Remove ThumbnailKey 2018-06-20 21:11:37 -07:00
John Lewin
cc2fa957d9 Allow non-MeshContent providers to supply thumbnails 2018-06-20 16:28:10 -07:00
John Lewin
e6ac6d30ff Reschedule Raytracing when applicable 2018-06-20 16:27:00 -07:00
John Lewin
3ad00853b0 Extract Raytrace scheduling to dedicated method 2018-06-20 16:26:25 -07:00
John Lewin
1d5f64d22b Revert to non-async OnLoad/OnDraw methods 2018-06-20 16:19:40 -07:00
John Lewin
64d3a11586 Remove redundant LoadItemThumbnail method, 'shouldGenerate' Func 2018-06-20 16:18:08 -07:00
John Lewin
a10251c057 Rename variable to match behavior 2018-06-20 16:18:00 -07:00
John Lewin
eba2cfb0a5 Remove delegate parameter, use SetItemThumbnail instance member 2018-06-20 14:44:36 -07:00
John Lewin
51102b2152 Rename Parents -> Ancestors 2018-06-20 13:43:43 -07:00
John Lewin
3da126edcc Extract ItemAndParents to AncestorsAndSelf extension method 2018-06-20 13:40:12 -07:00
John Lewin
e23d130d3d Disable Markdown menu item in Release 2018-06-19 18:43:00 -07:00
Lars Brubaker
78d16dddfb If we don't find the provider id still look for the mesh id 2018-06-19 17:30:12 -07:00
Lars Brubaker
c1588fcd04 Created the data to allow thumbnails to be cached by mesh id
Estimated memory size for mesh
Mesh Render Id
Get long hash for color
default constructor for face and vertex

issue: MatterHackers/MCCentral#3519
Improve thumbnail generation for complicated models
2018-06-19 17:04:20 -07:00
John Lewin
be93c86733 Fix Android 2018-06-19 15:15:25 -07:00
John Lewin
9fa0c470cc Markdig prototype
- Issue MatterHackers/MCCentral#3660
Add Markdown implementation for help guides
2018-06-19 13:03:40 -07:00
John Lewin
0d7521696a Extract method for direct thumbnail generation of IObject3D 2018-06-14 15:21:00 -07:00
John Lewin
3c47b6bf92 HistoryContainer drag should use standard behavior
- Issue MatterHackers/MCCentral#3575
2018-06-14 15:21:00 -07:00
John Lewin
5142141daf Limit Edit to mcx only
- Issue MatterHackers/MCCentral#3583
'Edit' should be disabled for mesh (or do the code in the other bug
for editing meshes)
2018-06-13 12:28:05 -07:00
John Lewin
910705d35b Simplify 2018-06-12 21:16:26 -07:00
LarsBrubaker
9ceb19e6c4 Made double clicke work again
issue: MatterHackers/MCCentral#3550
Double Clicking on Part is unresponsive
2018-06-09 10:47:41 -07:00
Lars Brubaker
46dc1210be Getting image path generation and extrude working with rebuild 2018-06-06 15:52:06 -07:00
John Lewin
c08d358338 Pass active listview reference to child container constructor
- Issue MatterHackers/MCCentral#3485
Unable to select folders in listview
2018-05-31 13:17:11 -07:00
John Lewin
743eb95982 Fix NoContentChangedOnLoad - skip load if null 2018-05-31 13:17:11 -07:00
John Lewin
c9aad50d19 Fix AddFiresContentChangedEvent - make base type abstract 2018-05-31 13:17:11 -07:00
John Lewin
74582d9a47 Remove unexpected throw 2018-05-31 09:38:04 -07:00
John Lewin
19f80d18fe Long lived instanced should not be used for ActiveContainer
- ActiveContainer references are disposed when trees collapse
- Use new instance for ActiveContainer
- Issue MatterHackers/MCCentral#3374
Long lived history containers disposed when navigated away from
2018-05-31 09:38:04 -07:00
Lars Brubaker
4c15d3e7ad guard for image not changed 2018-05-31 09:22:08 -07:00
Lars Brubaker
25883fc0bc Working on mesh wrapper and rebuild issues 2018-05-31 09:05:08 -07:00
John Lewin
f2a36f28d9 Update PrintHistoryListItem for recent changes
- Issue MatterHackers/MCCentral#3472
Print History folder multiplies
2018-05-31 06:43:32 -07:00
John Lewin
1aa73db988 Remove BigRender cache as no longer valid
- Issue MatterHackers/MCCentral#3453
If part icons are built too small they don't rebuild at bigger sizes
2018-05-29 11:53:43 -07:00
Lars Brubaker
ff6e220b4c Made invalidate args so we can pass source and invalidate type
Rebuild does not propagate to parent
2018-05-22 16:17:13 -07:00
John Lewin
9a2afeecf6 Requeue raytracing if off-screen when dequeued
- Issue MatterHackers/MCCentral#3412
Add ability to re-try thumbnail generation after canceling due to
not-visible on screen
2018-05-21 14:46:22 -07:00
John Lewin
86abcaaf3a Remove indirection, assume defaults set correctly from provider 2018-05-21 14:46:22 -07:00
John Lewin
f1614ba82d Remove specialized case for MeshContentProvider 2018-05-21 14:46:22 -07:00
John Lewin
f5cf6c48eb Revise IContentProvider.GetThumbnail signature 2018-05-21 14:46:22 -07:00