Commit Graph

96 Commits

Author SHA1 Message Date
bubnikv
f2bb070ab9 Implemented scaling of instances through the object manipulation box
for rotated, but still axis aligned coordinate systems.
2019-05-01 11:33:41 +02:00
bubnikv
5084d544a2 Fixed a bug, where std::string and wxString were mixed up. 2019-04-29 18:10:08 +02:00
bubnikv
16560f6e27 Merge remote-tracking branch 'remotes/origin/master' into vb_wold_object_manipulation 2019-04-26 17:42:51 +02:00
bubnikv
6526a8fcaf WIP: Transformation of instances in world coordinate space:
Ulocking the "anisotropic" scaling checkbox will bake the transformation
into meshes to allow for scaling in world axes.

Optimized and templated the stl_transform functions, now also available for 3x3 matrices.
The Canvas3D::reload_scene() now maintains selection even if all volumes of an instance changed their IDs.
2019-04-26 17:28:31 +02:00
bubnikv
f78c3a0f1b WIP, non-uniform scaling in the world coordinate system:
Disable non-uniform scaling when switching to the World coordinate system
and the rotation is not multiples of ninety degrees.
Ask user whether to bake in the transformations into the meshes if
enabling the non-uniform scaling in that case.
2019-04-25 09:24:33 +02:00
YuSanka
065448e9e5 Big Refactoring: - deleted/renamed all _Prusa_ prefixes,
- cleaned code from commented parts
 - rescale() -> msw_rescale()
