MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
DragGeometryInputs.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "PlacementInputs.hpp"
4
6
8
9/**
10 * @struct ScaleInputs
11 * @brief An outline in unit space that grows along one axis with a float state.
12 *
13 * points are x y pairs of a single ring. The state, clamped to [0, 1], scales
14 * every point along x when horizontal and along y otherwise, and the
15 * placement's rect maps the result onto the surface. value is the initial
16 * state.
17 */
19 std::vector<glm::vec2> points;
20 glm::vec4 color { 1.F };
21 bool horizontal { true };
22 float value { 0.F };
23};
24
25MF_DESCRIBE(ScaleInputs)
26
27/**
28 * @struct HandlePathInputs
29 * @brief Draggable points in the unit square, drawn as a connected stroke.
30 *
31 * points are the initial positions and also the state. grab_radius and
32 * handle_size are in NDC units.
33 */
35 std::vector<glm::vec2> points;
36 glm::vec3 path_color { 0.3F, 0.7F, 1.F };
37 glm::vec3 handle_color { 0.95F };
38 float thickness { 1.5F };
39 float handle_size { 0.03F };
40 float grab_radius { 0.1F };
41};
42
43MF_DESCRIBE(HandlePathInputs)
44
45}
46
#define MF_DESCRIBE(...)
Requests a generated member description for a struct at namespace scope.
Definition Describe.hpp:14
Draggable points in the unit square, drawn as a connected stroke.
An outline in unit space that grows along one axis with a float state.