Menu

#39 Pan with middle mouse button

open
nobody
1
2025-03-29
2021-11-16
Daniele
No

This plugins allows to pan both the home plan and the home 3D view using the middle mouse button. There are no settings, everything works out of the box!
If you wish to disable it just remove the file from the plugins folder.

The plugin uses reflection to access private code, so it may not work with all SH3D versions, I have tested it with version 6.6. If you find it not work for you just report the version in use and I'll try to fix it.

Source code included.

1 Attachments

Related

Plug-ins: #39

Discussion

1 2 > >> (Page 1 of 2)
  • Daniele

    Daniele - 2021-11-17

    Version 1.1

    • fixed the camera movement in observer mode.
     
    • Daniele

      Daniele - 2021-11-20

      Version 1.2

      If the option "view centered on selection" is enabled the rotation pivot is updated when the selection changes, otherwise the camera stays at its position.

       
      • Daniele

        Daniele - 2021-11-27

        Version 1.3

        • Added an option to hide obstacles which obstructs the view, either automatically or using a polyline as threshold;
        • Added the capability to pan vertically when the camera points towards the horizon.

        Demo: https://youtu.be/wYDrdH8brsw

         
        • Daniele

          Daniele - 2021-11-29

          Version 1.3.2

          • Changed hide feature default from true to false
          • Fixed a possible race condition
           
          • Daniele

            Daniele - 2021-12-06

            Version 1.3.3

            • Almost fixed polyline selection bug, see here;
            • Never hide selected objects;
            • Improved hiding behaviour.
             
            • Daniele

              Daniele - 2021-12-08

              Version 1.4

              • Added the ability to select objects directly from the 3D view
              • Translations: de, en, es, fr, hu, it, nl, pl, pt, sv
              • Added support for language change without the need to restart SH3D
               
              • Daniele

                Daniele - 2021-12-09

                Version 1.5

                • Fixed camera return to center bug introduced in the previous version
                • Added keyboard shortcut to expand 2D/3D views

                How to use the shortcut to expand views
                To expand a view the focus needs to be on either the 2D or 3D view (doesn't matter which one). Press CTRL+SPACE to swap between the views in the following cyclic order:
                split -> expand 2D -> expand 3D -> split

                 
                • Daniele

                  Daniele - 2021-12-28

                  Version 1.7

                  • Added the support for 3rd party plugin integration.

                  This new feature is a requirement for the Wirings plugin that will be released soon.

                   

                  Last edit: Daniele 2022-01-06
                  • Daniele

                    Daniele - 2022-01-24

                    Version 1.8

                    • Selecting object in the 3D view only with left mouse button
                    • Fixed a bug occurring when hiding obstacles and there are no levels defined
                    • Fixed a bug making the camera spinning in virtual visitor mode
                     
                    • Daniele

                      Daniele - 2022-01-25

                      Version 2.0

                      • Added ALT+left mouse button as an alternative to middle mouse button for panning (for macOS users)
                      • Added the SHIFT key support to increase the speed of the scroll wheel in the 3D view
                      • Improved exponential mouse wheel
                      • Implemented a limit for the max distance when moving backward with the scroll wheel
                      • Fixed the behavior in virtual visitor mode when custom mouse handlers wish to prevent camera rotation

                      Added a preferences panel to:

                      • enable/disable exponential mouse wheel
                      • enable/disable picking transparent walls
                       
                      • Daniele

                        Daniele - 2022-02-01

                        Version 3.0

                        • Fixed a bug reintroduced in the previous release (originally fixed in 1.8)
                        • Fixed the polyline editing bug occurring after switching from virtual visitor to aerial view
                        • Implemented the edit selection with double click in the 3D view
                        • Implemented the delete selection with DEL key in 3D view
                        • Replaced the MouseHandler class with MouseAdapter class in the public API
                        • Added Chinese translation, courtesy of YGYL
                         

                        Last edit: Daniele 2022-02-12
                        • Daniele

                          Daniele - 2022-04-04

                          Version 3.1

                          • Object selection in 3D view can be toggled with SHIFT key + left mouse button, so multiple objects can be selected from the 3D view.
                           
                          • Daniele

                            Daniele - 2022-05-05

                            Version 3.2.1 (formerly 3.2b)

                            • Added the ability to modify openings in the 3D view (in a non-permanent way)

                            See it in action

                             

                            Last edit: Daniele 2022-05-06
                            • Daniele

                              Daniele - 2022-07-08

                              Version 3.3

                              • Added SPACE+left mouse button for panning as in plan view
                              • Added Czech translation
                              • Minor bug fix
                               
                              • Daniele

                                Daniele - 2022-07-13

                                Version 3.4

                                • Fixed "hide obstacle" feature not working in SH3D 7
                                 
  • Stephen

    Stephen - 2021-11-19

    Duplicated my comment in the forums, because you might be alerted better from here:
    THIS IS AWESOME!!!!!

    Thank-you, thank-you, thank-you.

    Just one small niggle: If I pan, then orbit, the new point of rotation sticks and it works as hoped. If I pan, then zoom (mouse scroll wheel), the view jumps back to the previous point of rotation, whether that is the center of everything, or the center of the current selection.

     
  • Daniele

    Daniele - 2022-09-14

    Version 3.5

    • Fixed the camera jumping bug
    • Fixed Dutch translation
     
  • Daniele

    Daniele - 2022-11-25

    Version 3.6

    • Added the ability to change the 2D/3D panes layout
      Use View 3D -> Pan 3D view settings and check Use widescreen layout.
     

    Last edit: Daniele 2022-11-25
  • Daniele

    Daniele - 2022-12-19

    Version 3.7

    • Added the ability to change the 3D view to parallel projection using CTRL+J (this also enable outlines to improve the aspect)
    • Added the ability to align the camera to the selected furniture or wall using CTRL+K (can be pressed multiple times to align to different sides)
     
    • Daniele

      Daniele - 2022-12-22

      Version 3.7.2

      • Fixed the black background when in parallel projection
      • Added the ability to change the outline thickness
       

      Last edit: Daniele 2022-12-22
      • Daniele

        Daniele - 2022-12-24

        Version 3.7.3

        • Fixed a bug introduced in the previous version that prevented the opening of 2 instances at the same time
         
        • Daniele

          Daniele - 2022-12-27

          Version 3.7.4

          • Added the ability to set in which projection mode the outline should be displayed
          • Added a toolbar button to switch the projection mode
          • Added a toolbar button to align the camera to the selection
          • Hiding obstacles works for the outline too
          • Added help
           
  • Daniele

    Daniele - 2023-02-27

    Version 3.7.5

    • Fixed the translations for all available languages
     
  • Daniele

    Daniele - 2023-08-25

    Version 4.0 beta

    This version is compatible with SweetHome3D 7.2. It hasn't been tested with previous versions.

    New features and fixes:

    • You can change the way objects move when dragging in 3D view (from menu 3D view->Pan 3D View settings)
    • You can edit the selection in 3D view using CTRL+E (other than double click)
    • Reduced plugin size
     

    Last edit: Daniele 2023-08-25
    • Daniele

      Daniele - 2023-09-03

      Version 4.0 beta 2

      • Implemented "smart" drag mode
      • Improved "better" drag mode in 3D view
      • Improved pan functionality
      • Implemented better support for centering the camera on 3D polylines

      Video

       

      Last edit: Daniele 2023-09-03
1 2 > >> (Page 1 of 2)

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.