MeshLib Documentation
Loading...
Searching...
No Matches
MRViewer.h File Reference
#include "MRViewerInstance.h"
#include "MRMouse.h"
#include "MRSignalCombiners.h"
#include "MRMakeSlot.h"
#include <MRMesh/MRVector2.h>
#include <MRMesh/MRViewportId.h>
#include "MRMesh/MRSignal.h"
#include "MRMesh/MRRenderModelParameters.h"
#include <cstdint>
#include <filesystem>

Go to the source code of this file.

Classes

struct  MR::LaunchParams
 
struct  MR::FileLoadOptions
 
class  MR::Viewer
 

Namespaces

namespace  MR
 

Macros

#define ENQUEUE_VIEWER_METHOD(NAME, METHOD)
 helper macros to add an MR::Viewer method call to the event queue
 
#define ENQUEUE_VIEWER_METHOD_ARGS(NAME, METHOD, ...)
 
#define ENQUEUE_VIEWER_METHOD_ARGS_SKIPABLE(NAME, METHOD, ...)
 

Functions

MRVIEWER_API int MR::launchDefaultViewer (const Viewer::LaunchParams &params, const ViewerSetup &setup)
 
MRVIEWER_API void MR::loadMRViewerDll ()
 

Macro Definition Documentation

◆ ENQUEUE_VIEWER_METHOD

#define ENQUEUE_VIEWER_METHOD ( NAME,
METHOD )
Value:
MR::getViewerInstance() . METHOD (); \
} )
MRVIEWER_API void emplaceEvent(std::string name, ViewerEventCallback cb, bool skipable=false)
MRVIEWER_API Viewer & getViewerInstance()
returns global instance of Viewer class

helper macros to add an MR::Viewer method call to the event queue

◆ ENQUEUE_VIEWER_METHOD_ARGS

#define ENQUEUE_VIEWER_METHOD_ARGS ( NAME,
METHOD,
... )
Value:
MR::getViewerInstance().emplaceEvent( NAME, [__VA_ARGS__] { \
MR::getViewerInstance() . METHOD ( __VA_ARGS__ ); \
} )

◆ ENQUEUE_VIEWER_METHOD_ARGS_SKIPABLE

#define ENQUEUE_VIEWER_METHOD_ARGS_SKIPABLE ( NAME,
METHOD,
... )
Value:
MR::getViewerInstance().emplaceEvent( NAME, [__VA_ARGS__] { \
MR::getViewerInstance() . METHOD ( __VA_ARGS__ ); \
}, true )