Joseph Lenox
|
28881f8741
|
put the dc on the stack so it gets destroyed instead of on the heap.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
d56ce183a4
|
Stubbed out toolbar with calling functions; Add, Delete, and Delete All work.
Plater object got a move constructor.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
2bdf87b926
|
Cleaned up header for Plate2D.hpp; added comments.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
8597ec9511
|
Forgot to check in a }
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
471983d63a
|
Draw skirt on 2D plater.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
0726e896ce
|
Draw clearance area if necessary.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
50f1b40fa2
|
Implemented keyboard nudge in 2D plater.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
ccd49dcb69
|
Remembered to bind the right click mouse events, moved the associated comment.
capture [this] instead of [=] for lambdas.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
427c7c7027
|
Assign on_instances_moved and put a try/catch to not crash if it accidentally gets called while uninitialzed.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
5dc9fa1751
|
Comment update to be more clear as to what is going on
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
249b319723
|
Use wxDateTime::Now() to initialze current date instead of default constructor (avoid runtime errors)
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
5938a5bf4c
|
2D Plater: Added double-click handler.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
f8827b392d
|
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-07-11 22:14:51 -05:00 |
|
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
|
87dadc9815
|
Object selection now functions on 2D plater.
|
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
|
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
|
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
|
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
|
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
|
deb0cfb273
|
Added bare-bones stubs for 3D plater and 3D preview.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
816910f7be
|
Stubbed out the different draw brushes being set; flattened loops slightly and posted a note
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
c6d0536268
|
Remember to put the event skip in during repaint.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
f3d128e9c2
|
Started work on component to draw thumbnails from repaint() method.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
6f3f231cb9
|
Ported clean_instance_thumbnails
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
bbbe7e7560
|
Use std::string internally instead of wxString.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
a559c57a81
|
Avoid using wxString Printf, instead use Format() and use wxRealPoint (floating point) instead of wxPoint (integer)
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
2e404c5b36
|
Changed identifier type to size_t (needs to be numerical to do math on it)
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
55a8f548ca
|
Stubbed out mouse events for left up/down/dclick.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
3f18687916
|
Implemented make_thumbnail and transform_thumbnail; neither is tested yet.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
efedbc6c4e
|
Plater2DObject->PlaterObject
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
9efe92acaa
|
Added point_to_model_units() and clarified a couple comments.
|
2018-07-11 22:14:51 -05:00 |
|