5015 Commits

Author SHA1 Message Date
Joseph Lenox
56a9915e62 Mostly implemented mouseup on 2D player.
Someting through on_instances_moved causes an uncaught exception.
2018-07-11 22:14:51 -05:00
Joseph Lenox
9c02f3ab80 Set some default values. 2018-07-11 22:14:51 -05:00
Joseph Lenox
7be26f0dd3 2D click and drag functions now like in perl side. 2018-07-11 22:14:51 -05:00
Joseph Lenox
3e0e52bb1d Removed dead code and a spammy log message. 2018-07-11 22:14:51 -05:00
Joseph Lenox
73ee990e45 Cleaned up a pointless statement warning. 2018-07-11 22:14:51 -05:00
Joseph Lenox
87dadc9815 Object selection now functions on 2D plater. 2018-07-11 22:14:51 -05:00
Joseph Lenox
e8f9940062 Use correct range for range check on iterator. 2018-07-11 22:14:51 -05:00
Joseph Lenox
ef0dd3c7c9 Set typedef (via using directive) for object references (iterators) and object indices. 2018-07-11 22:14:51 -05:00
Joseph Lenox
ac7c93850a Moved assignable methods to std::function objects. 2018-07-11 22:14:51 -05:00
Joseph Lenox
27e4e4b8b5 stubbed methods to fire object_settings_dialog, retrieve the current selected object, etc. 2018-07-11 22:14:51 -05:00
Joseph Lenox
524ef920a6 be a little smarter about converting things (avoids confusing mingw 7.3) 2018-07-11 22:14:51 -05:00
Joseph Lenox
24bc7c28aa Define wxGTK as false under win32 or osx 2018-07-11 22:14:51 -05:00
Joseph Lenox
6aa0f4c442 Set the bitmap type (needed for wxMSW) and check that the load happens before trying to use it. 2018-07-11 22:14:51 -05:00
Joseph Lenox
6f924a09df Fix some linking under MinGW. 2018-07-11 22:14:51 -05:00
Joseph Lenox
1f82f74799 made SLIC3R_STATIC a -D option instead of environment var 2018-07-11 22:14:51 -05:00
Joseph Lenox
375663c381 Stubbed out classes for 3D plater/preview, 2D preview (toolpaths), and DLP/SLA preview tabs. 2018-07-11 22:14:51 -05:00
Joseph Lenox
bb615f5414 Fix typo in drag_start_pos assignment. 2018-07-11 22:14:51 -05:00
Joseph Lenox
deb0bf4185 Utility function for generating scaled points from wxPoints. 2018-07-11 22:14:51 -05:00
Joseph Lenox
0b978b34aa added a little bit of whitespace to Plater.hpp 2018-07-11 22:14:51 -05:00
Joseph Lenox
8ae3140ef0 use wxID_ANY instead of -1 for calling preview notebook 2018-07-11 22:14:51 -05:00
Joseph Lenox
68edec4fea More documentation of Plater methods. 2018-07-11 22:14:51 -05:00
Joseph Lenox
6e9cd3bfdd Made Plater::arrange a little less noisy, noted TODO for the background process pause.
Also finished implemented bed_centerf()
2018-07-11 22:14:51 -05:00
Joseph Lenox
66bca83b57 Updating README.md a bit. 2018-07-11 22:14:51 -05:00
Joseph Lenox
a1e8aa94fd finished pushing through changes from InstanceIdx. 2018-07-11 22:14:51 -05:00
Joseph Lenox
702da13458 use integers instead of size_t for object identifiers.
Need a better solution for semantics (perl used undef, python would have used None).
2018-07-11 22:14:51 -05:00
Joseph Lenox
3ff475d02b Fix maths used for converting between model coordinates and pixels (and vice-versa) 2018-07-11 22:14:51 -05:00
Joseph Lenox
062e0fa7dc Staged more of mouse_down() 2018-07-11 22:14:51 -05:00
Joseph Lenox
21da567d43 Pushed a contains() method up to ExPolygonCollection that returns if any of its expolygons contain the point. 2018-07-11 22:14:51 -05:00
Joseph Lenox
7c513fe0d2 added additional documentation for Plater 2018-07-11 22:14:51 -05:00
Joseph Lenox
bbcdebf5b5 more work on arrange() 2018-07-11 22:14:51 -05:00
Joseph Lenox
b8c8571c39 added one-off menu option to call arrange, currently crashes if no models loaded. 2018-07-11 22:14:51 -05:00
Joseph Lenox
dccc04bd8a It's all integer points anyway. 2018-07-11 22:14:51 -05:00
Joseph Lenox
561cbe7145 Remember to clean up old grid array before filling it up again. 2018-07-11 22:14:51 -05:00
Joseph Lenox
f9c3a300be Code beautification 2018-07-11 22:14:51 -05:00
Joseph Lenox
eb0f78240f Actually do the unscaled point conversion -.-; 2018-07-11 22:14:51 -05:00
Joseph Lenox
1cd7e878b0 Stubbed out Plater::arrange() and on_model_change() 2018-07-11 22:14:51 -05:00
Joseph Lenox
f4a90f6742 remember to add the prototype for make_thumbnail 2018-07-11 22:14:51 -05:00
Joseph Lenox
e37ce981e7 be more specific about what is getting used. 2018-07-11 22:14:51 -05:00
Joseph Lenox
d1bc99f514 Get access to LOG_WSTRING. 2018-07-11 22:14:51 -05:00
Joseph Lenox
02a932a3a6 Fixed inverted logic; abort if there aren't any transformed thumbnails. 2018-07-11 22:14:51 -05:00
Joseph Lenox
4c1922a943 Add LogChannel designation as a protected member. 2018-07-11 22:14:51 -05:00
Joseph Lenox
462fe51ffb Pass bool when we mean bool, not int. 2018-07-11 22:14:51 -05:00
Joseph Lenox
053fe2b9ed Being more specific about units. 2018-07-11 22:14:51 -05:00
Joseph Lenox
03b6402d8a Work on shared::ptr of Model instead of trying to be clever. 2018-07-11 22:14:51 -05:00
Joseph Lenox
2a01efbf81 Make update_bed_size() public. 2018-07-11 22:14:51 -05:00
Joseph Lenox
e880d9d3ee Actually unscale instead of doing silly things. 2018-07-11 22:14:51 -05:00
Joseph Lenox
bb9ce8dd6f call update_bed_size during instantiation 2018-07-11 22:14:51 -05:00
Joseph Lenox
59af3c8a86 Stub out more of the sizers so people implementing can see their work immediately. 2018-07-11 22:14:51 -05:00
Joseph Lenox
c720619382 avoid magic numbers 2018-07-11 22:14:51 -05:00
Joseph Lenox
13248521a4 Updated gitignore to ignore windows executables. 2018-07-11 22:14:51 -05:00