MeshLib C++ Docs
Loading...
Searching...
No Matches
MRViewportCornerController.h File Reference
#include "MRViewerFwd.h"

Go to the source code of this file.

Namespaces

namespace  MR
 

Enumerations

enum class  MR::SideRegions { MR::CCWArrow = 26 , MR::CWArrow = 27 }
 

Functions

MRVIEWER_API Mesh MR::makeCornerControllerMesh (float size, float cornerRatio=0.2f)
 Makes cube mesh with specified face structure for each 3-rank corner, each 2-rank corner and each side:
.
 
MRVIEWER_API Mesh MR::makeCornerControllerRotationArrowMesh (float size, const Vector2f &shift, bool ccw)
 Makes planar arrow mesh that will be used for controlling in plane rotation in corner near cube controller.
 
MRVIEWER_API VertUVCoords MR::makeCornerControllerUVCoords (float cornerRatio=0.2f)
 Creates UV coordinates for makeCornerControllerMesh output mesh for texture like:
"Right"" Left "
" Top ""Bottom"
"Front"" Back ".
 
MRVIEWER_API Vector< MeshTexture, TextureId > MR::loadCornerControllerTextures ()
 Loads 3 textures for corner controller: default, side hovered, corner hovered.
 
MRVIEWER_API const TexturePerFace & MR::getCornerControllerTexureMap ()
 
MRVIEWER_API RegionId MR::getCornerControllerRegionByFace (FaceId face)
 returns region id of corner controller by its face
 
MRVIEWER_API TexturePerFace MR::getCornerControllerHoveredTextureMap (RegionId rId)
 returns textures map with region faces hovered
 
MRVIEWER_API void MR::updateCurrentViewByControllerRegion (RegionId rId)
 setup camera for selected viewport by corner controller region