#include "MRMesh/MRFlagOperators.h"#include "MRMesh/MRLine.h"#include "MRMesh/MRVector2.h"#include "MRMesh/MRVector3.h"#include "MRMesh/MRViewportId.h"#include <functional>#include <string>Go to the source code of this file.
Classes | |
| struct | MR::PythonViewer::ViewerSetup |
| struct | MR::PythonViewer::ViewerLaunchParams |
| This struct contains rules for viewer launch. More... | |
| struct | MR::PythonViewer::ViewportFitDataParams |
| class | MR::PythonViewer::Viewport |
| class | MR::PythonViewer::Viewer |
| GLFW-based mesh viewer. More... | |
Namespaces | |
| namespace | MR |
| Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type). | |
| namespace | MR::PythonViewer |
Enumerations | |
| enum class | MR::PythonViewer::ViewerLaunchParamsMode { MR::PythonViewer::Show , MR::PythonViewer::HideInit , MR::PythonViewer::Hide , MR::PythonViewer::TryHidden , MR::PythonViewer::NoWindow } |
| enum class | MR::PythonViewer::MouseButton { MR::PythonViewer::Left , MR::PythonViewer::Right , MR::PythonViewer::Middle } |
| enum class | MR::PythonViewer::KeyMod { MR::PythonViewer::Empty = 0 , MR::PythonViewer::Ctrl = 0x0002 , MR::PythonViewer::Super = 0x0008 , MR::PythonViewer::Shift = 0x0001 , MR::PythonViewer::Alt = 0x0004 } |
| enum class | MR::PythonViewer::ViewportFitMode { MR::PythonViewer::Visible , MR::PythonViewer::SelectedPrimitives , MR::PythonViewer::SelectedObjects } |
| Fit mode ( types of objects for which the fit is applied ) More... | |
Functions | |
| KeyMod | MR::PythonViewer::getPrimaryCtrlKeyMod () |
| Returns the main control modifier of this platform: KeyMod.Super (Cmd) on macOS, KeyMod.Ctrl otherwise. | |
| void | MR::PythonViewer::launch (const ViewerLaunchParams ¶ms={}, const ViewerSetup &setup={}) |
| void | MR::PythonViewer::showViewer () |
| void | MR::PythonViewer::runFromGUIThread (const std::function< void()> &lambda) |
| Executes given function from GUI thread, and returns after it is done. | |
| void | MR::PythonViewer::shutViewerAtExit () |
| Registered with atexit by the module, and removed from it: closes the viewer the way a closed window would, if it's still up. | |