#include <MRViewer.h>
Public Types | |
| enum class | EventType { MouseDown , MouseUp , MouseMove , MouseScroll , KeyDown , KeyUp , KeyRepeat , CharPressed , Count } |
| enum class | GLPrimitivesType { PointArraySize , LineArraySize , TriangleArraySize , PointElementsNum , LineElementsNum , TriangleElementsNum , Count } |
| using | MouseButton = MR::MouseButton |
| using | MouseMode = MR::MouseMode |
| using | LaunchParams = MR::LaunchParams |
| using | PointInAllSpaces = MR::PointInAllSpaces |
| using | SignalStopHandler = StopOnTrueCombiner |
| using | MouseUpDownSignal = boost::signals2::signal<bool( MouseButton btn, int modifier ), SignalStopHandler> |
| using | MouseMoveSignal = boost::signals2::signal<bool( int x, int y ), SignalStopHandler> |
| using | MouseScrollSignal = boost::signals2::signal<bool( float delta ), SignalStopHandler> |
| using | CursorEntranceSignal = boost::signals2::signal<void(bool)> |
| using | CharPressedSignal = boost::signals2::signal<bool( unsigned unicodeKey, int modifier ), SignalStopHandler> |
| using | KeySignal = boost::signals2::signal<bool( int key, int modifier ), SignalStopHandler> |
| using | SpaceMouseMoveSignal = boost::signals2::signal<bool( const Vector3f& translate, const Vector3f& rotate ), SignalStopHandler> |
| using | SpaceMouseKeySignal = boost::signals2::signal<bool( int ), SignalStopHandler> |
| using | RenderSignal = boost::signals2::signal<void()> |
| using | ObjectsLoadedSignal = boost::signals2::signal<void( const std::vector<std::shared_ptr<Object>>& objs, const std::string& errors, const std::string& warnings )> |
| using | DragDropSignal = boost::signals2::signal<bool( const std::vector<std::filesystem::path>& paths ), SignalStopHandler> |
| using | PostResizeSignal = boost::signals2::signal<void( int x, int y )> |
| using | PostRescaleSignal = boost::signals2::signal<void( float xscale, float yscale )> |
| using | InterruptCloseSignal = boost::signals2::signal<bool(), SignalStopHandler> |
| using | TouchSignal = boost::signals2::signal<bool(int,int,int), SignalStopHandler> |
| using | TouchpadGestureBeginSignal = boost::signals2::signal<bool(), SignalStopHandler> |
| using | TouchpadGestureEndSignal = boost::signals2::signal<bool(), SignalStopHandler> |
| using | TouchpadRotateGestureUpdateSignal = boost::signals2::signal<bool( float angle ), SignalStopHandler> |
| using | TouchpadSwipeGestureUpdateSignal = boost::signals2::signal<bool( float deltaX, float deltaY, bool kinetic ), SignalStopHandler> |
| using | TouchpadZoomGestureUpdateSignal = boost::signals2::signal<bool( float scale, bool kinetic ), SignalStopHandler> |
| using | PostFocusSignal = boost::signals2::signal<void( bool )> |
Public Member Functions | |
| MRVIEWER_API int | launch (const LaunchParams ¶ms) |
| MRVIEWER_API void | launchEventLoop () |
| MRVIEWER_API void | launchShut () |
| bool | isLaunched () const |
| const LaunchParams & | getLaunchParams () const |
| template<typename PluginType > | |
| PluginType * | getPluginInstance () |
| MRVIEWER_API bool | isSupportedFormat (const std::filesystem::path &file_name) |
| MRVIEWER_API bool | loadFiles (const std::vector< std::filesystem::path > &filesList, const FileLoadOptions &options={}) |
| MRVIEWER_API bool | saveToFile (const std::filesystem::path &mesh_file_name) |
| MRVIEWER_API bool | keyPressed (unsigned int unicode_key, int modifier) |
| MRVIEWER_API bool | keyDown (int key, int modifier) |
| MRVIEWER_API bool | keyUp (int key, int modifier) |
| MRVIEWER_API bool | keyRepeat (int key, int modifier) |
| MRVIEWER_API bool | mouseDown (MouseButton button, int modifier) |
| MRVIEWER_API bool | mouseUp (MouseButton button, int modifier) |
| MRVIEWER_API bool | mouseMove (int mouse_x, int mouse_y) |
| MRVIEWER_API bool | mouseScroll (float delta_y) |
| MRVIEWER_API bool | mouseClick (MouseButton button, int modifier) |
| MRVIEWER_API bool | dragStart (MouseButton button, int modifier) |
| MRVIEWER_API bool | dragEnd (MouseButton button, int modifier) |
| MRVIEWER_API bool | drag (int mouse_x, int mouse_y) |
| MRVIEWER_API bool | spaceMouseMove (const Vector3f &translate, const Vector3f &rotate) |
| MRVIEWER_API bool | spaceMouseDown (int key) |
| MRVIEWER_API bool | spaceMouseUp (int key) |
| MRVIEWER_API bool | spaceMouseRepeat (int key) |
| MRVIEWER_API bool | dragDrop (const std::vector< std::filesystem::path > &paths) |
| MRVIEWER_API bool | touchStart (int id, int x, int y) |
| MRVIEWER_API bool | touchMove (int id, int x, int y) |
| MRVIEWER_API bool | touchEnd (int id, int x, int y) |
| MRVIEWER_API bool | touchpadRotateGestureBegin () |
| MRVIEWER_API bool | touchpadRotateGestureUpdate (float angle) |
| MRVIEWER_API bool | touchpadRotateGestureEnd () |
| MRVIEWER_API bool | touchpadSwipeGestureBegin () |
| MRVIEWER_API bool | touchpadSwipeGestureUpdate (float dx, float dy, bool kinetic) |
| MRVIEWER_API bool | touchpadSwipeGestureEnd () |
| MRVIEWER_API bool | touchpadZoomGestureBegin () |
| MRVIEWER_API bool | touchpadZoomGestureUpdate (float scale, bool kinetic) |
| MRVIEWER_API bool | touchpadZoomGestureEnd () |
| MRVIEWER_API bool | interruptWindowClose () |
| MRVIEWER_API void | draw (bool force=false) |
| MRVIEWER_API void | drawFull (bool dirtyScene) |
| MRVIEWER_API void | drawScene () |
| void | setSceneDirty () |
| MRVIEWER_API void | setupScene () |
| MRVIEWER_API void | clearFramebuffers () |
| MRVIEWER_API void | resize (int w, int h) |
| MRVIEWER_API void | postResize (int w, int h) |
| MRVIEWER_API void | postSetPosition (int xPos, int yPos) |
| MRVIEWER_API void | postSetMaximized (bool maximized) |
| MRVIEWER_API void | postSetIconified (bool iconified) |
| MRVIEWER_API void | postFocus (bool focused) |
| MRVIEWER_API void | postRescale (float x, float y) |
| MRVIEWER_API void | postClose () |
| MRVIEWER_API void | set_root (SceneRootObject &newRoot) |
| MRVIEWER_API void | clearScene () |
| MRVIEWER_API Viewport & | viewport (ViewportId viewportId={}) |
| MRVIEWER_API const Viewport & | viewport (ViewportId viewportId={}) const |
| MRVIEWER_API ViewportId | append_viewport (const ViewportRectangle &viewportRect, bool append_empty=false) |
| MRVIEWER_API Box2f | getViewportsBounds () const |
| MRVIEWER_API bool | erase_viewport (const size_t index) |
| MRVIEWER_API bool | erase_viewport (ViewportId viewport_id) |
| MRVIEWER_API int | viewport_index (ViewportId viewport_id) const |
| MRVIEWER_API ViewportId | getHoveredViewportId () const |
| MRVIEWER_API ViewportId | getHoveredViewportIdOrInvalid () const |
| MRVIEWER_API void | select_hovered_viewport () |
| MRVIEWER_API void | fitDataViewport (MR::ViewportMask vpList=MR::ViewportMask::all(), float fill=0.6f, bool snapView=true) |
| MRVIEWER_API void | fitBoxViewport (const Box3f &box, MR::ViewportMask vpList=MR::ViewportMask::all(), float fill=0.6f, bool snapView=true) |
| MRVIEWER_API void | preciseFitDataViewport (MR::ViewportMask vpList=MR::ViewportMask::all()) |
| MRVIEWER_API void | preciseFitDataViewport (MR::ViewportMask vpList, const FitDataParams ¶m) |
| MRVIEWER_API size_t | getTotalFrames () const |
| MRVIEWER_API size_t | getSwappedFrames () const |
| MRVIEWER_API size_t | getFPS () const |
| MRVIEWER_API double | getPrevFrameDrawTimeMillisec () const |
| MRVIEWER_API size_t | getStaticGLBufferSize () const |
| MRVIEWER_API void | incrementForceRedrawFrames (int i=1, bool swapOnLastOnly=false) |
| MRVIEWER_API bool | isCurrentFrameSwapping () const |
| MRVIEWER_API size_t | getEventsCount (EventType type) const |
| MRVIEWER_API size_t | getLastFrameGLPrimitivesCount (GLPrimitivesType type) const |
| MRVIEWER_API void | incrementThisFrameGLPrimitivesCount (GLPrimitivesType type, size_t num) |
| ViewportMask | getPresentViewports () const |
| MRVIEWER_API void | resetAllCounters () |
| MRVIEWER_API Image | captureSceneScreenShot (const Vector2i &resolution=Vector2i()) |
| MRVIEWER_API void | captureUIScreenShot (std::function< void(const Image &)> callback, const Vector2i &pos=Vector2i(), const Vector2i &size=Vector2i()) |
| MRVIEWER_API bool | isAlphaSortAvailable () const |
| MRVIEWER_API bool | enableAlphaSort (bool on) |
| bool | isAlphaSortEnabled () const |
| MRVIEWER_API bool | isSceneTextureBound () const |
| MRVIEWER_API void | bindSceneTexture (bool bind) |
| MRVIEWER_API bool | isSceneTextureEnabled () const |
| MRVIEWER_API int | getMSAA () const |
| MRVIEWER_API void | requestChangeMSAA (int newMSAA) |
| MRVIEWER_API int | getRequestedMSAA () const |
| MRVIEWER_API void | setViewportSettingsManager (std::unique_ptr< IViewerSettingsManager > mng) |
| MRVIEWER_API const std::unique_ptr< IViewerSettingsManager > & | getViewerSettingsManager () const |
| MRVIEWER_API PointInAllSpaces | getPixelPointInfo (const Vector3f &screenPoint) const |
| MRVIEWER_API PointInAllSpaces | getMousePointInfo () const |
| MRVIEWER_API Vector3f | screenToViewport (const Vector3f &screenPoint, ViewportId id) const |
| MRVIEWER_API Vector3f | viewportToScreen (const Vector3f &viewportPoint, ViewportId id) const |
| MRVIEWER_API std::vector< std::reference_wrapper< Viewport > > | getViewports (ViewportMask mask=ViewportMask::any()) |
| MRVIEWER_API void | enableGlobalHistory (bool on) |
| bool | isGlobalHistoryEnabled () const |
| MRVIEWER_API void | appendHistoryAction (const std::shared_ptr< HistoryAction > &action) |
| MRVIEWER_API bool | globalHistoryUndo () |
| MRVIEWER_API bool | globalHistoryRedo () |
| const std::shared_ptr< HistoryStore > & | getGlobalHistoryStore () const |
| const std::shared_ptr< SpaceMouseHandler > & | getSpaceMouseHandler () const |
| MRVIEWER_API void | onSceneSaved (const std::filesystem::path &savePath, bool storeInRecent=true) |
| MRVIEWER_API const std::shared_ptr< ImGuiMenu > & | getMenuPlugin () const |
| MRVIEWER_API void | setMenuPlugin (std::shared_ptr< ImGuiMenu > menu) |
| MRVIEWER_API std::shared_ptr< RibbonMenu > | getRibbonMenu () const |
| template<typename T > | |
| std::shared_ptr< T > | getMenuPluginAs () const |
| MRVIEWER_API void | stopEventLoop () |
| bool | getStopEventLoopFlag () const |
| bool | windowShouldClose () |
| bool | isGLInitialized () const |
| MRVIEWER_API void | makeTitleFromSceneRootPath () |
| bool | hasScaledFramebuffer () const |
| MRVIEWER_API void | emplaceEvent (std::string name, ViewerEventCallback cb, bool skipable=false) |
| MRVIEWER_API void | popEventByName (const std::string &name) |
| MRVIEWER_API void | postEmptyEvent () |
| MRVIEWER_API const TouchpadParameters & | getTouchpadParameters () const |
| MRVIEWER_API void | setTouchpadParameters (const TouchpadParameters &) |
| MRVIEWER_API SpaceMouseParameters | getSpaceMouseParameters () const |
| MRVIEWER_API void | setSpaceMouseParameters (const SpaceMouseParameters &) |
| const MouseController & | mouseController () const |
| MouseController & | mouseController () |
| const RecentFilesStore & | recentFilesStore () const |
| RecentFilesStore & | recentFilesStore () |
| bool | getSortDroppedFiles () const |
| returns whether to sort the filenames received from Drag&Drop in lexicographical order before adding them in scene | |
| void | setSortDroppedFiles (bool value) |
| sets whether to sort the filenames received from Drag&Drop in lexicographical order before adding them in scene | |
| MRVIEWER_API void | initSpaceMouseHandler (std::function< void(const std::string &)> deviceSignal={}) |
| MRVIEWER_API void | drawUiRenderObjects () |
| draw 2d (UI) part of objects in scene | |
Static Public Member Functions | |
| static MRVIEWER_API void | parseLaunchParams (LaunchParams ¶ms) |
| static Viewer * | instance () |
| static Viewer & | instanceRef () |
| static const Viewer * | constInstance () |
| static const Viewer & | constInstanceRef () |
Friends | |
| MRVIEWER_API Viewer & | getViewerInstance () |
| returns global instance of Viewer class | |
| using MR::Viewer::CharPressedSignal = boost::signals2::signal<bool( unsigned unicodeKey, int modifier ), SignalStopHandler> |
| using MR::Viewer::CursorEntranceSignal = boost::signals2::signal<void(bool)> |
| using MR::Viewer::DragDropSignal = boost::signals2::signal<bool( const std::vector<std::filesystem::path>& paths ), SignalStopHandler> |
| using MR::Viewer::InterruptCloseSignal = boost::signals2::signal<bool(), SignalStopHandler> |
| using MR::Viewer::KeySignal = boost::signals2::signal<bool( int key, int modifier ), SignalStopHandler> |
| using MR::Viewer::MouseMode = MR::MouseMode |
| using MR::Viewer::MouseMoveSignal = boost::signals2::signal<bool( int x, int y ), SignalStopHandler> |
| using MR::Viewer::MouseScrollSignal = boost::signals2::signal<bool( float delta ), SignalStopHandler> |
| using MR::Viewer::MouseUpDownSignal = boost::signals2::signal<bool( MouseButton btn, int modifier ), SignalStopHandler> |
| using MR::Viewer::ObjectsLoadedSignal = boost::signals2::signal<void( const std::vector<std::shared_ptr<Object>>& objs, const std::string& errors, const std::string& warnings )> |
| using MR::Viewer::PostFocusSignal = boost::signals2::signal<void( bool )> |
| using MR::Viewer::PostRescaleSignal = boost::signals2::signal<void( float xscale, float yscale )> |
| using MR::Viewer::PostResizeSignal = boost::signals2::signal<void( int x, int y )> |
| using MR::Viewer::RenderSignal = boost::signals2::signal<void()> |
| using MR::Viewer::SpaceMouseKeySignal = boost::signals2::signal<bool( int ), SignalStopHandler> |
| using MR::Viewer::SpaceMouseMoveSignal = boost::signals2::signal<bool( const Vector3f& translate, const Vector3f& rotate ), SignalStopHandler> |
| using MR::Viewer::TouchpadGestureBeginSignal = boost::signals2::signal<bool(), SignalStopHandler> |
| using MR::Viewer::TouchpadGestureEndSignal = boost::signals2::signal<bool(), SignalStopHandler> |
| using MR::Viewer::TouchpadRotateGestureUpdateSignal = boost::signals2::signal<bool( float angle ), SignalStopHandler> |
| using MR::Viewer::TouchpadSwipeGestureUpdateSignal = boost::signals2::signal<bool( float deltaX, float deltaY, bool kinetic ), SignalStopHandler> |
| using MR::Viewer::TouchpadZoomGestureUpdateSignal = boost::signals2::signal<bool( float scale, bool kinetic ), SignalStopHandler> |
| using MR::Viewer::TouchSignal = boost::signals2::signal<bool(int,int,int), SignalStopHandler> |
|
strong |
|
strong |
| MRVIEWER_API ViewportId MR::Viewer::append_viewport | ( | const ViewportRectangle & | viewportRect, |
| bool | append_empty = false ) |
| MRVIEWER_API void MR::Viewer::appendHistoryAction | ( | const std::shared_ptr< HistoryAction > & | action | ) |
| MRVIEWER_API void MR::Viewer::bindSceneTexture | ( | bool | bind | ) |
| MRVIEWER_API Image MR::Viewer::captureSceneScreenShot | ( | const Vector2i & | resolution = Vector2i() | ) |
Captures 3d scene
| resolution | resolution of the image <= 0 means default |
| MRVIEWER_API void MR::Viewer::captureUIScreenShot | ( | std::function< void(const Image &)> | callback, |
| const Vector2i & | pos = Vector2i(), | ||
| const Vector2i & | size = Vector2i() ) |
Captures part of window in the beginning of next frame, capturing all that was drawn in this frame
| callback | will be called right when screenshot is taken |
| pos | left-bottom corner of capturing area relative of left-down corner of window. default = size(0, 0) |
| size | size of capturing area. default = size(0, 0) - auto size to right-top corner of window. |
| MRVIEWER_API void MR::Viewer::clearFramebuffers | ( | ) |
| MRVIEWER_API void MR::Viewer::clearScene | ( | ) |
|
inlinestatic |
|
inlinestatic |
| MRVIEWER_API bool MR::Viewer::drag | ( | int | mouse_x, |
| int | mouse_y ) |
| MRVIEWER_API bool MR::Viewer::dragDrop | ( | const std::vector< std::filesystem::path > & | paths | ) |
| MRVIEWER_API bool MR::Viewer::dragEnd | ( | MouseButton | button, |
| int | modifier ) |
| MRVIEWER_API bool MR::Viewer::dragStart | ( | MouseButton | button, |
| int | modifier ) |
| MRVIEWER_API void MR::Viewer::draw | ( | bool | force = false | ) |
| MRVIEWER_API void MR::Viewer::drawFull | ( | bool | dirtyScene | ) |
| MRVIEWER_API void MR::Viewer::drawScene | ( | ) |
| MRVIEWER_API void MR::Viewer::drawUiRenderObjects | ( | ) |
draw 2d (UI) part of objects in scene
| MRVIEWER_API void MR::Viewer::emplaceEvent | ( | std::string | name, |
| ViewerEventCallback | cb, | ||
| bool | skipable = false ) |
emplace event at the end of the queue replace last skipable with new skipable
| MRVIEWER_API bool MR::Viewer::enableAlphaSort | ( | bool | on | ) |
| MRVIEWER_API void MR::Viewer::enableGlobalHistory | ( | bool | on | ) |
| MRVIEWER_API bool MR::Viewer::erase_viewport | ( | const size_t | index | ) |
| MRVIEWER_API bool MR::Viewer::erase_viewport | ( | ViewportId | viewport_id | ) |
| MRVIEWER_API void MR::Viewer::fitBoxViewport | ( | const Box3f & | box, |
| MR::ViewportMask | vpList = MR::ViewportMask::all(), | ||
| float | fill = 0.6f, | ||
| bool | snapView = true ) |
| MRVIEWER_API void MR::Viewer::fitDataViewport | ( | MR::ViewportMask | vpList = MR::ViewportMask::all(), |
| float | fill = 0.6f, | ||
| bool | snapView = true ) |
| MRVIEWER_API size_t MR::Viewer::getEventsCount | ( | EventType | type | ) | const |
| MRVIEWER_API size_t MR::Viewer::getFPS | ( | ) | const |
|
inline |
| MRVIEWER_API ViewportId MR::Viewer::getHoveredViewportId | ( | ) | const |
| MRVIEWER_API ViewportId MR::Viewer::getHoveredViewportIdOrInvalid | ( | ) | const |
| MRVIEWER_API size_t MR::Viewer::getLastFrameGLPrimitivesCount | ( | GLPrimitivesType | type | ) | const |
|
inline |
| MRVIEWER_API const std::shared_ptr< ImGuiMenu > & MR::Viewer::getMenuPlugin | ( | ) | const |
|
inline |
| MRVIEWER_API PointInAllSpaces MR::Viewer::getMousePointInfo | ( | ) | const |
| MRVIEWER_API int MR::Viewer::getMSAA | ( | ) | const |
| MRVIEWER_API PointInAllSpaces MR::Viewer::getPixelPointInfo | ( | const Vector3f & | screenPoint | ) | const |
|
inline |
|
inline |
| MRVIEWER_API double MR::Viewer::getPrevFrameDrawTimeMillisec | ( | ) | const |
| MRVIEWER_API int MR::Viewer::getRequestedMSAA | ( | ) | const |
| MRVIEWER_API std::shared_ptr< RibbonMenu > MR::Viewer::getRibbonMenu | ( | ) | const |
|
inlinenodiscard |
returns whether to sort the filenames received from Drag&Drop in lexicographical order before adding them in scene
|
inline |
|
nodiscard |
| MRVIEWER_API size_t MR::Viewer::getStaticGLBufferSize | ( | ) | const |
|
inline |
| MRVIEWER_API size_t MR::Viewer::getSwappedFrames | ( | ) | const |
| MRVIEWER_API size_t MR::Viewer::getTotalFrames | ( | ) | const |
|
nodiscard |
|
inline |
| MRVIEWER_API std::vector< std::reference_wrapper< Viewport > > MR::Viewer::getViewports | ( | ViewportMask | mask = ViewportMask::any() | ) |
| MRVIEWER_API Box2f MR::Viewer::getViewportsBounds | ( | ) | const |
| MRVIEWER_API bool MR::Viewer::globalHistoryRedo | ( | ) |
| MRVIEWER_API bool MR::Viewer::globalHistoryUndo | ( | ) |
|
inline |
| MRVIEWER_API void MR::Viewer::incrementForceRedrawFrames | ( | int | i = 1, |
| bool | swapOnLastOnly = false ) |
| MRVIEWER_API void MR::Viewer::incrementThisFrameGLPrimitivesCount | ( | GLPrimitivesType | type, |
| size_t | num ) |
| MRVIEWER_API void MR::Viewer::initSpaceMouseHandler | ( | std::function< void(const std::string &)> | deviceSignal = {} | ) |
(re)initializes the handler of SpaceMouse events
| deviceSignal | every device-related event will be sent here: find, connect, disconnect |
|
inlinestatic |
|
inlinestatic |
| MRVIEWER_API bool MR::Viewer::interruptWindowClose | ( | ) |
| MRVIEWER_API bool MR::Viewer::isAlphaSortAvailable | ( | ) | const |
|
inline |
| MRVIEWER_API bool MR::Viewer::isCurrentFrameSwapping | ( | ) | const |
|
inline |
|
inline |
|
inline |
| MRVIEWER_API bool MR::Viewer::isSceneTextureBound | ( | ) | const |
| MRVIEWER_API bool MR::Viewer::isSceneTextureEnabled | ( | ) | const |
| MRVIEWER_API bool MR::Viewer::isSupportedFormat | ( | const std::filesystem::path & | file_name | ) |
| MRVIEWER_API bool MR::Viewer::keyDown | ( | int | key, |
| int | modifier ) |
| MRVIEWER_API bool MR::Viewer::keyPressed | ( | unsigned int | unicode_key, |
| int | modifier ) |
| MRVIEWER_API bool MR::Viewer::keyRepeat | ( | int | key, |
| int | modifier ) |
| MRVIEWER_API bool MR::Viewer::keyUp | ( | int | key, |
| int | modifier ) |
| MRVIEWER_API int MR::Viewer::launch | ( | const LaunchParams & | params | ) |
| MRVIEWER_API void MR::Viewer::launchEventLoop | ( | ) |
| MRVIEWER_API void MR::Viewer::launchShut | ( | ) |
| MRVIEWER_API bool MR::Viewer::loadFiles | ( | const std::vector< std::filesystem::path > & | filesList, |
| const FileLoadOptions & | options = {} ) |
| MRVIEWER_API void MR::Viewer::makeTitleFromSceneRootPath | ( | ) |
| MRVIEWER_API bool MR::Viewer::mouseClick | ( | MouseButton | button, |
| int | modifier ) |
|
inlinenodiscard |
|
inlinenodiscard |
| MRVIEWER_API bool MR::Viewer::mouseDown | ( | MouseButton | button, |
| int | modifier ) |
| MRVIEWER_API bool MR::Viewer::mouseMove | ( | int | mouse_x, |
| int | mouse_y ) |
| MRVIEWER_API bool MR::Viewer::mouseScroll | ( | float | delta_y | ) |
| MRVIEWER_API bool MR::Viewer::mouseUp | ( | MouseButton | button, |
| int | modifier ) |
| MRVIEWER_API void MR::Viewer::onSceneSaved | ( | const std::filesystem::path & | savePath, |
| bool | storeInRecent = true ) |
|
static |
| MRVIEWER_API void MR::Viewer::popEventByName | ( | const std::string & | name | ) |
| MRVIEWER_API void MR::Viewer::postClose | ( | ) |
| MRVIEWER_API void MR::Viewer::postEmptyEvent | ( | ) |
| MRVIEWER_API void MR::Viewer::postFocus | ( | bool | focused | ) |
| MRVIEWER_API void MR::Viewer::postRescale | ( | float | x, |
| float | y ) |
| MRVIEWER_API void MR::Viewer::postResize | ( | int | w, |
| int | h ) |
| MRVIEWER_API void MR::Viewer::postSetIconified | ( | bool | iconified | ) |
| MRVIEWER_API void MR::Viewer::postSetMaximized | ( | bool | maximized | ) |
| MRVIEWER_API void MR::Viewer::postSetPosition | ( | int | xPos, |
| int | yPos ) |
| MRVIEWER_API void MR::Viewer::preciseFitDataViewport | ( | MR::ViewportMask | vpList, |
| const FitDataParams & | param ) |
| MRVIEWER_API void MR::Viewer::preciseFitDataViewport | ( | MR::ViewportMask | vpList = MR::ViewportMask::all() | ) |
|
inlinenodiscard |
|
inlinenodiscard |
| MRVIEWER_API void MR::Viewer::requestChangeMSAA | ( | int | newMSAA | ) |
| MRVIEWER_API void MR::Viewer::resetAllCounters | ( | ) |
| MRVIEWER_API void MR::Viewer::resize | ( | int | w, |
| int | h ) |
| MRVIEWER_API bool MR::Viewer::saveToFile | ( | const std::filesystem::path & | mesh_file_name | ) |
| MRVIEWER_API Vector3f MR::Viewer::screenToViewport | ( | const Vector3f & | screenPoint, |
| ViewportId | id ) const |
| MRVIEWER_API void MR::Viewer::select_hovered_viewport | ( | ) |
| MRVIEWER_API void MR::Viewer::set_root | ( | SceneRootObject & | newRoot | ) |
| MRVIEWER_API void MR::Viewer::setMenuPlugin | ( | std::shared_ptr< ImGuiMenu > | menu | ) |
|
inline |
|
inline |
sets whether to sort the filenames received from Drag&Drop in lexicographical order before adding them in scene
| MRVIEWER_API void MR::Viewer::setSpaceMouseParameters | ( | const SpaceMouseParameters & | ) |
| MRVIEWER_API void MR::Viewer::setTouchpadParameters | ( | const TouchpadParameters & | ) |
| MRVIEWER_API void MR::Viewer::setupScene | ( | ) |
| MRVIEWER_API void MR::Viewer::setViewportSettingsManager | ( | std::unique_ptr< IViewerSettingsManager > | mng | ) |
| MRVIEWER_API bool MR::Viewer::spaceMouseDown | ( | int | key | ) |
| MRVIEWER_API bool MR::Viewer::spaceMouseMove | ( | const Vector3f & | translate, |
| const Vector3f & | rotate ) |
| MRVIEWER_API bool MR::Viewer::spaceMouseRepeat | ( | int | key | ) |
| MRVIEWER_API bool MR::Viewer::spaceMouseUp | ( | int | key | ) |
| MRVIEWER_API void MR::Viewer::stopEventLoop | ( | ) |
| MRVIEWER_API bool MR::Viewer::touchEnd | ( | int | id, |
| int | x, | ||
| int | y ) |
| MRVIEWER_API bool MR::Viewer::touchMove | ( | int | id, |
| int | x, | ||
| int | y ) |
| MRVIEWER_API bool MR::Viewer::touchpadRotateGestureBegin | ( | ) |
| MRVIEWER_API bool MR::Viewer::touchpadRotateGestureEnd | ( | ) |
| MRVIEWER_API bool MR::Viewer::touchpadRotateGestureUpdate | ( | float | angle | ) |
| MRVIEWER_API bool MR::Viewer::touchpadSwipeGestureBegin | ( | ) |
| MRVIEWER_API bool MR::Viewer::touchpadSwipeGestureEnd | ( | ) |
| MRVIEWER_API bool MR::Viewer::touchpadSwipeGestureUpdate | ( | float | dx, |
| float | dy, | ||
| bool | kinetic ) |
| MRVIEWER_API bool MR::Viewer::touchpadZoomGestureBegin | ( | ) |
| MRVIEWER_API bool MR::Viewer::touchpadZoomGestureEnd | ( | ) |
| MRVIEWER_API bool MR::Viewer::touchpadZoomGestureUpdate | ( | float | scale, |
| bool | kinetic ) |
| MRVIEWER_API bool MR::Viewer::touchStart | ( | int | id, |
| int | x, | ||
| int | y ) |
| MRVIEWER_API Viewport & MR::Viewer::viewport | ( | ViewportId | viewportId = {} | ) |
| MRVIEWER_API const Viewport & MR::Viewer::viewport | ( | ViewportId | viewportId = {} | ) | const |
| MRVIEWER_API int MR::Viewer::viewport_index | ( | ViewportId | viewport_id | ) | const |
| MRVIEWER_API Vector3f MR::Viewer::viewportToScreen | ( | const Vector3f & | viewportPoint, |
| ViewportId | id ) const |
| bool MR::Viewer::windowShouldClose | ( | ) |
| int MR::Viewer::animationMaxFps { 30 } |
| std::shared_ptr<ObjectMesh> MR::Viewer::basisAxes |
| std::unique_ptr<CornerControllerObject> MR::Viewer::basisViewController |
| CharPressedSignal MR::Viewer::charPressedSignal |
| std::shared_ptr<ObjectMesh> MR::Viewer::clippingPlaneObject |
| std::vector<std::string> MR::Viewer::commandArgs |
| CursorEntranceSignal MR::Viewer::cursorEntranceSignal |
| DragDropSignal MR::Viewer::dragDropSignal |
| MouseUpDownSignal MR::Viewer::dragEndSignal |
| CursorEntranceSignal MR::Viewer::dragEntranceSignal |
| MouseMoveSignal MR::Viewer::dragOverSignal |
| MouseMoveSignal MR::Viewer::dragSignal |
| MouseUpDownSignal MR::Viewer::dragStartSignal |
| RenderSignal MR::Viewer::drawSignal |
| bool MR::Viewer::experimentalFeatures { } |
| int MR::Viewer::forceRedrawMinimumIncrementAfterEvents { 4 } |
| Vector2i MR::Viewer::framebufferSize |
| std::unique_ptr<ViewportGlobalBasis> MR::Viewer::globalBasis |
| uint16_t MR::Viewer::glPickRadius { } |
| InterruptCloseSignal MR::Viewer::interruptCloseSignal |
| bool MR::Viewer::isAnimating { false } |
| KeySignal MR::Viewer::keyDownSignal |
| KeySignal MR::Viewer::keyRepeatSignal |
| KeySignal MR::Viewer::keyUpSignal |
| MouseUpDownSignal MR::Viewer::mouseClickSignal |
| MouseUpDownSignal MR::Viewer::mouseDownSignal |
| MouseMoveSignal MR::Viewer::mouseMoveSignal |
| MouseScrollSignal MR::Viewer::mouseScrollSignal |
| MouseUpDownSignal MR::Viewer::mouseUpSignal |
| ObjectsLoadedSignal MR::Viewer::objectsLoadedSignal |
| float MR::Viewer::pixelRatio { 1.0f } |
| std::vector<ViewerPlugin*> MR::Viewer::plugins |
| RenderSignal MR::Viewer::postDrawPreViewportSignal |
| RenderSignal MR::Viewer::postDrawSignal |
| PostFocusSignal MR::Viewer::postFocusSignal |
| PostRescaleSignal MR::Viewer::postRescaleSignal |
| PostResizeSignal MR::Viewer::postResizeSignal |
| RenderSignal MR::Viewer::preDrawPostViewportSignal |
| RenderSignal MR::Viewer::preDrawSignal |
| RenderSignal MR::Viewer::preSetupViewSignal |
| std::function<void( Viewer* viewer )> MR::Viewer::resetSettingsFunction |
| std::shared_ptr<ObjectMesh> MR::Viewer::rotationSphere |
| float MR::Viewer::scrollForce { } |
| size_t MR::Viewer::selected_viewport_index |
| SpaceMouseKeySignal MR::Viewer::spaceMouseDownSignal |
| SpaceMouseMoveSignal MR::Viewer::spaceMouseMoveSignal |
| SpaceMouseKeySignal MR::Viewer::spaceMouseRepeatSignal |
| SpaceMouseKeySignal MR::Viewer::spaceMouseUpSignal |
| bool MR::Viewer::swapOnLastPostEventsRedraw { true } |
| TouchSignal MR::Viewer::touchEndSignal |
| TouchSignal MR::Viewer::touchMoveSignal |
| TouchpadGestureBeginSignal MR::Viewer::touchpadRotateGestureBeginSignal |
| TouchpadGestureEndSignal MR::Viewer::touchpadRotateGestureEndSignal |
| TouchpadRotateGestureUpdateSignal MR::Viewer::touchpadRotateGestureUpdateSignal |
| TouchpadGestureBeginSignal MR::Viewer::touchpadSwipeGestureBeginSignal |
| TouchpadGestureEndSignal MR::Viewer::touchpadSwipeGestureEndSignal |
| TouchpadSwipeGestureUpdateSignal MR::Viewer::touchpadSwipeGestureUpdateSignal |
| TouchpadGestureBeginSignal MR::Viewer::touchpadZoomGestureBeginSignal |
| TouchpadGestureEndSignal MR::Viewer::touchpadZoomGestureEndSignal |
| TouchpadZoomGestureUpdateSignal MR::Viewer::touchpadZoomGestureUpdateSignal |
| TouchSignal MR::Viewer::touchStartSignal |
| std::vector<Viewport> MR::Viewer::viewport_list |
| GLFWwindow* MR::Viewer::window |
| bool MR::Viewer::windowMaximized { false } |
| Vector2i MR::Viewer::windowOldPos |
| Vector2i MR::Viewer::windowSavePos |
| Vector2i MR::Viewer::windowSaveSize |
| std::shared_ptr<ViewerTitle> MR::Viewer::windowTitle |