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
5
#include "
MayaFlux/Transitive/Reflect/RecordBinding.hpp
"
6
7
namespace
MayaFlux::Portal::Forma
{
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
*/
18
struct
ScaleInputs
{
19
std::vector<glm::vec2>
points
;
20
glm::vec4
color
{ 1.F };
21
bool
horizontal
{
true
};
22
float
value
{ 0.F };
23
};
24
25
MF_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
*/
34
struct
HandlePathInputs
{
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
43
MF_DESCRIBE
(HandlePathInputs)
44
45
}
46
47
#include "
DragGeometryInputs.describe.hpp
"
MF_DESCRIBE
#define MF_DESCRIBE(...)
Requests a generated member description for a struct at namespace scope.
Definition
Describe.hpp:14
DragGeometryInputs.describe.hpp
PlacementInputs.hpp
RecordBinding.hpp
MayaFlux::Portal::Forma
Definition
Bridge.cpp:16
MayaFlux::Portal::Forma::HandlePathInputs::handle_size
float handle_size
Definition
DragGeometryInputs.hpp:39
MayaFlux::Portal::Forma::HandlePathInputs::grab_radius
float grab_radius
Definition
DragGeometryInputs.hpp:40
MayaFlux::Portal::Forma::HandlePathInputs::points
std::vector< glm::vec2 > points
Definition
DragGeometryInputs.hpp:35
MayaFlux::Portal::Forma::HandlePathInputs::path_color
glm::vec3 path_color
Definition
DragGeometryInputs.hpp:36
MayaFlux::Portal::Forma::HandlePathInputs::handle_color
glm::vec3 handle_color
Definition
DragGeometryInputs.hpp:37
MayaFlux::Portal::Forma::HandlePathInputs::thickness
float thickness
Definition
DragGeometryInputs.hpp:38
MayaFlux::Portal::Forma::HandlePathInputs
Draggable points in the unit square, drawn as a connected stroke.
Definition
DragGeometryInputs.hpp:34
MayaFlux::Portal::Forma::ScaleInputs::value
float value
Definition
DragGeometryInputs.hpp:22
MayaFlux::Portal::Forma::ScaleInputs::points
std::vector< glm::vec2 > points
Definition
DragGeometryInputs.hpp:19
MayaFlux::Portal::Forma::ScaleInputs::horizontal
bool horizontal
Definition
DragGeometryInputs.hpp:21
MayaFlux::Portal::Forma::ScaleInputs::color
glm::vec4 color
Definition
DragGeometryInputs.hpp:20
MayaFlux::Portal::Forma::ScaleInputs
An outline in unit space that grows along one axis with a float state.
Definition
DragGeometryInputs.hpp:18
src
MayaFlux
Portal
Forma
Manifest
DragGeometryInputs.hpp
Generated by
1.15.0