2019-04-25 01:45:00 +02:00
YuSanka
be60f0a53c Merge remote-tracking branch 'origin/ys_msw_dpi' 2019-04-24 23:09:50 +02:00
bubnikv
2cc7b00a7d WIP: World / local transformations of an object instance from the side panel. 2019-04-24 19:03:05 +02:00
bubnikv
5d2537af35 WIP: Transformations of an instance in world coordinate system
from the side panel.
2019-04-24 11:01:59 +02:00
Vojtech Bubnik
31d377d09f Some refactoring and documentation, modified Windows dependencies to compile against patched wxWidgets 2019-04-23 12:35:26 +02:00
YuSanka
ae2c61160f Application Scaling for MSW: Added rescale function for DoubleSlider (from Preview), ObjectList, ManipulationPanel and SettingsPanel
+ Set wider default size for Preset Comboboxes from Tabs (#2023)
2019-04-16 10:05:45 +02:00
YuSanka
f7ddddcff5 Application Scaling for MSW: Next big step
- Added rescale() function for the most of controls
 - Created PrusaBitmap and PrusaButton classes like a wrap to wxBitmap and wxButton accordingly
2019-04-13 23:46:52 +02:00
Vojtech Kral
2494dc6706 Fix SVG & bitmap scaling on Mac depending on Retina scaling 2019-04-09 15:16:10 +02:00
YuSanka
618d124bfb Icon updating for all application 2019-04-08 11:10:57 +02:00
YuSanka
8631cb006b Improved Selection from ObjectList side 2019-04-04 18:03:40 +02:00
Enrico Turri
eff8dd1ae5 Fixed negative values for size shown in the sidebar matrix fields when mirroring is applied 2019-04-03 09:05:52 +02:00
Enrico Turri
bbb2a6d714 Fixed non-uniform scale of single volumes selection when made using the sidebar matrix fields 2019-03-22 11:51:10 +01:00
Enrico Turri
3b31976b09 Another fix for Linuz and Mac builds 2019-03-19 15:58:18 +01:00
Enrico Turri
b57f6c9fe0 Fixed build on Linux and Mac 2019-03-19 15:33:09 +01:00
Enrico Turri
80c1a8d8e4 GLCanvas3D::Selection as a standalone class 2019-03-19 13:30:21 +01:00
bubnikv
0ec450f3d7 Fix of instance rotations from the side panel
in regard to instance synchronization.
2019-03-01 15:35:48 +01:00
bubnikv
d009be7609 Fixed rotation of single instance -> it works now with absolute values.
Added Absolute / relative, World / Local, Rigid body / independent
modifier parameter to the object / group rotation.
2019-03-01 10:20:12 +01:00
YuSanka
3ccfe7f53e Fixed OSX-build 2019-02-21 11:44:01 +01:00
bubnikv
c55629259a Merge remote-tracking branch 'origin/ys_hdpi' 2019-02-20 16:20:30 +01:00
YuSanka
f899cf1c91 Added scaling for more some dialogs
+ Set size for mode buttons
2019-02-11 14:14:35 +01:00
YuSanka
9021f84eac Fix of #1771 2019-02-07 16:33:14 +01:00
Enrico Turri
21a7fa6af2 Fix of #1782 2019-02-07 09:22:04 +01:00
YuSanka
46f32d091a Fixed scaling of the controls and InfoDialogs (Sys and About) 2019-02-06 10:13:27 +01:00
YuSanka
b7f24aebe3 Fixed rounding of numbers for the controls width (Try to fix controls flashing on HDPI/linux) 2019-02-04 12:07:15 +01:00
YuSanka
e2b8c3e33c Merge remote-tracking branch 'origin/master' into ys_hdpi 2019-02-04 10:38:23 +01:00
YuSanka
4005d06452 Fixed "hard_code" setting of the size for the Sidebar and Tabs
+ Fixed assert after config_wizard changing
2019-02-04 10:35:16 +01:00
Enrico Turri
8076b39c4b Emulation of kill focus event on object manipulator fields when changing selection into objects list [WIN+LINUX] 2019-01-31 14:12:07 +01:00
Enrico Turri
fd65489c11 Added debug output to test event handling sequence between Objects List and Object Manipulator fields 2019-01-30 12:18:01 +01:00
Enrico Turri
14fe55d4b8 Fix of rotations using sidebar fields 2019-01-29 11:26:35 +01:00
Enrico Turri
6137cc48eb ENABLE_IMPROVED_SIDEBAR_OBJECTS_MANIPULATION set as default 2019-01-28 16:06:44 +01:00
Enrico Turri
1c0bc8a5f3 Fixed synchronization between Objects List and Object manipulator table 2019-01-28 15:50:02 +01:00
Enrico Turri
727884d327 Fixed synchronization of scale/size fields in sidebar for single volume and single full instance selection 2019-01-28 12:49:19 +01:00
bubnikv
588c07c12a Performance improvements:
Lazy "Place on face" gizmo update.
Caching of MeshObject::raw_mesh_bounding_box() for the object size display.
ModelObject::bounding_box(), raw_mesh_bounding_box(), full_raw_mesh_bounding_box() will not copy the mesh.
TriangleMesh::transformed_bounding_box(const Transform3d &trafo) will not copy the mesh data.
get_options_for_bundle() will not return reference to temp value
is_splittable() calls cheap mesh.has_multiple_patches()
2019-01-26 18:51:34 +01:00
Enrico Turri
a406a44946 Sidebar object manipulation fields updated on idle event 2019-01-24 11:37:58 +01:00
YuSanka
1a474ea282 L10n improvements 2019-01-21 12:34:28 +01:00
Enrico Turri
4b55db878a Fixed rotation of single volumes using rotate gizmo 2019-01-15 09:30:12 +01:00
YuSanka
b82a9d9090 Fix of #1619 2019-01-11 17:19:09 +01:00
YuSanka
c62a51ead1 Implemented ModeSizer with ModeButtons for the mode view changing from the settings tabs and plater 2019-01-10 11:09:31 +01:00
Enrico Turri
410211a3e4 Completed uniform scale in sidebar 2019-01-09 09:47:05 +01:00
YuSanka
6d7e2b2dd7 Added SetLock() function for PrusaLockButton 2019-01-09 08:52:08 +01:00
Enrico Turri
7cf67db332 Uniform scale is sidebar 2019-01-08 15:16:40 +01:00
YuSanka
24e0c9b79e Added "uniform scaling" button 2019-01-08 13:34:47 +01:00
Enrico Turri
66f9582a20 Fixed sidebar size fields update (which was broken again) 2019-01-08 09:51:58 +01:00
Enrico Turri
c81dbba794 Fix of #1590 2019-01-07 10:53:48 +01:00
Enrico Turri
2ce308693f Fixed object size changes using sidebar 2019-01-04 13:59:41 +01:00