MeshLib C++ Docs
Loading...
Searching...
No Matches
MRViewportCornerController.h
Go to the documentation of this file.
1#pragma once
2#include "MRViewerFwd.h"
3
4namespace MR
5{
6
13MRVIEWER_API Mesh makeCornerControllerMesh( float size, float cornerRatio = 0.2f );
14
15enum class SideRegions
16{
17 CCWArrow = 26,
18 CWArrow = 27
19};
20
28MRVIEWER_API Mesh makeCornerControllerRotationArrowMesh( float size, const Vector2f& shift, bool ccw );
29
38MRVIEWER_API VertUVCoords makeCornerControllerUVCoords( float cornerRatio = 0.2f );
39
45
48MRVIEWER_API const TexturePerFace& getCornerControllerTexureMap();
49
51MRVIEWER_API RegionId getCornerControllerRegionByFace( FaceId face );
52
54MRVIEWER_API TexturePerFace getCornerControllerHoveredTextureMap( RegionId rId );
55
57MRVIEWER_API void updateCurrentViewByControllerRegion( RegionId rId );
58
59}
std::vector<T>-like container that requires specific indexing type,
Definition MRMesh/MRVector.h:20
MRMESH_API bool ccw(const Vector2i &a, const Vector2i &b)
MRVIEWER_API RegionId getCornerControllerRegionByFace(FaceId face)
returns region id of corner controller by its face
ImVec2 size(const ViewportRectangle &rect)
Definition MRViewport.h:29
SideRegions
Definition MRViewportCornerController.h:16
MRVIEWER_API Mesh 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 sid...
MRVIEWER_API VertUVCoords makeCornerControllerUVCoords(float cornerRatio=0.2f)
Creates UV coordinates for makeCornerControllerMesh output mesh for texture like: "Right"" Left " " T...
MRVIEWER_API const TexturePerFace & getCornerControllerTexureMap()
MRVIEWER_API Vector< MeshTexture, TextureId > loadCornerControllerTextures()
Loads 3 textures for corner controller: default, side hovered, corner hovered.
MRVIEWER_API void updateCurrentViewByControllerRegion(RegionId rId)
setup camera for selected viewport by corner controller region
MRVIEWER_API TexturePerFace getCornerControllerHoveredTextureMap(RegionId rId)
returns textures map with region faces hovered
MRVIEWER_API Mesh 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 contr...
Definition MRMesh/MRMesh.h:23