773 Commits

Author SHA1 Message Date
Joseph Lenox
ca0e39d7e7 2D Plater: Added double-click handler. 2018-05-12 16:05:22 -05:00
Joseph Lenox
f1ec1f068f 2D Plater: Change cursor to hand cursor when over selectable items. Includes function to check if any instance in a PlaterObject includes a point (makes logic much more readable). 2018-05-12 16:05:02 -05:00
Joseph Lenox
c08d0de7d0 Mostly implemented mouseup on 2D player.
Someting through on_instances_moved causes an uncaught exception.
2018-05-12 13:40:51 -05:00
Joseph Lenox
539e83e74f Set some default values. 2018-05-12 13:39:45 -05:00
Joseph Lenox
ef0f7bf7bb 2D click and drag functions now like in perl side. 2018-05-12 13:39:20 -05:00
Joseph Lenox
b88d36c391 Removed dead code and a spammy log message. 2018-05-12 13:38:41 -05:00
Joseph Lenox
a49ab1549d Cleaned up a pointless statement warning. 2018-05-12 13:38:09 -05:00
Joseph Lenox
74570f822c Object selection now functions on 2D plater. 2018-05-11 23:09:15 -05:00
Joseph Lenox
13e8a1ea1a Use correct range for range check on iterator. 2018-05-11 23:07:07 -05:00
Joseph Lenox
1d4e5775ae Set typedef (via using directive) for object references (iterators) and object indices. 2018-05-11 22:38:00 -05:00
Joseph Lenox
872fd61706 Moved assignable methods to std::function objects. 2018-05-11 22:36:37 -05:00
Joseph Lenox
dfe4f54d08 stubbed methods to fire object_settings_dialog, retrieve the current selected object, etc. 2018-05-11 22:34:40 -05:00
Joseph Lenox
cbede041d2 be a little smarter about converting things (avoids confusing mingw 7.3) 2018-05-10 19:10:33 -05:00
Joseph Lenox
ce21077c61 Define wxGTK as false under win32 or osx 2018-05-10 19:09:39 -05:00
Joseph Lenox
a57a9dc700 Set the bitmap type (needed for wxMSW) and check that the load happens before trying to use it. 2018-05-10 19:08:58 -05:00
Joseph Lenox
aba90c705a Fix some linking under MinGW. 2018-05-10 18:48:24 -05:00
Joseph Lenox
10c538c683 made SLIC3R_STATIC a -D option instead of environment var 2018-05-10 18:48:04 -05:00
Joseph Lenox
d48166ae92 Stubbed out classes for 3D plater/preview, 2D preview (toolpaths), and DLP/SLA preview tabs. 2018-05-09 23:03:06 -05:00
Joseph Lenox
b8a9761b6c Fix typo in drag_start_pos assignment. 2018-05-09 21:57:04 -05:00
Joseph Lenox
014d134823 Utility function for generating scaled points from wxPoints. 2018-05-09 21:56:15 -05:00
Joseph Lenox
e835184cef added a little bit of whitespace to Plater.hpp 2018-05-09 21:55:20 -05:00
Joseph Lenox
dc626de8b3 use wxID_ANY instead of -1 for calling preview notebook 2018-05-09 21:49:04 -05:00
Joseph Lenox
d44f63059c More documentation of Plater methods. 2018-05-09 21:48:47 -05:00
Joseph Lenox
588bb456ae Made Plater::arrange a little less noisy, noted TODO for the background process pause.
Also finished implemented bed_centerf()
2018-05-09 21:48:16 -05:00
Joseph Lenox
a16673c306 finished pushing through changes from InstanceIdx. 2018-05-08 23:14:39 -05:00
Joseph Lenox
179c3969a6 use integers instead of size_t for object identifiers.
Need a better solution for semantics (perl used undef, python would have used None).
2018-05-08 23:13:47 -05:00
Joseph Lenox
daece6e4c0 Fix maths used for converting between model coordinates and pixels (and vice-versa) 2018-05-08 23:12:15 -05:00
Joseph Lenox
70b81db7f9 Staged more of mouse_down() 2018-05-08 23:11:37 -05:00
Joseph Lenox
f00249ffe0 added additional documentation for Plater 2018-05-08 23:10:13 -05:00
Joseph Lenox
b16e2570f3 more work on arrange() 2018-05-07 22:36:40 -05:00
Joseph Lenox
eadac30476 added one-off menu option to call arrange, currently crashes if no models loaded. 2018-05-07 22:36:12 -05:00
Joseph Lenox
8bca31ff2e It's all integer points anyway. 2018-05-07 22:16:52 -05:00
Joseph Lenox
a7db378b8a Remember to clean up old grid array before filling it up again. 2018-05-07 22:16:20 -05:00
Joseph Lenox
babedbe7d6 Code beautification 2018-05-07 22:15:47 -05:00
Joseph Lenox
2fb6b8103e Actually do the unscaled point conversion -.-; 2018-05-07 22:15:28 -05:00
Joseph Lenox
168e7913de Stubbed out Plater::arrange() and on_model_change() 2018-05-07 22:15:12 -05:00
Joseph Lenox
ccb7333b82 remember to add the prototype for make_thumbnail 2018-05-07 21:33:15 -05:00
Joseph Lenox
90ddda9ce1 be more specific about what is getting used. 2018-05-07 21:32:20 -05:00
Joseph Lenox
fee6aef5c4 Get access to LOG_WSTRING. 2018-05-07 21:31:42 -05:00
Joseph Lenox
b0404fca34 Fixed inverted logic; abort if there aren't any transformed thumbnails. 2018-05-07 21:31:19 -05:00
Joseph Lenox
787ac4a0e3 Add LogChannel designation as a protected member. 2018-05-07 21:30:28 -05:00
Joseph Lenox
eb4df9965f Pass bool when we mean bool, not int. 2018-05-07 21:30:05 -05:00
Joseph Lenox
ad7460655b Being more specific about units. 2018-05-07 21:29:36 -05:00
Joseph Lenox
eca8fea2b4 Work on shared::ptr of Model instead of trying to be clever. 2018-05-07 21:28:52 -05:00
Joseph Lenox
62f7760198 Make update_bed_size() public. 2018-05-07 21:27:02 -05:00
Joseph Lenox
ae10bc70b5 Actually unscale instead of doing silly things. 2018-05-07 21:26:07 -05:00
Joseph Lenox
def5d565b6 call update_bed_size during instantiation 2018-05-07 21:24:27 -05:00
Joseph Lenox
d6d3c75582 Stub out more of the sizers so people implementing can see their work immediately. 2018-05-07 21:24:08 -05:00
Joseph Lenox
962239cf61 avoid magic numbers 2018-05-07 21:23:33 -05:00
Joseph Lenox
6276e0d7ce Added make_thumbnail and on_thumbnail_made 2018-05-06 22:51:55 -05:00