|
Blender V5.3
|
Namespaces | |
| namespace | boolean |
| namespace | image_render |
| namespace | segment |
| namespace | tests |
| namespace | trim |
| namespace | undo |
Classes | |
| struct | Clipboard |
| struct | ClosestGreasePencilDrawing |
| struct | ColorTemplate |
| struct | Curves2DBVHTree |
| struct | CurveSegmentsData |
| struct | DrawingInfo |
| class | DrawingPlacement |
| struct | EdgeCurves |
| struct | ExtensionData |
| struct | FillBoundary |
| class | GreasePencilPenToolOperation |
| class | ImageBufferAccessor |
| struct | KeyframeClipboard |
| class | Layer |
| class | LayerGroup |
| struct | LineartLimitInfo |
| struct | MutableDrawingInfo |
| struct | PerimeterData |
| struct | PointTransferData |
| struct | PrimitiveToolOperation |
| class | TreeNode |
Typedefs | |
| using | SelectionUpdateFunc |
| using | EncodedConnection = int |
| using | EdgeConnections = VecBase<EncodedConnection, 2> |
Functions | |
| static std::array< float3, 175 > | stroke_positions ({ float3(-1.281f, 0.0f, -0.315f), float3(-1.269f, 0.0f, -0.302f), float3(-1.261f, 0.0f, -0.293f), float3(-1.251f, 0.0f, -0.282f), float3(-1.241f, 0.0f, -0.271f), float3(-1.23f, 0.0f, -0.259f), float3(-1.219f, 0.0f, -0.247f), float3(-1.208f, 0.0f, -0.234f), float3(-1.196f, 0.0f, -0.221f), float3(-1.184f, 0.0f, -0.208f), float3(-1.172f, 0.0f, -0.194f), float3(-1.159f, 0.0f, -0.18f), float3(-1.147f, 0.0f, -0.165f), float3(-1.134f, 0.0f, -0.151f), float3(-1.121f, 0.0f, -0.136f), float3(-1.108f, 0.0f, -0.121f), float3(-1.094f, 0.0f, -0.106f), float3(-1.08f, 0.0f, -0.091f), float3(-1.066f, 0.0f, -0.076f), float3(-1.052f, 0.0f, -0.061f), float3(-1.037f, 0.0f, -0.047f), float3(-1.022f, 0.0f, -0.032f), float3(-1.007f, 0.0f, -0.017f), float3(-0.991f, 0.0f, -0.003f), float3(-0.975f, 0.0f, 0.012f), float3(-0.959f, 0.0f, 0.027f), float3(-0.942f, 0.0f, 0.041f), float3(-0.926f, 0.0f, 0.056f), float3(-0.909f, 0.0f, 0.071f), float3(-0.893f, 0.0f, 0.086f), float3(-0.876f, 0.0f, 0.1f), float3(-0.859f, 0.0f, 0.115f), float3(-0.842f, 0.0f, 0.129f), float3(-0.824f, 0.0f, 0.144f), float3(-0.807f, 0.0f, 0.158f), float3(-0.79f, 0.0f, 0.172f), float3(-0.773f, 0.0f, 0.186f), float3(-0.755f, 0.0f, 0.199f), float3(-0.738f, 0.0f, 0.212f), float3(-0.721f, 0.0f, 0.224f), float3(-0.703f, 0.0f, 0.236f), float3(-0.686f, 0.0f, 0.248f), float3(-0.67f, 0.0f, 0.26f), float3(-0.653f, 0.0f, 0.27f), float3(-0.637f, 0.0f, 0.28f), float3(-0.621f, 0.0f, 0.29f), float3(-0.605f, 0.0f, 0.298f), float3(-0.589f, 0.0f, 0.306f), float3(-0.574f, 0.0f, 0.313f), float3(-0.559f, 0.0f, 0.319f), float3(-0.544f, 0.0f, 0.325f), float3(-0.53f, 0.0f, 0.331f), float3(-0.516f, 0.0f, 0.336f), float3(-0.503f, 0.0f, 0.34f), float3(-0.489f, 0.0f, 0.344f), float3(-0.477f, 0.0f, 0.347f), float3(-0.464f, 0.0f, 0.35f), float3(-0.452f, 0.0f, 0.352f), float3(-0.44f, 0.0f, 0.354f), float3(-0.429f, 0.0f, 0.355f), float3(-0.418f, 0.0f, 0.355f), float3(-0.407f, 0.0f, 0.355f), float3(-0.397f, 0.0f, 0.354f), float3(-0.387f, 0.0f, 0.353f), float3(-0.378f, 0.0f, 0.351f), float3(-0.368f, 0.0f, 0.348f), float3(-0.36f, 0.0f, 0.344f), float3(-0.351f, 0.0f, 0.34f), float3(-0.344f, 0.0f, 0.336f), float3(-0.336f, 0.0f, 0.33f), float3(-0.329f, 0.0f, 0.324f), float3(-0.322f, 0.0f, 0.318f), float3(-0.316f, 0.0f, 0.31f), float3(-0.311f, 0.0f, 0.303f), float3(-0.306f, 0.0f, 0.294f), float3(-0.301f, 0.0f, 0.285f), float3(-0.297f, 0.0f, 0.275f), float3(-0.293f, 0.0f, 0.264f), float3(-0.29f, 0.0f, 0.253f), float3(-0.288f, 0.0f, 0.241f), float3(-0.286f, 0.0f, 0.229f), float3(-0.285f, 0.0f, 0.216f), float3(-0.284f, 0.0f, 0.202f), float3(-0.283f, 0.0f, 0.188f), float3(-0.283f, 0.0f, 0.173f), float3(-0.284f, 0.0f, 0.158f), float3(-0.285f, 0.0f, 0.142f), float3(-0.286f, 0.0f, 0.125f), float3(-0.288f, 0.0f, 0.108f), float3(-0.29f, 0.0f, 0.091f), float3(-0.293f, 0.0f, 0.073f), float3(-0.295f, 0.0f, 0.054f), float3(-0.298f, 0.0f, 0.035f), float3(-0.302f, 0.0f, 0.016f), float3(-0.305f, 0.0f, -0.004f), float3(-0.309f, 0.0f, -0.024f), float3(-0.313f, 0.0f, -0.044f), float3(-0.317f, 0.0f, -0.065f), float3(-0.321f, 0.0f, -0.085f), float3(-0.326f, 0.0f, -0.106f), float3(-0.33f, 0.0f, -0.127f), float3(-0.335f, 0.0f, -0.148f), float3(-0.339f, 0.0f, -0.168f), float3(-0.344f, 0.0f, -0.189f), float3(-0.348f, 0.0f, -0.21f), float3(-0.353f, 0.0f, -0.23f), float3(-0.357f, 0.0f, -0.25f), float3(-0.361f, 0.0f, -0.27f), float3(-0.365f, 0.0f, -0.29f), float3(-0.369f, 0.0f, -0.309f), float3(-0.372f, 0.0f, -0.328f), float3(-0.375f, 0.0f, -0.347f), float3(-0.377f, 0.0f, -0.365f), float3(-0.379f, 0.0f, -0.383f), float3(-0.38f, 0.0f, -0.4f), float3(-0.38f, 0.0f, -0.417f), float3(-0.38f, 0.0f, -0.434f), float3(-0.379f, 0.0f, -0.449f), float3(-0.377f, 0.0f, -0.464f), float3(-0.374f, 0.0f, -0.478f), float3(-0.371f, 0.0f, -0.491f), float3(-0.366f, 0.0f, -0.503f), float3(-0.361f, 0.0f, -0.513f), float3(-0.354f, 0.0f, -0.523f), float3(-0.347f, 0.0f, -0.531f), float3(-0.339f, 0.0f, -0.538f), float3(-0.33f, 0.0f, -0.543f), float3(-0.32f, 0.0f, -0.547f), float3(-0.31f, 0.0f, -0.549f), float3(-0.298f, 0.0f, -0.55f), float3(-0.286f, 0.0f, -0.55f), float3(-0.274f, 0.0f, -0.548f), float3(-0.261f, 0.0f, -0.544f), float3(-0.247f, 0.0f, -0.539f), float3(-0.232f, 0.0f, -0.533f), float3(-0.218f, 0.0f, -0.525f), float3(-0.202f, 0.0f, -0.515f), float3(-0.186f, 0.0f, -0.503f), float3(-0.169f, 0.0f, -0.49f), float3(-0.151f, 0.0f, -0.475f), float3(-0.132f, 0.0f, -0.458f), float3(-0.112f, 0.0f, -0.44f), float3(-0.091f, 0.0f, -0.42f), float3(-0.069f, 0.0f, -0.398f), float3(-0.045f, 0.0f, -0.375f), float3(-0.021f, 0.0f, -0.35f), float3(0.005f, 0.0f, -0.324f), float3(0.031f, 0.0f, -0.297f), float3(0.06f, 0.0f, -0.268f), float3(0.089f, 0.0f, -0.238f), float3(0.12f, 0.0f, -0.207f), float3(0.153f, 0.0f, -0.175f), float3(0.187f, 0.0f, -0.14f), float3(0.224f, 0.0f, -0.104f), float3(0.262f, 0.0f, -0.067f), float3(0.302f, 0.0f, -0.027f), float3(0.344f, 0.0f, 0.014f), float3(0.388f, 0.0f, 0.056f), float3(0.434f, 0.0f, 0.1f), float3(0.483f, 0.0f, 0.145f), float3(0.533f, 0.0f, 0.191f), float3(0.585f, 0.0f, 0.238f), float3(0.637f, 0.0f, 0.284f), float3(0.69f, 0.0f, 0.33f), float3(0.746f, 0.0f, 0.376f), float3(0.802f, 0.0f, 0.421f), float3(0.859f, 0.0f, 0.464f), float3(0.915f, 0.0f, 0.506f), float3(0.97f, 0.0f, 0.545f), float3(1.023f, 0.0f, 0.581f), float3(1.075f, 0.0f, 0.614f), float3(1.122f, 0.0f, 0.643f), float3(1.169f, 0.0f, 0.671f), float3(1.207f, 0.0f, 0.693f), float3(1.264f, 0.0f, 0.725f), }) |
| static constexpr std::array< float, 175 > | stroke_radii ({ 0.00143, 0.00259, 0.00334, 0.00420, 0.00503, 0.00581, 0.00656, 0.00728, 0.00791, 0.00851, 0.00907, 0.00960, 0.01005, 0.01050, 0.01087, 0.01121, 0.01151, 0.01181, 0.01208, 0.01234, 0.01256, 0.01279, 0.01297, 0.01316, 0.01331, 0.01350, 0.01365, 0.01380, 0.01391, 0.01399, 0.01410, 0.01414, 0.01418, 0.01421, 0.01421, 0.01421, 0.01425, 0.01425, 0.01429, 0.01433, 0.01440, 0.01448, 0.01455, 0.01462, 0.01474, 0.01485, 0.01496, 0.01511, 0.01526, 0.01541, 0.01556, 0.01575, 0.01594, 0.01616, 0.01639, 0.01661, 0.01688, 0.01714, 0.01740, 0.01766, 0.01796, 0.01826, 0.01856, 0.01886, 0.01920, 0.01950, 0.01980, 0.02014, 0.02044, 0.02074, 0.02107, 0.02138, 0.02171, 0.02205, 0.02239, 0.02273, 0.02306, 0.02344, 0.02381, 0.02415, 0.02452, 0.02490, 0.02531, 0.02569, 0.02610, 0.02651, 0.02693, 0.02734, 0.02775, 0.02816, 0.02854, 0.02895, 0.02933, 0.02974, 0.03015, 0.03056, 0.03105, 0.03161, 0.03225, 0.03296, 0.03364, 0.03431, 0.03495, 0.03551, 0.03608, 0.03652, 0.03694, 0.03731, 0.03765, 0.03791, 0.03818, 0.03840, 0.03859, 0.03874, 0.03885, 0.03889, 0.03889, 0.03881, 0.03870, 0.03859, 0.03848, 0.03836, 0.03829, 0.03821, 0.03814, 0.03810, 0.03810, 0.03810, 0.03810, 0.03814, 0.03814, 0.03818, 0.03814, 0.03814, 0.03810, 0.03806, 0.03799, 0.03784, 0.03769, 0.03743, 0.03713, 0.03675, 0.03630, 0.03581, 0.03521, 0.03461, 0.03405, 0.03356, 0.03308, 0.03263, 0.03218, 0.03165, 0.03105, 0.03038, 0.02963, 0.02884, 0.02801, 0.02715, 0.02625, 0.02535, 0.02441, 0.02344, 0.02246, 0.02149, 0.02048, 0.01935, 0.01811, 0.01673, 0.01526, 0.01369, 0.01208, 0.01050, 0.00885, 0.00758, 0.00581, }) |
| static constexpr std::array< float, 175 > | stroke_opacities ({ 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, }) |
| static std::array< float3, 700 > | monkey_fill_positions ({ float3(-0.4911, 0.0000, -0.1781), float3(-0.5168, 0.0000, -0.1806), float3(-0.5361, 0.0000, -0.1817), float3(-0.5618, 0.0000, -0.1829), float3(-0.5892, 0.0000, -0.1827), float3(-0.6193, 0.0000, -0.1814), float3(-0.6499, 0.0000, -0.1782), float3(-0.6808, 0.0000, -0.1729), float3(-0.7107, 0.0000, -0.1651), float3(-0.7404, 0.0000, -0.1555), float3(-0.7698, 0.0000, -0.1447), float3(-0.7993, 0.0000, -0.1332), float3(-0.8289, 0.0000, -0.1209), float3(-0.8586, 0.0000, -0.1090), float3(-0.8871, 0.0000, -0.0973), float3(-0.9125, 0.0000, -0.0838), float3(-0.9353, 0.0000, -0.0688), float3(-0.9561, 0.0000, -0.0525), float3(-0.9752, 0.0000, -0.0346), float3(-0.9944, 0.0000, -0.0160), float3(-1.0148, 0.0000, 0.0028), float3(-1.0348, 0.0000, 0.0215), float3(-1.0500, 0.0000, 0.0407), float3(-1.0639, 0.0000, 0.0613), float3(-1.0752, 0.0000, 0.0838), float3(-1.0848, 0.0000, 0.1082), float3(-1.0936, 0.0000, 0.1346), float3(-1.1024, 0.0000, 0.1639), float3(-1.1102, 0.0000, 0.1953), float3(-1.1128, 0.0000, 0.2277), float3(-1.1091, 0.0000, 0.2579), float3(-1.1023, 0.0000, 0.2849), float3(-1.0934, 0.0000, 0.3086), float3(-1.0831, 0.0000, 0.3285), float3(-1.0724, 0.0000, 0.3451), float3(-1.0607, 0.0000, 0.3594), float3(-1.0474, 0.0000, 0.3713), float3(-1.0310, 0.0000, 0.3804), float3(-1.0108, 0.0000, 0.3874), float3(-0.9862, 0.0000, 0.3922), float3(-0.9568, 0.0000, 0.3941), float3(-0.9243, 0.0000, 0.3934), float3(-0.8897, 0.0000, 0.3861), float3(-0.8556, 0.0000, 0.3754), float3(-0.8237, 0.0000, 0.3608), float3(-0.7982, 0.0000, 0.3440), float3(-0.7786, 0.0000, 0.3290), float3(-0.7633, 0.0000, 0.3183), float3(-0.7498, 0.0000, 0.3135), float3(-0.7374, 0.0000, 0.3134), float3(-0.7261, 0.0000, 0.3179), float3(-0.7146, 0.0000, 0.3262), float3(-0.7030, 0.0000, 0.3395), float3(-0.6920, 0.0000, 0.3576), float3(-0.6831, 0.0000, 0.3806), float3(-0.6748, 0.0000, 0.4052), float3(-0.6648, 0.0000, 0.4305), float3(-0.6527, 0.0000, 0.4549), float3(-0.6375, 0.0000, 0.4783), float3(-0.6195, 0.0000, 0.5021), float3(-0.5985, 0.0000, 0.5256), float3(-0.5775, 0.0000, 0.5488), float3(-0.5560, 0.0000, 0.5715), float3(-0.5339, 0.0000, 0.5930), float3(-0.5119, 0.0000, 0.6130), float3(-0.4905, 0.0000, 0.6312), float3(-0.4697, 0.0000, 0.6474), float3(-0.4499, 0.0000, 0.6613), float3(-0.4306, 0.0000, 0.6734), float3(-0.4116, 0.0000, 0.6845), float3(-0.3918, 0.0000, 0.6954), float3(-0.3709, 0.0000, 0.7059), float3(-0.3486, 0.0000, 0.7157), float3(-0.3251, 0.0000, 0.7249), float3(-0.3006, 0.0000, 0.7333), float3(-0.2755, 0.0000, 0.7414), float3(-0.2500, 0.0000, 0.7489), float3(-0.2242, 0.0000, 0.7562), float3(-0.1979, 0.0000, 0.7631), float3(-0.1710, 0.0000, 0.7695), float3(-0.1434, 0.0000, 0.7752), float3(-0.1151, 0.0000, 0.7801), float3(-0.0861, 0.0000, 0.7841), float3(-0.0563, 0.0000, 0.7869), float3(-0.0260, 0.0000, 0.7889), float3(0.0049, 0.0000, 0.7899), float3(0.0362, 0.0000, 0.7898), float3(0.0679, 0.0000, 0.7881), float3(0.0996, 0.0000, 0.7853), float3(0.1313, 0.0000, 0.7812), float3(0.1632, 0.0000, 0.7756), float3(0.1953, 0.0000, 0.7687), float3(0.2277, 0.0000, 0.7608), float3(0.2606, 0.0000, 0.7513), float3(0.2934, 0.0000, 0.7404), float3(0.3258, 0.0000, 0.7276), float3(0.3570, 0.0000, 0.7135), float3(0.3870, 0.0000, 0.6983), float3(0.4157, 0.0000, 0.6819), float3(0.4440, 0.0000, 0.6645), float3(0.4719, 0.0000, 0.6459), float3(0.4994, 0.0000, 0.6261), float3(0.5260, 0.0000, 0.6046), float3(0.5520, 0.0000, 0.5816), float3(0.5770, 0.0000, 0.5575), float3(0.6008, 0.0000, 0.5328), float3(0.6231, 0.0000, 0.5077), float3(0.6423, 0.0000, 0.4829), float3(0.6580, 0.0000, 0.4617), float3(0.6713, 0.0000, 0.4432), float3(0.6828, 0.0000, 0.4266), float3(0.6928, 0.0000, 0.4118), float3(0.7016, 0.0000, 0.3987), float3(0.7094, 0.0000, 0.3871), float3(0.7165, 0.0000, 0.3769), float3(0.7233, 0.0000, 0.3679), float3(0.7301, 0.0000, 0.3598), float3(0.7373, 0.0000, 0.3524), float3(0.7454, 0.0000, 0.3458), float3(0.7545, 0.0000, 0.3398), float3(0.7651, 0.0000, 0.3351), float3(0.7770, 0.0000, 0.3317), float3(0.7909, 0.0000, 0.3311), float3(0.8068, 0.0000, 0.3340), float3(0.8246, 0.0000, 0.3398), float3(0.8438, 0.0000, 0.3486), float3(0.8651, 0.0000, 0.3575), float3(0.8893, 0.0000, 0.3665), float3(0.9166, 0.0000, 0.3740), float3(0.9459, 0.0000, 0.3791), float3(0.9751, 0.0000, 0.3811), float3(1.0029, 0.0000, 0.3800), float3(1.0288, 0.0000, 0.3754), float3(1.0520, 0.0000, 0.3673), float3(1.0722, 0.0000, 0.3556), float3(1.0888, 0.0000, 0.3403), float3(1.1027, 0.0000, 0.3220), float3(1.1133, 0.0000, 0.3010), float3(1.1215, 0.0000, 0.2780), float3(1.1269, 0.0000, 0.2534), float3(1.1296, 0.0000, 0.2284), float3(1.1292, 0.0000, 0.2031), float3(1.1254, 0.0000, 0.1778), float3(1.1178, 0.0000, 0.1530), float3(1.1076, 0.0000, 0.1299), float3(1.0955, 0.0000, 0.1079), float3(1.0817, 0.0000, 0.0870), float3(1.0668, 0.0000, 0.0677), float3(1.0508, 0.0000, 0.0491), float3(1.0339, 0.0000, 0.0313), float3(1.0157, 0.0000, 0.0144), float3(0.9969, 0.0000, -0.0015), float3(0.9784, 0.0000, -0.0170), float3(0.9600, 0.0000, -0.0321), float3(0.9413, 0.0000, -0.0468), float3(0.9216, 0.0000, -0.0611), float3(0.9009, 0.0000, -0.0751), float3(0.8787, 0.0000, -0.0893), float3(0.8556, 0.0000, -0.1027), float3(0.8312, 0.0000, -0.1152), float3(0.8058, 0.0000, -0.1268), float3(0.7788, 0.0000, -0.1372), float3(0.7505, 0.0000, -0.1467), float3(0.7214, 0.0000, -0.1549), float3(0.6929, 0.0000, -0.1617), float3(0.6652, 0.0000, -0.1665), float3(0.6388, 0.0000, -0.1691), float3(0.6131, 0.0000, -0.1701), float3(0.5883, 0.0000, -0.1699), float3(0.5644, 0.0000, -0.1691), float3(0.5416, 0.0000, -0.1683), float3(0.5195, 0.0000, -0.1680), float3(0.4975, 0.0000, -0.1687), float3(0.4754, 0.0000, -0.1705), float3(0.4527, 0.0000, -0.1741), float3(0.4293, 0.0000, -0.1797), float3(0.4054, 0.0000, -0.1881), float3(0.3813, 0.0000, -0.1992), float3(0.3585, 0.0000, -0.2120), float3(0.3368, 0.0000, -0.2266), float3(0.3174, 0.0000, -0.2426), float3(0.2996, 0.0000, -0.2594), float3(0.2840, 0.0000, -0.2768), float3(0.2702, 0.0000, -0.2946), float3(0.2585, 0.0000, -0.3127), float3(0.2500, 0.0000, -0.3308), float3(0.2447, 0.0000, -0.3489), float3(0.2418, 0.0000, -0.3672), float3(0.2412, 0.0000, -0.3860), float3(0.2425, 0.0000, -0.4051), float3(0.2456, 0.0000, -0.4246), float3(0.2509, 0.0000, -0.4447), float3(0.2576, 0.0000, -0.4652), float3(0.2666, 0.0000, -0.4867), float3(0.2766, 0.0000, -0.5091), float3(0.2871, 0.0000, -0.5326), float3(0.2973, 0.0000, -0.5569), float3(0.3060, 0.0000, -0.5826), float3(0.3131, 0.0000, -0.6100), float3(0.3197, 0.0000, -0.6384), float3(0.3260, 0.0000, -0.6681), float3(0.3315, 0.0000, -0.6984), float3(0.3360, 0.0000, -0.7291), float3(0.3391, 0.0000, -0.7593), float3(0.3399, 0.0000, -0.7884), float3(0.3382, 0.0000, -0.8158), float3(0.3340, 0.0000, -0.8417), float3(0.3273, 0.0000, -0.8657), float3(0.3185, 0.0000, -0.8881), float3(0.3073, 0.0000, -0.9088), float3(0.2941, 0.0000, -0.9278), float3(0.2786, 0.0000, -0.9449), float3(0.2610, 0.0000, -0.9600), float3(0.2413, 0.0000, -0.9733), float3(0.2193, 0.0000, -0.9845), float3(0.1953, 0.0000, -0.9935), float3(0.1693, 0.0000, -1.0004), float3(0.1421, 0.0000, -1.0051), float3(0.1136, 0.0000, -1.0072), float3(0.0842, 0.0000, -1.0073), float3(0.0548, 0.0000, -1.0059), float3(0.0258, 0.0000, -1.0037), float3(-0.0027, 0.0000, -1.0003), float3(-0.0309, 0.0000, -0.9959), float3(-0.0584, 0.0000, -0.9904), float3(-0.0858, 0.0000, -0.9848), float3(-0.1127, 0.0000, -0.9783), float3(-0.1386, 0.0000, -0.9703), float3(-0.1649, 0.0000, -0.9604), float3(-0.1910, 0.0000, -0.9479), float3(-0.2165, 0.0000, -0.9345), float3(-0.2414, 0.0000, -0.9205), float3(-0.2654, 0.0000, -0.9055), float3(-0.2877, 0.0000, -0.8898), float3(-0.3076, 0.0000, -0.8723), float3(-0.3240, 0.0000, -0.8532), float3(-0.3367, 0.0000, -0.8316), float3(-0.3451, 0.0000, -0.8077), float3(-0.3505, 0.0000, -0.7829), float3(-0.3531, 0.0000, -0.7584), float3(-0.3528, 0.0000, -0.7349), float3(-0.3503, 0.0000, -0.7115), float3(-0.3460, 0.0000, -0.6880), float3(-0.3411, 0.0000, -0.6643), float3(-0.3361, 0.0000, -0.6403), float3(-0.3304, 0.0000, -0.6164), float3(-0.3244, 0.0000, -0.5925), float3(-0.3180, 0.0000, -0.5687), float3(-0.3124, 0.0000, -0.5441), float3(-0.3051, 0.0000, -0.5191), float3(-0.2959, 0.0000, -0.4917), float3(-0.2882, 0.0000, -0.4639), float3(-0.2814, 0.0000, -0.4363), float3(-0.2759, 0.0000, -0.4084), float3(-0.2707, 0.0000, -0.3827), float3(-0.2703, 0.0000, -0.3586), float3(-0.2772, 0.0000, -0.3375), float3(-0.2871, 0.0000, -0.3178), float3(-0.2995, 0.0000, -0.2996), float3(-0.3145, 0.0000, -0.2830), float3(-0.3320, 0.0000, -0.2672), float3(-0.3488, 0.0000, -0.2531), float3(-0.3639, 0.0000, -0.2407), float3(-0.3778, 0.0000, -0.2292), float3(-0.3909, 0.0000, -0.2191), float3(-0.4032, 0.0000, -0.2102), float3(-0.4146, 0.0000, -0.2027), float3(-0.4260, 0.0000, -0.1968), float3(-0.4348, 0.0000, -0.1931), float3(-0.4479, 0.0000, -0.1886), float3(0.5292, 0.0000, 0.1742), float3(0.5291, 0.0000, 0.1621), float3(0.5274, 0.0000, 0.1386), float3(0.5239, 0.0000, 0.1160), float3(0.5185, 0.0000, 0.0945), float3(0.5115, 0.0000, 0.0741), float3(0.5030, 0.0000, 0.0548), float3(0.4931, 0.0000, 0.0368), float3(0.4820, 0.0000, 0.0200), float3(0.4697, 0.0000, 0.0046), float3(0.4565, 0.0000, -0.0094), float3(0.4424, 0.0000, -0.0219), float3(0.4275, 0.0000, -0.0330), float3(0.4121, 0.0000, -0.0424), float3(0.3961, 0.0000, -0.0501), float3(0.3799, 0.0000, -0.0562), float3(0.3634, 0.0000, -0.0605), float3(0.3468, 0.0000, -0.0629), float3(0.3303, 0.0000, -0.0634), float3(0.3139, 0.0000, -0.0620), float3(0.2979, 0.0000, -0.0585), float3(0.2823, 0.0000, -0.0529), float3(0.2672, 0.0000, -0.0452), float3(0.2529, 0.0000, -0.0352), float3(0.2393, 0.0000, -0.0230), float3(0.2267, 0.0000, -0.0085), float3(0.2153, 0.0000, 0.0085), float3(0.2050, 0.0000, 0.0279), float3(0.1960, 0.0000, 0.0499), float3(0.1886, 0.0000, 0.0745), float3(0.1827, 0.0000, 0.1017), float3(0.1786, 0.0000, 0.1316), float3(0.1763, 0.0000, 0.1643), float3(-0.0844, 0.0000, -0.3010), float3(-0.0825, 0.0000, -0.3034), float3(-0.0751, 0.0000, -0.3128), float3(-0.0677, 0.0000, -0.3216), float3(-0.0600, 0.0000, -0.3298), float3(-0.0522, 0.0000, -0.3372), float3(-0.0440, 0.0000, -0.3437), float3(-0.0354, 0.0000, -0.3491), float3(-0.0264, 0.0000, -0.3535), float3(-0.0168, 0.0000, -0.3566), float3(-0.0065, 0.0000, -0.3583), float3(0.0045, 0.0000, -0.3585), float3(0.0163, 0.0000, -0.3571), float3(0.0290, 0.0000, -0.3540), float3(0.0427, 0.0000, -0.3491), float3(0.0574, 0.0000, -0.3421), float3(0.0732, 0.0000, -0.3331), float3(0.0816, 0.0000, -0.3278), float3(-0.6551, 0.0000, 0.4448), float3(-0.6353, 0.0000, 0.4689), float3(-0.6211, 0.0000, 0.4845), float3(-0.6033, 0.0000, 0.5034), float3(-0.5856, 0.0000, 0.5211), float3(-0.5672, 0.0000, 0.5387), float3(-0.5485, 0.0000, 0.5555), float3(-0.5295, 0.0000, 0.5718), float3(-0.5103, 0.0000, 0.5875), float3(-0.4909, 0.0000, 0.6028), float3(-0.4712, 0.0000, 0.6174), float3(-0.4512, 0.0000, 0.6313), float3(-0.4307, 0.0000, 0.6444), float3(-0.4099, 0.0000, 0.6568), float3(-0.3884, 0.0000, 0.6684), float3(-0.3665, 0.0000, 0.6793), float3(-0.3439, 0.0000, 0.6893), float3(-0.3207, 0.0000, 0.6984), float3(-0.2971, 0.0000, 0.7069), float3(-0.2731, 0.0000, 0.7148), float3(-0.2490, 0.0000, 0.7222), float3(-0.2247, 0.0000, 0.7292), float3(-0.2003, 0.0000, 0.7356), float3(-0.1759, 0.0000, 0.7416), float3(-0.1515, 0.0000, 0.7471), float3(-0.1272, 0.0000, 0.7518), float3(-0.1028, 0.0000, 0.7556), float3(-0.0785, 0.0000, 0.7586), float3(-0.0543, 0.0000, 0.7607), float3(-0.0302, 0.0000, 0.7621), float3(-0.0062, 0.0000, 0.7627), float3(0.0177, 0.0000, 0.7625), float3(0.0415, 0.0000, 0.7616), float3(0.0652, 0.0000, 0.7602), float3(0.0887, 0.0000, 0.7583), float3(0.1122, 0.0000, 0.7559), float3(0.1355, 0.0000, 0.7529), float3(0.1585, 0.0000, 0.7493), float3(0.1814, 0.0000, 0.7451), float3(0.2041, 0.0000, 0.7404), float3(0.2266, 0.0000, 0.7352), float3(0.2488, 0.0000, 0.7290), float3(0.2706, 0.0000, 0.7216), float3(0.2921, 0.0000, 0.7131), float3(0.3135, 0.0000, 0.7041), float3(0.3348, 0.0000, 0.6945), float3(0.3559, 0.0000, 0.6845), float3(0.3769, 0.0000, 0.6739), float3(0.3978, 0.0000, 0.6628), float3(0.4185, 0.0000, 0.6510), float3(0.4390, 0.0000, 0.6383), float3(0.4594, 0.0000, 0.6249), float3(0.4795, 0.0000, 0.6106), float3(0.4995, 0.0000, 0.5956), float3(0.5193, 0.0000, 0.5801), float3(0.5390, 0.0000, 0.5642), float3(0.5586, 0.0000, 0.5479), float3(0.5780, 0.0000, 0.5312), float3(0.5970, 0.0000, 0.5141), float3(0.6153, 0.0000, 0.4966), float3(0.6324, 0.0000, 0.4797), float3(0.6498, 0.0000, 0.4620), float3(0.6638, 0.0000, 0.4477), float3(0.6843, 0.0000, 0.4263), float3(-0.7765, 0.0000, 0.3255), float3(-0.7908, 0.0000, 0.3335), float3(-0.8048, 0.0000, 0.3402), float3(-0.8225, 0.0000, 0.3467), float3(-0.8426, 0.0000, 0.3529), float3(-0.8651, 0.0000, 0.3587), float3(-0.8878, 0.0000, 0.3633), float3(-0.9105, 0.0000, 0.3670), float3(-0.9323, 0.0000, 0.3693), float3(-0.9529, 0.0000, 0.3701), float3(-0.9720, 0.0000, 0.3695), float3(-0.9896, 0.0000, 0.3675), float3(-1.0057, 0.0000, 0.3640), float3(-1.0203, 0.0000, 0.3592), float3(-1.0333, 0.0000, 0.3528), float3(-1.0447, 0.0000, 0.3452), float3(-1.0546, 0.0000, 0.3362), float3(-1.0633, 0.0000, 0.3261), float3(-1.0708, 0.0000, 0.3150), float3(-1.0767, 0.0000, 0.3027), float3(-1.0818, 0.0000, 0.2894), float3(-1.0861, 0.0000, 0.2752), float3(-1.0897, 0.0000, 0.2604), float3(-1.0922, 0.0000, 0.2446), float3(-1.0938, 0.0000, 0.2277), float3(-1.0944, 0.0000, 0.2098), float3(-1.0939, 0.0000, 0.1910), float3(-1.0924, 0.0000, 0.1714), float3(-1.0897, 0.0000, 0.1511), float3(-1.0855, 0.0000, 0.1303), float3(-1.0798, 0.0000, 0.1095), float3(-1.0723, 0.0000, 0.0890), float3(-1.0642, 0.0000, 0.0702), float3(0.8135, 0.0000, 0.3341), float3(0.8191, 0.0000, 0.3376), float3(0.8246, 0.0000, 0.3408), float3(0.8304, 0.0000, 0.3438), float3(0.8368, 0.0000, 0.3465), float3(0.8430, 0.0000, 0.3491), float3(0.8494, 0.0000, 0.3515), float3(0.8558, 0.0000, 0.3536), float3(0.8623, 0.0000, 0.3557), float3(0.8688, 0.0000, 0.3575), float3(0.8752, 0.0000, 0.3593), float3(0.8813, 0.0000, 0.3609), float3(0.8872, 0.0000, 0.3625), float3(0.8929, 0.0000, 0.3640), float3(0.8984, 0.0000, 0.3653), float3(0.9039, 0.0000, 0.3665), float3(0.9093, 0.0000, 0.3675), float3(0.9146, 0.0000, 0.3684), float3(0.9199, 0.0000, 0.3692), float3(0.9253, 0.0000, 0.3698), float3(0.9305, 0.0000, 0.3703), float3(0.9358, 0.0000, 0.3706), float3(0.9410, 0.0000, 0.3709), float3(0.9462, 0.0000, 0.3710), float3(0.9514, 0.0000, 0.3710), float3(0.9566, 0.0000, 0.3708), float3(0.9617, 0.0000, 0.3706), float3(0.9668, 0.0000, 0.3702), float3(0.9718, 0.0000, 0.3697), float3(0.9768, 0.0000, 0.3692), float3(0.9818, 0.0000, 0.3685), float3(0.9867, 0.0000, 0.3677), float3(0.9916, 0.0000, 0.3667), float3(0.9964, 0.0000, 0.3657), float3(1.0012, 0.0000, 0.3646), float3(1.0060, 0.0000, 0.3634), float3(1.0107, 0.0000, 0.3621), float3(1.0154, 0.0000, 0.3607), float3(1.0200, 0.0000, 0.3593), float3(1.0245, 0.0000, 0.3577), float3(1.0290, 0.0000, 0.3561), float3(1.0335, 0.0000, 0.3543), float3(1.0379, 0.0000, 0.3525), float3(1.0422, 0.0000, 0.3507), float3(1.0465, 0.0000, 0.3487), float3(1.0507, 0.0000, 0.3468), float3(1.0549, 0.0000, 0.3447), float3(1.0591, 0.0000, 0.3427), float3(1.0633, 0.0000, 0.3404), float3(1.0675, 0.0000, 0.3380), float3(1.0717, 0.0000, 0.3351), float3(1.0761, 0.0000, 0.3318), float3(1.0805, 0.0000, 0.3279), float3(1.0849, 0.0000, 0.3235), float3(1.0893, 0.0000, 0.3186), float3(1.0936, 0.0000, 0.3134), float3(1.0979, 0.0000, 0.3076), float3(1.1020, 0.0000, 0.3017), float3(1.1060, 0.0000, 0.2953), float3(1.1097, 0.0000, 0.2890), float3(1.1132, 0.0000, 0.2826), float3(1.1164, 0.0000, 0.2766), float3(1.1193, 0.0000, 0.2708), float3(1.1221, 0.0000, 0.2652), float3(-0.2677, 0.0000, -0.3496), float3(-0.2658, 0.0000, -0.3919), float3(-0.2657, 0.0000, -0.4295), float3(-0.2691, 0.0000, -0.4621), float3(-0.2750, 0.0000, -0.4949), float3(-0.2828, 0.0000, -0.5270), float3(-0.2911, 0.0000, -0.5578), float3(-0.2971, 0.0000, -0.5884), float3(-0.3030, 0.0000, -0.6181), float3(-0.3089, 0.0000, -0.6467), float3(-0.3148, 0.0000, -0.6738), float3(-0.3196, 0.0000, -0.7000), float3(-0.3230, 0.0000, -0.7253), float3(-0.3234, 0.0000, -0.7496), float3(-0.3219, 0.0000, -0.7728), float3(-0.3184, 0.0000, -0.7949), float3(-0.3103, 0.0000, -0.8138), float3(-0.3004, 0.0000, -0.8307), float3(-0.2892, 0.0000, -0.8464), float3(-0.2766, 0.0000, -0.8611), float3(-0.2618, 0.0000, -0.8735), float3(-0.2469, 0.0000, -0.8853), float3(-0.2315, 0.0000, -0.8964), float3(-0.2158, 0.0000, -0.9068), float3(-0.1997, 0.0000, -0.9167), float3(-0.1833, 0.0000, -0.9262), float3(-0.1663, 0.0000, -0.9355), float3(-0.1481, 0.0000, -0.9445), float3(-0.1282, 0.0000, -0.9534), float3(-0.1077, 0.0000, -0.9625), float3(-0.0854, 0.0000, -0.9718), float3(-0.0616, 0.0000, -0.9813), float3(-0.0248, 0.0000, -0.9920), float3(-0.0618, 0.0000, -0.1922), float3(-0.0703, 0.0000, -0.2021), float3(-0.0758, 0.0000, -0.2103), float3(-0.0803, 0.0000, -0.2206), float3(-0.0830, 0.0000, -0.2307), float3(-0.0851, 0.0000, -0.2405), float3(-0.0865, 0.0000, -0.2499), float3(-0.0872, 0.0000, -0.2588), float3(-0.0869, 0.0000, -0.2673), float3(-0.0858, 0.0000, -0.2754), float3(-0.0831, 0.0000, -0.2829), float3(-0.0791, 0.0000, -0.2898), float3(-0.0740, 0.0000, -0.2966), float3(-0.0674, 0.0000, -0.3030), float3(-0.0591, 0.0000, -0.3084), float3(-0.0465, 0.0000, -0.3134), float3(-0.0331, 0.0000, -0.3165), float3(-0.0150, 0.0000, -0.3180), float3(0.5311, 0.0000, 0.1661), float3(0.5307, 0.0000, 0.1794), float3(0.5277, 0.0000, 0.2057), float3(0.5218, 0.0000, 0.2314), float3(0.5130, 0.0000, 0.2560), float3(0.5014, 0.0000, 0.2790), float3(0.4874, 0.0000, 0.3001), float3(0.4711, 0.0000, 0.3189), float3(0.4529, 0.0000, 0.3351), float3(0.4329, 0.0000, 0.3483), float3(0.4117, 0.0000, 0.3585), float3(0.3894, 0.0000, 0.3654), float3(0.3666, 0.0000, 0.3689), float3(0.3435, 0.0000, 0.3689), float3(0.3207, 0.0000, 0.3654), float3(0.2985, 0.0000, 0.3585), float3(0.2772, 0.0000, 0.3483), float3(0.2573, 0.0000, 0.3351), float3(0.2390, 0.0000, 0.3189), float3(0.2227, 0.0000, 0.3001), float3(0.2087, 0.0000, 0.2790), float3(0.1972, 0.0000, 0.2560), float3(0.1884, 0.0000, 0.2314), float3(0.1824, 0.0000, 0.2057), float3(0.1794, 0.0000, 0.1794), float3(0.1794, 0.0000, 0.1528), float3(0.1824, 0.0000, 0.1264), float3(0.1884, 0.0000, 0.1007), float3(0.1972, 0.0000, 0.0762), float3(0.2087, 0.0000, 0.0531), float3(0.2227, 0.0000, 0.0320), float3(0.2390, 0.0000, 0.0132), float3(0.2573, 0.0000, -0.0029), float3(0.2772, 0.0000, -0.0162), float3(0.2985, 0.0000, -0.0264), float3(0.3207, 0.0000, -0.0333), float3(0.3435, 0.0000, -0.0368), float3(0.3666, 0.0000, -0.0368), float3(0.3894, 0.0000, -0.0333), float3(0.4117, 0.0000, -0.0264), float3(0.4329, 0.0000, -0.0162), float3(0.4529, 0.0000, -0.0029), float3(0.4711, 0.0000, 0.0132), float3(0.4874, 0.0000, 0.0320), float3(0.5014, 0.0000, 0.0531), float3(0.5130, 0.0000, 0.0762), float3(0.5218, 0.0000, 0.1007), float3(0.5277, 0.0000, 0.1264), float3(0.5307, 0.0000, 0.1528), float3(-0.5271, 0.0000, 0.1742), float3(-0.5270, 0.0000, 0.1621), float3(-0.5253, 0.0000, 0.1386), float3(-0.5217, 0.0000, 0.1160), float3(-0.5164, 0.0000, 0.0945), float3(-0.5094, 0.0000, 0.0741), float3(-0.5009, 0.0000, 0.0548), float3(-0.4910, 0.0000, 0.0368), float3(-0.4799, 0.0000, 0.0200), float3(-0.4676, 0.0000, 0.0046), float3(-0.4544, 0.0000, -0.0094), float3(-0.4402, 0.0000, -0.0219), float3(-0.4254, 0.0000, -0.0330), float3(-0.4099, 0.0000, -0.0424), float3(-0.3940, 0.0000, -0.0501), float3(-0.3777, 0.0000, -0.0562), float3(-0.3612, 0.0000, -0.0605), float3(-0.3447, 0.0000, -0.0629), float3(-0.3281, 0.0000, -0.0634), float3(-0.3118, 0.0000, -0.0620), float3(-0.2957, 0.0000, -0.0585), float3(-0.2801, 0.0000, -0.0529), float3(-0.2651, 0.0000, -0.0452), float3(-0.2507, 0.0000, -0.0352), float3(-0.2372, 0.0000, -0.0230), float3(-0.2246, 0.0000, -0.0085), float3(-0.2131, 0.0000, 0.0085), float3(-0.2028, 0.0000, 0.0279), float3(-0.1939, 0.0000, 0.0499), float3(-0.1864, 0.0000, 0.0745), float3(-0.1806, 0.0000, 0.1017), float3(-0.1765, 0.0000, 0.1316), float3(-0.1742, 0.0000, 0.1643), float3(-0.1740, 0.0000, 0.1661), float3(-0.1744, 0.0000, 0.1794), float3(-0.1774, 0.0000, 0.2057), float3(-0.1833, 0.0000, 0.2314), float3(-0.1922, 0.0000, 0.2560), float3(-0.2037, 0.0000, 0.2790), float3(-0.2177, 0.0000, 0.3001), float3(-0.2340, 0.0000, 0.3189), float3(-0.2522, 0.0000, 0.3351), float3(-0.2722, 0.0000, 0.3483), float3(-0.2935, 0.0000, 0.3585), float3(-0.3157, 0.0000, 0.3654), float3(-0.3385, 0.0000, 0.3689), float3(-0.3616, 0.0000, 0.3689), float3(-0.3844, 0.0000, 0.3654), float3(-0.4066, 0.0000, 0.3585), float3(-0.4279, 0.0000, 0.3483), float3(-0.4479, 0.0000, 0.3351), float3(-0.4661, 0.0000, 0.3189), float3(-0.4824, 0.0000, 0.3001), float3(-0.4964, 0.0000, 0.2790), float3(-0.5080, 0.0000, 0.2560), float3(-0.5168, 0.0000, 0.2314), float3(-0.5227, 0.0000, 0.2057), float3(-0.5257, 0.0000, 0.1794), float3(-0.5257, 0.0000, 0.1528), float3(-0.5227, 0.0000, 0.1264), float3(-0.5168, 0.0000, 0.1007), float3(-0.5080, 0.0000, 0.0762), float3(-0.4964, 0.0000, 0.0531), float3(-0.4824, 0.0000, 0.0320), float3(-0.4661, 0.0000, 0.0132), float3(-0.4479, 0.0000, -0.0029), float3(-0.4279, 0.0000, -0.0162), float3(-0.4066, 0.0000, -0.0264), float3(-0.3844, 0.0000, -0.0333), float3(-0.3616, 0.0000, -0.0368), float3(-0.3385, 0.0000, -0.0368), float3(-0.3157, 0.0000, -0.0333), float3(-0.2935, 0.0000, -0.0264), float3(-0.2722, 0.0000, -0.0162), float3(-0.2522, 0.0000, -0.0029), float3(-0.2340, 0.0000, 0.0132), float3(-0.2177, 0.0000, 0.0320), float3(-0.2037, 0.0000, 0.0531), float3(-0.1922, 0.0000, 0.0762), float3(-0.1833, 0.0000, 0.1007), float3(-0.1774, 0.0000, 0.1264), float3(-0.1744, 0.0000, 0.1528), float3(0.9630, 0.0000, 0.1753), float3(0.9555, 0.0000, 0.1761), float3(0.9367, 0.0000, 0.1758), float3(0.9202, 0.0000, 0.1741), float3(0.9036, 0.0000, 0.1714), float3(0.8885, 0.0000, 0.1668), float3(0.8746, 0.0000, 0.1607), float3(0.8621, 0.0000, 0.1531), float3(0.8503, 0.0000, 0.1447), float3(0.8389, 0.0000, 0.1352), float3(0.8279, 0.0000, 0.1244), float3(0.8174, 0.0000, 0.1125), float3(0.8079, 0.0000, 0.0990), float3(0.7999, 0.0000, 0.0839), float3(0.7935, 0.0000, 0.0669), float3(0.7892, 0.0000, 0.0488), float3(0.7870, 0.0000, 0.0305), float3(0.7847, 0.0000, 0.0139), float3(-1.0227, 0.0000, 0.1753), float3(-1.0153, 0.0000, 0.1761), float3(-0.9964, 0.0000, 0.1758), float3(-0.9799, 0.0000, 0.1741), float3(-0.9634, 0.0000, 0.1714), float3(-0.9483, 0.0000, 0.1668), float3(-0.9344, 0.0000, 0.1607), float3(-0.9219, 0.0000, 0.1531), float3(-0.9101, 0.0000, 0.1447), float3(-0.8986, 0.0000, 0.1352), float3(-0.8876, 0.0000, 0.1244), float3(-0.8772, 0.0000, 0.1125), float3(-0.8677, 0.0000, 0.0990), float3(-0.8597, 0.0000, 0.0839), float3(-0.8533, 0.0000, 0.0669), float3(-0.8490, 0.0000, 0.0488), float3(-0.8467, 0.0000, 0.0305), float3(-0.8444, 0.0000, 0.0139), }) |
| static constexpr std::array< float, 700 > | monkey_fill_opacities ({ 0.3620, 0.4070, 0.4390, 0.4580, 0.5000, 0.5160, 0.5190, 0.5300, 0.5330, 0.5340, 0.5350, 0.5350, 0.5370, 0.5370, 0.5370, 0.5350, 0.5340, 0.5340, 0.5340, 0.5340, 0.5320, 0.5310, 0.5310, 0.5320, 0.5350, 0.5400, 0.5420, 0.5430, 0.5430, 0.5460, 0.5490, 0.5490, 0.5490, 0.5490, 0.5510, 0.5530, 0.5540, 0.5540, 0.5550, 0.5560, 0.5570, 0.5570, 0.5570, 0.5570, 0.5570, 0.5580, 0.5590, 0.5590, 0.5590, 0.5480, 0.5460, 0.5470, 0.5470, 0.5480, 0.5480, 0.5490, 0.5480, 0.5490, 0.5490, 0.5580, 0.5870, 0.5950, 0.5980, 0.6030, 0.6060, 0.6070, 0.6070, 0.6110, 0.6150, 0.6210, 0.6230, 0.6260, 0.6300, 0.6320, 0.6440, 0.6570, 0.6610, 0.6640, 0.6680, 0.6710, 0.6740, 0.6780, 0.6800, 0.6800, 0.6800, 0.6810, 0.6810, 0.6830, 0.6830, 0.6850, 0.6860, 0.6940, 0.6970, 0.7000, 0.7040, 0.7100, 0.7110, 0.7130, 0.7140, 0.7140, 0.7150, 0.7160, 0.7160, 0.7170, 0.7170, 0.7180, 0.7180, 0.7180, 0.7190, 0.7190, 0.7190, 0.7190, 0.7170, 0.7170, 0.7170, 0.7180, 0.7190, 0.7190, 0.7090, 0.7040, 0.7050, 0.7130, 0.8130, 0.8150, 0.8150, 0.8160, 0.8160, 0.8160, 0.8170, 0.8170, 0.8150, 0.8070, 0.8010, 0.8000, 0.7810, 0.7800, 0.7780, 0.7770, 0.7770, 0.7770, 0.7780, 0.7760, 0.7760, 0.7740, 0.7720, 0.7730, 0.7730, 0.7720, 0.7720, 0.7660, 0.7650, 0.7650, 0.7660, 0.7650, 0.7650, 0.7610, 0.7510, 0.7440, 0.7380, 0.7310, 0.7270, 0.7230, 0.7170, 0.7080, 0.7060, 0.7050, 0.7040, 0.6980, 0.6910, 0.6850, 0.6830, 0.6760, 0.6700, 0.6630, 0.6600, 0.6590, 0.6590, 0.6570, 0.6590, 0.6590, 0.6590, 0.6570, 0.6580, 0.6570, 0.6560, 0.6420, 0.6090, 0.6080, 0.6070, 0.6060, 0.6040, 0.6060, 0.6070, 0.6070, 0.6070, 0.6060, 0.6020, 0.5850, 0.5760, 0.5640, 0.5490, 0.5430, 0.5410, 0.5380, 0.5280, 0.5280, 0.5290, 0.5280, 0.5150, 0.5140, 0.5070, 0.4940, 0.4900, 0.4910, 0.4890, 0.4910, 0.4920, 0.4920, 0.4920, 0.4920, 0.4940, 0.4940, 0.4930, 0.4920, 0.4920, 0.4910, 0.4900, 0.4900, 0.4890, 0.4890, 0.4900, 0.4890, 0.4890, 0.4900, 0.4890, 0.4890, 0.4890, 0.4880, 0.4900, 0.4970, 0.5040, 0.5100, 0.5150, 0.5220, 0.5280, 0.5320, 0.5350, 0.5400, 0.5450, 0.5490, 0.5490, 0.5520, 0.5520, 0.5530, 0.5530, 0.5530, 0.5540, 0.5550, 0.5550, 0.5570, 0.5570, 0.5580, 0.5580, 0.5580, 0.5590, 0.5580, 0.5590, 0.5580, 0.5580, 0.5590, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, }) |
| static constexpr std::array< float, 700 > | monkey_fill_radii ({ 0.01001, 0.01163, 0.01425, 0.01624, 0.01766, 0.01860, 0.01916, 0.01954, 0.01976, 0.01991, 0.02002, 0.02006, 0.02010, 0.02010, 0.02010, 0.02006, 0.02002, 0.02002, 0.01999, 0.01999, 0.01995, 0.01991, 0.01991, 0.01995, 0.02006, 0.02025, 0.02033, 0.02036, 0.02036, 0.02048, 0.02059, 0.02059, 0.02059, 0.02059, 0.02066, 0.02074, 0.02078, 0.02078, 0.02081, 0.02085, 0.02089, 0.02089, 0.02089, 0.02089, 0.02093, 0.02093, 0.02089, 0.02085, 0.02078, 0.02070, 0.02066, 0.02063, 0.02059, 0.02059, 0.02059, 0.02063, 0.02070, 0.02085, 0.02111, 0.02145, 0.02183, 0.02216, 0.02239, 0.02258, 0.02269, 0.02276, 0.02284, 0.02295, 0.02310, 0.02321, 0.02336, 0.02348, 0.02363, 0.02389, 0.02423, 0.02452, 0.02471, 0.02490, 0.02501, 0.02516, 0.02528, 0.02539, 0.02543, 0.02550, 0.02550, 0.02554, 0.02558, 0.02561, 0.02569, 0.02576, 0.02588, 0.02599, 0.02614, 0.02625, 0.02640, 0.02651, 0.02659, 0.02666, 0.02670, 0.02678, 0.02681, 0.02681, 0.02685, 0.02689, 0.02693, 0.02693, 0.02693, 0.02696, 0.02696, 0.02696, 0.02696, 0.02696, 0.02693, 0.02689, 0.02689, 0.02693, 0.02689, 0.02681, 0.02674, 0.02693, 0.02745, 0.02824, 0.02903, 0.02966, 0.03008, 0.03034, 0.03045, 0.03053, 0.03053, 0.03045, 0.03038, 0.03023, 0.03000, 0.02978, 0.02955, 0.02936, 0.02929, 0.02921, 0.02918, 0.02914, 0.02914, 0.02910, 0.02906, 0.02903, 0.02903, 0.02899, 0.02895, 0.02891, 0.02888, 0.02880, 0.02876, 0.02873, 0.02869, 0.02865, 0.02854, 0.02835, 0.02816, 0.02794, 0.02771, 0.02749, 0.02730, 0.02711, 0.02693, 0.02674, 0.02659, 0.02640, 0.02625, 0.02606, 0.02591, 0.02573, 0.02554, 0.02535, 0.02516, 0.02498, 0.02486, 0.02479, 0.02475, 0.02471, 0.02468, 0.02468, 0.02468, 0.02464, 0.02460, 0.02449, 0.02423, 0.02389, 0.02355, 0.02325, 0.02303, 0.02288, 0.02280, 0.02276, 0.02273, 0.02269, 0.02261, 0.02242, 0.02216, 0.02186, 0.02153, 0.02115, 0.02081, 0.02051, 0.02029, 0.02010, 0.01995, 0.01984, 0.01969, 0.01954, 0.01935, 0.01912, 0.01894, 0.01871, 0.01856, 0.01849, 0.01841, 0.01841, 0.01841, 0.01845, 0.01845, 0.01845, 0.01849, 0.01849, 0.01849, 0.01845, 0.01841, 0.01841, 0.01838, 0.01838, 0.01834, 0.01834, 0.01834, 0.01834, 0.01834, 0.01838, 0.01838, 0.01841, 0.01845, 0.01853, 0.01864, 0.01879, 0.01894, 0.01912, 0.01931, 0.01950, 0.01969, 0.01987, 0.02006, 0.02021, 0.02033, 0.02048, 0.02055, 0.02063, 0.02066, 0.02070, 0.02074, 0.02078, 0.02078, 0.02081, 0.02085, 0.02085, 0.02089, 0.02093, 0.02093, 0.02093, 0.02096, 0.02096, 0.02096, 0.02093, 0.02093, 0.02081, 0.00300, 0.00660, 0.01384, 0.01806, 0.02094, 0.02307, 0.02471, 0.02598, 0.02701, 0.02782, 0.02845, 0.02896, 0.02934, 0.02963, 0.02983, 0.02995, 0.02999, 0.02997, 0.02989, 0.02974, 0.02950, 0.02917, 0.02873, 0.02815, 0.02743, 0.02652, 0.02538, 0.02394, 0.02208, 0.01962, 0.01619, 0.01080, 0.00300, 0.00300, 0.00660, 0.01806, 0.02307, 0.02598, 0.02782, 0.02896, 0.02963, 0.02995, 0.02997, 0.02974, 0.02917, 0.02815, 0.02652, 0.02394, 0.01962, 0.01080, 0.00300, 0.00300, 0.00660, 0.01080, 0.01384, 0.01619, 0.01806, 0.01962, 0.02094, 0.02208, 0.02307, 0.02394, 0.02471, 0.02538, 0.02598, 0.02652, 0.02701, 0.02743, 0.02782, 0.02815, 0.02845, 0.02873, 0.02896, 0.02917, 0.02934, 0.02950, 0.02963, 0.02974, 0.02983, 0.02989, 0.02995, 0.02997, 0.02999, 0.02999, 0.02997, 0.02995, 0.02989, 0.02983, 0.02974, 0.02963, 0.02950, 0.02934, 0.02917, 0.02896, 0.02873, 0.02845, 0.02815, 0.02782, 0.02743, 0.02701, 0.02652, 0.02598, 0.02538, 0.02471, 0.02394, 0.02307, 0.02208, 0.02094, 0.01962, 0.01806, 0.01619, 0.01384, 0.01080, 0.00660, 0.00300, 0.00300, 0.00660, 0.01384, 0.01806, 0.02094, 0.02307, 0.02471, 0.02598, 0.02701, 0.02782, 0.02845, 0.02896, 0.02934, 0.02963, 0.02983, 0.02995, 0.02999, 0.02997, 0.02989, 0.02974, 0.02950, 0.02917, 0.02873, 0.02815, 0.02743, 0.02652, 0.02538, 0.02394, 0.02208, 0.01962, 0.01619, 0.01080, 0.00300, 0.00300, 0.00660, 0.01080, 0.01384, 0.01619, 0.01806, 0.01962, 0.02094, 0.02208, 0.02307, 0.02394, 0.02471, 0.02538, 0.02598, 0.02652, 0.02701, 0.02743, 0.02782, 0.02815, 0.02845, 0.02873, 0.02896, 0.02917, 0.02934, 0.02950, 0.02963, 0.02974, 0.02983, 0.02989, 0.02995, 0.02997, 0.02999, 0.02999, 0.02997, 0.02995, 0.02989, 0.02983, 0.02974, 0.02963, 0.02950, 0.02934, 0.02917, 0.02896, 0.02873, 0.02845, 0.02815, 0.02782, 0.02743, 0.02701, 0.02652, 0.02598, 0.02538, 0.02471, 0.02394, 0.02307, 0.02208, 0.02094, 0.01962, 0.01806, 0.01619, 0.01384, 0.01080, 0.00660, 0.00300, 0.00300, 0.00660, 0.01384, 0.01806, 0.02094, 0.02307, 0.02471, 0.02598, 0.02701, 0.02782, 0.02845, 0.02896, 0.02934, 0.02963, 0.02983, 0.02995, 0.02999, 0.02997, 0.02989, 0.02974, 0.02950, 0.02917, 0.02873, 0.02815, 0.02743, 0.02652, 0.02538, 0.02394, 0.02208, 0.01962, 0.01619, 0.01080, 0.00300, 0.00200, 0.00440, 0.01204, 0.01538, 0.01732, 0.01854, 0.01931, 0.01975, 0.01997, 0.01998, 0.01982, 0.01945, 0.01877, 0.01768, 0.01596, 0.01308, 0.00720, 0.00200, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.00300, 0.00660, 0.01384, 0.01806, 0.02094, 0.02307, 0.02471, 0.02598, 0.02701, 0.02782, 0.02845, 0.02896, 0.02934, 0.02963, 0.02983, 0.02995, 0.02999, 0.02997, 0.02989, 0.02974, 0.02950, 0.02917, 0.02873, 0.02815, 0.02743, 0.02652, 0.02538, 0.02394, 0.02208, 0.01962, 0.01619, 0.01080, 0.00300, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.00200, 0.00440, 0.01204, 0.01538, 0.01732, 0.01854, 0.01931, 0.01975, 0.01997, 0.01998, 0.01982, 0.01945, 0.01877, 0.01768, 0.01596, 0.01308, 0.00720, 0.00200, 0.00200, 0.00440, 0.01204, 0.01538, 0.01732, 0.01854, 0.01931, 0.01975, 0.01997, 0.01998, 0.01982, 0.01945, 0.01877, 0.01768, 0.01596, 0.01308, 0.00720, 0.00200, }) |
| static constexpr std::array< int, 14 > | monkey_fill_offsets ({ 0, 270, 303, 321, 385, 418, 482, 515, 533, 582, 615, 664, 682, 700, }) |
| static std::array< float3, 516 > | monkey_line_positions ({ float3(-0.6794, 0.0000, 0.3908), float3(-0.6711, 0.0000, 0.4112), float3(-0.6513, 0.0000, 0.4509), float3(-0.6276, 0.0000, 0.4890), float3(-0.6001, 0.0000, 0.5253), float3(-0.5692, 0.0000, 0.5598), float3(-0.5350, 0.0000, 0.5924), float3(-0.4979, 0.0000, 0.6228), float3(-0.4579, 0.0000, 0.6510), float3(-0.4155, 0.0000, 0.6770), float3(-0.3707, 0.0000, 0.7005), float3(-0.3239, 0.0000, 0.7215), float3(-0.2753, 0.0000, 0.7399), float3(-0.2251, 0.0000, 0.7555), float3(-0.1736, 0.0000, 0.7683), float3(-0.1210, 0.0000, 0.7780), float3(-0.0675, 0.0000, 0.7847), float3(-0.0134, 0.0000, 0.7882), float3(0.0411, 0.0000, 0.7884), float3(0.0957, 0.0000, 0.7851), float3(0.1503, 0.0000, 0.7783), float3(0.2045, 0.0000, 0.7678), float3(0.2581, 0.0000, 0.7536), float3(0.3110, 0.0000, 0.7355), float3(0.3628, 0.0000, 0.7134), float3(0.4133, 0.0000, 0.6873), float3(0.4622, 0.0000, 0.6569), float3(0.5095, 0.0000, 0.6221), float3(0.5547, 0.0000, 0.5830), float3(0.5977, 0.0000, 0.5393), float3(0.6382, 0.0000, 0.4909), float3(0.6760, 0.0000, 0.4377), float3(0.7109, 0.0000, 0.3797), float3(-0.7544, 0.0000, 0.1799), float3(-0.7495, 0.0000, 0.1620), float3(-0.7392, 0.0000, 0.1283), float3(-0.7281, 0.0000, 0.0975), float3(-0.7161, 0.0000, 0.0693), float3(-0.7033, 0.0000, 0.0435), float3(-0.6898, 0.0000, 0.0200), float3(-0.6757, 0.0000, -0.0014), float3(-0.6609, 0.0000, -0.0208), float3(-0.6455, 0.0000, -0.0386), float3(-0.6297, 0.0000, -0.0547), float3(-0.6133, 0.0000, -0.0695), float3(-0.5966, 0.0000, -0.0830), float3(-0.5795, 0.0000, -0.0955), float3(-0.5621, 0.0000, -0.1071), float3(-0.5444, 0.0000, -0.1180), float3(-0.5265, 0.0000, -0.1284), float3(-0.5084, 0.0000, -0.1384), float3(-0.4902, 0.0000, -0.1483), float3(-0.4719, 0.0000, -0.1582), float3(-0.4537, 0.0000, -0.1682), float3(-0.4355, 0.0000, -0.1787), float3(-0.4173, 0.0000, -0.1896), float3(-0.3993, 0.0000, -0.2013), float3(-0.3815, 0.0000, -0.2138), float3(-0.3640, 0.0000, -0.2274), float3(-0.3467, 0.0000, -0.2422), float3(-0.3298, 0.0000, -0.2584), float3(-0.3133, 0.0000, -0.2762), float3(-0.2972, 0.0000, -0.2958), float3(-0.2816, 0.0000, -0.3173), float3(-0.2665, 0.0000, -0.3409), float3(-0.2521, 0.0000, -0.3668), float3(-0.2854, 0.0000, -0.4528), float3(-0.2866, 0.0000, -0.4623), float3(-0.2899, 0.0000, -0.4814), float3(-0.2943, 0.0000, -0.5008), float3(-0.2995, 0.0000, -0.5203), float3(-0.3054, 0.0000, -0.5400), float3(-0.3117, 0.0000, -0.5598), float3(-0.3182, 0.0000, -0.5797), float3(-0.3249, 0.0000, -0.5996), float3(-0.3314, 0.0000, -0.6196), float3(-0.3376, 0.0000, -0.6395), float3(-0.3432, 0.0000, -0.6594), float3(-0.3482, 0.0000, -0.6792), float3(-0.3523, 0.0000, -0.6989), float3(-0.3552, 0.0000, -0.7185), float3(-0.3569, 0.0000, -0.7379), float3(-0.3570, 0.0000, -0.7571), float3(-0.3555, 0.0000, -0.7761), float3(-0.3522, 0.0000, -0.7948), float3(-0.3467, 0.0000, -0.8132), float3(-0.3390, 0.0000, -0.8313), float3(-0.3289, 0.0000, -0.8490), float3(-0.3160, 0.0000, -0.8663), float3(-0.3004, 0.0000, -0.8831), float3(-0.2817, 0.0000, -0.8996), float3(-0.2598, 0.0000, -0.9155), float3(-0.2344, 0.0000, -0.9309), float3(-0.2051, 0.0000, -0.9457), float3(-0.1716, 0.0000, -0.9599), float3(-0.1341, 0.0000, -0.9733), float3(-0.0928, 0.0000, -0.9857), float3(-0.0500, 0.0000, -0.9962), float3(-0.0087, 0.0000, -1.0041), float3(0.0287, 0.0000, -1.0087), float3(0.0620, 0.0000, -1.0104), float3(0.0924, 0.0000, -1.0102), float3(0.1205, 0.0000, -1.0086), float3(0.1465, 0.0000, -1.0057), float3(0.1706, 0.0000, -1.0017), float3(0.1928, 0.0000, -0.9964), float3(0.2132, 0.0000, -0.9900), float3(0.2318, 0.0000, -0.9824), float3(0.2487, 0.0000, -0.9738), float3(0.2641, 0.0000, -0.9641), float3(0.2778, 0.0000, -0.9533), float3(0.2901, 0.0000, -0.9415), float3(0.3009, 0.0000, -0.9287), float3(0.3103, 0.0000, -0.9148), float3(0.3183, 0.0000, -0.8999), float3(0.3250, 0.0000, -0.8841), float3(0.3304, 0.0000, -0.8672), float3(0.3345, 0.0000, -0.8493), float3(0.3374, 0.0000, -0.8305), float3(0.3391, 0.0000, -0.8107), float3(0.3397, 0.0000, -0.7899), float3(0.3392, 0.0000, -0.7682), float3(0.3377, 0.0000, -0.7456), float3(0.3352, 0.0000, -0.7221), float3(0.3317, 0.0000, -0.6976), float3(0.3273, 0.0000, -0.6722), float3(0.3220, 0.0000, -0.6460), float3(0.3160, 0.0000, -0.6188), float3(0.3091, 0.0000, -0.5908), float3(0.3015, 0.0000, -0.5619), float3(0.2974, 0.0000, -0.5472), float3(-0.4408, 0.0000, 0.5073), float3(-0.4312, 0.0000, 0.5132), float3(-0.3945, 0.0000, 0.5319), float3(-0.3605, 0.0000, 0.5438), float3(-0.3288, 0.0000, 0.5496), float3(-0.2992, 0.0000, 0.5501), float3(-0.2712, 0.0000, 0.5460), float3(-0.2446, 0.0000, 0.5381), float3(-0.2191, 0.0000, 0.5272), float3(-0.1943, 0.0000, 0.5139), float3(-0.1699, 0.0000, 0.4992), float3(-0.1456, 0.0000, 0.4837), float3(-0.1211, 0.0000, 0.4682), float3(-0.0960, 0.0000, 0.4535), float3(-0.0700, 0.0000, 0.4404), float3(-0.0428, 0.0000, 0.4301), float3(-0.0160, 0.0000, 0.4235), float3(0.0076, 0.0000, 0.4216), float3(0.0283, 0.0000, 0.4237), float3(0.0477, 0.0000, 0.4291), float3(0.0670, 0.0000, 0.4369), float3(0.0866, 0.0000, 0.4465), float3(0.1068, 0.0000, 0.4576), float3(0.1278, 0.0000, 0.4695), float3(0.1498, 0.0000, 0.4819), float3(0.1730, 0.0000, 0.4941), float3(0.1977, 0.0000, 0.5056), float3(0.2241, 0.0000, 0.5159), float3(0.2523, 0.0000, 0.5244), float3(0.2825, 0.0000, 0.5307), float3(0.3150, 0.0000, 0.5342), float3(0.3499, 0.0000, 0.5345), float3(0.3875, 0.0000, 0.5311), float3(0.3973, 0.0000, 0.5295), float3(0.7240, 0.0000, 0.1799), float3(0.7192, 0.0000, 0.1620), float3(0.7089, 0.0000, 0.1283), float3(0.6977, 0.0000, 0.0975), float3(0.6858, 0.0000, 0.0693), float3(0.6730, 0.0000, 0.0435), float3(0.6595, 0.0000, 0.0200), float3(0.6453, 0.0000, -0.0014), float3(0.6306, 0.0000, -0.0208), float3(0.6152, 0.0000, -0.0386), float3(0.5994, 0.0000, -0.0547), float3(0.5830, 0.0000, -0.0695), float3(0.5663, 0.0000, -0.0830), float3(0.5492, 0.0000, -0.0955), float3(0.5317, 0.0000, -0.1071), float3(0.5140, 0.0000, -0.1180), float3(0.4961, 0.0000, -0.1284), float3(0.4781, 0.0000, -0.1384), float3(0.4599, 0.0000, -0.1483), float3(0.4416, 0.0000, -0.1582), float3(0.4234, 0.0000, -0.1682), float3(0.4051, 0.0000, -0.1787), float3(0.3870, 0.0000, -0.1896), float3(0.3690, 0.0000, -0.2013), float3(0.3512, 0.0000, -0.2138), float3(0.3337, 0.0000, -0.2274), float3(0.3164, 0.0000, -0.2422), float3(0.2995, 0.0000, -0.2584), float3(0.2829, 0.0000, -0.2762), float3(0.2669, 0.0000, -0.2958), float3(0.2513, 0.0000, -0.3173), float3(0.2362, 0.0000, -0.3409), float3(0.2218, 0.0000, -0.3668), float3(-0.1119, 0.0000, -0.7868), float3(-0.1087, 0.0000, -0.7905), float3(-0.1022, 0.0000, -0.7974), float3(-0.0955, 0.0000, -0.8038), float3(-0.0886, 0.0000, -0.8097), float3(-0.0816, 0.0000, -0.8152), float3(-0.0744, 0.0000, -0.8201), float3(-0.0671, 0.0000, -0.8246), float3(-0.0597, 0.0000, -0.8286), float3(-0.0522, 0.0000, -0.8321), float3(-0.0446, 0.0000, -0.8351), float3(-0.0369, 0.0000, -0.8376), float3(-0.0292, 0.0000, -0.8397), float3(-0.0214, 0.0000, -0.8413), float3(-0.0136, 0.0000, -0.8424), float3(-0.0057, 0.0000, -0.8430), float3(0.0022, 0.0000, -0.8431), float3(0.0100, 0.0000, -0.8428), float3(0.0178, 0.0000, -0.8419), float3(0.0257, 0.0000, -0.8407), float3(0.0334, 0.0000, -0.8389), float3(0.0411, 0.0000, -0.8366), float3(0.0488, 0.0000, -0.8339), float3(0.0564, 0.0000, -0.8308), float3(0.0638, 0.0000, -0.8271), float3(0.0712, 0.0000, -0.8230), float3(0.0785, 0.0000, -0.8184), float3(0.0856, 0.0000, -0.8134), float3(0.0925, 0.0000, -0.8079), float3(0.0994, 0.0000, -0.8019), float3(0.1060, 0.0000, -0.7954), float3(0.1125, 0.0000, -0.7885), float3(0.1187, 0.0000, -0.7812), float3(-0.1119, 0.0000, -0.2655), float3(-0.1101, 0.0000, -0.2605), float3(-0.1032, 0.0000, -0.2424), float3(-0.0965, 0.0000, -0.2276), float3(-0.0901, 0.0000, -0.2158), float3(-0.0837, 0.0000, -0.2069), float3(-0.0775, 0.0000, -0.2006), float3(-0.0712, 0.0000, -0.1967), float3(-0.0650, 0.0000, -0.1949), float3(-0.0587, 0.0000, -0.1950), float3(-0.0522, 0.0000, -0.1968), float3(-0.0455, 0.0000, -0.2001), float3(-0.0386, 0.0000, -0.2046), float3(-0.0315, 0.0000, -0.2100), float3(-0.0239, 0.0000, -0.2163), float3(-0.0160, 0.0000, -0.2230), float3(-0.0075, 0.0000, -0.2301), float3(-0.0002, 0.0000, -0.2342), float3(0.0054, 0.0000, -0.2340), float3(0.0106, 0.0000, -0.2324), float3(0.0155, 0.0000, -0.2297), float3(0.0202, 0.0000, -0.2261), float3(0.0249, 0.0000, -0.2219), float3(0.0296, 0.0000, -0.2174), float3(0.0344, 0.0000, -0.2128), float3(0.0394, 0.0000, -0.2084), float3(0.0448, 0.0000, -0.2044), float3(0.0506, 0.0000, -0.2012), float3(0.0570, 0.0000, -0.1988), float3(0.0640, 0.0000, -0.1977), float3(0.0717, 0.0000, -0.1980), float3(0.0804, 0.0000, -0.2001), float3(0.0899, 0.0000, -0.2042), float3(0.0925, 0.0000, -0.2055), float3(0.7993, 0.0000, 0.3242), float3(0.8169, 0.0000, 0.3354), float3(0.8512, 0.0000, 0.3542), float3(0.8840, 0.0000, 0.3686), float3(0.9153, 0.0000, 0.3787), float3(0.9450, 0.0000, 0.3848), float3(0.9729, 0.0000, 0.3871), float3(0.9989, 0.0000, 0.3857), float3(1.0229, 0.0000, 0.3811), float3(1.0447, 0.0000, 0.3732), float3(1.0643, 0.0000, 0.3624), float3(1.0814, 0.0000, 0.3490), float3(1.0960, 0.0000, 0.3330), float3(1.1080, 0.0000, 0.3147), float3(1.1172, 0.0000, 0.2944), float3(1.1235, 0.0000, 0.2723), float3(1.1267, 0.0000, 0.2485), float3(1.1269, 0.0000, 0.2233), float3(1.1237, 0.0000, 0.1970), float3(1.1172, 0.0000, 0.1697), float3(1.1071, 0.0000, 0.1417), float3(1.0934, 0.0000, 0.1131), float3(1.0759, 0.0000, 0.0842), float3(1.0545, 0.0000, 0.0553), float3(1.0291, 0.0000, 0.0265), float3(0.9995, 0.0000, -0.0019), float3(0.9657, 0.0000, -0.0298), float3(0.9275, 0.0000, -0.0569), float3(0.8847, 0.0000, -0.0829), float3(0.8373, 0.0000, -0.1077), float3(0.7852, 0.0000, -0.1311), float3(0.7281, 0.0000, -0.1528), float3(0.6661, 0.0000, -0.1725), float3(-0.7428, 0.0000, 0.2977), float3(-0.7608, 0.0000, 0.3138), float3(-0.7786, 0.0000, 0.3284), float3(-0.7962, 0.0000, 0.3414), float3(-0.8135, 0.0000, 0.3531), float3(-0.8306, 0.0000, 0.3633), float3(-0.8473, 0.0000, 0.3722), float3(-0.8637, 0.0000, 0.3798), float3(-0.8798, 0.0000, 0.3860), float3(-0.8956, 0.0000, 0.3911), float3(-0.9109, 0.0000, 0.3949), float3(-0.9259, 0.0000, 0.3975), float3(-0.9405, 0.0000, 0.3989), float3(-0.9546, 0.0000, 0.3993), float3(-0.9682, 0.0000, 0.3986), float3(-0.9814, 0.0000, 0.3969), float3(-0.9940, 0.0000, 0.3941), float3(-1.0062, 0.0000, 0.3904), float3(-1.0178, 0.0000, 0.3858), float3(-1.0288, 0.0000, 0.3803), float3(-1.0393, 0.0000, 0.3739), float3(-1.0492, 0.0000, 0.3668), float3(-1.0584, 0.0000, 0.3588), float3(-1.0670, 0.0000, 0.3501), float3(-1.0750, 0.0000, 0.3407), float3(-1.0822, 0.0000, 0.3307), float3(-1.0888, 0.0000, 0.3200), float3(-1.0946, 0.0000, 0.3087), float3(-1.0997, 0.0000, 0.2969), float3(-1.1040, 0.0000, 0.2845), float3(-1.1075, 0.0000, 0.2717), float3(-1.1103, 0.0000, 0.2584), float3(-1.1122, 0.0000, 0.2447), float3(-1.1132, 0.0000, 0.2306), float3(-1.1134, 0.0000, 0.2162), float3(-1.1128, 0.0000, 0.2015), float3(-1.1112, 0.0000, 0.1865), float3(-1.1086, 0.0000, 0.1713), float3(-1.1052, 0.0000, 0.1559), float3(-1.1007, 0.0000, 0.1404), float3(-1.0953, 0.0000, 0.1247), float3(-1.0889, 0.0000, 0.1090), float3(-1.0814, 0.0000, 0.0932), float3(-1.0729, 0.0000, 0.0774), float3(-1.0633, 0.0000, 0.0617), float3(-1.0527, 0.0000, 0.0460), float3(-1.0409, 0.0000, 0.0304), float3(-1.0280, 0.0000, 0.0150), float3(-1.0139, 0.0000, -0.0003), float3(-0.9987, 0.0000, -0.0154), float3(-0.9823, 0.0000, -0.0302), float3(-0.9646, 0.0000, -0.0447), float3(-0.9458, 0.0000, -0.0589), float3(-0.9257, 0.0000, -0.0727), float3(-0.9043, 0.0000, -0.0862), float3(-0.8816, 0.0000, -0.0992), float3(-0.8576, 0.0000, -0.1117), float3(-0.8323, 0.0000, -0.1237), float3(-0.8056, 0.0000, -0.1352), float3(-0.7775, 0.0000, -0.1461), float3(-0.7481, 0.0000, -0.1564), float3(-0.7172, 0.0000, -0.1660), float3(-0.6849, 0.0000, -0.1750), float3(-0.6512, 0.0000, -0.1832), float3(0.2721, 0.0000, 0.2084), float3(0.2721, 0.0000, 0.2112), float3(0.2739, 0.0000, 0.2223), float3(0.2778, 0.0000, 0.2324), float3(0.2836, 0.0000, 0.2409), float3(0.2910, 0.0000, 0.2471), float3(0.2994, 0.0000, 0.2507), float3(0.3082, 0.0000, 0.2515), float3(0.3169, 0.0000, 0.2493), float3(0.3248, 0.0000, 0.2443), float3(0.3315, 0.0000, 0.2369), float3(0.3364, 0.0000, 0.2275), float3(0.3392, 0.0000, 0.2168), float3(0.3398, 0.0000, 0.2056), float3(0.3381, 0.0000, 0.1945), float3(0.3342, 0.0000, 0.1844), float3(0.3283, 0.0000, 0.1760), float3(0.3210, 0.0000, 0.1697), float3(0.3126, 0.0000, 0.1661), float3(0.3038, 0.0000, 0.1653), float3(0.2951, 0.0000, 0.1675), float3(0.2871, 0.0000, 0.1725), float3(0.2805, 0.0000, 0.1799), float3(0.2756, 0.0000, 0.1893), float3(0.2727, 0.0000, 0.2000), float3(0.2721, 0.0000, 0.2056), float3(-0.3545, 0.0000, 0.2084), float3(-0.3544, 0.0000, 0.2112), float3(-0.3527, 0.0000, 0.2223), float3(-0.3488, 0.0000, 0.2324), float3(-0.3430, 0.0000, 0.2409), float3(-0.3356, 0.0000, 0.2471), float3(-0.3272, 0.0000, 0.2507), float3(-0.3184, 0.0000, 0.2515), float3(-0.3097, 0.0000, 0.2493), float3(-0.3018, 0.0000, 0.2443), float3(-0.2951, 0.0000, 0.2369), float3(-0.2902, 0.0000, 0.2275), float3(-0.2874, 0.0000, 0.2168), float3(-0.2868, 0.0000, 0.2056), float3(-0.2885, 0.0000, 0.1945), float3(-0.2924, 0.0000, 0.1844), float3(-0.2983, 0.0000, 0.1760), float3(-0.3056, 0.0000, 0.1697), float3(-0.3140, 0.0000, 0.1661), float3(-0.3228, 0.0000, 0.1653), float3(-0.3315, 0.0000, 0.1675), float3(-0.3394, 0.0000, 0.1725), float3(-0.3461, 0.0000, 0.1799), float3(-0.3510, 0.0000, 0.1893), float3(-0.3539, 0.0000, 0.2000), float3(-0.3544, 0.0000, 0.2056), float3(0.1904, 0.0000, 0.0983), float3(0.1997, 0.0000, 0.0774), float3(0.2234, 0.0000, 0.0407), float3(0.2477, 0.0000, 0.0158), float3(0.2767, 0.0000, -0.0047), float3(0.3061, 0.0000, -0.0179), float3(0.3346, 0.0000, -0.0247), float3(0.3620, 0.0000, -0.0262), float3(0.3881, 0.0000, -0.0231), float3(0.4128, 0.0000, -0.0159), float3(0.4360, 0.0000, -0.0049), float3(0.4577, 0.0000, 0.0099), float3(0.4778, 0.0000, 0.0289), float3(0.4959, 0.0000, 0.0524), float3(0.5114, 0.0000, 0.0806), float3(0.5229, 0.0000, 0.1134), float3(0.5291, 0.0000, 0.1498), float3(0.5289, 0.0000, 0.1884), float3(0.5219, 0.0000, 0.2267), float3(0.5087, 0.0000, 0.2616), float3(0.4907, 0.0000, 0.2916), float3(0.4697, 0.0000, 0.3159), float3(0.4465, 0.0000, 0.3349), float3(0.4220, 0.0000, 0.3489), float3(0.3964, 0.0000, 0.3582), float3(0.3705, 0.0000, 0.3628), float3(0.3436, 0.0000, 0.3630), float3(0.3166, 0.0000, 0.3586), float3(0.2897, 0.0000, 0.3491), float3(0.2635, 0.0000, 0.3344), float3(0.2382, 0.0000, 0.3137), float3(0.2162, 0.0000, 0.2882), float3(0.1949, 0.0000, 0.2516), float3(-1.0361, 0.0000, 0.1745), float3(-1.0319, 0.0000, 0.1770), float3(-1.0153, 0.0000, 0.1852), float3(-0.9990, 0.0000, 0.1907), float3(-0.9830, 0.0000, 0.1936), float3(-0.9673, 0.0000, 0.1941), float3(-0.9522, 0.0000, 0.1923), float3(-0.9376, 0.0000, 0.1885), float3(-0.9236, 0.0000, 0.1827), float3(-0.9103, 0.0000, 0.1752), float3(-0.8978, 0.0000, 0.1662), float3(-0.8862, 0.0000, 0.1558), float3(-0.8756, 0.0000, 0.1441), float3(-0.8660, 0.0000, 0.1314), float3(-0.8575, 0.0000, 0.1179), float3(-0.8501, 0.0000, 0.1036), float3(-0.8441, 0.0000, 0.0889), float3(-0.8416, 0.0000, 0.0813), float3(0.9747, 0.0000, 0.1745), float3(0.9706, 0.0000, 0.1770), float3(0.9540, 0.0000, 0.1852), float3(0.9377, 0.0000, 0.1907), float3(0.9216, 0.0000, 0.1936), float3(0.9060, 0.0000, 0.1941), float3(0.8908, 0.0000, 0.1923), float3(0.8762, 0.0000, 0.1885), float3(0.8622, 0.0000, 0.1827), float3(0.8490, 0.0000, 0.1752), float3(0.8365, 0.0000, 0.1662), float3(0.8249, 0.0000, 0.1558), float3(0.8143, 0.0000, 0.1441), float3(0.8046, 0.0000, 0.1314), float3(0.7961, 0.0000, 0.1179), float3(0.7888, 0.0000, 0.1036), float3(0.7828, 0.0000, 0.0889), float3(0.7802, 0.0000, 0.0813), float3(-0.1860, 0.0000, 0.0983), float3(-0.1954, 0.0000, 0.0774), float3(-0.2191, 0.0000, 0.0407), float3(-0.2434, 0.0000, 0.0158), float3(-0.2723, 0.0000, -0.0047), float3(-0.3017, 0.0000, -0.0179), float3(-0.3302, 0.0000, -0.0247), float3(-0.3576, 0.0000, -0.0262), float3(-0.3837, 0.0000, -0.0231), float3(-0.4085, 0.0000, -0.0159), float3(-0.4317, 0.0000, -0.0049), float3(-0.4533, 0.0000, 0.0099), float3(-0.4734, 0.0000, 0.0289), float3(-0.4916, 0.0000, 0.0524), float3(-0.5070, 0.0000, 0.0806), float3(-0.5185, 0.0000, 0.1134), float3(-0.5247, 0.0000, 0.1498), float3(-0.5246, 0.0000, 0.1884), float3(-0.5175, 0.0000, 0.2267), float3(-0.5043, 0.0000, 0.2616), float3(-0.4864, 0.0000, 0.2916), float3(-0.4653, 0.0000, 0.3159), float3(-0.4422, 0.0000, 0.3349), float3(-0.4177, 0.0000, 0.3489), float3(-0.3921, 0.0000, 0.3582), float3(-0.3661, 0.0000, 0.3628), float3(-0.3392, 0.0000, 0.3630), float3(-0.3123, 0.0000, 0.3586), float3(-0.2853, 0.0000, 0.3491), float3(-0.2591, 0.0000, 0.3344), float3(-0.2339, 0.0000, 0.3137), float3(-0.2118, 0.0000, 0.2882), float3(-0.1906, 0.0000, 0.2516), }) |
| static constexpr std::array< float, 516 > | monkey_line_opacities ({ 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, }) |
| static constexpr std::array< float, 516 > | monkey_line_radii ({ 0.00300, 0.00660, 0.01384, 0.01806, 0.02094, 0.02307, 0.02471, 0.02598, 0.02701, 0.02782, 0.02845, 0.02896, 0.02934, 0.02963, 0.02983, 0.02995, 0.02999, 0.02997, 0.02989, 0.02974, 0.02950, 0.02917, 0.02873, 0.02815, 0.02743, 0.02652, 0.02538, 0.02394, 0.02208, 0.01962, 0.01619, 0.01080, 0.00300, 0.00300, 0.00660, 0.01384, 0.01806, 0.02094, 0.02307, 0.02471, 0.02598, 0.02701, 0.02782, 0.02845, 0.02896, 0.02934, 0.02963, 0.02983, 0.02995, 0.02999, 0.02997, 0.02989, 0.02974, 0.02950, 0.02917, 0.02873, 0.02815, 0.02743, 0.02652, 0.02538, 0.02394, 0.02208, 0.01962, 0.01619, 0.01080, 0.00300, 0.00300, 0.00386, 0.00889, 0.01244, 0.01508, 0.01717, 0.01887, 0.02030, 0.02153, 0.02259, 0.02351, 0.02433, 0.02505, 0.02569, 0.02627, 0.02677, 0.02722, 0.02763, 0.02799, 0.02832, 0.02859, 0.02885, 0.02906, 0.02926, 0.02942, 0.02957, 0.02968, 0.02979, 0.02986, 0.02992, 0.02996, 0.02998, 0.03000, 0.02998, 0.02996, 0.02992, 0.02986, 0.02979, 0.02968, 0.02957, 0.02942, 0.02926, 0.02906, 0.02885, 0.02859, 0.02832, 0.02799, 0.02763, 0.02722, 0.02677, 0.02627, 0.02569, 0.02505, 0.02433, 0.02351, 0.02259, 0.02153, 0.02030, 0.01887, 0.01717, 0.01508, 0.01244, 0.00889, 0.00386, 0.00300, 0.00300, 0.00386, 0.01244, 0.01717, 0.02030, 0.02259, 0.02433, 0.02569, 0.02677, 0.02763, 0.02832, 0.02885, 0.02926, 0.02957, 0.02979, 0.02992, 0.02998, 0.02998, 0.02992, 0.02979, 0.02957, 0.02926, 0.02885, 0.02832, 0.02763, 0.02677, 0.02569, 0.02433, 0.02259, 0.02030, 0.01717, 0.01244, 0.00386, 0.00300, 0.00300, 0.00660, 0.01384, 0.01806, 0.02094, 0.02307, 0.02471, 0.02598, 0.02701, 0.02782, 0.02845, 0.02896, 0.02934, 0.02963, 0.02983, 0.02995, 0.02999, 0.02997, 0.02989, 0.02974, 0.02950, 0.02917, 0.02873, 0.02815, 0.02743, 0.02652, 0.02538, 0.02394, 0.02208, 0.01962, 0.01619, 0.01080, 0.00300, 0.00200, 0.00440, 0.00923, 0.01204, 0.01396, 0.01538, 0.01647, 0.01732, 0.01801, 0.01854, 0.01897, 0.01931, 0.01956, 0.01975, 0.01988, 0.01997, 0.01999, 0.01998, 0.01993, 0.01982, 0.01967, 0.01945, 0.01915, 0.01877, 0.01829, 0.01768, 0.01692, 0.01596, 0.01472, 0.01308, 0.01079, 0.00720, 0.00200, 0.00200, 0.00258, 0.00829, 0.01145, 0.01354, 0.01506, 0.01622, 0.01713, 0.01784, 0.01842, 0.01888, 0.01923, 0.01951, 0.01972, 0.01986, 0.01995, 0.01999, 0.01999, 0.01995, 0.01986, 0.01972, 0.01951, 0.01923, 0.01888, 0.01842, 0.01784, 0.01713, 0.01622, 0.01506, 0.01354, 0.01145, 0.00829, 0.00258, 0.00200, 0.00300, 0.00660, 0.01384, 0.01806, 0.02094, 0.02307, 0.02471, 0.02598, 0.02701, 0.02782, 0.02845, 0.02896, 0.02934, 0.02963, 0.02983, 0.02995, 0.02999, 0.02997, 0.02989, 0.02974, 0.02950, 0.02917, 0.02873, 0.02815, 0.02743, 0.02652, 0.02538, 0.02394, 0.02208, 0.01962, 0.01619, 0.01080, 0.00300, 0.00300, 0.00660, 0.01080, 0.01384, 0.01619, 0.01806, 0.01962, 0.02094, 0.02208, 0.02307, 0.02394, 0.02471, 0.02538, 0.02598, 0.02652, 0.02701, 0.02743, 0.02782, 0.02815, 0.02845, 0.02873, 0.02896, 0.02917, 0.02934, 0.02950, 0.02963, 0.02974, 0.02983, 0.02989, 0.02995, 0.02997, 0.02999, 0.02999, 0.02997, 0.02995, 0.02989, 0.02983, 0.02974, 0.02963, 0.02950, 0.02934, 0.02917, 0.02896, 0.02873, 0.02845, 0.02815, 0.02782, 0.02743, 0.02701, 0.02652, 0.02598, 0.02538, 0.02471, 0.02394, 0.02307, 0.02208, 0.02094, 0.01962, 0.01806, 0.01619, 0.01384, 0.01080, 0.00660, 0.00300, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.03000, 0.00300, 0.00660, 0.01384, 0.01806, 0.02094, 0.02307, 0.02471, 0.02598, 0.02701, 0.02782, 0.02845, 0.02896, 0.02934, 0.02963, 0.02983, 0.02995, 0.02999, 0.02997, 0.02989, 0.02974, 0.02950, 0.02917, 0.02873, 0.02815, 0.02743, 0.02652, 0.02538, 0.02394, 0.02208, 0.01962, 0.01619, 0.01080, 0.00300, 0.00200, 0.00440, 0.01204, 0.01538, 0.01732, 0.01854, 0.01931, 0.01975, 0.01997, 0.01998, 0.01982, 0.01945, 0.01877, 0.01768, 0.01596, 0.01308, 0.00720, 0.00200, 0.00200, 0.00440, 0.01204, 0.01538, 0.01732, 0.01854, 0.01931, 0.01975, 0.01997, 0.01998, 0.01982, 0.01945, 0.01877, 0.01768, 0.01596, 0.01308, 0.00720, 0.00200, 0.00300, 0.00660, 0.01384, 0.01806, 0.02094, 0.02307, 0.02471, 0.02598, 0.02701, 0.02782, 0.02845, 0.02896, 0.02934, 0.02963, 0.02983, 0.02995, 0.02999, 0.02997, 0.02989, 0.02974, 0.02950, 0.02917, 0.02873, 0.02815, 0.02743, 0.02652, 0.02538, 0.02394, 0.02208, 0.01962, 0.01619, 0.01080, 0.00300, }) |
| static constexpr std::array< int, 16 > | monkey_line_offsets ({ 0, 33, 66, 131, 165, 198, 231, 265, 298, 362, 388, 414, 447, 465, 483, 516, }) |
| static int | add_material_from_template (Main &bmain, Object &ob, const ColorTemplate &pct) |
| static bke::CurvesGeometry | create_drawing_data (const Span< float3 > positions, const Span< float > radii, const Span< float > opacities, const Span< int > offsets, const Span< int > materials, const Span< bool > hide_strokes, const Span< int > fill_ids, const float4x4 &matrix) |
| void | create_blank (Main &bmain, Object &object, const int frame_number) |
| void | create_stroke (Main &bmain, Object &object, const float4x4 &matrix, const int frame_number) |
| void | create_suzanne (Main &bmain, Object &object, const float4x4 &matrix, const int frame_number) |
| static void | ensure_valid_frame_end (Main *, Scene *, PointerRNA *ptr) |
| static wmOperatorStatus | bake_grease_pencil_animation_invoke (bContext *C, wmOperator *op, const wmEvent *) |
| static Vector< Object * > | get_bake_targets (bContext &C, Depsgraph &depsgraph) |
| static Set< int > | get_selected_object_keyframes (Span< Object * > bake_targets) |
| static wmOperatorStatus | bake_grease_pencil_animation_exec (bContext *C, wmOperator *op) |
| static bool | bake_grease_pencil_animation_poll (bContext *C) |
| static void | GREASE_PENCIL_OT_bake_grease_pencil_animation (wmOperatorType *ot) |
| static bool | execute_carver_on_drawing (const Object &ob_eval, Object &obact, const ARegion ®ion, const float4x4 &projection, const int layer_index, const float4x4 &layer_to_world, const DrawingPlacement &placement, const Span< float2 > mcoords, const bool keep_caps, bke::greasepencil::Drawing &drawing, bool *r_converted) |
| static wmOperatorStatus | grease_pencil_stroke_carver_exec (bContext *C, wmOperator *op) |
| IndexRange | paste_all_strokes_from_clipboard (Main &bmain, Object &object, const float4x4 &object_to_paste_layer, const bool keep_world_transform, const bool paste_back, bke::greasepencil::Drawing &drawing) |
| static bke::greasepencil::Layer & | copy_layer (GreasePencil &grease_pencil_dst, bke::greasepencil::LayerGroup &group_dst, const bke::greasepencil::Layer &layer_src) |
| static bke::greasepencil::LayerGroup & | copy_layer_group_recursive (GreasePencil &grease_pencil_dst, bke::greasepencil::LayerGroup &parent_dst, const bke::greasepencil::LayerGroup &group_src, Map< StringRefNull, StringRefNull > &layer_name_map) |
| static void | copy_layer_group_content (GreasePencil &grease_pencil_dst, bke::greasepencil::LayerGroup &group_dst, const bke::greasepencil::LayerGroup &group_src, Map< StringRefNull, StringRefNull > &layer_name_map) |
| static Array< int > | add_materials_to_map (Object &object, VectorSet< Material * > &materials) |
| static void | remap_material_indices (bke::greasepencil::Drawing &drawing, const Span< int > material_index_map) |
| static Map< StringRefNull, StringRefNull > | add_vertex_groups (Object &object, GreasePencil &grease_pencil, const ListBaseT< bDeformGroup > &vertex_group_names) |
| static void | remap_vertex_groups (bke::greasepencil::Drawing &drawing, const Map< StringRefNull, StringRefNull > &vertex_group_map) |
| static bke::AttributeStorage | merge_attributes (const bke::AttributeAccessor &a, const bke::AttributeAccessor &b, const int dst_size) |
| static void | join_object_with_active (Main &bmain, Object &ob_src, Object &ob_dst, VectorSet< Material * > &materials) |
| void | set_selected_frames_type (bke::greasepencil::Layer &layer, const eBezTriple_KeyframeType key_type) |
| static float | get_snapped_frame_number (const float frame_number, Scene &scene, const eEditKeyframes_Snap mode) |
| bool | snap_selected_frames (GreasePencil &grease_pencil, bke::greasepencil::Layer &layer, Scene &scene, const eEditKeyframes_Snap mode) |
| static int | get_mirrored_frame_number (const int frame_number, const Scene &scene, const eEditKeyframes_Mirror mode, const TimeMarker *first_selected_marker) |
| bool | mirror_selected_frames (GreasePencil &grease_pencil, bke::greasepencil::Layer &layer, Scene &scene, const eEditKeyframes_Mirror mode) |
| bool | duplicate_selected_frames (GreasePencil &grease_pencil, bke::greasepencil::Layer &layer) |
| bool | remove_all_selected_frames (GreasePencil &grease_pencil, bke::greasepencil::Layer &layer) |
| static void | select_frame (GreasePencilFrame &frame, const short select_mode) |
| bool | select_frame_at (bke::greasepencil::Layer &layer, const int frame_number, const short select_mode) |
| void | select_frames_at (bke::greasepencil::LayerGroup &layer_group, const int frame_number, const short select_mode) |
| void | select_all_frames (bke::greasepencil::Layer &layer, const short select_mode) |
| bool | has_any_frame_selected (const bke::greasepencil::Layer &layer) |
| void | select_frames_region (KeyframeEditData *ked, bke::greasepencil::TreeNode &node, const short tool, const short select_mode) |
| void | select_frames_range (bke::greasepencil::TreeNode &node, const float min, const float max, const short select_mode) |
| static void | append_frame_to_key_edit_data (KeyframeEditData *ked, const int frame_number, const GreasePencilFrame &frame) |
| void | create_keyframe_edit_data_selected_frames_list (KeyframeEditData *ked, const bke::greasepencil::Layer &layer) |
| bool | ensure_active_keyframe (const Scene &scene, GreasePencil &grease_pencil, bke::greasepencil::Layer &layer, const bool duplicate_previous_key, bool &r_inserted_keyframe) |
| static wmOperatorStatus | insert_blank_frame_exec (bContext *C, wmOperator *op) |
| static bool | attributes_varrays_not_equal (const bke::GAttributeReader &attrs_a, const bke::GAttributeReader &attrs_b) |
| static bool | attributes_varrays_span_data_equal (const bke::GAttributeReader &attrs_a, const bke::GAttributeReader &attrs_b) |
| template<typename T> | |
| static bool | attributes_elements_are_equal (const VArray< T > &attributes_a, const VArray< T > &attributes_b) |
| static bool | curves_geometry_is_equal (const bke::CurvesGeometry &curves_a, const bke::CurvesGeometry &curves_b) |
| static wmOperatorStatus | frame_clean_duplicate_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_insert_blank_frame (wmOperatorType *ot) |
| static void | GREASE_PENCIL_OT_frame_clean_duplicate (wmOperatorType *ot) |
| bool | grease_pencil_copy_keyframes (bAnimContext *ac, KeyframeClipboard &clipboard) |
| static int | calculate_offset (const eKeyPasteOffset offset_mode, const int cfra, const KeyframeClipboard &clipboard) |
| bool | grease_pencil_paste_keyframes (bAnimContext *ac, const eKeyPasteOffset offset_mode, const eKeyMergeMode merge_mode, const KeyframeClipboard &clipboard) |
| static wmOperatorStatus | grease_pencil_frame_duplicate_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_frame_duplicate (wmOperatorType *ot) |
| static wmOperatorStatus | grease_pencil_active_frame_delete_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_active_frame_delete (wmOperatorType *ot) |
| static bool | grease_pencil_active_breakdown_frame_poll (bContext *C) |
| static wmOperatorStatus | grease_pencil_delete_breakdown_frames_exec (bContext *C, wmOperator *) |
| static void | GREASE_PENCIL_OT_delete_breakdown (wmOperatorType *ot) |
| int64_t | ramer_douglas_peucker_simplify (const IndexRange range, const float epsilon, const FunctionRef< float(int64_t, int64_t, int64_t)> dist_function, MutableSpan< bool > points_to_delete) |
| Array< float2 > | polyline_fit_curve (Span< float2 > points, const float error_threshold, const IndexMask &corner_mask) |
| IndexMask | polyline_detect_corners (Span< float2 > points, const float radius_min, const float radius_max, const int samples_max, const float angle_threshold, IndexMaskMemory &memory) |
| int | curve_merge_by_distance (const IndexRange points, const Span< float > distances, const IndexMask &selection, const float merge_distance, MutableSpan< int > r_merge_indices) |
| bke::CurvesGeometry | curves_merge_by_distance (const bke::CurvesGeometry &src_curves, const float merge_distance, const IndexMask &selection, const bke::AttributeFilter &attribute_filter) |
| bke::CurvesGeometry | curves_merge_endpoints_by_distance (const ARegion ®ion, const bke::CurvesGeometry &src_curves, const float4x4 &layer_to_world, const float merge_distance, const IndexMask &selection, const bke::AttributeFilter &attribute_filter) |
| static void | generate_circle_from_point (const float3 &pt, const float radius, const int corner_subdivisions, const int src_point_index, Vector< float3 > &r_perimeter, Vector< int > &r_src_indices) |
| static void | generate_arc_from_point_to_point (const float3 &from, const float3 &to, const float3 ¢er_pt, const int corner_subdivisions, const int src_point_index, Vector< float3 > &r_perimeter, Vector< int > &r_src_indices) |
| static void | generate_cap (const float3 &point, const float3 &tangent, const float radius, const int corner_subdivisions, const eGPDstroke_Caps cap_type, const int src_point_index, Vector< float3 > &r_perimeter, Vector< int > &r_src_indices) |
| static void | generate_corner (const float3 &pt_a, const float3 &pt_b, const float3 &pt_c, const float radius, const float miter_limit_angle, const int corner_subdivisions, const int src_point_index, Vector< float3 > &r_perimeter, Vector< int > &r_src_indices) |
| static void | generate_stroke_perimeter (const Span< float3 > all_positions, const Span< float > all_radii, const IndexRange points, const int corner_subdivisions, const bool is_cyclic, const bool use_caps, const eGPDstroke_Caps start_cap_type, const eGPDstroke_Caps end_cap_type, const VArray< float > miter_angles, const float outline_offset, Vector< float3 > &r_perimeter, Vector< int > &r_point_counts, Vector< int > &r_point_indices) |
| bke::CurvesGeometry | create_curves_outline (const bke::greasepencil::Drawing &drawing, const IndexMask &strokes, const float4x4 &transform, const int corner_subdivisions, const float outline_radius, const float outline_offset, const int material_index) |
| Curves2DBVHTree | build_curves_2d_bvh_from_visible (const ViewContext &vc, const Object &object, const GreasePencil &grease_pencil, Span< MutableDrawingInfo > drawings, const int frame_number) |
| void | free_curves_2d_bvh_data (Curves2DBVHTree &data) |
| void | find_curve_intersections (const bke::CurvesGeometry &curves, const IndexMask &curve_mask, const Span< float2 > screen_space_positions, const Curves2DBVHTree &tree_data, const IndexRange tree_data_range, MutableSpan< bool > r_hits, std::optional< MutableSpan< float > > r_first_intersect_factors, std::optional< MutableSpan< float > > r_last_intersect_factors) |
| CurveSegmentsData | find_curve_segments (const bke::CurvesGeometry &curves, const IndexMask &curve_mask, const Span< float2 > screen_space_positions, const Curves2DBVHTree &tree_data, const IndexRange tree_data_range) |
| static float4x4 | get_bone_mat (const Object *parent, const char *parsubstr) |
| bool | grease_pencil_layer_parent_set (bke::greasepencil::Layer &layer, Object *parent, StringRefNull bone, const bool keep_transform) |
| void | grease_pencil_layer_parent_clear (bke::greasepencil::Layer &layer, const bool keep_transform) |
| void | select_layer_channel (GreasePencil &grease_pencil, bke::greasepencil::Layer *layer) |
| static wmOperatorStatus | grease_pencil_layer_add_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | grease_pencil_layer_add_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | GREASE_PENCIL_OT_layer_add (wmOperatorType *ot) |
| static wmOperatorStatus | grease_pencil_layer_remove_exec (bContext *C, wmOperator *) |
| static void | GREASE_PENCIL_OT_layer_remove (wmOperatorType *ot) |
| static bool | grease_pencil_layer_move_poll (bContext *C) |
| static wmOperatorStatus | grease_pencil_layer_move_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_layer_move (wmOperatorType *ot) |
| static wmOperatorStatus | grease_pencil_layer_active_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_layer_active (wmOperatorType *ot) |
| static wmOperatorStatus | grease_pencil_layer_group_add_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_layer_group_add (wmOperatorType *ot) |
| static wmOperatorStatus | grease_pencil_layer_group_remove_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_layer_group_remove (wmOperatorType *ot) |
| static wmOperatorStatus | grease_pencil_layer_hide_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_layer_hide (wmOperatorType *ot) |
| static wmOperatorStatus | grease_pencil_layer_reveal_exec (bContext *C, wmOperator *) |
| static void | GREASE_PENCIL_OT_layer_reveal (wmOperatorType *ot) |
| static wmOperatorStatus | grease_pencil_layer_isolate_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_layer_isolate (wmOperatorType *ot) |
| static wmOperatorStatus | grease_pencil_layer_lock_all_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_layer_lock_all (wmOperatorType *ot) |
| static wmOperatorStatus | grease_pencil_layer_duplicate_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_layer_duplicate (wmOperatorType *ot) |
| static wmOperatorStatus | grease_pencil_merge_layer_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_layer_merge (wmOperatorType *ot) |
| static wmOperatorStatus | grease_pencil_layer_mask_add_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_layer_mask_add (wmOperatorType *ot) |
| static bool | grease_pencil_layer_mask_poll (bContext *C) |
| static wmOperatorStatus | grease_pencil_layer_mask_remove_exec (bContext *C, wmOperator *) |
| static void | GREASE_PENCIL_OT_layer_mask_remove (wmOperatorType *ot) |
| static bool | grease_pencil_layer_mask_reorder_poll (bContext *C) |
| static wmOperatorStatus | grease_pencil_layer_mask_reorder_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_layer_mask_reorder (wmOperatorType *ot) |
| static wmOperatorStatus | grease_pencil_layer_group_color_tag_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_layer_group_color_tag (wmOperatorType *ot) |
| static void | copy_layer_and_frames_to_target_object (GreasePencil &dst_grease_pencil, const GreasePencil &src_grease_pencil, const bke::greasepencil::Layer &src_layer, const DuplicateCopyMode copy_frame_mode, const int current_frame) |
| static wmOperatorStatus | grease_pencil_layer_duplicate_object_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_layer_duplicate_object (wmOperatorType *ot) |
| void | get_lineart_modifier_limits (const Object &ob, ed::greasepencil::LineartLimitInfo &info) |
| void | set_lineart_modifier_limits (GreasePencilLineartModifierData &lmd, const ed::greasepencil::LineartLimitInfo &info, const bool cache_is_ready) |
| GreasePencilLineartModifierData * | get_first_lineart_modifier (const Object &ob) |
| static void | copy_layer_groups_without_layers (GreasePencil &dst_grease_pencil, const LayerGroup &src_parent, LayerGroup &dst_parent) |
| static Vector< const LayerGroup * > | get_sorted_layer_parents (const Layer &layer) |
| static const LayerGroup & | find_lowest_common_ancestor (const GreasePencil &grease_pencil, const Span< int > src_layer_indices) |
| static bke::CurvesGeometry | join_curves (const GreasePencil &src_grease_pencil, const Span< const bke::CurvesGeometry * > all_src_curves, const Span< float4x4 > transforms_to_apply) |
| void | merge_layers (const GreasePencil &src_grease_pencil, const Span< Vector< int > > src_layer_indices_by_dst_layer, GreasePencil &dst_grease_pencil) |
| bool | grease_pencil_context_poll (bContext *C) |
| bool | active_grease_pencil_poll (bContext *C) |
| bool | active_grease_pencil_material_poll (bContext *C) |
| bool | editable_grease_pencil_poll (bContext *C) |
| bool | editable_grease_pencil_with_region_view3d_poll (bContext *C) |
| bool | active_grease_pencil_layer_poll (bContext *C) |
| bool | active_grease_pencil_layer_group_poll (bContext *C) |
| bool | editable_grease_pencil_point_selection_poll (bContext *C) |
| bool | grease_pencil_selection_poll (bContext *C) |
| bool | grease_pencil_painting_poll (bContext *C) |
| bool | grease_pencil_edit_poll (bContext *C) |
| bool | grease_pencil_sculpting_poll (bContext *C) |
| bool | grease_pencil_weight_painting_poll (bContext *C) |
| bool | grease_pencil_vertex_painting_poll (bContext *C) |
| bool | check_brush_needs_new_material (Object *ob, const Brush *brush) |
| static void | keymap_grease_pencil_selection (wmKeyConfig *keyconf) |
| static void | keymap_grease_pencil_edit_mode (wmKeyConfig *keyconf) |
| static void | keymap_grease_pencil_paint_mode (wmKeyConfig *keyconf) |
| static void | keymap_grease_pencil_sculpt_mode (wmKeyConfig *keyconf) |
| static void | keymap_grease_pencil_weight_paint_mode (wmKeyConfig *keyconf) |
| static void | keymap_grease_pencil_vertex_paint_mode (wmKeyConfig *keyconf) |
| static bool | keymap_grease_pencil_brush_stroke_poll (bContext *C) |
| static void | keymap_grease_pencil_brush_stroke (wmKeyConfig *keyconf) |
| static bool | keymap_grease_pencil_fill_tool_poll (bContext *C) |
| static void | keymap_grease_pencil_fill_tool (wmKeyConfig *keyconf) |
| static void | grease_pencil_pen_exit (bContext *C, wmOperator *op) |
| static wmOperatorStatus | grease_pencil_pen_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static wmOperatorStatus | grease_pencil_pen_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | GREASE_PENCIL_OT_pen (wmOperatorType *ot) |
| static int | control_points_per_segment (const PrimitiveToolOperation &ptd) |
| static ControlPointType | get_control_point_type (const PrimitiveToolOperation &ptd, const int point) |
| static void | control_point_colors_and_sizes (const PrimitiveToolOperation &ptd, MutableSpan< ColorGeometry4f > colors, MutableSpan< float > sizes) |
| static void | draw_control_points (PrimitiveToolOperation &ptd) |
| static void | grease_pencil_primitive_draw (const bContext *, ARegion *, void *arg) |
| static void | grease_pencil_primitive_save (PrimitiveToolOperation &ptd) |
| static void | grease_pencil_primitive_load (PrimitiveToolOperation &ptd) |
| static void | primitive_calculate_curve_positions (PrimitiveToolOperation &ptd, Span< float2 > control_points, MutableSpan< float2 > new_positions) |
| static float2 | primitive_local_to_screen (const PrimitiveToolOperation &ptd, const float3 &point) |
| static void | primitive_calculate_curve_positions_2d (PrimitiveToolOperation &ptd, MutableSpan< float2 > new_positions) |
| static int | grease_pencil_primitive_curve_points_number (PrimitiveToolOperation &ptd) |
| static void | grease_pencil_primitive_update_curves (PrimitiveToolOperation &ptd) |
| static void | grease_pencil_primitive_init_curves (PrimitiveToolOperation &ptd) |
| static void | grease_pencil_primitive_undo_curves (PrimitiveToolOperation &ptd) |
| static void | grease_pencil_primitive_status_indicators (bContext *C, wmOperator *op, PrimitiveToolOperation &ptd) |
| static void | grease_pencil_primitive_update_view (bContext *C, PrimitiveToolOperation &ptd) |
| static wmOperatorStatus | grease_pencil_primitive_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | grease_pencil_primitive_exit (bContext *C, wmOperator *op, const bool cancelled) |
| static float2 | snap_diagonals (float2 p) |
| static float2 | snap_diagonals_box (float2 p) |
| static float2 | snap_8_angles (float2 p) |
| static void | grease_pencil_primitive_extruding_update (PrimitiveToolOperation &ptd, const wmEvent *event) |
| static void | grease_pencil_primitive_drag_all_update (PrimitiveToolOperation &ptd, const wmEvent *event) |
| static void | grease_pencil_primitive_grab_update (PrimitiveToolOperation &ptd, const wmEvent *event) |
| static void | grease_pencil_primitive_drag_update (PrimitiveToolOperation &ptd, const wmEvent *event) |
| static float2 | primitive_center_of_mass (const PrimitiveToolOperation &ptd) |
| static void | grease_pencil_primitive_rotate_all_update (PrimitiveToolOperation &ptd, const wmEvent *event) |
| static void | grease_pencil_primitive_scale_all_update (PrimitiveToolOperation &ptd, const wmEvent *event) |
| static void | grease_pencil_primitive_init_radius (PrimitiveToolOperation &ptd) |
| static void | grease_pencil_primitive_init_opacity (PrimitiveToolOperation &ptd) |
| static void | grease_pencil_primitive_cancel_radius (PrimitiveToolOperation &ptd) |
| static void | grease_pencil_primitive_cancel_opacity (PrimitiveToolOperation &ptd) |
| static void | grease_pencil_primitive_change_radius (PrimitiveToolOperation &ptd, const wmEvent *event) |
| static void | grease_pencil_primitive_change_opacity (PrimitiveToolOperation &ptd, const wmEvent *event) |
| static int | primitive_check_ui_hover (const PrimitiveToolOperation &ptd, const wmEvent *event) |
| static void | grease_pencil_primitive_cursor_update (bContext *C, PrimitiveToolOperation &ptd, const wmEvent *event) |
| static wmOperatorStatus | grease_pencil_primitive_event_modal_map (bContext *C, wmOperator *op, PrimitiveToolOperation &ptd, const wmEvent *event) |
| static wmOperatorStatus | grease_pencil_primitive_mouse_event (PrimitiveToolOperation &ptd, const wmEvent *event) |
| static void | grease_pencil_primitive_operator_update (PrimitiveToolOperation &ptd, const wmEvent *event) |
| static wmOperatorStatus | grease_pencil_primitive_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | grease_pencil_primitive_cancel (bContext *C, wmOperator *op) |
| static void | grease_pencil_primitive_common_props (wmOperatorType *ot, const int default_subdiv, const PrimitiveType default_type) |
| static void | GREASE_PENCIL_OT_primitive_line (wmOperatorType *ot) |
| static void | GREASE_PENCIL_OT_primitive_polyline (wmOperatorType *ot) |
| static void | GREASE_PENCIL_OT_primitive_arc (wmOperatorType *ot) |
| static void | GREASE_PENCIL_OT_primitive_curve (wmOperatorType *ot) |
| static void | GREASE_PENCIL_OT_primitive_box (wmOperatorType *ot) |
| static void | GREASE_PENCIL_OT_primitive_circle (wmOperatorType *ot) |
| float | randomize_radius (const BrushGpencilSettings &settings, const float stroke_factor, const float distance, const float radius, const float pressure) |
| float | randomize_opacity (const BrushGpencilSettings &settings, const float stroke_factor, const float distance, const float opacity, const float pressure) |
| float | randomize_rotation (const BrushGpencilSettings &settings, const float stroke_factor, const float distance, const float pressure) |
| float | randomize_rotation (const BrushGpencilSettings &settings, RandomNumberGenerator &rng, const float stroke_factor, const float pressure) |
| ColorGeometry4f | randomize_color (const BrushGpencilSettings &settings, const std::optional< BrushColorJitterSettings > &jitter, const float stroke_hue_factor, const float stroke_saturation_factor, const float stroke_value_factor, const float distance, const ColorGeometry4f color, const float pressure) |
| static wmOperatorStatus | select_all_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_select_all (wmOperatorType *ot) |
| static wmOperatorStatus | select_more_exec (bContext *C, wmOperator *) |
| static void | GREASE_PENCIL_OT_select_more (wmOperatorType *ot) |
| static wmOperatorStatus | select_less_exec (bContext *C, wmOperator *) |
| static void | GREASE_PENCIL_OT_select_less (wmOperatorType *ot) |
| static wmOperatorStatus | select_linked_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_select_linked (wmOperatorType *ot) |
| static wmOperatorStatus | select_random_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_select_random (wmOperatorType *ot) |
| static wmOperatorStatus | select_alternate_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_select_alternate (wmOperatorType *ot) |
| template<typename T> | |
| void | insert_selected_values (Object *object, const MutableDrawingInfo &info, const bke::AttrDomain domain, const StringRef name, const eHandleDisplay handle_display, Set< T > &r_value_set) |
| template<typename T, typename DistanceFn> | |
| static void | select_similar_by_value (Scene *scene, Object *object, GreasePencil &grease_pencil, const bke::AttrDomain selection_domain, const StringRef name, const eHandleDisplay handle_display, float threshold, DistanceFn distance_fn) |
| static void | select_similar_by_layer (Scene *scene, Object *object, GreasePencil &grease_pencil, bke::AttrDomain domain) |
| static wmOperatorStatus | select_similar_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_select_similar (wmOperatorType *ot) |
| static wmOperatorStatus | select_ends_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_select_ends (wmOperatorType *ot) |
| static wmOperatorStatus | select_fill_exec (bContext *C, wmOperator *) |
| static void | GREASE_PENCIL_OT_select_fill (wmOperatorType *ot) |
| bool | ensure_selection_domain (ToolSettings *ts, Object *object) |
| static wmOperatorStatus | select_set_mode_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_set_selection_mode (wmOperatorType *ot) |
| static wmOperatorStatus | grease_pencil_material_select_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_material_select (wmOperatorType *ot) |
| static wmOperatorStatus | grease_pencil_select_by_stroke_type_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_select_by_stroke_type (wmOperatorType *ot) |
| static bool | execute_trim_on_drawing (const int layer_index, const Object &ob_eval, Object &obact, const ARegion ®ion, const float4x4 &projection, const Span< int2 > mcoords, const bool keep_caps, bke::greasepencil::Drawing &drawing) |
| static wmOperatorStatus | stroke_trim_execute (const bContext *C, const Span< int2 > mcoords) |
| static wmOperatorStatus | grease_pencil_stroke_trim_exec (bContext *C, wmOperator *op) |
| static float | get_frame_falloff (const bool use_multi_frame_falloff, const int frame_number, const int active_frame, const std::optional< Bounds< int > > frame_bounds, const CurveMapping *falloff_curve) |
| static std::optional< Bounds< int > > | get_selected_frame_number_bounds (const bke::greasepencil::Layer &layer) |
| static int | get_active_frame_for_falloff (const bke::greasepencil::Layer &layer, const std::optional< Bounds< int > > frame_bounds, const int current_frame) |
| static std::optional< int > | get_frame_id (const bke::greasepencil::Layer &layer, const GreasePencilFrame &frame, const int frame_number, const int frame_index, const int current_frame, const int current_frame_index, const int last_frame, const int last_frame_index, const bool use_multi_frame_editing, const bool do_onion_skinning, const bool is_before_first, const GreasePencilOnionSkinningSettings onion_settings) |
| static Array< std::pair< int, int > > | get_visible_frames_for_layer (const GreasePencil &grease_pencil, const bke::greasepencil::Layer &layer, const int current_frame, const bool use_multi_frame_editing, const bool do_onion_skinning) |
| static Array< int > | get_editable_frames_for_layer (const GreasePencil &grease_pencil, const bke::greasepencil::Layer &layer, const int current_frame, const bool use_multi_frame_editing) |
| Vector< MutableDrawingInfo > | retrieve_editable_drawings (const Scene &scene, GreasePencil &grease_pencil) |
| Vector< MutableDrawingInfo > | retrieve_editable_drawings_with_falloff (const Scene &scene, GreasePencil &grease_pencil) |
| Array< Vector< MutableDrawingInfo > > | retrieve_editable_drawings_grouped_per_frame (const Scene &scene, GreasePencil &grease_pencil) |
| Vector< MutableDrawingInfo > | retrieve_editable_drawings_from_layer (const Scene &scene, GreasePencil &grease_pencil, const bke::greasepencil::Layer &layer) |
| Vector< MutableDrawingInfo > | retrieve_editable_drawings_from_layer_with_falloff (const Scene &scene, GreasePencil &grease_pencil, const bke::greasepencil::Layer &layer) |
| Vector< DrawingInfo > | retrieve_visible_drawings (const Scene &scene, const GreasePencil &grease_pencil, const bool do_onion_skinning) |
| static VectorSet< int > | get_locked_material_indices (Object &object) |
| static VectorSet< int > | get_hidden_material_indices (Object &object) |
| IndexMask | retrieve_editable_strokes (Object &object, const bke::greasepencil::Drawing &drawing, int layer_index, IndexMaskMemory &memory) |
| IndexMask | retrieve_editable_fill_strokes (Object &object, const bke::greasepencil::Drawing &drawing, int layer_index, IndexMaskMemory &memory) |
| IndexMask | retrieve_editable_strokes_by_material (Object &object, const bke::greasepencil::Drawing &drawing, const int mat_i, IndexMaskMemory &memory) |
| IndexMask | retrieve_editable_points (Object &object, const bke::greasepencil::Drawing &drawing, int layer_index, IndexMaskMemory &memory) |
| IndexMask | retrieve_editable_elements (Object &object, const MutableDrawingInfo &info, const bke::AttrDomain selection_domain, IndexMaskMemory &memory) |
| IndexMask | retrieve_visible_strokes (Object &object, const bke::greasepencil::Drawing &drawing, IndexMaskMemory &memory) |
| IndexMask | retrieve_visible_points (Object &object, const bke::greasepencil::Drawing &drawing, IndexMaskMemory &memory) |
| IndexMask | retrieve_visible_bezier_strokes (Object &object, const bke::greasepencil::Drawing &drawing, IndexMaskMemory &memory) |
| IndexMask | retrieve_visible_bezier_points (Object &object, const bke::greasepencil::Drawing &drawing, IndexMaskMemory &memory) |
| eHandleDisplay | view3d_handle_type_or_default (const View3D *v3d) |
| IndexMask | retrieve_visible_bezier_handle_strokes (Object &object, const bke::greasepencil::Drawing &drawing, const eHandleDisplay handle_display, IndexMaskMemory &memory) |
| IndexMask | retrieve_visible_fills (Object &object, const bke::greasepencil::Drawing &drawing, IndexMaskMemory &memory) |
| IndexMask | retrieve_visible_bezier_handle_points (Object &object, const bke::greasepencil::Drawing &drawing, const int layer_index, const eHandleDisplay handle_display, IndexMaskMemory &memory) |
| IndexMask | retrieve_visible_bezier_handle_elements (Object &object, const bke::greasepencil::Drawing &drawing, const int layer_index, const bke::AttrDomain selection_domain, const eHandleDisplay handle_display, IndexMaskMemory &memory) |
| IndexMask | retrieve_editable_and_selected_strokes (Object &object, const bke::greasepencil::Drawing &drawing, int layer_index, IndexMaskMemory &memory) |
| IndexMask | retrieve_editable_and_selected_fill_strokes (Object &object, const bke::greasepencil::Drawing &drawing, int layer_index, IndexMaskMemory &memory) |
| IndexMask | retrieve_editable_and_selected_points (Object &object, const bke::greasepencil::Drawing &drawing, int layer_index, IndexMaskMemory &memory) |
| IndexMask | retrieve_editable_and_selected_elements (Object &object, const bke::greasepencil::Drawing &drawing, int layer_index, const bke::AttrDomain selection_domain, IndexMaskMemory &memory) |
| IndexMask | retrieve_editable_and_all_selected_points (Object &object, const bke::greasepencil::Drawing &drawing, const int layer_index, const eHandleDisplay handle_display, IndexMaskMemory &memory) |
| bool | has_editable_layer (const GreasePencil &grease_pencil) |
| Array< PointTransferData > | compute_topology_change (const bke::CurvesGeometry &src, bke::CurvesGeometry &dst, const Span< Vector< PointTransferData > > src_to_dst_points, const bool keep_caps) |
| static float | pixel_radius_to_world_space_radius (const RegionView3D *rv3d, const ARegion *region, const float3 center, const float4x4 to_world, const float pixel_radius) |
| static float | brush_radius_at_location (const RegionView3D *rv3d, const ARegion *region, const Paint *paint, const Brush *brush, const float3 location, const float4x4 to_world) |
| float | radius_from_input_sample (const RegionView3D *rv3d, const ARegion *region, const Paint &paint, const Brush *brush, const float pressure, const float3 &location, const float4x4 &to_world, const BrushGpencilSettings *settings) |
| float | opacity_from_input_sample (const float pressure, const Paint &paint, const Brush *brush, const BrushGpencilSettings *settings) |
| static StrokeVisibilityStatus | get_visibility_status_for_draw_operator (Object *object, const Brush &brush) |
| bool | grease_pencil_draw_operator_begin (bContext *C, wmOperator *op, const bool use_duplicate_previous_key) |
| float4x2 | calculate_texture_space (const Scene *scene, const ARegion *region, const float2 &mouse, const DrawingPlacement &placement) |
| GreasePencil * | from_context (bContext &C) |
| void | add_single_curve (bke::greasepencil::Drawing &drawing, const bool at_end) |
| void | resize_single_curve (bke::CurvesGeometry &curves, const bool at_end, const int new_points_num) |
| void | apply_eval_grease_pencil_data (const GreasePencil &eval_grease_pencil, const int eval_frame, const IndexMask &orig_layers, GreasePencil &orig_grease_pencil) |
| bool | remove_fill_guides (bke::CurvesGeometry &curves) |
| template<typename Fn> | |
| static bool | apply_color_operation_for_mode (const VertexColorMode mode, Object &object, MutableDrawingInfo &info, const bool use_selection_mask, Fn &&fn) |
| static wmOperatorStatus | grease_pencil_vertex_paint_brightness_contrast_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_vertex_color_brightness_contrast (wmOperatorType *ot) |
| static wmOperatorStatus | grease_pencil_vertex_paint_hsv_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_vertex_color_hsv (wmOperatorType *ot) |
| static wmOperatorStatus | grease_pencil_vertex_paint_invert_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_vertex_color_invert (wmOperatorType *ot) |
| static wmOperatorStatus | grease_pencil_vertex_paint_levels_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_vertex_color_levels (wmOperatorType *ot) |
| static wmOperatorStatus | grease_pencil_vertex_paint_set_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_vertex_color_set (wmOperatorType *ot) |
| static wmOperatorStatus | grease_pencil_vertex_paint_reset_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_stroke_reset_vertex_color (wmOperatorType *ot) |
| Set< std::string > | get_bone_deformed_vertex_group_names (const Object &object) |
| static bool | normalize_vertex_weights_try (MDeformVert &dvert, const int vertex_groups_num, const Span< bool > vertex_group_is_bone_deformed, const FunctionRef< bool(int)> vertex_group_is_locked) |
| void | normalize_vertex_weights (MDeformVert &dvert, const int active_vertex_group, const Span< bool > vertex_group_is_locked, const Span< bool > vertex_group_is_bone_deformed) |
| static int | foreach_bone_in_armature_ex (Object &ob, const Bone *bone, const FunctionRef< bool(Object &, const Bone *)> bone_callback) |
| static int | foreach_bone_in_armature (Object &ob, const bArmature &armature, const FunctionRef< bool(Object &, const Bone *)> bone_callback) |
| bool | add_armature_vertex_groups (Object &object, const Object &ob_armature) |
| static bool | get_skinnable_bones_and_deform_group_names (const bArmature &armature, Object &object, Vector< const Bone * > &r_skinnable_bones, Vector< std::string > &r_deform_group_names) |
| static void | get_root_and_tips_of_bones (Span< const Bone * > bones, const float4x4 &transform, MutableSpan< float3 > roots, MutableSpan< float3 > tips) |
| static int | lookup_or_add_deform_group_index (CurvesGeometry &curves, const StringRef name) |
| void | add_armature_envelope_weights (Scene &scene, Object &object, const Object &ob_armature) |
| void | add_armature_automatic_weights (Scene &scene, Object &object, const Object &ob_armature) |
| static wmOperatorStatus | weight_sample_invoke (bContext *C, wmOperator *, const wmEvent *event) |
| static void | GREASE_PENCIL_OT_weight_sample (wmOperatorType *ot) |
| static wmOperatorStatus | toggle_weight_tool_direction_exec (bContext *C, wmOperator *) |
| static bool | toggle_weight_tool_direction_poll (bContext *C) |
| static void | GREASE_PENCIL_OT_weight_toggle_direction (wmOperatorType *ot) |
| static wmOperatorStatus | grease_pencil_weight_invert_exec (bContext *C, wmOperator *op) |
| static bool | grease_pencil_vertex_group_weight_poll (bContext *C) |
| static void | GREASE_PENCIL_OT_weight_invert (wmOperatorType *ot) |
| static wmOperatorStatus | vertex_group_smooth_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_vertex_group_smooth (wmOperatorType *ot) |
| static wmOperatorStatus | vertex_group_normalize_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_vertex_group_normalize (wmOperatorType *ot) |
| static wmOperatorStatus | vertex_group_normalize_all_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_vertex_group_normalize_all (wmOperatorType *ot) |
| bke::CurvesGeometry | pixel_fill_strokes (const ViewContext &view_context, const Brush &brush, const Scene &scene, const bke::greasepencil::Layer &layer, const VArray< bool > &boundary_layers, const Span< DrawingInfo > src_drawings, bool invert, const std::optional< float > opacity_threshold, const float2 &fill_point, const ExtensionData &extensions, FillToolFitMethod fit_method, bool keep_images) |
| std::optional< bke::CurvesGeometry > | delaunay_fill_strokes (const ViewContext &view_context, const Scene &scene, const bke::greasepencil::Layer &layer, const VArray< bool > &boundary_layers, const Span< DrawingInfo > src_drawings, bool invert, std::optional< float > opacity_threshold, bool internal_gaps, float gap_factor, const GroupedSpan< float2 > &fill_points) |
| static IndexMask | get_visible_boundary_strokes (const Object &object, const DrawingInfo &info, const bool is_boundary_layer, IndexMaskMemory &memory) |
| static VArray< ColorGeometry4f > | get_stroke_colors (const Object &object, const bke::CurvesGeometry &curves, const VArray< float > &opacities, const VArray< int > materials, const ColorGeometry4f &tint_color, const std::optional< float > opacity_threshold) |
| static Bounds< float2 > | get_region_bounds (const ARegion ®ion) |
| static std::optional< Bounds< float2 > > | get_boundary_bounds (const ARegion ®ion, const RegionView3D &rv3d, const Object &object, const Object &object_eval, const VArray< bool > &boundary_layers, const Span< DrawingInfo > src_drawings) |
| static auto | fit_strokes_to_view (const ViewContext &view_context, const VArray< bool > &boundary_layers, const Span< DrawingInfo > src_drawings, const FillToolFitMethod fit_method, const float2 fill_point, const bool uniform_zoom, const float max_zoom_factor, const float2 margin, const float pixel_scale) |
| static Image * | render_strokes (const ViewContext &view_context, const Brush &brush, const Scene &scene, const bke::greasepencil::Layer &layer, const VArray< bool > &boundary_layers, const Span< DrawingInfo > src_drawings, const int2 &image_size, const std::optional< float > opacity_threshold, const float2 &fill_point, const ExtensionData &extensions, const ed::greasepencil::DrawingPlacement &placement, const float2 &zoom, const float2 &offset) |
| static EncodedConnection | encode_index_and_side (const int index, const Side side) |
| static int | decode_index (const EncodedConnection encoded) |
| static Side | decode_side (const EncodedConnection encoded) |
| static EdgeCurves | follow_edge_connections (const Span< int > all_edges, const Span< bool > edges_to_keep, const Span< EdgeConnections > edge_connections) |
| static Array< int3 > | get_all_triangle_edges (const Span< int2 > edges, const Span< Vector< int > > tris) |
| static Array< int3 > | get_all_triangle_adjacency (const int num_edges, const Span< Vector< int > > tris, const Span< int3 > tri_edges) |
| static Array< float > | get_edge_weights (const Span< int2 > edges, const Span< double2 > verts) |
| static Array< float > | get_tri_max_weight (const int num_tris, const Span< int3 > tri_adjacency, const Span< int3 > tri_edges, const Span< float > edge_weights, const Span< bool > is_source_edge) |
| static void | add_weights_for_tri (const Span< int3 > tri_adjacency, const Span< int3 > tri_edges, const Span< float > edge_weights, const Span< float > tri_max_weight, const Span< bool > is_source_edge, const int hint_tri_index, const int hint_index, MutableSpan< int > r_tri_hint_index, MutableSpan< float > r_tri_weights) |
| static std::optional< meshintersect::CDT_input< double > > | get_input_from_drawings (const Span< DrawingInfo > src_drawings, const Object &object, const VArray< bool > &boundary_layers, const ARegion ®ion, const std::optional< float > opacity_threshold, Array< double2 > &r_cdt_verts, Array< int2 > &r_cdt_edges) |
| static std::optional< EdgeCurves > | create_connected_edges_from_fill (const Span< bool > tri_to_fill, const bool invert, const Span< int3 > tri_adjacency, const Span< int3 > tri_edges, const Span< int2 > edges) |
Smooth Stroke Operator | |
| static wmOperatorStatus | grease_pencil_stroke_smooth_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_stroke_smooth (wmOperatorType *ot) |
Stroke Material Set Operator | |
| static wmOperatorStatus | grease_pencil_stroke_material_set_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_stroke_material_set (wmOperatorType *ot) |
Set Active Material Operator | |
| static wmOperatorStatus | grease_pencil_set_active_material_exec (bContext *C, wmOperator *) |
| static void | GREASE_PENCIL_OT_set_active_material (wmOperatorType *ot) |
| static const EnumPropertyItem * | material_enum_itemf (bContext *C, PointerRNA *, PropertyRNA *, bool *r_free) |
| static wmOperatorStatus | grease_pencil_set_material_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_set_material (wmOperatorType *ot) |
Set Uniform Thickness Operator | |
| static wmOperatorStatus | grease_pencil_set_uniform_thickness_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_set_uniform_thickness (wmOperatorType *ot) |
Set Uniform Opacity Operator | |
| static wmOperatorStatus | grease_pencil_set_uniform_opacity_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_set_uniform_opacity (wmOperatorType *ot) |
Switch Direction Operator | |
| static wmOperatorStatus | grease_pencil_stroke_switch_direction_exec (bContext *C, wmOperator *) |
| static void | GREASE_PENCIL_OT_stroke_switch_direction (wmOperatorType *ot) |
Set Start Point Operator | |
| static bke::CurvesGeometry | set_start_point (const bke::CurvesGeometry &curves, const IndexMask &mask) |
| static wmOperatorStatus | grease_pencil_set_start_point_exec (bContext *C, wmOperator *) |
| static void | GREASE_PENCIL_OT_set_start_point (wmOperatorType *ot) |
Duplicate Operator | |
| static wmOperatorStatus | grease_pencil_duplicate_exec (bContext *C, wmOperator *) |
| static void | GREASE_PENCIL_OT_duplicate (wmOperatorType *ot) |
| static wmOperatorStatus | grease_pencil_clean_loose_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | grease_pencil_clean_loose_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | GREASE_PENCIL_OT_clean_loose (wmOperatorType *ot) |
Stroke Subdivide Operator | |
| static wmOperatorStatus | gpencil_stroke_subdivide_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_stroke_subdivide (wmOperatorType *ot) |
Move To Layer Operator | |
| static wmOperatorStatus | grease_pencil_move_to_layer_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | grease_pencil_move_to_layer_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | GREASE_PENCIL_OT_move_to_layer (wmOperatorType *ot) |
Merge Stroke Operator | |
| static wmOperatorStatus | grease_pencil_stroke_merge_by_distance_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_stroke_merge_by_distance (wmOperatorType *ot) |
Extrude Operator | |
| static bke::CurvesGeometry | extrude_grease_pencil_curves (const bke::CurvesGeometry &src, const IndexMask &points_to_extrude) |
| static wmOperatorStatus | grease_pencil_extrude_exec (bContext *C, wmOperator *) |
| static void | GREASE_PENCIL_OT_extrude (wmOperatorType *ot) |
Reproject Strokes Operator | |
| static float | calculate_radius_projection_factor (const RegionView3D *rv3d, const float3 &old_pos, const float3 &new_pos) |
| static wmOperatorStatus | grease_pencil_reproject_exec (bContext *C, wmOperator *op) |
| static void | grease_pencil_reproject_ui (bContext *, wmOperator *op) |
| static void | GREASE_PENCIL_OT_reproject (wmOperatorType *ot) |
Snapping Selection to Grid Operator | |
| static bool | grease_pencil_snap_poll (bContext *C) |
| static wmOperatorStatus | grease_pencil_snap_to_grid_exec (bContext *C, wmOperator *) |
| static void | GREASE_PENCIL_OT_snap_to_grid (wmOperatorType *ot) |
Snapping Selection to Cursor Operator | |
| static wmOperatorStatus | grease_pencil_snap_to_cursor_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_snap_to_cursor (wmOperatorType *ot) |
Snapping Cursor to Selection Operator | |
| static bool | grease_pencil_snap_compute_centroid (const Scene &scene, const Object &object, const GreasePencil &grease_pencil, float3 &r_centroid, float3 &r_min, float3 &r_max) |
| static wmOperatorStatus | grease_pencil_snap_cursor_to_sel_exec (bContext *C, wmOperator *) |
| static void | GREASE_PENCIL_OT_snap_cursor_to_selected (wmOperatorType *ot) |
| static float4x3 | expand_4x2_mat (float4x2 strokemat) |
| static wmOperatorStatus | grease_pencil_texture_gradient_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | grease_pencil_texture_gradient_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static wmOperatorStatus | grease_pencil_texture_gradient_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | GREASE_PENCIL_OT_texture_gradient (wmOperatorType *ot) |
Set Curve Type Operator | |
| static wmOperatorStatus | grease_pencil_set_curve_type_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_set_curve_type (wmOperatorType *ot) |
Set Handle Type Operator | |
| static wmOperatorStatus | grease_pencil_set_handle_type_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_set_handle_type (wmOperatorType *ot) |
Set Curve Resolution Operator | |
| static wmOperatorStatus | grease_pencil_set_curve_resolution_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_set_curve_resolution (wmOperatorType *ot) |
| static wmOperatorStatus | grease_pencil_reset_uvs_exec (bContext *C, wmOperator *) |
| static void | GREASE_PENCIL_OT_reset_uvs (wmOperatorType *ot) |
| static wmOperatorStatus | grease_pencil_stroke_split_exec (bContext *C, wmOperator *) |
| static void | GREASE_PENCIL_OT_stroke_split (wmOperatorType *ot) |
Convert Curve Type Operator | |
| static bke::CurvesGeometry | fit_poly_curves (bke::CurvesGeometry &curves, const IndexMask &selection, const float threshold) |
| static void | convert_to_catmull_rom (bke::CurvesGeometry &curves, const IndexMask &selection, const float threshold) |
| static void | convert_to_poly (bke::CurvesGeometry &curves, const IndexMask &selection) |
| static void | convert_to_bezier (bke::CurvesGeometry &curves, const IndexMask &selection, const float threshold) |
| static void | convert_to_nurbs (bke::CurvesGeometry &curves, const IndexMask &selection, const float threshold) |
| static wmOperatorStatus | grease_pencil_convert_curve_type_exec (bContext *C, wmOperator *op) |
| static void | grease_pencil_convert_curve_type_ui (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_convert_curve_type (wmOperatorType *ot) |
Set Stroke Mode Operator | |
| static wmOperatorStatus | grease_pencil_set_stroke_type_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_set_stroke_type (wmOperatorType *ot) |
Join Fills Operator | |
| static Array< int > | get_gapless_indices (const IndexRange &universe, const IndexMask &selected) |
| static wmOperatorStatus | grease_pencil_join_fills_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_join_fills (wmOperatorType *ot) |
Separate Fills Operator | |
| static wmOperatorStatus | grease_pencil_separate_fills_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_separate_fills (wmOperatorType *ot) |
Show All Materials Operator | |
| static wmOperatorStatus | grease_pencil_material_reveal_exec (bContext *C, wmOperator *) |
| static void | GREASE_PENCIL_OT_material_reveal (wmOperatorType *ot) |
Hide Others Materials Operator | |
| static wmOperatorStatus | grease_pencil_material_hide_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_material_hide (wmOperatorType *ot) |
Lock All Materials Operator | |
| static wmOperatorStatus | grease_pencil_material_lock_all_exec (bContext *C, wmOperator *) |
| static void | GREASE_PENCIL_OT_material_lock_all (wmOperatorType *ot) |
Unlock All Materials Operator | |
| static wmOperatorStatus | grease_pencil_material_unlock_all_exec (bContext *C, wmOperator *) |
| static void | GREASE_PENCIL_OT_material_unlock_all (wmOperatorType *ot) |
Lock Unused Materials Operator | |
| static wmOperatorStatus | grease_pencil_material_lock_unused_exec (bContext *C, wmOperator *) |
| static void | GREASE_PENCIL_OT_material_lock_unused (wmOperatorType *ot) |
Lock Unselected Materials Operator | |
| static wmOperatorStatus | grease_pencil_material_lock_unselected_exec (bContext *C, wmOperator *) |
| static void | GREASE_PENCIL_OT_material_lock_unselected (wmOperatorType *ot) |
Copy Materials to Selected Objects | |
| static wmOperatorStatus | grease_pencil_material_copy_to_object_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_material_copy_to_object (wmOperatorType *ot) |
| static wmOperatorStatus | material_isolate_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_material_isolate (wmOperatorType *ot) |
Toggle Stroke Paint Mode Operator | |
| static bool | brush_cursor_poll (bContext *C) |
| static bool | paintmode_toggle_poll (bContext *C) |
| static wmOperatorStatus | paintmode_toggle_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_paintmode_toggle (wmOperatorType *ot) |
Toggle Stroke Sculpt Mode Operator | |
| static bool | sculptmode_toggle_poll (bContext *C) |
| static bool | sculpt_poll_view3d (bContext *C) |
| static wmOperatorStatus | sculptmode_toggle_exec (bContext *C, wmOperator *op) |
Toggle Weight Paint Mode Operator | |
| static void | GREASE_PENCIL_OT_sculptmode_toggle (wmOperatorType *ot) |
| static bool | grease_pencil_poll_weight_cursor (bContext *C) |
| static bool | weightmode_toggle_poll (bContext *C) |
| static wmOperatorStatus | weightmode_toggle_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_weightmode_toggle (wmOperatorType *ot) |
Toggle Vertex Paint Mode Operator | |
| static bool | grease_pencil_poll_vertex_cursor (bContext *C) |
| static bool | vertexmode_toggle_poll (bContext *C) |
| static wmOperatorStatus | vertexmode_toggle_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_vertexmode_toggle (wmOperatorType *ot) |
Selection Utility Functions | |
| int | clamp_range (const IndexRange range, const int index) |
| template<typename Fn> | |
| static int | foreach_curve_segment (const CurveSegmentsData &segment_data, const int curve_index, const IndexRange points, Fn &&fn) |
| bool | apply_mask_as_selection (bke::CurvesGeometry &curves, const IndexMask &selection_mask, const bke::AttrDomain selection_domain, const StringRef attribute_name, const eSelectOp sel_op) |
| bool | apply_mask_as_segment_selection (bke::CurvesGeometry &curves, const IndexMask &point_selection_mask, const StringRef attribute_name, const Curves2DBVHTree &tree_data, const IndexRange tree_data_range, const eSelectOp sel_op) |
| bool | selection_update (const ViewContext *vc, const eSelectOp sel_op, SelectionUpdateFunc select_operation) |
Simplify Stroke Operator | |
| enum class | SimplifyMode { FIXED = 0 , ADAPTIVE = 1 , SAMPLE = 2 , MERGE = 3 } |
| static const EnumPropertyItem | prop_simplify_modes [] |
| static IndexMask | simplify_fixed (const bke::CurvesGeometry &curves, const int step, const IndexMask &stroke_selection, IndexMaskMemory &memory) |
| static wmOperatorStatus | grease_pencil_stroke_simplify_exec (bContext *C, wmOperator *op) |
| static void | grease_pencil_simplify_ui (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_stroke_simplify (wmOperatorType *ot) |
Delete Operator | |
| enum class | DeleteMode { All = 0 , OnlyStrokes = 1 , OnlyFills = 2 } |
| static bool | remove_curves_based_on_mode (Object &object, bke::greasepencil::Drawing &drawing, const int layer_index, const DeleteMode mode, IndexMaskMemory &memory) |
| static bool | remove_stroke_or_fill_based_on_mode (Object &object, bke::greasepencil::Drawing &drawing, const int layer_index, const DeleteMode mode, IndexMaskMemory &memory) |
| static wmOperatorStatus | grease_pencil_delete_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_delete (wmOperatorType *ot) |
Dissolve Points Operator | |
| enum class | DissolveMode : int8_t { POINTS = 0 , BETWEEN = 1 , UNSELECT = 2 } |
| static const EnumPropertyItem | prop_dissolve_types [] |
| static Array< bool > | get_points_to_dissolve (bke::CurvesGeometry &curves, const IndexMask &mask, const DissolveMode mode) |
| static wmOperatorStatus | grease_pencil_dissolve_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_dissolve (wmOperatorType *ot) |
Delete Frame Operator | |
| enum class | DeleteFrameMode : int8_t { ACTIVE_FRAME = 0 , ALL_FRAMES = 1 } |
| static const EnumPropertyItem | prop_greasepencil_deleteframe_types [] |
| static wmOperatorStatus | grease_pencil_delete_frame_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_delete_frame (wmOperatorType *ot) |
Cyclical Set Operator | |
| enum class | CyclicalMode : int8_t { CLOSE = 0 , OPEN = 1 , TOGGLE = 2 } |
| static const EnumPropertyItem | prop_cyclical_types [] |
| static bke::CurvesGeometry | subdivide_last_segment (const bke::CurvesGeometry &curves, const IndexMask &strokes) |
| static wmOperatorStatus | grease_pencil_cyclical_set_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_cyclical_set (wmOperatorType *ot) |
Set Curve Caps Operator | |
| enum class | CapsMode : int8_t { FLAT = 0 , START = 1 , END = 2 , ROUND = 3 } |
| static void | toggle_caps (MutableSpan< int8_t > caps, const IndexMask &strokes) |
| static wmOperatorStatus | grease_pencil_caps_set_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_caps_set (wmOperatorType *ot) |
Reorder Operator | |
| enum class | ReorderDirection : int8_t { TOP = 0 , UP = 1 , DOWN = 2 , BOTTOM = 3 } |
| static Array< int > | get_reordered_indices (const IndexRange universe, const IndexMask &selected, const ReorderDirection direction) |
| static wmOperatorStatus | grease_pencil_stroke_reorder_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_stroke_reorder (wmOperatorType *ot) |
Stroke Separate Operator | |
| enum class | SeparateMode : int8_t { SELECTED = 0 , MATERIAL = 1 , LAYER = 2 } |
| static const EnumPropertyItem | prop_separate_modes [] |
| static Object * | duplicate_grease_pencil_object (Main *bmain, Scene *scene, ViewLayer *view_layer, Base *base_prev, const GreasePencil &grease_pencil_src) |
| static bke::greasepencil::Layer & | find_or_create_layer_in_dst_by_name (const int layer_index, const GreasePencil &grease_pencil_src, GreasePencil &grease_pencil_dst, Vector< int > &src_to_dst_layer_indices) |
| static bool | grease_pencil_separate_selected (bContext &C, Main &bmain, Scene &scene, ViewLayer &view_layer, Base &base_prev, Object &object_src) |
| static bool | grease_pencil_separate_layer (bContext &C, Main &bmain, Scene &scene, ViewLayer &view_layer, Base &base_prev, Object &object_src) |
| static bool | grease_pencil_separate_material (bContext &C, Main &bmain, Scene &scene, ViewLayer &view_layer, Base &base_prev, Object &object_src) |
| static wmOperatorStatus | grease_pencil_separate_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_separate (wmOperatorType *ot) |
Remove Fill Guide Strokes Operator | |
| enum class | RemoveFillGuidesMode : int8_t { ActiveFrame = 0 , AllFrames = 1 } |
| static wmOperatorStatus | grease_pencil_remove_fill_guides_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_remove_fill_guides (wmOperatorType *ot) |
Outline Operator | |
| enum class | OutlineMode : int8_t { View = 0 , Front = 1 , Side = 2 , Top = 3 , Cursor = 4 , Camera = 5 } |
| static const EnumPropertyItem | prop_outline_modes [] |
| static wmOperatorStatus | grease_pencil_outline_exec (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_outline (wmOperatorType *ot) |
Set Corner Type Operator | |
| enum class | CornerType : uint8_t { Round = 0 , Bevel = 1 , Miter = 2 } |
| static const EnumPropertyItem | prop_corner_types [] |
| static wmOperatorStatus | grease_pencil_set_corner_type_exec (bContext *C, wmOperator *op) |
| static void | grease_pencil_set_corner_type_ui (bContext *C, wmOperator *op) |
| static void | GREASE_PENCIL_OT_set_corner_type (wmOperatorType *ot) |
Color Values and Flags | |
| enum | ColorFlag { Border = (1 << 0) , Stroke = (1 << 1) , Fill = (1 << 2) , Seed = (1 << 3) , Debug = (1 << 7) } |
| const ColorGeometry4f | draw_boundary_color = {1, 0, 0, 1} |
| const ColorGeometry4f | draw_seed_color = {0, 1, 0, 1} |
Boundary from Pixel Buffer | |
| enum class | FillResult { Success , BorderContact } |
| enum | FillBorderMode { Cancel , Ignore } |
| constexpr const int | num_directions = 8 |
| static const int2 | offset_by_direction [num_directions] |
| static bool | get_flag (const ColorGeometry4b &color, const ColorFlag flag) |
| static void | set_flag (ColorGeometry4b &color, const ColorFlag flag, bool value) |
| static void | convert_colors_to_flags (ImageBufferAccessor &buffer) |
| static void | convert_flags_to_colors (ImageBufferAccessor &buffer) |
| static void | mark_borders (ImageBufferAccessor &buffer) |
| template<FillBorderMode border_mode> | |
| FillResult | flood_fill (ImageBufferAccessor &buffer, const int leak_filter_width=0) |
| static void | invert_fill (ImageBufferAccessor &buffer) |
| static void | dilate (ImageBufferAccessor &buffer, int iterations=1) |
| static void | erode (ImageBufferAccessor &buffer, int iterations=1) |
| static int | wrap_dir_3n (const int dir) |
| static FillBoundary | build_fill_boundary (const ImageBufferAccessor &buffer) |
| static bke::CurvesGeometry | boundary_to_curves (const FillBoundary &boundary, const ImageBufferAccessor &buffer, const ed::greasepencil::DrawingPlacement &placement, const float3x3 &image_to_region) |
| static bke::CurvesGeometry | process_image (Image &ima, const Brush &brush, const ed::greasepencil::DrawingPlacement &placement, const float3x3 &image_to_region, const bool invert, const bool output_as_colors) |
| using blender::ed::greasepencil::EncodedConnection = int |
Definition at line 832 of file ED_grease_pencil.hh.
|
strong |
| Enumerator | |
|---|---|
| FLAT | Switches both to Flat. |
| START | Change only start. |
| END | Change only end. |
| ROUND | Switches both to default rounded. |
Definition at line 1405 of file grease_pencil_edit.cc.
|
strong |
| Enumerator | |
|---|---|
| JoinPoint | |
| HandlePoint | |
Definition at line 86 of file grease_pencil_primitive.cc.
|
strong |
| Enumerator | |
|---|---|
| Round | |
| Bevel | |
| Miter | |
Definition at line 4950 of file grease_pencil_edit.cc.
|
strong |
| Enumerator | |
|---|---|
| CLOSE | Sets all strokes to cycle. |
| OPEN | Sets all strokes to not cycle. |
| TOGGLE | Switches the cyclic state of the strokes. |
Definition at line 925 of file grease_pencil_edit.cc.
|
strong |
| Enumerator | |
|---|---|
| ACTIVE_FRAME | Delete the active frame for the current layer. |
| ALL_FRAMES | Delete the active frames for all layers. |
Definition at line 768 of file grease_pencil_edit.cc.
|
strong |
| Enumerator | |
|---|---|
| All | |
| OnlyStrokes | |
| OnlyFills | |
Definition at line 446 of file grease_pencil_edit.cc.
|
strong |
| Enumerator | |
|---|---|
| POINTS | Dissolve all selected points. |
| BETWEEN | Dissolve between selected points. |
| UNSELECT | Dissolve unselected points. |
Definition at line 615 of file grease_pencil_edit.cc.
|
strong |
| Enumerator | |
|---|---|
| ObjectOrigin | |
| Cursor | |
| Surface | |
| Stroke | |
Definition at line 123 of file ED_grease_pencil.hh.
|
strong |
| Enumerator | |
|---|---|
| View | |
| Front | |
| Side | |
| Top | |
| Cursor | |
Definition at line 125 of file ED_grease_pencil.hh.
|
strong |
| Enumerator | |
|---|---|
| All | |
| Active | |
Definition at line 1094 of file grease_pencil_layers.cc.
|
strong |
Method used by the Fill tool to fit the render buffer to strokes.
| Enumerator | |
|---|---|
| None | |
| FitToView | |
Definition at line 621 of file ED_grease_pencil.hh.
|
strong |
| Enumerator | |
|---|---|
| None | |
| Flip | |
| FlipAuto | |
Definition at line 797 of file ED_grease_pencil.hh.
|
strong |
| Enumerator | |
|---|---|
| Active | |
| All | |
Definition at line 806 of file ED_grease_pencil.hh.
|
strong |
| Enumerator | |
|---|---|
| Up | |
| Down | |
Definition at line 224 of file grease_pencil_layers.cc.
|
strong |
| Enumerator | |
|---|---|
| Down | |
| Group | |
| All | |
Definition at line 700 of file grease_pencil_layers.cc.
|
strong |
| Enumerator | |
|---|---|
| Cancel | |
| Confirm | |
| Extrude | |
| Panning | |
| Grab | |
| Rotate | |
| Scale | |
| IncreaseSubdivision | |
| DecreaseSubdivision | |
| ChangeRadius | |
| ChangeOpacity | |
Definition at line 93 of file grease_pencil_primitive.cc.
|
strong |
| Enumerator | |
|---|---|
| Idle | |
| Extruding | |
| Grab | |
| Drag | |
| DragAll | |
| RotateAll | |
| ScaleAll | |
| ChangeRadius | |
| ChangeOpacity | |
Definition at line 67 of file grease_pencil_primitive.cc.
|
strong |
| Enumerator | |
|---|---|
| View | |
| Front | |
| Side | |
| Top | |
| Cursor | |
| Camera | |
Definition at line 4587 of file grease_pencil_edit.cc.
|
strong |
| Enumerator | |
|---|---|
| Active | |
| ByLayer | |
Definition at line 2841 of file grease_pencil_edit.cc.
|
strong |
| Enumerator | |
|---|---|
| Line | |
| Polyline | |
| Arc | |
| Curve | |
| Box | |
| Circle | |
Definition at line 58 of file grease_pencil_primitive.cc.
|
strong |
| Enumerator | |
|---|---|
| ActiveFrame | |
| AllFrames | |
Definition at line 4511 of file grease_pencil_edit.cc.
|
strong |
Definition at line 1864 of file grease_pencil_edit.cc.
|
strong |
| Enumerator | |
|---|---|
| Front | |
| Side | |
| Top | |
| View | |
| Cursor | |
| Surface | |
| Keep | |
Definition at line 121 of file ED_grease_pencil.hh.
|
strong |
| Enumerator | |
|---|---|
| LAYER | |
| MATERIAL | |
| VERTEX_COLOR | |
| RADIUS | |
| OPACITY | |
Definition at line 591 of file grease_pencil_select.cc.
|
strong |
| Enumerator | |
|---|---|
| SELECTED | |
| MATERIAL | |
| LAYER | |
Definition at line 2185 of file grease_pencil_edit.cc.
|
strong |
| Enumerator | |
|---|---|
| FIXED | |
| ADAPTIVE | |
| SAMPLE | |
| MERGE | |
Definition at line 218 of file grease_pencil_edit.cc.
|
strong |
| Enumerator | |
|---|---|
| Visible | |
| StrokeInvisible | |
| FillInvisible | |
| BothInvisible | |
Definition at line 1676 of file grease_pencil_utils.cc.
|
strong |
| Enumerator | |
|---|---|
| Stroke | |
| Fill | |
| Both | |
Definition at line 31 of file grease_pencil_vertex_paint.cc.
| bool blender::ed::greasepencil::active_grease_pencil_layer_group_poll | ( | bContext * | C | ) |
Definition at line 93 of file grease_pencil_ops.cc.
References active_grease_pencil_layer_group_poll(), C, from_context(), and grease_pencil_context_poll().
Referenced by active_grease_pencil_layer_group_poll(), and GREASE_PENCIL_OT_layer_group_color_tag().
| bool blender::ed::greasepencil::active_grease_pencil_layer_poll | ( | bContext * | C | ) |
Definition at line 84 of file grease_pencil_ops.cc.
References active_grease_pencil_layer_poll(), C, from_context(), and grease_pencil_context_poll().
Referenced by active_grease_pencil_layer_poll(), grease_pencil_layer_mask_poll(), grease_pencil_layer_mask_reorder_poll(), GREASE_PENCIL_OT_clean_loose(), GREASE_PENCIL_OT_layer_duplicate(), GREASE_PENCIL_OT_layer_duplicate_object(), GREASE_PENCIL_OT_layer_isolate(), GREASE_PENCIL_OT_layer_mask_add(), and GREASE_PENCIL_OT_layer_remove().
| bool blender::ed::greasepencil::active_grease_pencil_material_poll | ( | bContext * | C | ) |
Definition at line 51 of file grease_pencil_ops.cc.
References active_grease_pencil_material_poll(), blender::BKE_object_material_len_p(), C, blender::CTX_data_active_object(), and blender::OB_GREASE_PENCIL.
Referenced by active_grease_pencil_material_poll(), and GREASE_PENCIL_OT_material_isolate().
| bool blender::ed::greasepencil::active_grease_pencil_poll | ( | bContext * | C | ) |
Definition at line 42 of file grease_pencil_ops.cc.
References active_grease_pencil_poll(), C, blender::CTX_data_active_object(), and blender::OB_GREASE_PENCIL.
Referenced by active_grease_pencil_poll(), grease_pencil_active_breakdown_frame_poll(), grease_pencil_edit_poll(), blender::ed::sculpt_paint::greasepencil::grease_pencil_interpolate_poll(), GREASE_PENCIL_OT_material_copy_to_object(), GREASE_PENCIL_OT_material_hide(), GREASE_PENCIL_OT_material_lock_all(), GREASE_PENCIL_OT_material_lock_unselected(), GREASE_PENCIL_OT_material_lock_unused(), GREASE_PENCIL_OT_material_reveal(), GREASE_PENCIL_OT_material_unlock_all(), GREASE_PENCIL_OT_set_material(), grease_pencil_painting_poll(), grease_pencil_sculpting_poll(), grease_pencil_selection_poll(), grease_pencil_vertex_painting_poll(), grease_pencil_weight_painting_poll(), blender::OBJECT_OT_lineart_bake_strokes(), and blender::OBJECT_OT_lineart_clear().
| void blender::ed::greasepencil::add_armature_automatic_weights | ( | Scene & | scene, |
| Object & | object, | ||
| const Object & | ob_armature ) |
Create vertex groups for the bones in the armature and use a simple distance based algorithm to assign automatic weights.
Definition at line 374 of file grease_pencil_weight_paint.cc.
References add_armature_automatic_weights(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::data, blender::Object::data, blender::dist_squared_to_line_segment_v3(), blender::math::distance_squared(), blender::ed::greasepencil::MutableDrawingInfo::drawing, get_root_and_tips_of_bones(), get_skinnable_bones_and_deform_group_names(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::math::interpolate(), layer, blender::ed::greasepencil::MutableDrawingInfo::layer_index, lookup_or_add_deform_group_index(), blender::threading::parallel_for_each(), position, retrieve_editable_drawings(), blender::VMutableArray< T >::set(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::math::transform_points(), and blender::bke::varray_for_mutable_deform_verts().
Referenced by add_armature_automatic_weights(), and blender::ed::object::parent_set_with_depsgraph().
| void blender::ed::greasepencil::add_armature_envelope_weights | ( | Scene & | scene, |
| Object & | object, | ||
| const Object & | ob_armature ) |
Create vertex groups for the bones in the armature and use the bone envelopes to assign weights.
Definition at line 315 of file grease_pencil_weight_paint.cc.
References add_armature_envelope_weights(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::data, blender::Object::data, blender::Bone::dist, blender::distfactor_to_bone(), blender::ed::greasepencil::MutableDrawingInfo::drawing, get_root_and_tips_of_bones(), get_skinnable_bones_and_deform_group_names(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), layer, blender::ed::greasepencil::MutableDrawingInfo::layer_index, lookup_or_add_deform_group_index(), blender::mat4_to_scale(), blender::threading::parallel_for_each(), blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), blender::Bone::rad_head, blender::Bone::rad_tail, retrieve_editable_drawings(), scale(), blender::VMutableArray< T >::set(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::math::transform_points(), and blender::bke::varray_for_mutable_deform_verts().
Referenced by add_armature_envelope_weights(), and blender::ed::object::parent_set_with_depsgraph().
| bool blender::ed::greasepencil::add_armature_vertex_groups | ( | Object & | object, |
| const Object & | armature ) |
Adds vertex groups for the bones in the armature (with matching names).
Definition at line 238 of file grease_pencil_weight_paint.cc.
References add_armature_vertex_groups(), blender::BKE_object_defgroup_add_name(), blender::BKE_object_defgroup_find_name(), blender::BONE_NO_DEFORM, blender::Object::data, blender::Bone::flag, foreach_bone_in_armature(), and blender::Bone::name.
Referenced by add_armature_vertex_groups(), and blender::ed::object::parent_set_with_depsgraph().
|
static |
Definition at line 1080 of file grease_pencil_add.cc.
References add_material_from_template(), blender::BKE_grease_pencil_object_material_ensure_by_name(), blender::copy_v4_v4(), DATA_, blender::ed::greasepencil::ColorTemplate::fill, blender::ed::greasepencil::ColorTemplate::line, blender::ed::greasepencil::ColorTemplate::name, and blender::srgb_to_linearrgb_v4().
Referenced by add_material_from_template(), create_blank(), create_stroke(), and create_suzanne().
|
static |
Definition at line 5631 of file grease_pencil_edit.cc.
References add_materials_to_map(), blender::BKE_object_material_get(), blender::BKE_object_material_len_p(), blender::BLI_assert(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_of_or_add(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), and blender::OB_GREASE_PENCIL.
Referenced by add_materials_to_map(), blender::ED_grease_pencil_join_objects_exec(), and join_object_with_active().
| void blender::ed::greasepencil::add_single_curve | ( | bke::greasepencil::Drawing & | drawing, |
| const bool | at_end ) |
Creates a new curve with one point at the beginning or end.
Definition at line 1838 of file grease_pencil_utils.cc.
References add_single_curve(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::bke::greasepencil::DrawingRuntime::curve_plane_normals_cache, blender::bke::greasepencil::DrawingRuntime::curve_texture_matrices, blender::bke::greasepencil::DrawingRuntime::fill_cache, blender::bke::GSpanAttributeWriter::finish(), blender::MutableSpan< T >::first(), blender::bke::AttributeAccessor::foreach_attribute(), blender::MatBase< float, 4, 2 >::identity(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::bke::AttributeIter::name, blender::GreasePencilDrawing::runtime, blender::bke::attribute_math::shift_right(), blender::bke::Single, blender::GMutableSpan::size(), blender::bke::GSpanAttributeWriter::span, blender::bke::AttributeIter::storage_type, and blender::bke::greasepencil::Drawing::strokes_for_write().
Referenced by add_single_curve(), grease_pencil_primitive_init_curves(), and blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_start_sample().
|
static |
Definition at line 5663 of file grease_pencil_edit.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), add_vertex_groups(), blender::BKE_object_defgroup_unique_name(), blender::BLI_addtail(), and blender::bDeformGroup::name.
Referenced by add_vertex_groups(), and join_object_with_active().
|
static |
Definition at line 1312 of file fill.cc.
References add_weights_for_tri(), and NULL_INDEX.
Referenced by add_weights_for_tri().
|
static |
Definition at line 322 of file grease_pencil_frames.cc.
References append_frame_to_key_edit_data(), blender::BLI_addtail(), blender::CfraElem::cfra, blender::KeyframeEditData::cfra_elem_list, float, blender::MEM_new_zeroed(), and blender::CfraElem::sel.
Referenced by append_frame_to_key_edit_data(), and create_keyframe_edit_data_selected_frames_list().
|
static |
Definition at line 45 of file grease_pencil_vertex_paint.cc.
References apply_color_operation_for_mode(), blender::bke::CurvesGeometry::attributes(), Both, blender::bke::AttributeAccessor::contains(), blender::ed::greasepencil::MutableDrawingInfo::drawing, ELEM, Fill, blender::bke::greasepencil::Drawing::fill_colors_for_write(), blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, retrieve_editable_and_selected_points(), retrieve_editable_and_selected_strokes(), retrieve_editable_points(), retrieve_editable_strokes(), Stroke, blender::bke::greasepencil::Drawing::strokes(), and blender::bke::greasepencil::Drawing::vertex_colors_for_write().
Referenced by apply_color_operation_for_mode(), grease_pencil_vertex_paint_brightness_contrast_exec(), grease_pencil_vertex_paint_hsv_exec(), grease_pencil_vertex_paint_invert_exec(), grease_pencil_vertex_paint_levels_exec(), grease_pencil_vertex_paint_reset_exec(), and grease_pencil_vertex_paint_set_exec().
| void blender::ed::greasepencil::apply_eval_grease_pencil_data | ( | const GreasePencil & | eval_grease_pencil, |
| int | eval_frame, | ||
| const IndexMask & | orig_layers, | ||
| GreasePencil & | orig_grease_pencil ) |
Applies the eval_grease_pencil onto the orig_grease_pencil at the eval_frame. The orig_grease_pencil is modified in-place. The mapping between the layers is created based on the layer name.
| eval_grease_pencil | The source Grease Pencil data. |
| eval_frame | The frame at which to apply the data. |
| orig_layers | Selection of original layers to modify. |
| orig_grease_pencil | The destination Grease Pencil data. |
Definition at line 1959 of file grease_pencil_utils.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), apply_eval_grease_pencil_data(), blender::bke::greasepencil::TreeNode::as_layer(), blender::bke::greasepencil::Layer::as_node(), blender::bke::CurvesGeometry::attributes_for_write(), blender::BKE_id_free(), blender::BLI_addtail(), blender::BLI_assert(), blender::bke::AttributeAccessor::contains(), blender::IndexRange::contains(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::bke::Curve, blender::bke::AttributeIter::data_type, blender::DEG_get_original(), blender::bke::AttributeIter::domain, blender::bke::GSpanAttributeWriter::finish(), blender::bke::SpanAttributeWriter< T >::finish(), blender::bke::AttributeAccessor::foreach_attribute(), blender::index_mask::IndexMask::foreach_index(), blender::VArray< T >::from_single(), blender::bke::attribute_math::gather(), blender::bke::AttributeIter::get(), blender::GP_DRAWING, blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_of_try(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::IndexRange::IndexRange(), blender::array_utils::indices_are_range(), blender::array_utils::indices_non_negative(), blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::bke::greasepencil::TreeNode::is_layer(), blender::bke::Layer, layer, blender::bke::greasepencil::Layer::local_transform(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::geometry::merge_layers_by_name(), blender::bDeformGroup::name, blender::bke::AttributeIter::name, blender::GreasePencilLayer::opacity, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::remove(), blender::bke::MutableAttributeAccessor::remove_anonymous(), blender::bke::greasepencil::Layer::set_local_transform(), blender::bke::GSpanAttributeWriter::span, blender::bke::SpanAttributeWriter< T >::span, blender::bke::String, blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), blender::bke::GAttributeReader::varray, blender::CurvesGeometry::vertex_group_names, and blender::gpu::wrap().
Referenced by apply_eval_grease_pencil_data(), blender::ed::object::apply_grease_pencil_for_modifier(), blender::ed::object::apply_grease_pencil_for_modifier_all_keyframes(), and blender::ed::geometry::store_result_geometry().
| bool blender::ed::greasepencil::apply_mask_as_segment_selection | ( | bke::CurvesGeometry & | curves, |
| const IndexMask & | point_selection_mask, | ||
| const StringRef | attribute_name, | ||
| const Curves2DBVHTree & | tree_data, | ||
| const IndexRange | tree_data_range, | ||
| const eSelectOp | sel_op ) |
Definition at line 159 of file grease_pencil_select.cc.
References apply_mask_as_segment_selection(), apply_mask_as_selection(), blender::ed::curves::apply_selection_operation_at_index(), blender::bke::Bool, blender::ed::curves::ensure_selection_attribute(), find_curve_segments(), blender::offset_indices::OffsetIndices< T >::index_range(), blender::index_mask::IndexMask::is_empty(), blender::threading::parallel_for(), blender::bke::Point, blender::bke::curves::point_to_curve_selection(), blender::ed::greasepencil::CurveSegmentsData::segment_offsets, blender::bke::GSpanAttributeWriter::span, blender::ed::greasepencil::Curves2DBVHTree::start_positions, and blender::index_mask::IndexMask::to_bools().
Referenced by apply_mask_as_segment_selection(), and selection_update().
| bool blender::ed::greasepencil::apply_mask_as_selection | ( | bke::CurvesGeometry & | curves, |
| const IndexMask & | selection_mask, | ||
| const bke::AttrDomain | selection_domain, | ||
| const StringRef | attribute_name, | ||
| const eSelectOp | sel_op ) |
Definition at line 117 of file grease_pencil_select.cc.
References apply_mask_as_selection(), blender::ed::curves::apply_selection_operation_at_index(), blender::bke::Bool, blender::bke::Curve, blender::ed::curves::ensure_selection_attribute(), blender::bke::GSpanAttributeWriter::finish(), blender::index_mask::IndexMask::foreach_index(), blender::ed::curves::get_curves_selection_attribute_names(), blender::exec_mode::grain_size(), blender::index_mask::IndexMask::is_empty(), and blender::bke::GSpanAttributeWriter::span.
Referenced by apply_mask_as_segment_selection(), apply_mask_as_selection(), and selection_update().
|
static |
Definition at line 439 of file grease_pencil_frames.cc.
References attributes_elements_are_equal(), blender::blender::Span< T >::begin(), blender::blender::Span< T >::end(), and blender::VArrayCommon< T >::get_if_single().
Referenced by attributes_elements_are_equal().
|
static |
Definition at line 416 of file grease_pencil_frames.cc.
References attributes_varrays_not_equal(), blender::GVArrayCommon::size(), blender::GVArrayCommon::type(), and blender::bke::GAttributeReader::varray.
Referenced by attributes_varrays_not_equal(), and curves_geometry_is_equal().
|
static |
Definition at line 423 of file grease_pencil_frames.cc.
References attributes_varrays_span_data_equal(), blender::GSpan::data(), blender::GVArrayCommon::get_internal_span(), blender::GVArrayCommon::is_span(), and blender::bke::GAttributeReader::varray.
Referenced by attributes_varrays_span_data_equal(), and curves_geometry_is_equal().
|
static |
Definition at line 141 of file grease_pencil_bake_animation.cc.
References blender::ed::object::add_type(), blender::bke::CurvesGeometry::attributes(), bake_grease_pencil_animation_exec(), blender::BKE_MAT_ASSIGN_USERPREF, blender::BKE_object_material_assign(), blender::BKE_object_material_get(), blender::BKE_object_material_index_get(), blender::BKE_object_material_slot_add(), blender::BKE_scene_graph_update_for_newframe(), blender::BLI_assert(), C, blender::RenderData::cfra, blender::CTX_data_ensure_evaluated_depsgraph(), blender::CTX_data_main(), blender::CTX_data_scene(), blender::CTX_wm_region(), blender::CTX_wm_view3d(), blender::Scene::cursor, blender::bke::Curve, blender::bke::CurvesGeometry::curves_range(), blender::Object::data, blender::DEG_get_ctime(), blender::DEG_get_evaluated(), blender::ed::greasepencil::DrawingPlacement::DrawingPlacement(), blender::RenderData::efra, blender::bke::SpanAttributeWriter< T >::finish(), get_bake_targets(), get_selected_object_keyframes(), blender::MutableSpan< T >::index_range(), blender::IndexRange::IndexRange(), blender::math::invert(), Keep, blender::View3D::local_view_uid, blender::View3D::localvd, blender::View3DCursor::location, blender::bke::AttributeAccessor::lookup_or_default(), node, blender::OB_GREASE_PENCIL, blender::threading::parallel_for(), blender::wmOperator::ptr, blender::Scene::r, blender::RNA_boolean_get(), blender::RNA_enum_get(), blender::RNA_int_get(), blender::RenderData::sfra, blender::bke::SpanAttributeWriter< T >::span, step, blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::Object::totcol, blender::math::transform_points(), and blender::WM_cursor_wait().
Referenced by bake_grease_pencil_animation_exec(), and GREASE_PENCIL_OT_bake_grease_pencil_animation().
|
static |
Definition at line 51 of file grease_pencil_bake_animation.cc.
References bake_grease_pencil_animation_invoke(), C, blender::CTX_data_scene(), blender::RenderData::efra, IFACE_, blender::wmOperator::ptr, blender::Scene::r, blender::RNA_property_int_get(), blender::RNA_property_int_set(), blender::RNA_property_is_set(), blender::RNA_struct_find_property(), blender::RenderData::sfra, and blender::WM_operator_props_dialog_popup().
Referenced by bake_grease_pencil_animation_invoke(), and GREASE_PENCIL_OT_bake_grease_pencil_animation().
|
static |
Definition at line 290 of file grease_pencil_bake_animation.cc.
References bake_grease_pencil_animation_poll(), C, blender::CTX_data_active_object(), blender::CTX_wm_area(), ELEM, blender::Object::mode, blender::OB_EMPTY, blender::OB_GREASE_PENCIL, blender::OB_MODE_OBJECT, blender::ScrArea::spacetype, and blender::Object::type.
Referenced by bake_grease_pencil_animation_poll(), and GREASE_PENCIL_OT_bake_grease_pencil_animation().
|
static |
Definition at line 577 of file fill.cc.
References boundary_to_curves(), blender::ed::greasepencil::ImageBufferAccessor::coord_from_index(), blender::CURVE_TYPE_POLY, position, blender::ed::greasepencil::DrawingPlacement::project_with_shift(), and blender::math::transform_point().
Referenced by boundary_to_curves(), and process_image().
|
static |
Definition at line 39 of file grease_pencil_modes.cc.
References brush_cursor_poll(), C, blender::WM_toolsystem_active_tool_has_custom_cursor(), and blender::WM_toolsystem_active_tool_is_brush().
Referenced by brush_cursor_poll(), and paintmode_toggle_exec().
|
static |
Definition at line 1634 of file grease_pencil_utils.cc.
References blender::BKE_brush_radius_get(), blender::BKE_brush_unprojected_radius_get(), blender::BRUSH_LOCK_SIZE, brush_radius_at_location(), and pixel_radius_to_world_space_radius().
Referenced by brush_radius_at_location(), and radius_from_input_sample().
| Curves2DBVHTree blender::ed::greasepencil::build_curves_2d_bvh_from_visible | ( | const ViewContext & | vc, |
| const Object & | object, | ||
| const GreasePencil & | grease_pencil, | ||
| Span< MutableDrawingInfo > | drawings, | ||
| int | frame_number ) |
Construct a 2D BVH tree from the screen space line segments of visible curves.
Definition at line 929 of file grease_pencil_geom.cc.
References blender::offset_indices::accumulate_counts_to_offsets(), blender::BLI_bvhtree_balance(), blender::BLI_bvhtree_insert(), blender::BLI_bvhtree_new(), build_curves_2d_bvh_from_visible(), blender::data, blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::IndexRange::drop_back(), blender::ED_view3d_ob_project_mat_get_from_obmat(), blender::ED_view3d_project_float_v2_m4(), blender::MutableSpan< T >::first(), blender::index_mask::IndexMask::foreach_index(), blender::Span< T >::index_range(), blender::IndexRange::last(), blender::MutableSpan< T >::last(), layer, blender::ed::greasepencil::MutableDrawingInfo::layer_index, blender::ViewContext::region, blender::ViewContext::rv3d, blender::Span< T >::size(), and blender::bke::greasepencil::Drawing::strokes().
Referenced by build_curves_2d_bvh_from_visible(), and selection_update().
|
static |
Get the outline points of a shape using Moore Neighborhood algorithm
This is a Blender customized version of the general algorithm described in https://en.wikipedia.org/wiki/Moore_neighborhood
Definition at line 462 of file fill.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), Border, build_fill_boundary(), blender::ed::greasepencil::ImageBufferAccessor::coord_from_index(), Fill, get_flag(), blender::ed::greasepencil::ImageBufferAccessor::height(), blender::ed::greasepencil::ImageBufferAccessor::index_from_coord(), blender::IndexRange::IndexRange(), blender::ed::greasepencil::ImageBufferAccessor::is_valid_coord(), num_directions, offset_by_direction, blender::ed::greasepencil::FillBoundary::offset_indices, blender::ed::greasepencil::FillBoundary::pixels, blender::ed::greasepencil::ImageBufferAccessor::pixels(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::ed::greasepencil::ImageBufferAccessor::width(), wrap_dir_3n(), blender::x, and y.
Referenced by build_fill_boundary(), and process_image().
|
static |
Definition at line 679 of file grease_pencil_frames.cc.
References calculate_offset(), blender::ed::greasepencil::KeyframeClipboard::cfra, blender::ed::greasepencil::KeyframeClipboard::first_frame, blender::KEYFRAME_PASTE_OFFSET_CFRA_END, blender::KEYFRAME_PASTE_OFFSET_CFRA_RELATIVE, blender::KEYFRAME_PASTE_OFFSET_CFRA_START, blender::KEYFRAME_PASTE_OFFSET_NONE, and blender::ed::greasepencil::KeyframeClipboard::last_frame.
Referenced by calculate_offset(), and grease_pencil_paste_keyframes().
|
static |
Definition at line 3343 of file grease_pencil_edit.cc.
References calculate_radius_projection_factor(), blender::RegionView3D::is_persp, blender::math::length(), and blender::RegionView3D::viewinv.
Referenced by calculate_radius_projection_factor(), and grease_pencil_reproject_exec().
| float4x2 blender::ed::greasepencil::calculate_texture_space | ( | const Scene * | scene, |
| const ARegion * | region, | ||
| const float2 & | mouse, | ||
| const DrawingPlacement & | placement ) |
Definition at line 1784 of file grease_pencil_utils.cc.
References calculate_texture_space(), blender::Scene::cursor, blender::math::dot(), blender::GP_LOCKAXIS_CURSOR, blender::GP_LOCKAXIS_VIEW, blender::GP_LOCKAXIS_X, blender::GP_LOCKAXIS_Y, blender::GP_LOCKAXIS_Z, blender::ToolSettings::gp_sculpt, blender::View3DCursor::location, blender::GP_Sculpt_Settings::lock_axis, blender::math::normalize(), blender::ed::greasepencil::DrawingPlacement::project(), blender::Scene::toolsettings, blender::math::transpose(), blender::ARegion::winx, and blender::ARegion::winy.
Referenced by calculate_texture_space(), blender::ed::sculpt_paint::grease_pencil_apply_fill(), grease_pencil_primitive_invoke(), and blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_begin().
Definition at line 205 of file grease_pencil_ops.cc.
References blender::BKE_object_material_index_get(), check_brush_needs_new_material(), and blender::GP_BRUSH_MATERIAL_PINNED.
Referenced by check_brush_needs_new_material(), grease_pencil_draw_operator_begin(), and blender::ed::sculpt_paint::grease_pencil_fill_invoke().
|
inline |
Definition at line 49 of file grease_pencil_select.cc.
References blender::BLI_assert(), clamp_range(), blender::IndexRange::first(), blender::IndexRange::is_empty(), and blender::IndexRange::last().
Referenced by clamp_range(), and foreach_curve_segment().
| void blender::ed::greasepencil::clipboard_free | ( | ) |
Definition at line 2600 of file grease_pencil_edit.cc.
References clipboard_free(), grease_pencil_clipboard, grease_pencil_clipboard_lock, and lock.
Referenced by clipboard_free(), and blender::WM_exit_ex().
|
static |
Definition at line 2610 of file grease_pencil_edit.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::BKE_grease_pencil_object_material_new(), blender::BKE_object_material_ensure(), clipboard_materials_remap(), ensure_grease_pencil_clipboard(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_default(), blender::ed::greasepencil::Clipboard::materials, blender::Main::materials, and blender::ed::greasepencil::Clipboard::materials_in_source_num.
Referenced by clipboard_materials_remap(), and clipboard_paste_strokes_ex().
|
static |
Definition at line 2786 of file grease_pencil_edit.cc.
References blender::bke::CurvesGeometry::attributes_for_write(), clipboard_materials_remap(), clipboard_paste_strokes_ex(), blender::bke::Curve, blender::bke::curves_new_nomain(), blender::bke::CurvesGeometry::curves_num(), blender::bke::SpanAttributeWriter< T >::finish(), blender::VArray< T >::from_container(), blender::bke::GeometrySet::from_curves(), blender::bke::GeometrySet::get_curves_for_write(), blender::MatBase< float, 4, 4 >::identity(), blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), join_geometries_with_transforms(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::bke::SpanAttributeWriter< T >::span, blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::bke::greasepencil::Drawing::tag_topology_changed().
Referenced by clipboard_paste_strokes_ex(), grease_pencil_paste_strokes_exec(), and paste_all_strokes_from_clipboard().
| Array< PointTransferData > blender::ed::greasepencil::compute_topology_change | ( | const bke::CurvesGeometry & | src, |
| bke::CurvesGeometry & | dst, | ||
| const Span< Vector< PointTransferData > > | src_to_dst_points, | ||
| const bool | keep_caps ) |
Computes a dst curves geometry by applying a change of topology from a src curves geometry. The change of topology is described by src_to_dst_points, which size should be equal to the number of points in the source. For each point in the source, the corresponding vector in src_to_dst_points contains a set of destination points (PointTransferData), which can correspond to points of the source, or linear combination of them. Note that this vector can be empty, if we want to remove points for example. Curves can also be split if a destination point is marked as a cut.
Definition at line 1411 of file grease_pencil_utils.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::Array(), compute_topology_change(), blender::bke::CurvesGeometry::curves_num(), blender::bke::CurvesGeometry::curves_range(), blender::bke::CurvesGeometry::cyclic(), blender::threading::parallel_for(), blender::bke::CurvesGeometry::points_by_curve(), and blender::bke::CurvesGeometry::resize().
Referenced by compute_topology_change(), and blender::ed::sculpt_paint::greasepencil::EraseOperationExecutor::hard_eraser().
|
static |
Definition at line 205 of file grease_pencil_primitive.cc.
References blender::ed::greasepencil::PrimitiveToolOperation::active_control_point_index, Box, Circle, control_point_center, control_point_colors_and_sizes(), ELEM, blender::MutableSpan< T >::fill(), blender::ui::theme::get_color_4fv(), get_control_point_type(), blender::MutableSpan< T >::index_range(), blender::math::interpolate(), JoinPoint, blender::MutableSpan< T >::last(), Line, Polyline, blender::ed::greasepencil::PrimitiveToolOperation::segments, blender::TH_GIZMO_A, blender::TH_GIZMO_B, blender::TH_GIZMO_PRIMARY, blender::TH_GIZMO_SECONDARY, blender::ed::greasepencil::PrimitiveToolOperation::type, ui_primary_point_draw_size_px, ui_secondary_point_draw_size_px, and ui_tertiary_point_draw_size_px.
Referenced by control_point_colors_and_sizes(), and draw_control_points().
|
static |
Definition at line 170 of file grease_pencil_primitive.cc.
References Arc, BLI_assert_unreachable, Box, Circle, control_points_per_segment(), Curve, Line, Polyline, and blender::ed::greasepencil::PrimitiveToolOperation::type.
Referenced by control_points_per_segment(), get_control_point_type(), grease_pencil_primitive_event_modal_map(), grease_pencil_primitive_extruding_update(), grease_pencil_primitive_invoke(), and primitive_calculate_curve_positions().
|
static |
Definition at line 183 of file fill.cc.
References convert_colors_to_flags(), blender::ed::greasepencil::ImageBufferAccessor::pixels(), Seed, and Stroke.
Referenced by convert_colors_to_flags(), and process_image().
|
static |
Definition at line 196 of file fill.cc.
References blender::ColorRGBA< ChannelStorageType, Space, Alpha >::a, b, blender::ColorRGBA< ChannelStorageType, Space, Alpha >::b, Border, convert_flags_to_colors(), Debug, Fill, blender::ColorRGBA< ChannelStorageType, Space, Alpha >::g, blender::ed::greasepencil::ImageBufferAccessor::pixels(), blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r, Seed, and Stroke.
Referenced by convert_flags_to_colors(), and process_image().
|
static |
Definition at line 4801 of file grease_pencil_edit.cc.
References blender::geometry::convert_curves(), convert_to_bezier(), blender::CURVE_TYPE_BEZIER, blender::CURVE_TYPE_POLY, fit_poly_curves(), blender::index_mask::IndexMask::is_empty(), and options.
Referenced by convert_to_bezier(), and grease_pencil_convert_curve_type_exec().
|
static |
Definition at line 4745 of file grease_pencil_edit.cc.
References blender::geometry::convert_curves(), convert_to_catmull_rom(), blender::CURVE_TYPE_CATMULL_ROM, blender::index_mask::IndexMask::is_empty(), options, blender::geometry::resample_to_evaluated(), and blender::geometry::simplify_curve_attribute().
Referenced by convert_to_catmull_rom(), and grease_pencil_convert_curve_type_exec().
|
static |
Definition at line 4823 of file grease_pencil_edit.cc.
References blender::geometry::convert_curves(), convert_to_nurbs(), blender::CURVE_TYPE_NURBS, blender::CURVE_TYPE_POLY, fit_poly_curves(), blender::index_mask::IndexMask::is_empty(), and options.
Referenced by convert_to_nurbs(), and grease_pencil_convert_curve_type_exec().
|
static |
Definition at line 4784 of file grease_pencil_edit.cc.
References convert_to_poly(), blender::CURVE_TYPE_POLY, blender::index_mask::IndexMask::is_empty(), and blender::geometry::resample_to_evaluated().
Referenced by convert_to_poly(), and grease_pencil_convert_curve_type_exec().
|
static |
Definition at line 5572 of file grease_pencil_edit.cc.
References blender::BKE_grease_pencil_copy_layer_parameters(), copy_layer(), blender::bke::greasepencil::Layer::frames(), blender::bke::greasepencil::Layer::frames_for_write(), and blender::bke::greasepencil::Layer::tag_frames_map_changed().
Referenced by copy_layer(), and copy_layer_group_content().
|
static |
Definition at line 1099 of file grease_pencil_layers.cc.
References Active, blender::bke::attribute_type_to_cpp_type(), blender::BKE_grease_pencil_copy_layer_parameters(), blender::BLI_assert(), BUFFER_FOR_CPP_TYPE_VALUE, copy_layer_and_frames_to_target_object(), blender::bke::AttributeIter::data_type, blender::bke::AttributeIter::domain, blender::bke::GAttributeWriter::finish(), blender::bke::AttributeAccessor::foreach_attribute(), blender::GVArrayCommon::get(), blender::bke::Layer, blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write(), blender::bke::AttributeIter::name, blender::GVMutableArray::set_by_copy(), blender::bke::GAttributeReader::varray, and blender::bke::GAttributeWriter::varray.
Referenced by copy_layer_and_frames_to_target_object(), and grease_pencil_layer_duplicate_object_exec().
|
static |
Definition at line 5593 of file grease_pencil_edit.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::GreasePencilLayerTreeGroup::children, copy_layer(), copy_layer_group_content(), copy_layer_group_recursive(), blender::GP_LAYER_TREE_GROUP, blender::GP_LAYER_TREE_LEAF, blender::GreasePencilLayerTreeNode::type, and blender::gpu::wrap().
Referenced by copy_layer_group_content(), copy_layer_group_recursive(), and join_object_with_active().
|
static |
Definition at line 5617 of file grease_pencil_edit.cc.
References blender::GreasePencilLayerTreeGroup::base, blender::BKE_grease_pencil_copy_layer_group_parameters(), copy_layer_group_content(), copy_layer_group_recursive(), and blender::GreasePencilLayerTreeNode::name.
Referenced by copy_layer_group_content(), and copy_layer_group_recursive().
|
static |
Definition at line 26 of file grease_pencil_merge.cc.
References blender::BKE_grease_pencil_copy_layer_group_parameters(), blender::GreasePencilLayerTreeGroup::children, copy_layer_groups_without_layers(), and node.
Referenced by copy_layer_groups_without_layers(), and merge_layers().
| void blender::ed::greasepencil::create_blank | ( | Main & | bmain, |
| Object & | object, | ||
| const int | frame_number ) |
Definition at line 1157 of file grease_pencil_add.cc.
References add_material_from_template(), create_blank(), blender::data, DATA_, and gp_stroke_material_black.
Referenced by create_blank(), and blender::ed::object::object_grease_pencil_add_exec().
|
static |
Definition at line 1551 of file fill.cc.
References blender::MultiValueMap< Key, Value >::add(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::BLI_assert(), create_connected_edges_from_fill(), decode_index(), decode_side(), EDGE_CONNECTION_NULL, encode_index_and_side(), End, blender::array_utils::fill_index_range(), follow_edge_connections(), blender::Span< T >::index_range(), invert(), NULL_INDEX, blender::Span< T >::size(), Start, and blender::MultiValueMap< Key, Value >::values().
Referenced by create_connected_edges_from_fill().
| bke::CurvesGeometry blender::ed::greasepencil::create_curves_outline | ( | const bke::greasepencil::Drawing & | drawing, |
| const IndexMask & | strokes, | ||
| const float4x4 & | transform, | ||
| int | corner_subdivisions, | ||
| float | outline_radius, | ||
| float | outline_offset, | ||
| int | material_index ) |
Create new strokes tracing the rendered outline of existing strokes.
| drawing | Drawing with input strokes. |
| strokes | Selection curves to trace. |
| transform | Transform to apply to strokes. |
| corner_subdivisions | Subdivisions for corners and start/end cap. |
| outline_radius | Radius of the new outline strokes. |
| outline_offset | Offset of the outline from the original stroke. |
| material_index | The material index for the new outline strokes. |
Definition at line 753 of file grease_pencil_geom.cc.
References blender::bke::CurvesGeometry::attributes(), blender::math::average(), create_curves_outline(), blender::bke::Curve, blender::GP_STROKE_CAP_ROUND, GP_STROKE_MITER_ANGLE_ROUND, blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::bke::AttributeAccessor::lookup_or_default(), blender::threading::parallel_for(), blender::bke::Point, blender::bke::CurvesGeometry::positions(), blender::bke::greasepencil::Drawing::radii(), scale(), blender::Span< T >::size(), blender::VArrayCommon< T >::size(), blender::bke::greasepencil::Drawing::strokes(), blender::math::to_scale(), and blender::math::transform_points().
Referenced by create_curves_outline(), blender::io::grease_pencil::GreasePencilExporter::foreach_shape_in_layer(), grease_pencil_outline_exec(), blender::modify_drawing(), and blender::ed::sculpt_paint::greasepencil::outline_stroke().
|
static |
Definition at line 1095 of file grease_pencil_add.cc.
References blender::MutableSpan< T >::copy_from(), create_drawing_data(), blender::CURVE_TYPE_POLY, blender::bke::SpanAttributeWriter< T >::finish(), blender::Span< T >::is_empty(), blender::Span< T >::last(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::Span< T >::size(), and blender::bke::SpanAttributeWriter< T >::span.
Referenced by create_drawing_data(), create_stroke(), and create_suzanne().
| void blender::ed::greasepencil::create_keyframe_edit_data_selected_frames_list | ( | KeyframeEditData * | ked, |
| const bke::greasepencil::Layer & | layer ) |
Definition at line 332 of file grease_pencil_frames.cc.
References append_frame_to_key_edit_data(), blender::BLI_assert(), create_keyframe_edit_data_selected_frames_list(), and layer.
Referenced by create_keyframe_edit_data_selected_frames_list().
| void blender::ed::greasepencil::create_stroke | ( | Main & | bmain, |
| Object & | object, | ||
| const float4x4 & | matrix, | ||
| const int | frame_number ) |
Definition at line 1170 of file grease_pencil_add.cc.
References add_material_from_template(), create_drawing_data(), create_stroke(), blender::data, DATA_, gp_fill_material_grey, gp_stroke_material_black, gp_stroke_material_blue, gp_stroke_material_green, gp_stroke_material_red, gp_stroke_material_white, stroke_opacities(), stroke_positions(), stroke_radii(), blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::bke::greasepencil::Drawing::tag_topology_changed().
Referenced by create_stroke(), and blender::ed::object::object_grease_pencil_add_exec().
| void blender::ed::greasepencil::create_suzanne | ( | Main & | bmain, |
| Object & | object, | ||
| const float4x4 & | matrix, | ||
| const int | frame_number ) |
Definition at line 1202 of file grease_pencil_add.cc.
References add_material_from_template(), create_drawing_data(), create_suzanne(), blender::data, DATA_, gp_monkey_material_black, gp_monkey_material_eyes, gp_monkey_material_skin, gp_monkey_material_skin_light, gp_monkey_material_skin_shadow, monkey_fill_offsets(), monkey_fill_opacities(), monkey_fill_positions(), monkey_fill_radii(), monkey_line_offsets(), monkey_line_opacities(), monkey_line_positions(), monkey_line_radii(), blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::bke::greasepencil::Drawing::tag_topology_changed().
Referenced by create_suzanne(), and blender::ed::object::object_grease_pencil_add_exec().
| int blender::ed::greasepencil::curve_merge_by_distance | ( | const IndexRange | points, |
| const Span< float > | distances, | ||
| const IndexMask & | selection, | ||
| const float | merge_distance, | ||
| MutableSpan< int > | r_merge_indices ) |
Merge points on the same curve that are close together.
Definition at line 181 of file grease_pencil_geom.cc.
References curve_merge_by_distance(), blender::Array< T, InlineBufferCapacity, Allocator >::data(), blender::array_utils::fill_index_range(), blender::IndexRange::first(), blender::index_mask::IndexMask::foreach_index(), blender::kdtree_balance(), blender::kdtree_calc_duplicates_fast(), blender::kdtree_free(), blender::kdtree_insert(), blender::kdtree_new(), and blender::index_mask::IndexMask::size().
Referenced by curve_merge_by_distance().
|
static |
Definition at line 455 of file grease_pencil_frames.cc.
References blender::bke::AttributeAccessor::all_names(), blender::bke::CurvesGeometry::attributes(), attributes_varrays_not_equal(), attributes_varrays_span_data_equal(), curves_geometry_is_equal(), blender::bke::CurvesGeometry::curves_num(), blender::bke::CurvesGeometry::is_empty(), blender::bke::AttributeAccessor::lookup(), blender::bke::CurvesGeometry::offsets(), blender::bke::CurvesGeometry::points_num(), T, blender::bke::attribute_math::to_static_type(), blender::GVArrayCommon::type(), and blender::bke::GAttributeReader::varray.
Referenced by curves_geometry_is_equal(), and frame_clean_duplicate_exec().
| bke::CurvesGeometry blender::ed::greasepencil::curves_merge_by_distance | ( | const bke::CurvesGeometry & | src_curves, |
| const float | merge_distance, | ||
| const IndexMask & | selection, | ||
| const bke::AttributeFilter & | attribute_filter ) |
Merge points that are close together on each selected curve. Points are not merged across curves.
Definition at line 213 of file grease_pencil_geom.cc.
References blender::BKE_defgroup_copy_list(), blender::bke::curves::copy_only_curve_domain(), curves_merge_by_distance(), blender::bke::CurvesGeometry::curves_num(), blender::bke::CurvesGeometry::curves_range(), blender::bke::CurvesGeometry::cyclic(), blender::bke::CurvesGeometry::ensure_evaluated_lengths(), blender::bke::CurvesGeometry::offsets_for_write(), blender::threading::parallel_for(), blender::bke::CurvesGeometry::points_by_curve(), blender::bke::CurvesGeometry::points_num(), and blender::CurvesGeometry::vertex_group_names.
Referenced by curves_merge_by_distance(), grease_pencil_stroke_merge_by_distance_exec(), grease_pencil_stroke_simplify_exec(), and blender::simplify_drawing().
| bke::CurvesGeometry blender::ed::greasepencil::curves_merge_endpoints_by_distance | ( | const ARegion & | region, |
| const bke::CurvesGeometry & | src_curves, | ||
| const float4x4 & | layer_to_world, | ||
| const float | merge_distance, | ||
| const IndexMask & | selection, | ||
| const bke::AttributeFilter & | attribute_filter ) |
Connect selected curve endpoints with the closest endpoints of other curves.
Definition at line 344 of file grease_pencil_geom.cc.
References blender::bke::CurvesGeometry::attributes(), blender::bke::Curve, curves_merge_endpoints_by_distance(), blender::bke::CurvesGeometry::curves_num(), blender::bke::CurvesGeometry::curves_range(), blender::kdtree_new(), blender::bke::AttributeAccessor::lookup_or_default(), blender::threading::parallel_for(), blender::bke::CurvesGeometry::points_by_curve(), and blender::bke::CurvesGeometry::positions().
Referenced by curves_merge_endpoints_by_distance(), grease_pencil_primitive_exit(), and blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done().
|
static |
Definition at line 1088 of file fill.cc.
References blender::math::abs(), and decode_index().
Referenced by create_connected_edges_from_fill(), decode_index(), and follow_edge_connections().
|
static |
Definition at line 1093 of file fill.cc.
References decode_side(), End, and Start.
Referenced by create_connected_edges_from_fill(), decode_side(), and follow_edge_connections().
| std::optional< bke::CurvesGeometry > blender::ed::greasepencil::delaunay_fill_strokes | ( | const ViewContext & | view_context, |
| const Scene & | scene, | ||
| const bke::greasepencil::Layer & | layer, | ||
| const VArray< bool > & | boundary_layers, | ||
| const Span< DrawingInfo > | src_drawings, | ||
| bool | invert, | ||
| std::optional< float > | opacity_threshold, | ||
| bool | internal_gaps, | ||
| float | gap_factor, | ||
| const GroupedSpan< float2 > & | fill_points ) |
Fill tool for generating strokes in empty areas.
This uses delaunay triangulation to compute exact fill geometry.
This is based on "Delaunay painting: Perceptual image colouring from raster contours with gaps." (Parakkat, Amal Dev, Pooran Memari, and Marie-Paule Cani)
Will return nullopt when unable to fill.
| layer | The layer containing the new stroke, used for projecting the geometry. |
| boundary_layers | Layers that are purely for boundaries, regular strokes are skipped. |
| src_drawings | Drawings to include as boundary strokes. |
| invert | Construct boundary around empty areas instead. |
| opacity_threshold | Skip transparent stroke where opacity is below the threshold. |
| gap_factor | Automatically detect gaps using edge ratio. |
| fill_points | Points from which to start each bucket fill. |
Definition at line 1627 of file fill.cc.
References blender::ed::greasepencil::DrawingPlacement::cache_viewport_depths(), blender::CDT_FULL, blender::DEG_get_evaluated(), delaunay_fill_strokes(), blender::ViewContext::depsgraph, get_input_from_drawings(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::IndexRange::index_range(), invert(), layer, blender::ViewContext::obact, blender::threading::parallel_for(), blender::ViewContext::region, blender::result, blender::IndexRange::take_back(), blender::ed::greasepencil::DrawingPlacement::use_project_to_stroke(), blender::ed::greasepencil::DrawingPlacement::use_project_to_surface(), and blender::ViewContext::v3d.
Referenced by delaunay_fill_strokes().
|
static |
Definition at line 383 of file fill.cc.
References blender::ed::greasepencil::ImageBufferAccessor::coord_from_index(), dilate(), Fill, get_flag(), blender::MutableSpan< T >::index_range(), blender::IndexRange::IndexRange(), blender::Stack< T, InlineBufferCapacity, Allocator >::is_empty(), blender::ed::greasepencil::ImageBufferAccessor::is_valid_coord(), offset_by_direction, blender::ed::greasepencil::ImageBufferAccessor::pixel_from_coord(), blender::ed::greasepencil::ImageBufferAccessor::pixels(), blender::Stack< T, InlineBufferCapacity, Allocator >::pop(), blender::Stack< T, InlineBufferCapacity, Allocator >::push(), and set_flag().
Referenced by dilate(), and process_image().
|
static |
Definition at line 265 of file grease_pencil_primitive.cc.
References control_point_colors_and_sizes(), blender::ed::greasepencil::PrimitiveToolOperation::control_points, draw_control_points(), blender::GPU_PRIM_POINTS, blender::GPU_program_point_size(), blender::GPU_SHADER_3D_POINT_VARYING_SIZE_VARYING_COLOR, blender::GPU_vertformat_attr_add(), blender::immAttr1f(), blender::immAttr4f(), blender::immBegin(), blender::immBindBuiltinProgram(), blender::immEnd(), blender::immUnbindProgram(), blender::immVertex3fv(), blender::immVertexFormat(), blender::ed::greasepencil::PrimitiveToolOperation::placement, blender::ed::greasepencil::DrawingPlacement::to_world_space(), and blender::math::transform_point().
Referenced by draw_control_points(), and grease_pencil_primitive_draw().
|
static |
Definition at line 2201 of file grease_pencil_edit.cc.
References blender::ed::object::add_duplicate(), blender::BKE_grease_pencil_add(), blender::BKE_grease_pencil_copy_parameters(), blender::Object::data, duplicate_grease_pencil_object(), blender::Object::mode, blender::OB_MODE_OBJECT, blender::Base::object, blender::U, blender::USER_DUP_ACT, and blender::USER_DUP_GPENCIL.
Referenced by duplicate_grease_pencil_object(), grease_pencil_separate_layer(), grease_pencil_separate_material(), and grease_pencil_separate_selected().
| bool blender::ed::greasepencil::duplicate_selected_frames | ( | GreasePencil & | grease_pencil, |
| bke::greasepencil::Layer & | layer ) |
Creates duplicate frames for each selected frame in the layer. The duplicates are stored in the LayerTransformData structure of the layer runtime data. This function also deselects the selected frames, while keeping the duplicates selected.
Definition at line 155 of file grease_pencil_frames.cc.
References blender::GreasePencilFrame::drawing_index, duplicate_selected_frames(), blender::bke::greasepencil::LayerTransformData::duplicated_frames_buffer, blender::GP_FRAME_SELECTED, and layer.
Referenced by blender::duplicate_action_keys(), and duplicate_selected_frames().
| bool blender::ed::greasepencil::editable_grease_pencil_point_selection_poll | ( | bContext * | C | ) |
Definition at line 102 of file grease_pencil_ops.cc.
References C, blender::CTX_data_tool_settings(), editable_grease_pencil_point_selection_poll(), editable_grease_pencil_poll(), blender::GP_SELECTMODE_STROKE, and blender::ToolSettings::gpencil_selectmode_edit.
Referenced by editable_grease_pencil_point_selection_poll(), GREASE_PENCIL_OT_dissolve(), GREASE_PENCIL_OT_extrude(), GREASE_PENCIL_OT_select_alternate(), GREASE_PENCIL_OT_select_ends(), GREASE_PENCIL_OT_select_less(), GREASE_PENCIL_OT_select_linked(), GREASE_PENCIL_OT_select_more(), and GREASE_PENCIL_OT_set_start_point().
| bool blender::ed::greasepencil::editable_grease_pencil_poll | ( | bContext * | C | ) |
Definition at line 61 of file grease_pencil_ops.cc.
References C, blender::CTX_data_active_object(), blender::ED_operator_object_active_editable_ex(), editable_grease_pencil_poll(), ID_IS_LINKED, and blender::OB_GREASE_PENCIL.
Referenced by editable_grease_pencil_point_selection_poll(), editable_grease_pencil_poll(), editable_grease_pencil_with_region_view3d_poll(), GREASE_PENCIL_OT_active_frame_delete(), GREASE_PENCIL_OT_caps_set(), GREASE_PENCIL_OT_convert_curve_type(), GREASE_PENCIL_OT_copy(), GREASE_PENCIL_OT_cyclical_set(), GREASE_PENCIL_OT_delete(), GREASE_PENCIL_OT_delete_frame(), GREASE_PENCIL_OT_duplicate(), GREASE_PENCIL_OT_frame_clean_duplicate(), GREASE_PENCIL_OT_frame_duplicate(), GREASE_PENCIL_OT_insert_blank_frame(), GREASE_PENCIL_OT_join_fills(), GREASE_PENCIL_OT_layer_active(), GREASE_PENCIL_OT_layer_merge(), GREASE_PENCIL_OT_material_select(), GREASE_PENCIL_OT_move_to_layer(), GREASE_PENCIL_OT_outline(), GREASE_PENCIL_OT_remove_fill_guides(), GREASE_PENCIL_OT_reset_uvs(), GREASE_PENCIL_OT_select_all(), GREASE_PENCIL_OT_select_by_stroke_type(), GREASE_PENCIL_OT_select_fill(), GREASE_PENCIL_OT_select_random(), GREASE_PENCIL_OT_select_similar(), GREASE_PENCIL_OT_separate(), GREASE_PENCIL_OT_separate_fills(), GREASE_PENCIL_OT_set_active_material(), GREASE_PENCIL_OT_set_corner_type(), GREASE_PENCIL_OT_set_curve_resolution(), GREASE_PENCIL_OT_set_curve_type(), GREASE_PENCIL_OT_set_handle_type(), GREASE_PENCIL_OT_set_selection_mode(), GREASE_PENCIL_OT_set_stroke_type(), GREASE_PENCIL_OT_set_uniform_opacity(), GREASE_PENCIL_OT_set_uniform_thickness(), GREASE_PENCIL_OT_stroke_material_set(), GREASE_PENCIL_OT_stroke_merge_by_distance(), GREASE_PENCIL_OT_stroke_reorder(), GREASE_PENCIL_OT_stroke_simplify(), GREASE_PENCIL_OT_stroke_smooth(), GREASE_PENCIL_OT_stroke_split(), GREASE_PENCIL_OT_stroke_subdivide(), GREASE_PENCIL_OT_stroke_switch_direction(), grease_pencil_paste_strokes_poll(), and grease_pencil_snap_poll().
| bool blender::ed::greasepencil::editable_grease_pencil_with_region_view3d_poll | ( | bContext * | C | ) |
Definition at line 79 of file grease_pencil_ops.cc.
References C, blender::ED_operator_region_view3d_active(), editable_grease_pencil_poll(), and editable_grease_pencil_with_region_view3d_poll().
Referenced by editable_grease_pencil_with_region_view3d_poll(), GREASE_PENCIL_OT_reproject(), and GREASE_PENCIL_OT_texture_gradient().
|
static |
Definition at line 1083 of file fill.cc.
References encode_index_and_side(), and Start.
Referenced by create_connected_edges_from_fill(), and encode_index_and_side().
| bool blender::ed::greasepencil::ensure_active_keyframe | ( | const Scene & | scene, |
| GreasePencil & | grease_pencil, | ||
| bke::greasepencil::Layer & | layer, | ||
| bool | duplicate_previous_key, | ||
| bool & | r_inserted_keyframe ) |
Check for an active keyframe at the current scene time. When there is not, create one when auto-key is on (taking additive drawing setting into account).
Definition at line 344 of file grease_pencil_frames.cc.
References blender::BLI_assert(), blender::RenderData::cfra, ensure_active_keyframe(), blender::GP_TOOL_FLAG_RETAIN_LAST, blender::ToolSettings::gpencil_flags, blender::animrig::is_autokey_on(), layer, blender::Scene::r, and blender::Scene::toolsettings.
Referenced by blender::ed::greasepencil::GreasePencilPenToolOperation::can_create_new_curve(), ensure_active_keyframe(), blender::ed::sculpt_paint::ensure_drawing_for_autokey(), grease_pencil_draw_operator_begin(), grease_pencil_join_fills_exec(), grease_pencil_move_to_layer_exec(), grease_pencil_paste_strokes_exec(), blender::ed::sculpt_paint::grease_pencil_sculpt_paint_invoke(), grease_pencil_texture_gradient_exec(), blender::ed::sculpt_paint::grease_pencil_vertex_brush_stroke_invoke(), blender::ed::greasepencil::GreasePencilPenToolOperation::initialize(), blender::ed::geometry::store_result_geometry(), and stroke_trim_execute().
|
static |
Definition at line 2590 of file grease_pencil_edit.cc.
References ensure_grease_pencil_clipboard(), grease_pencil_clipboard, grease_pencil_clipboard_lock, and lock.
Referenced by clipboard_materials_remap(), ensure_grease_pencil_clipboard(), grease_pencil_copy_strokes_exec(), grease_pencil_paste_strokes_exec(), and paste_all_strokes_from_clipboard().
| bool blender::ed::greasepencil::ensure_selection_domain | ( | ToolSettings * | ts, |
| Object * | object ) |
Definition at line 993 of file grease_pencil_select.cc.
References blender::bke::MutableAttributeAccessor::add(), blender::BLI_assert(), blender::bke::Bool, blender::bke::cpp_type_to_attribute_type(), blender::bke::Curve, blender::ED_grease_pencil_selection_domain_get(), blender::ed::curves::ensure_selection_attribute(), ensure_selection_domain(), blender::ed::curves::fill_selection_true(), blender::bke::GSpanAttributeWriter::finish(), blender::ed::curves::get_curves_selection_attribute_names(), blender::GP_DRAWING, blender::Span< T >::index_range(), blender::bke::AttributeAccessor::lookup(), blender::bke::AttributeAccessor::lookup_meta_data(), blender::GVArrayCommon::materialize_to_uninitialized(), blender::bke::Point, blender::bke::MutableAttributeAccessor::remove(), blender::ed::curves::retrieve_selected_curves(), blender::ed::curves::retrieve_selected_points(), blender::bke::greasepencil::selected_mask_to_fills(), blender::GVArrayCommon::size(), blender::bke::GSpanAttributeWriter::span, blender::GreasePencilDrawingBase::type, and blender::GVArrayCommon::type().
Referenced by blender::ed::object::editmode_enter_ex(), ensure_selection_domain(), paintmode_toggle_exec(), sculptmode_toggle_exec(), select_set_mode_exec(), vertexmode_toggle_exec(), and weightmode_toggle_exec().
|
static |
Definition at line 41 of file grease_pencil_bake_animation.cc.
References ensure_valid_frame_end(), blender::RNA_int_get(), and blender::RNA_int_set().
Referenced by ensure_valid_frame_end(), and GREASE_PENCIL_OT_bake_grease_pencil_animation().
|
static |
Definition at line 413 of file fill.cc.
References blender::ed::greasepencil::ImageBufferAccessor::coord_from_index(), erode(), Fill, get_flag(), blender::MutableSpan< T >::index_range(), blender::IndexRange::IndexRange(), blender::Stack< T, InlineBufferCapacity, Allocator >::is_empty(), blender::ed::greasepencil::ImageBufferAccessor::is_valid_coord(), offset_by_direction, blender::ed::greasepencil::ImageBufferAccessor::pixel_from_coord(), blender::ed::greasepencil::ImageBufferAccessor::pixels(), blender::Stack< T, InlineBufferCapacity, Allocator >::pop(), blender::Stack< T, InlineBufferCapacity, Allocator >::push(), and set_flag().
Referenced by erode(), and process_image().
|
static |
Apply the stroke carver to a drawing.
Definition at line 40 of file grease_pencil_carver.cc.
References blender::bke::greasepencil::Drawing::curve_plane_normals(), blender::bke::CurvesGeometry::curves_num(), blender::bke::CurvesGeometry::curves_range(), execute_carver_on_drawing(), blender::bke::crazyspace::get_evaluated_grease_pencil_drawing_deformation(), blender::threading::parallel_for(), blender::bke::CurvesGeometry::points_by_curve(), and blender::bke::greasepencil::Drawing::strokes().
Referenced by execute_carver_on_drawing().
|
static |
Apply the stroke trim to a drawing.
Definition at line 433 of file grease_pencil_trim.cc.
References execute_trim_on_drawing(), blender::bke::crazyspace::get_evaluated_grease_pencil_drawing_deformation(), blender::threading::parallel_for(), blender::bke::CurvesGeometry::points_num(), blender::bke::CurvesGeometry::points_range(), and blender::bke::greasepencil::Drawing::strokes().
Referenced by execute_trim_on_drawing(), and stroke_trim_execute().
Definition at line 3927 of file grease_pencil_edit.cc.
References expand_4x2_mat().
Referenced by expand_4x2_mat(), and grease_pencil_texture_gradient_exec().
|
static |
Definition at line 3158 of file grease_pencil_edit.cc.
References blender::offset_indices::accumulate_counts_to_offsets(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::bke::attribute_filter_from_skip_ref(), blender::bke::CurvesGeometry::attributes(), blender::bke::CurvesGeometry::attributes_for_write(), blender::BKE_defgroup_copy_list(), blender::bke::Bool, blender::index_mask::IndexMask::complement(), blender::array_utils::copy(), blender::GMutableSpan::copy_from(), blender::offset_indices::copy_group_sizes(), blender::bke::Curve, blender::bke::CurvesGeometry::curve_types(), blender::bke::CurvesGeometry::curves_num(), blender::bke::CurvesGeometry::curves_range(), blender::bke::CurvesGeometry::cyclic(), blender::bke::CurvesGeometry::cyclic_for_write(), blender::MutableSpan< T >::drop_back(), blender::ed::curves::ensure_selection_attribute(), extrude_grease_pencil_curves(), blender::array_utils::fill_index_range(), blender::bke::GSpanAttributeWriter::finish(), blender::IndexRange::first(), blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_predicate(), blender::bke::gather_attributes(), blender::bke::curves::nurbs::gather_custom_knots(), blender::ed::curves::get_curves_selection_attribute_names(), blender::Vector< T, InlineBufferCapacity, Allocator >::insert(), blender::IndexRange::last(), blender::bke::CurvesGeometry::nurbs_has_custom_knots(), blender::NURBS_KNOT_MODE_ENDPOINT, blender::NURBS_KNOT_MODE_NORMAL, blender::bke::CurvesGeometry::nurbs_knots_modes(), blender::bke::CurvesGeometry::offsets_for_write(), blender::bke::Point, blender::bke::CurvesGeometry::points_by_curve(), blender::bke::CurvesGeometry::points_num(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::index_mask::IndexMask::slice_content(), blender::bke::GSpanAttributeWriter::span, blender::bke::CurvesGeometry::update_curve_types(), blender::bke::curves::nurbs::update_custom_knot_modes(), and blender::CurvesGeometry::vertex_group_names.
Referenced by extrude_grease_pencil_curves(), and grease_pencil_extrude_exec().
| void blender::ed::greasepencil::find_curve_intersections | ( | const bke::CurvesGeometry & | curves, |
| const IndexMask & | curve_mask, | ||
| const Span< float2 > | screen_space_positions, | ||
| const Curves2DBVHTree & | tree_data, | ||
| IndexRange | tree_data_range, | ||
| MutableSpan< bool > | r_hits, | ||
| std::optional< MutableSpan< float > > | r_first_intersect_factors, | ||
| std::optional< MutableSpan< float > > | r_last_intersect_factors ) |
Find intersections between curves and accurate cut positions.
Note: Index masks for target and intersecting curves can have any amount of overlap, including equal or fully separate masks. A curve can be self-intersecting by being in both masks.
| curves | Curves geometry for both target and cutter curves. |
| curve_mask | Set of curves that will be intersected. |
| screen_space_positions | Screen space positions computed in advance. |
| tree_data | Screen-space BVH tree of the intersecting curves. |
| tree_data_range | Range of BVH elements in tree_data that belong to this drawing. |
| r_hits | True for points with at least one intersection. |
| r_first_intersect_factors | Smallest cut factor in the interval (optional). |
| r_last_intersect_factors | Largest cut factor in the interval (optional). |
Definition at line 1032 of file grease_pencil_geom.cc.
References blender::BLI_bvhtree_ray_cast(), blender::BVHTreeRayHit::dist, blender::math::distance(), ELEM, blender::MutableSpan< T >::fill(), find_curve_intersections(), blender::IndexRange::first(), FLT_MAX, blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::BVHTreeRayHit::index, blender::math::isect_seg_seg(), blender::IndexRange::last(), length(), blender::BVHTreeRayHit::no, blender::math::normalize_and_get_length(), blender::result, and blender::ed::greasepencil::Curves2DBVHTree::tree.
Referenced by find_curve_intersections(), and find_curve_segments().
| CurveSegmentsData blender::ed::greasepencil::find_curve_segments | ( | const bke::CurvesGeometry & | curves, |
| const IndexMask & | curve_mask, | ||
| const Span< float2 > | screen_space_positions, | ||
| const Curves2DBVHTree & | tree_data, | ||
| IndexRange | tree_data_range ) |
Find segments between intersections.
Note: Index masks for target and intersecting curves can have any amount of overlap, including equal or fully separate masks. A curve can be self-intersecting by being in both masks.
| curves | Curves geometry for both target and cutter curves. |
| curve_mask | Set of curves that will be intersected. |
| screen_space_positions | Screen space positions computed in advance. |
| tree_data | Screen-space BVH tree of the intersecting curves. |
Definition at line 1150 of file grease_pencil_geom.cc.
References blender::offset_indices::accumulate_counts_to_offsets(), find_curve_intersections(), find_curve_segments(), blender::IndexRange::first(), blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_bools(), blender::exec_mode::grain_size(), blender::IndexRange::is_empty(), blender::result, blender::index_mask::IndexMask::size(), blender::index_mask::IndexMask::slice_content(), and blender::offset_indices::OffsetIndices< T >::total_size().
Referenced by apply_mask_as_segment_selection(), and find_curve_segments().
|
static |
Definition at line 57 of file grease_pencil_merge.cc.
References blender::BLI_assert(), find_lowest_common_ancestor(), blender::Span< T >::first(), get_sorted_layer_parents(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::Vector< T, InlineBufferCapacity, Allocator >::last(), layer, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::Span< T >::size(), and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
Referenced by find_lowest_common_ancestor(), and merge_layers().
|
static |
Definition at line 2219 of file grease_pencil_edit.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::BKE_grease_pencil_copy_layer_parameters(), find_or_create_layer_in_dst_by_name(), and node.
Referenced by find_or_create_layer_in_dst_by_name(), grease_pencil_separate_layer(), grease_pencil_separate_material(), and grease_pencil_separate_selected().
|
static |
Definition at line 4734 of file grease_pencil_edit.cc.
References fit_poly_curves(), blender::geometry::fit_poly_to_bezier_curves(), blender::VArray< T >::from_single(), and blender::geometry::Refit.
Referenced by convert_to_bezier(), convert_to_nurbs(), and fit_poly_curves().
|
static |
Definition at line 826 of file fill.cc.
References blender::BLI_assert(), blender::Bounds< T >::center(), blender::math::clamp(), blender::DEG_get_evaluated(), blender::ViewContext::depsgraph, fit_strokes_to_view(), FitToView, blender::math::from_loc_scale(), get_boundary_bounds(), get_region_bounds(), blender::MatBase< float, 3, 3 >::identity(), blender::math::max(), blender::bounds::merge(), blender::Bounds< T >::min, None, blender::ViewContext::obact, blender::math::reduce_max(), blender::ViewContext::region, blender::result, blender::ViewContext::rv3d, blender::math::safe_divide(), blender::math::safe_rcp(), and blender::Bounds< T >::size().
Referenced by fit_strokes_to_view(), and pixel_fill_strokes().
| FillResult blender::ed::greasepencil::flood_fill | ( | ImageBufferAccessor & | buffer, |
| const int | leak_filter_width = 0 ) |
Definition at line 268 of file fill.cc.
References Border, BorderContact, Cancel, blender::ed::greasepencil::ImageBufferAccessor::coord_from_index(), Fill, flood_fill(), get_flag(), blender::ed::greasepencil::ImageBufferAccessor::height(), Ignore, blender::ed::greasepencil::ImageBufferAccessor::index_from_coord(), blender::MutableSpan< T >::index_range(), blender::IndexRange::IndexRange(), blender::Stack< T, InlineBufferCapacity, Allocator >::is_empty(), blender::ed::greasepencil::ImageBufferAccessor::pixel_from_coord(), blender::ed::greasepencil::ImageBufferAccessor::pixels(), blender::Stack< T, InlineBufferCapacity, Allocator >::pop(), blender::Stack< T, InlineBufferCapacity, Allocator >::push(), Seed, set_flag(), Stroke, Success, and blender::ed::greasepencil::ImageBufferAccessor::width().
Referenced by flood_fill(), and process_image().
|
static |
Definition at line 1109 of file fill.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::BLI_assert(), BLI_assert_unreachable, decode_index(), decode_side(), EDGE_CONNECTION_NULL, blender::ed::greasepencil::EdgeCurves::edges, End, follow_edge_connections(), blender::Span< T >::index_range(), NULL_INDEX, blender::ed::greasepencil::EdgeCurves::offset_data, blender::ed::greasepencil::EdgeCurves::reversed, blender::Span< T >::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and Start.
Referenced by create_connected_edges_from_fill(), and follow_edge_connections().
|
static |
Definition at line 231 of file grease_pencil_weight_paint.cc.
References blender::bArmature::bonebase, foreach_bone_in_armature(), and foreach_bone_in_armature_ex().
Referenced by add_armature_vertex_groups(), foreach_bone_in_armature(), and get_skinnable_bones_and_deform_group_names().
|
static |
Definition at line 214 of file grease_pencil_weight_paint.cc.
References blender::Bone::childbase, foreach_bone_in_armature_ex(), and blender::Bone::next.
Referenced by foreach_bone_in_armature(), and foreach_bone_in_armature_ex().
|
static |
Callback for each segment. Each segment can have two point ranges, one of them may be empty. Returns the total number of segments, or zero if the curve is cyclic and can be regarded as a single contiguous range.
void fn(int segment_index, IndexRange point_range1, IndexRange point_range2);
Definition at line 63 of file grease_pencil_select.cc.
References clamp_range(), blender::IndexRange::first(), foreach_curve_segment(), blender::IndexRange::from_begin_end(), blender::IndexRange::from_begin_end_inclusive(), blender::IndexRange::IndexRange(), blender::IndexRange::is_empty(), blender::IndexRange::last(), blender::ed::greasepencil::CurveSegmentsData::segment_offsets, blender::ed::greasepencil::CurveSegmentsData::segment_start_fractions, blender::ed::greasepencil::CurveSegmentsData::segment_start_points, and blender::IndexRange::size().
Referenced by foreach_curve_segment().
|
static |
Definition at line 508 of file grease_pencil_frames.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), C, blender::CTX_data_active_object(), curves_geometry_is_equal(), blender::DEG_id_tag_update(), blender::IndexRange::drop_back(), frame_clean_duplicate_exec(), blender::ID_RECALC_GEOMETRY, blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), layer, NA_EDITED, NC_GEOM, NC_GPENCIL, ND_DATA, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::RNA_boolean_get(), blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::WM_event_add_notifier().
Referenced by frame_clean_duplicate_exec(), and GREASE_PENCIL_OT_frame_clean_duplicate().
| void blender::ed::greasepencil::free_curves_2d_bvh_data | ( | Curves2DBVHTree & | data | ) |
Definition at line 1021 of file grease_pencil_geom.cc.
References blender::BLI_bvhtree_free(), blender::data, and free_curves_2d_bvh_data().
Referenced by free_curves_2d_bvh_data(), and selection_update().
| GreasePencil * blender::ed::greasepencil::from_context | ( | bContext & | C | ) |
Definition at line 1824 of file grease_pencil_utils.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_pointer_get_type(), blender::PointerRNA::data, from_context(), and blender::OB_GREASE_PENCIL.
Referenced by active_grease_pencil_layer_group_poll(), active_grease_pencil_layer_poll(), from_context(), grease_pencil_context_poll(), grease_pencil_layer_add_exec(), grease_pencil_layer_duplicate_exec(), grease_pencil_layer_group_add_exec(), grease_pencil_layer_group_color_tag_exec(), grease_pencil_layer_group_remove_exec(), grease_pencil_layer_hide_exec(), grease_pencil_layer_isolate_exec(), grease_pencil_layer_lock_all_exec(), grease_pencil_layer_mask_add_exec(), grease_pencil_layer_mask_poll(), grease_pencil_layer_mask_remove_exec(), grease_pencil_layer_mask_reorder_exec(), grease_pencil_layer_mask_reorder_poll(), grease_pencil_layer_move_exec(), grease_pencil_layer_move_poll(), grease_pencil_layer_remove_exec(), grease_pencil_layer_reveal_exec(), and blender::ui::template_grease_pencil_layer_tree().
|
static |
Definition at line 472 of file grease_pencil_geom.cc.
References blender::math::abs(), angle(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::math::atan2(), blender::math::cos(), blender::math::dot(), float, generate_arc_from_point_to_point(), blender::math::is_zero(), M_PI, blender::math::sin(), blender::x, and y.
Referenced by generate_arc_from_point_to_point(), generate_cap(), and generate_corner().
|
static |
Definition at line 519 of file grease_pencil_geom.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BLI_assert_unreachable, generate_arc_from_point_to_point(), generate_cap(), blender::GP_STROKE_CAP_FLAT, blender::GP_STROKE_CAP_MAX, blender::GP_STROKE_CAP_ROUND, and blender::math::normalize().
Referenced by generate_cap(), and generate_stroke_perimeter().
|
static |
Definition at line 446 of file grease_pencil_geom.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::BLI_assert(), blender::math::cos(), float, generate_circle_from_point(), M_PI, blender::math::sin(), blender::x, and y.
Referenced by generate_circle_from_point(), and generate_stroke_perimeter().
|
static |
Definition at line 554 of file grease_pencil_geom.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::append_n_times(), blender::math::cos(), blender::math::dot(), generate_arc_from_point_to_point(), generate_corner(), GP_STROKE_MITER_ANGLE_ROUND, blender::math::length(), length(), and blender::math::normalize().
Referenced by generate_corner(), and generate_stroke_perimeter().
|
static |
Definition at line 614 of file grease_pencil_geom.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), b, blender::IndexRange::drop_back(), blender::IndexRange::drop_front(), blender::IndexRange::first(), blender::Span< T >::first(), generate_cap(), generate_circle_from_point(), generate_corner(), generate_stroke_perimeter(), blender::IndexRange::index_range(), blender::math::normalize(), blender::IndexRange::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and blender::Span< T >::slice().
Referenced by generate_stroke_perimeter().
|
static |
Definition at line 521 of file grease_pencil_utils.cc.
References blender::math::clamp(), get_active_frame_for_falloff(), and layer.
Referenced by get_active_frame_for_falloff(), retrieve_editable_drawings_from_layer_with_falloff(), retrieve_editable_drawings_grouped_per_frame(), and retrieve_editable_drawings_with_falloff().
|
static |
Definition at line 1218 of file fill.cc.
References blender::BLI_assert(), blender::Array< T, InlineBufferCapacity, Allocator >::first(), get_all_triangle_adjacency(), NULL_INDEX, and blender::threading::parallel_for().
Referenced by get_all_triangle_adjacency().
|
static |
Definition at line 1197 of file fill.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), get_all_triangle_edges(), blender::Span< T >::index_range(), NULL_INDEX, and blender::threading::parallel_for().
Referenced by get_all_triangle_edges().
|
static |
Definition at line 77 of file grease_pencil_bake_animation.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), C, blender::CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, get_bake_targets(), blender::OB_EMPTY, blender::OB_GREASE_PENCIL, blender::object_duplilist(), and blender::Object::type.
Referenced by bake_grease_pencil_animation_exec(), and get_bake_targets().
| Set< std::string > blender::ed::greasepencil::get_bone_deformed_vertex_group_names | ( | const Object & | object | ) |
Returns a set of vertex group names that are deformed by a bone in an armature.
Definition at line 43 of file grease_pencil_weight_paint.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::BKE_modifiers_get_virtual_modifierlist(), blender::BKE_object_defgroup_list(), blender::BONE_NO_DEFORM, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::eModifierMode_Realtime, blender::eModifierMode_Virtual, blender::eModifierType_GreasePencilArmature, blender::bPoseChannel::flag, get_bone_deformed_vertex_group_names(), blender::ModifierData::mode, blender::bPoseChannel::name, blender::ModifierData::next, blender::GreasePencilArmatureModifierData::object, blender::Object::pose, and blender::ModifierData::type.
Referenced by get_bone_deformed_vertex_group_names(), and blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::get_locked_and_bone_deformed_vertex_groups().
|
static |
Definition at line 42 of file grease_pencil_layers.cc.
References blender::BKE_pose_channel_find_name(), BLI_assert_unreachable, blender::BONE_RELATIVE_PARENTING, blender::bPoseChannel::chan_mat, blender::Bone::flag, get_bone_mat(), blender::MatBase< float, 4, 4 >::identity(), blender::OB_ARMATURE, blender::Object::pose, blender::bPoseChannel::pose_mat, and blender::Object::type.
Referenced by get_bone_mat(), and grease_pencil_layer_parent_set().
|
static |
Definition at line 751 of file fill.cc.
References attr_is_fill_guide, attr_material_index, blender::bke::CurvesGeometry::attributes(), blender::BKE_object_material_get(), blender::BLI_assert(), blender::bke::Curve, blender::data, blender::ED_view3d_pixel_size(), blender::ED_view3d_project_float_global(), blender::index_mask::IndexMask::foreach_index(), get_boundary_bounds(), blender::bke::crazyspace::get_evaluated_grease_pencil_drawing_deformation(), get_visible_boundary_strokes(), blender::GP_MATERIAL_HIDE, blender::exec_mode::grain_size(), layer, blender::bke::AttributeAccessor::lookup_or_default(), blender::bounds::merge(), blender::OB_GREASE_PENCIL, blender::bke::CurvesGeometry::points_by_curve(), blender::bke::crazyspace::GeometryDeformation::positions, blender::result, blender::IndexRange::size(), blender::math::transform_point(), blender::V3D_PROJ_RET_OK, and blender::V3D_PROJ_TEST_NOP.
Referenced by fit_strokes_to_view(), and get_boundary_bounds().
|
static |
Definition at line 191 of file grease_pencil_primitive.cc.
References blender::BLI_assert(), Box, Circle, control_points_per_segment(), ELEM, get_control_point_type(), HandlePoint, JoinPoint, blender::math::mod(), and blender::ed::greasepencil::PrimitiveToolOperation::type.
Referenced by control_point_colors_and_sizes(), get_control_point_type(), grease_pencil_primitive_mouse_event(), and primitive_check_ui_hover().
|
static |
Definition at line 1266 of file fill.cc.
References get_edge_weights(), blender::Span< T >::index_range(), blender::threading::parallel_for(), and blender::Span< T >::size().
Referenced by get_edge_weights().
|
static |
Definition at line 656 of file grease_pencil_utils.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), get_editable_frames_for_layer(), and layer.
Referenced by get_editable_frames_for_layer(), retrieve_editable_drawings(), retrieve_editable_drawings_from_layer(), retrieve_editable_drawings_from_layer_with_falloff(), and retrieve_editable_drawings_with_falloff().
| GreasePencilLineartModifierData * blender::ed::greasepencil::get_first_lineart_modifier | ( | const Object & | ob | ) |
Definition at line 83 of file grease_pencil_lineart.cc.
References blender::eModifierType_GreasePencilLineart, get_first_lineart_modifier(), blender::Object::modifiers, and blender::ModifierData::type.
Referenced by get_first_lineart_modifier(), and blender::modify_geometry_set().
|
static |
Definition at line 171 of file fill.cc.
References get_flag().
Referenced by build_fill_boundary(), dilate(), erode(), flood_fill(), get_flag(), and invert_fill().
|
static |
Definition at line 477 of file grease_pencil_utils.cc.
References blender::BKE_curvemapping_evaluateF(), float, and get_frame_falloff().
Referenced by get_frame_falloff(), retrieve_editable_drawings_from_layer_with_falloff(), retrieve_editable_drawings_grouped_per_frame(), and retrieve_editable_drawings_with_falloff().
|
static |
Definition at line 536 of file grease_pencil_utils.cc.
References ELEM, blender::GreasePencilOnionSkinningSettings::filter, blender::GreasePencilOnionSkinningSettings::flag, get_frame_id(), blender::GP_ONION_SKINNING_MODE_ABSOLUTE, blender::GP_ONION_SKINNING_MODE_RELATIVE, blender::GP_ONION_SKINNING_MODE_SELECTED, blender::GP_ONION_SKINNING_SHOW_LOOP, layer, blender::GreasePencilOnionSkinningSettings::mode, blender::GreasePencilOnionSkinningSettings::num_frames_after, blender::GreasePencilOnionSkinningSettings::num_frames_before, and blender::GreasePencilFrame::type.
Referenced by get_frame_id(), and get_visible_frames_for_layer().
|
static |
Definition at line 5218 of file grease_pencil_edit.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::index_mask::IndexMask::complement(), blender::IndexRange::drop_front(), blender::MutableSpan< T >::drop_front(), blender::array_utils::fill_index_range(), blender::index_mask::IndexMask::first(), get_gapless_indices(), blender::index_mask::IndexMask::size(), blender::IndexRange::size(), blender::MutableSpan< T >::take_back(), blender::MutableSpan< T >::take_front(), and blender::index_mask::IndexMask::to_indices().
Referenced by get_gapless_indices(), and grease_pencil_join_fills_exec().
Definition at line 936 of file grease_pencil_utils.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::BKE_object_material_get(), blender::BLI_assert(), get_hidden_material_indices(), blender::GP_MATERIAL_HIDE, blender::IndexRange::IndexRange(), and blender::OB_GREASE_PENCIL.
Referenced by get_hidden_material_indices(), retrieve_visible_fills(), retrieve_visible_points(), and retrieve_visible_strokes().
|
static |
Definition at line 1357 of file fill.cc.
References blender::BLI_assert(), blender::data, get_input_from_drawings(), blender::Span< T >::index_range(), blender::OB_GREASE_PENCIL, blender::threading::parallel_for(), and blender::Span< T >::size().
Referenced by delaunay_fill_strokes(), and get_input_from_drawings().
| void blender::ed::greasepencil::get_lineart_modifier_limits | ( | const Object & | ob, |
| ed::greasepencil::LineartLimitInfo & | info ) |
Definition at line 43 of file grease_pencil_lineart.cc.
References blender::ed::greasepencil::LineartLimitInfo::edge_types, blender::eModifierType_GreasePencilLineart, get_lineart_modifier_limits(), blender::LINEART_GPENCIL_USE_CACHE, blender::ed::greasepencil::LineartLimitInfo::max_level, blender::ed::greasepencil::LineartLimitInfo::min_level, blender::Object::modifiers, blender::ed::greasepencil::LineartLimitInfo::shadow_selection, blender::ed::greasepencil::LineartLimitInfo::silhouette_selection, and blender::ModifierData::type.
Referenced by blender::bake_single_target(), get_lineart_modifier_limits(), and blender::modify_geometry_set().
Definition at line 919 of file grease_pencil_utils.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::BKE_object_material_get(), blender::BLI_assert(), get_locked_material_indices(), blender::GP_MATERIAL_HIDE, blender::GP_MATERIAL_LOCKED, blender::IndexRange::IndexRange(), and blender::OB_GREASE_PENCIL.
Referenced by get_locked_material_indices(), retrieve_editable_points(), retrieve_editable_strokes(), and retrieve_editable_strokes_by_material().
|
static |
Definition at line 99 of file grease_pencil_frames.cc.
References blender::RenderData::cfra, blender::TimeMarker::frame, get_mirrored_frame_number(), blender::MIRROR_KEYS_CURFRAME, blender::MIRROR_KEYS_MARKER, blender::MIRROR_KEYS_XAXIS, blender::MIRROR_KEYS_YAXIS, and blender::Scene::r.
Referenced by get_mirrored_frame_number(), and mirror_selected_frames().
|
static |
Definition at line 639 of file grease_pencil_edit.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), BETWEEN, blender::BLI_assert(), ELEM, get_points_to_dissolve(), blender::threading::parallel_for(), POINTS, and UNSELECT.
Referenced by get_points_to_dissolve(), and grease_pencil_dissolve_exec().
Definition at line 742 of file fill.cc.
References get_region_bounds(), blender::ARegion::winx, and blender::ARegion::winy.
Referenced by fit_strokes_to_view(), and get_region_bounds().
|
static |
Definition at line 1875 of file grease_pencil_edit.cc.
References A, blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), B, BOTTOM, blender::index_mask::IndexMask::complement(), DOWN, ELEM, blender::array_utils::fill_index_range(), blender::index_mask::IndexMask::foreach_index_optimized(), get_reordered_indices(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::IndexRange::last(), blender::index_mask::IndexMask::size(), blender::IndexRange::size(), blender::index_mask::IndexMask::to_indices(), TOP, and UP.
Referenced by get_reordered_indices(), and grease_pencil_stroke_reorder_exec().
|
static |
Definition at line 285 of file grease_pencil_weight_paint.cc.
References get_root_and_tips_of_bones(), blender::Span< T >::index_range(), and blender::threading::parallel_for().
Referenced by add_armature_automatic_weights(), add_armature_envelope_weights(), and get_root_and_tips_of_bones().
|
static |
Definition at line 505 of file grease_pencil_utils.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), get_selected_frame_number_bounds(), layer, and blender::bounds::min_max().
Referenced by get_selected_frame_number_bounds(), retrieve_editable_drawings_from_layer_with_falloff(), retrieve_editable_drawings_grouped_per_frame(), and retrieve_editable_drawings_with_falloff().
|
static |
Definition at line 123 of file grease_pencil_bake_animation.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::BKE_animdata_from_id(), blender::BezTriple::f2, blender::animrig::fcurves_for_assigned_action(), get_selected_object_keyframes(), blender::IndexRange::IndexRange(), SELECT, and blender::BezTriple::vec.
Referenced by bake_grease_pencil_animation_exec(), and get_selected_object_keyframes().
|
static |
Definition at line 258 of file grease_pencil_weight_paint.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::BKE_object_defgroup_add_name(), blender::BKE_object_defgroup_find_name(), blender::BONE_NO_DEFORM, blender::Bone::flag, foreach_bone_in_armature(), get_skinnable_bones_and_deform_group_names(), blender::bDeformGroup::name, and blender::Bone::name.
Referenced by add_armature_automatic_weights(), add_armature_envelope_weights(), and get_skinnable_bones_and_deform_group_names().
|
static |
Definition at line 53 of file grease_pencil_frames.cc.
References blender::RenderData::cfra, blender::ED_markers_find_nearest_marker_time(), floorf, blender::RenderData::frs_sec, blender::RenderData::frs_sec_base, get_snapped_frame_number(), blender::Scene::markers, blender::Scene::r, blender::SNAP_KEYS_CURFRAME, blender::SNAP_KEYS_NEARMARKER, and blender::SNAP_KEYS_NEARSEC.
Referenced by get_snapped_frame_number(), and snap_selected_frames().
|
static |
Definition at line 44 of file grease_pencil_merge.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::begin(), blender::Vector< T, InlineBufferCapacity, Allocator >::end(), get_sorted_layer_parents(), layer, and node.
Referenced by find_lowest_common_ancestor(), and get_sorted_layer_parents().
|
static |
Definition at line 712 of file fill.cc.
References blender::VArray< T >::from_single(), get_stroke_colors(), and blender::threading::parallel_for().
Referenced by get_stroke_colors(), and render_strokes().
|
static |
Definition at line 1282 of file fill.cc.
References get_tri_max_weight(), blender::math::max(), NULL_INDEX, and blender::threading::parallel_for().
Referenced by get_tri_max_weight().
|
static |
Definition at line 1683 of file grease_pencil_utils.cc.
References blender::BKE_grease_pencil_object_material_from_brush_get(), blender::BLI_assert(), BothInvisible, FillInvisible, get_visibility_status_for_draw_operator(), blender::GP_BRUSH_USE_FILL, blender::GP_BRUSH_USE_STROKE, StrokeInvisible, and Visible.
Referenced by get_visibility_status_for_draw_operator(), and grease_pencil_draw_operator_begin().
|
static |
Definition at line 666 of file fill.cc.
References attr_is_fill_guide, attr_material_index, blender::bke::CurvesGeometry::attributes(), blender::BKE_object_material_get(), blender::bke::Curve, blender::bke::CurvesGeometry::curves_range(), blender::ed::greasepencil::DrawingInfo::drawing, blender::MaterialGPencilStyle::flag, blender::IndexMask::from_predicate(), get_visible_boundary_strokes(), blender::GP_MATERIAL_HIDE, blender::bke::AttributeAccessor::lookup_or_default(), blender::bke::CurvesGeometry::points_by_curve(), blender::IndexRange::size(), and blender::bke::greasepencil::Drawing::strokes().
Referenced by get_boundary_bounds(), get_visible_boundary_strokes(), and render_strokes().
|
static |
Definition at line 607 of file grease_pencil_utils.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::Span< T >::first(), get_frame_id(), get_visible_frames_for_layer(), blender::Span< T >::index_range(), blender::Span< T >::is_empty(), blender::IndexRange::last(), blender::Span< T >::last(), and layer.
Referenced by get_visible_frames_for_layer(), and retrieve_visible_drawings().
|
static |
Definition at line 1730 of file grease_pencil_edit.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::CTX_wm_view3d(), blender::bke::Curve, blender::CURVE_HANDLE_NONE, blender::CURVE_TYPE_BEZIER, blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ED_grease_pencil_edit_selection_domain_get(), blender::VArray< T >::from_container(), blender::VArray< T >::from_single(), gpencil_stroke_subdivide_exec(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, NA_EDITED, NC_GPENCIL, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::bke::Point, blender::wmOperator::ptr, retrieve_editable_and_selected_strokes(), retrieve_editable_drawings(), blender::RNA_boolean_get(), blender::RNA_int_get(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::geometry::subdivide_curves(), blender::bke::greasepencil::Drawing::tag_topology_changed(), blender::Scene::toolsettings, view3d_handle_type_or_default(), and blender::WM_event_add_notifier().
Referenced by gpencil_stroke_subdivide_exec(), and GREASE_PENCIL_OT_stroke_subdivide().
|
static |
Definition at line 937 of file grease_pencil_frames.cc.
References active_grease_pencil_poll(), blender::BEZT_KEYTYPE_BREAKDOWN, C, blender::RenderData::cfra, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::Object::data, grease_pencil_active_breakdown_frame_poll(), blender::Scene::r, and blender::GreasePencilFrame::type.
Referenced by grease_pencil_active_breakdown_frame_poll(), and GREASE_PENCIL_OT_delete_breakdown().
|
static |
Definition at line 880 of file grease_pencil_frames.cc.
References C, blender::RenderData::cfra, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::DEG_id_tag_update(), grease_pencil_active_frame_delete_exec(), blender::ID_RECALC_GEOMETRY, layer, NA_EDITED, NC_GPENCIL, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::Scene::r, blender::RNA_boolean_get(), blender::bke::greasepencil::Layer::start_frame_at(), and blender::WM_event_add_notifier().
Referenced by grease_pencil_active_frame_delete_exec(), and GREASE_PENCIL_OT_active_frame_delete().
|
static |
Definition at line 1428 of file grease_pencil_edit.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::bke::Curve, blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, ELEM, END, FLAT, blender::GP_STROKE_CAP_TYPE_FLAT, blender::GP_STROKE_CAP_TYPE_ROUND, grease_pencil_caps_set_exec(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::index_mask::masked_fill(), NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::wmOperator::ptr, retrieve_editable_and_selected_strokes(), retrieve_editable_drawings(), blender::RNA_enum_get(), ROUND, START, blender::bke::greasepencil::Drawing::strokes_for_write(), toggle_caps(), and blender::WM_event_add_notifier().
Referenced by grease_pencil_caps_set_exec(), and GREASE_PENCIL_OT_caps_set().
|
static |
Definition at line 1664 of file grease_pencil_edit.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::IndexMask::from_predicate(), grease_pencil_clean_loose_exec(), blender::ID_RECALC_GEOMETRY, blender::ed::greasepencil::MutableDrawingInfo::layer_index, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::wmOperator::ptr, retrieve_editable_drawings(), retrieve_editable_strokes(), blender::RNA_int_get(), blender::offset_indices::OffsetIndices< T >::size(), blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::WM_event_add_notifier().
Referenced by grease_pencil_clean_loose_exec(), and GREASE_PENCIL_OT_clean_loose().
|
static |
Definition at line 1693 of file grease_pencil_edit.cc.
References C, grease_pencil_clean_loose_invoke(), IFACE_, and blender::WM_operator_props_popup_confirm_ex().
Referenced by grease_pencil_clean_loose_invoke(), and GREASE_PENCIL_OT_clean_loose().
| bool blender::ed::greasepencil::grease_pencil_context_poll | ( | bContext * | C | ) |
Definition at line 33 of file grease_pencil_ops.cc.
References C, from_context(), grease_pencil_context_poll(), and ID_IS_LINKED.
Referenced by active_grease_pencil_layer_group_poll(), active_grease_pencil_layer_poll(), grease_pencil_context_poll(), grease_pencil_layer_move_poll(), GREASE_PENCIL_OT_layer_add(), GREASE_PENCIL_OT_layer_group_add(), GREASE_PENCIL_OT_layer_group_remove(), GREASE_PENCIL_OT_layer_hide(), GREASE_PENCIL_OT_layer_lock_all(), and GREASE_PENCIL_OT_layer_reveal().
|
static |
Definition at line 4846 of file grease_pencil_edit.cc.
References C, convert_to_bezier(), convert_to_catmull_rom(), convert_to_nurbs(), convert_to_poly(), blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::CURVE_TYPE_BEZIER, blender::CURVE_TYPE_CATMULL_ROM, blender::CURVE_TYPE_NURBS, blender::CURVE_TYPE_POLY, blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, grease_pencil_convert_curve_type_exec(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::wmOperator::ptr, retrieve_editable_and_selected_strokes(), retrieve_editable_drawings(), blender::RNA_enum_get(), blender::RNA_float_get(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), and blender::WM_event_add_notifier().
Referenced by grease_pencil_convert_curve_type_exec(), and GREASE_PENCIL_OT_convert_curve_type().
|
static |
Definition at line 4893 of file grease_pencil_edit.cc.
References C, blender::CTX_wm_manager(), blender::CURVE_TYPE_POLY, grease_pencil_convert_curve_type_ui(), blender::wmOperator::layout, blender::ui::Layout::prop(), blender::wmOperator::properties, blender::wmOperator::ptr, blender::RNA_enum_get(), blender::RNA_pointer_create_discrete(), blender::wmOperatorType::srna, blender::wmOperator::type, UI_ITEM_NONE, blender::ui::Layout::use_property_decorate_set(), and blender::ui::Layout::use_property_split_set().
Referenced by grease_pencil_convert_curve_type_ui(), and GREASE_PENCIL_OT_convert_curve_type().
| bool blender::ed::greasepencil::grease_pencil_copy_keyframes | ( | bAnimContext * | ac, |
| KeyframeClipboard & | clipboard ) |
Definition at line 622 of file grease_pencil_frames.cc.
References blender::ANIM_animdata_filter(), blender::ANIM_animdata_freelist(), blender::ANIMFILTER_DATA_VISIBLE, blender::ANIMFILTER_LIST_VISIBLE, blender::ANIMFILTER_NODUPLIS, blender::ANIMTYPE_GREASE_PENCIL_LAYER, blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::BLI_assert(), blender::ed::greasepencil::KeyframeClipboard::cfra, blender::RenderData::cfra, blender::ed::greasepencil::KeyframeClipboard::clear(), blender::ed::greasepencil::KeyframeClipboard::copy_buffer, blender::bAnimContext::data, blender::bAnimContext::datatype, blender::Drawing::Drawing(), blender::ed::greasepencil::KeyframeClipboard::first_frame, grease_pencil_copy_keyframes(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::ed::greasepencil::KeyframeClipboard::last_frame, layer, blender::Scene::r, and blender::bAnimContext::scene.
Referenced by blender::actkeys_copy_exec(), and grease_pencil_copy_keyframes().
|
static |
Definition at line 2667 of file grease_pencil_edit.cc.
References blender::BKE_defgroup_copy_list(), blender::BKE_id_defgroup_list_get(), blender::BKE_object_material_get(), blender::BKE_reportf(), C, blender::index_mask::IndexMask::complement(), blender::blender::Span< T >::contains(), blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::bke::Curve, blender::ed::greasepencil::Clipboard::ClipboardLayer::curves, blender::bke::curves_copy_curve_selection(), blender::bke::curves_new_nomain(), blender::bke::CurvesGeometry::curves_num(), blender::ed::greasepencil::Clipboard::defnames, blender::ED_grease_pencil_edit_selection_domain_get(), ensure_grease_pencil_clipboard(), blender::bke::GeometrySet::from_curves(), blender::bke::GeometrySet::get_curves(), grease_pencil_copy_strokes_exec(), blender::geometry::grease_pencil_remove_points_and_split(), blender::ed::curves::has_anything_selected(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::is_empty(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::items(), join_geometries_with_transform(), layer, blender::ed::greasepencil::Clipboard::layers, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_or_add_default(), blender::bke::AttributeAccessor::lookup_or_default(), blender::ed::greasepencil::Clipboard::materials, blender::ed::greasepencil::Clipboard::materials_in_source_num, blender::ed::greasepencil::Clipboard::ClipboardLayer::name, blender::ed::greasepencil::Clipboard::object_to_world, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::bke::Point, blender::bke::CurvesGeometry::points_num(), blender::wmOperator::reports, retrieve_editable_drawings(), blender::ed::curves::retrieve_selected_curves(), blender::ed::curves::retrieve_selected_points(), blender::RPT_INFO, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), and blender::Scene::toolsettings.
Referenced by grease_pencil_copy_strokes_exec(), and GREASE_PENCIL_OT_copy().
|
static |
Definition at line 974 of file grease_pencil_edit.cc.
References blender::array_utils::AllFalse, blender::array_utils::booleans_mix_calc(), C, CLOSE, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, grease_pencil_cyclical_set_exec(), blender::ID_RECALC_GEOMETRY, blender::array_utils::invert_booleans(), blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, blender::index_mask::masked_fill(), NC_GEOM, ND_DATA, OPEN, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::wmOperator::ptr, retrieve_editable_and_selected_strokes(), retrieve_editable_drawings(), blender::RNA_boolean_get(), blender::RNA_enum_get(), blender::bke::greasepencil::Drawing::strokes_for_write(), subdivide_last_segment(), blender::bke::greasepencil::Drawing::tag_topology_changed(), TOGGLE, and blender::WM_event_add_notifier().
Referenced by grease_pencil_cyclical_set_exec(), and GREASE_PENCIL_OT_cyclical_set().
|
static |
Definition at line 956 of file grease_pencil_frames.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::BEZT_KEYTYPE_BREAKDOWN, C, blender::RenderData::cfra, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::Object::data, blender::DEG_id_tag_update(), blender::Span< T >::first_index(), blender::bke::greasepencil::Layer::frame_at(), grease_pencil_delete_breakdown_frames_exec(), blender::ID_RECALC_GEOMETRY, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), NA_EDITED, NC_GPENCIL, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::Scene::r, blender::Span< T >::size(), blender::bke::greasepencil::Layer::sorted_keys(), blender::bke::greasepencil::Layer::start_frame_at(), blender::GreasePencilFrame::type, and blender::WM_event_add_notifier().
Referenced by grease_pencil_delete_breakdown_frames_exec(), and GREASE_PENCIL_OT_delete_breakdown().
|
static |
Definition at line 531 of file grease_pencil_edit.cc.
References All, C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::bke::Curve, blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ED_grease_pencil_edit_selection_domain_get(), grease_pencil_delete_exec(), blender::geometry::grease_pencil_remove_points_and_split(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::bke::Point, blender::wmOperator::ptr, remove_curves_based_on_mode(), remove_stroke_or_fill_based_on_mode(), retrieve_editable_and_selected_elements(), retrieve_editable_drawings(), blender::RNA_enum_get(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), blender::Scene::toolsettings, and blender::WM_event_add_notifier().
Referenced by grease_pencil_delete_exec(), and GREASE_PENCIL_OT_delete().
|
static |
Definition at line 789 of file grease_pencil_edit.cc.
References ACTIVE_FRAME, ALL_FRAMES, C, blender::RenderData::cfra, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::DEG_id_tag_update(), grease_pencil_delete_frame_exec(), blender::ID_RECALC_GEOMETRY, layer, NA_EDITED, NC_GEOM, NC_GPENCIL, ND_DATA, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::Scene::r, blender::RNA_enum_get(), and blender::WM_event_add_notifier().
Referenced by grease_pencil_delete_frame_exec(), and GREASE_PENCIL_OT_delete_frame().
|
static |
Definition at line 698 of file grease_pencil_edit.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::CTX_wm_view3d(), blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::IndexMask::from_bools(), get_points_to_dissolve(), grease_pencil_dissolve_exec(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::wmOperator::ptr, retrieve_editable_and_all_selected_points(), retrieve_editable_drawings(), blender::RNA_enum_get(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), view3d_handle_type_or_default(), and blender::WM_event_add_notifier().
Referenced by grease_pencil_dissolve_exec(), and GREASE_PENCIL_OT_dissolve().
| bool blender::ed::greasepencil::grease_pencil_draw_operator_begin | ( | bContext * | C, |
| wmOperator * | op, | ||
| const bool | use_duplicate_previous_key ) |
Definition at line 1709 of file grease_pencil_utils.cc.
References blender::BKE_paint_brush_for_read(), blender::BKE_paint_get_active_from_context(), blender::BKE_report(), BothInvisible, C, blender::RenderData::cfra, check_brush_needs_new_material(), blender::CTX_data_active_object(), blender::CTX_data_scene(), ensure_active_keyframe(), FillInvisible, get_visibility_status_for_draw_operator(), blender::GP_FRAME_SELECTED, grease_pencil_draw_operator_begin(), ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, layer, NA_EDITED, NC_GPENCIL, blender::OB_GREASE_PENCIL, blender::Scene::r, blender::wmOperator::reports, blender::RPT_ERROR, blender::RPT_WARNING, SET_FLAG_FROM_TEST, StrokeInvisible, Visible, and blender::WM_event_add_notifier().
Referenced by blender::ed::sculpt_paint::grease_pencil_brush_stroke_exec(), blender::ed::sculpt_paint::grease_pencil_brush_stroke_invoke(), grease_pencil_draw_operator_begin(), and grease_pencil_primitive_invoke().
|
static |
Definition at line 1605 of file grease_pencil_edit.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::CTX_wm_view3d(), blender::bke::Curve, blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ed::curves::duplicate_curves(), blender::ed::curves::duplicate_points(), blender::ED_grease_pencil_edit_selection_domain_get(), grease_pencil_duplicate_exec(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::bke::Point, retrieve_editable_and_all_selected_points(), retrieve_editable_and_selected_strokes(), retrieve_editable_drawings(), blender::bke::greasepencil::separate_fill_ids(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), blender::Scene::toolsettings, view3d_handle_type_or_default(), and blender::WM_event_add_notifier().
Referenced by grease_pencil_duplicate_exec(), and GREASE_PENCIL_OT_duplicate().
| bool blender::ed::greasepencil::grease_pencil_edit_poll | ( | bContext * | C | ) |
Definition at line 145 of file grease_pencil_ops.cc.
References active_grease_pencil_poll(), C, blender::CTX_data_active_object(), grease_pencil_edit_poll(), and blender::OB_MODE_EDIT.
Referenced by blender::ED_undosys_type_grease_pencil(), grease_pencil_edit_poll(), and keymap_grease_pencil_edit_mode().
|
static |
Definition at line 3289 of file grease_pencil_edit.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::CTX_wm_view3d(), blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, extrude_grease_pencil_curves(), grease_pencil_extrude_exec(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), retrieve_editable_and_all_selected_points(), retrieve_editable_drawings(), blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), view3d_handle_type_or_default(), and blender::WM_event_add_notifier().
Referenced by grease_pencil_extrude_exec(), and GREASE_PENCIL_OT_extrude().
|
static |
Definition at line 819 of file grease_pencil_frames.cc.
References C, blender::RenderData::cfra, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::DEG_id_tag_update(), grease_pencil_frame_duplicate_exec(), blender::ID_RECALC_GEOMETRY, layer, NA_EDITED, NC_GPENCIL, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::Scene::r, blender::RNA_boolean_get(), blender::bke::greasepencil::Layer::start_frame_at(), and blender::WM_event_add_notifier().
Referenced by grease_pencil_frame_duplicate_exec(), and GREASE_PENCIL_OT_frame_duplicate().
|
static |
Definition at line 5256 of file grease_pencil_edit.cc.
References attribute, blender::BKE_report(), C, blender::RenderData::cfra, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::bke::Curve, blender::bke::curves_copy_curve_selection(), blender::bke::curves_new_nomain(), blender::DEG_id_tag_update(), blender::bke::AttributeIter::domain, ensure_active_keyframe(), blender::CPPType::fill_assign_indices(), blender::bke::SpanAttributeWriter< T >::finish(), blender::bke::AttributeAccessor::foreach_attribute(), blender::bke::greasepencil::Layer::frames(), blender::bke::GeometrySet::from_curves(), blender::bke::GeometrySet::get_curves_for_write(), get_gapless_indices(), blender::bke::greasepencil::get_next_available_fill_id(), grease_pencil_join_fills_exec(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::geometry::join_geometries(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::index_mask::masked_fill(), blender::bke::AttributeIter::name, NC_GEOM, ND_DATA, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::Scene::r, blender::bke::CurvesGeometry::remove_curves(), blender::geometry::reorder_curves_geometry(), blender::wmOperator::reports, retrieve_editable_and_selected_strokes(), retrieve_editable_drawings(), blender::RPT_ERROR, blender::bke::greasepencil::selected_mask_to_fills(), blender::bke::SpanAttributeWriter< T >::span, blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), and blender::WM_event_add_notifier().
Referenced by grease_pencil_join_fills_exec(), and GREASE_PENCIL_OT_join_fills().
|
static |
Definition at line 297 of file grease_pencil_layers.cc.
References C, blender::CTX_data_active_object(), blender::CTX_wm_message_bus(), grease_pencil_layer_active_exec(), layer, NA_SELECTED, NC_GPENCIL, ND_DATA, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::RNA_int_get(), blender::WM_event_add_notifier(), and WM_msg_publish_rna_prop.
Referenced by grease_pencil_layer_active_exec(), and GREASE_PENCIL_OT_layer_active().
|
static |
Definition at line 121 of file grease_pencil_layers.cc.
References blender::bke::greasepencil::Layer::as_node(), C, blender::RenderData::cfra, blender::CTX_data_scene(), blender::CTX_wm_message_bus(), blender::DEG_id_tag_update(), from_context(), grease_pencil_layer_add_exec(), blender::ID_RECALC_GEOMETRY, NA_SELECTED, NC_GPENCIL, ND_DATA, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::Scene::r, blender::RNA_string_get(), blender::WM_event_add_notifier(), and WM_msg_publish_rna_prop.
Referenced by grease_pencil_layer_add_exec(), and GREASE_PENCIL_OT_layer_add().
|
static |
Definition at line 157 of file grease_pencil_layers.cc.
References BLT_I18NCONTEXT_OPERATOR_DEFAULT, C, CTX_IFACE_, grease_pencil_layer_add_invoke(), IFACE_, and blender::WM_operator_props_popup_confirm_ex().
Referenced by grease_pencil_layer_add_invoke(), and GREASE_PENCIL_OT_layer_add().
|
static |
Definition at line 649 of file grease_pencil_layers.cc.
References blender::bke::greasepencil::Layer::as_node(), blender::BKE_reportf(), C, blender::CTX_wm_message_bus(), blender::DEG_id_tag_update(), from_context(), grease_pencil_layer_duplicate_exec(), blender::ID_RECALC_GEOMETRY, NA_SELECTED, NC_GPENCIL, ND_DATA, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::wmOperator::reports, blender::RNA_boolean_get(), blender::RPT_ERROR, blender::WM_event_add_notifier(), and WM_msg_publish_rna_prop.
Referenced by grease_pencil_layer_duplicate_exec(), and GREASE_PENCIL_OT_layer_duplicate().
|
static |
Definition at line 1142 of file grease_pencil_layers.cc.
References C, blender::RenderData::cfra, copy_layer_and_frames_to_target_object(), blender::CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, blender::CTX_data_scene(), blender::Object::data, blender::DEG_id_tag_update(), grease_pencil_layer_duplicate_object_exec(), blender::ID_RECALC_GEOMETRY, layer, NA_SELECTED, NC_GPENCIL, ND_DATA, blender::OB_GREASE_PENCIL, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::Scene::r, blender::RNA_boolean_get(), blender::RNA_enum_get(), blender::Object::type, and blender::WM_event_add_notifier().
Referenced by grease_pencil_layer_duplicate_object_exec(), and GREASE_PENCIL_OT_layer_duplicate_object().
|
static |
Definition at line 348 of file grease_pencil_layers.cc.
References blender::bke::greasepencil::LayerGroup::as_node(), C, blender::CTX_wm_message_bus(), blender::DEG_id_tag_update(), from_context(), grease_pencil_layer_group_add_exec(), blender::ID_RECALC_GEOMETRY, NA_EDITED, NC_GEOM, NC_GPENCIL, ND_DATA, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::RNA_string_get(), blender::WM_event_add_notifier(), and WM_msg_publish_rna_prop.
Referenced by grease_pencil_layer_group_add_exec(), and GREASE_PENCIL_OT_layer_group_add().
|
static |
Definition at line 1064 of file grease_pencil_layers.cc.
References C, blender::GreasePencilLayerTreeGroup::color_tag, blender::DEG_id_tag_update(), from_context(), grease_pencil_layer_group_color_tag_exec(), blender::ID_RECALC_GEOMETRY, NA_SELECTED, NC_GPENCIL, ND_DATA, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::RNA_enum_get(), and blender::WM_event_add_notifier().
Referenced by grease_pencil_layer_group_color_tag_exec(), and GREASE_PENCIL_OT_layer_group_color_tag().
|
static |
Definition at line 405 of file grease_pencil_layers.cc.
References C, blender::CTX_wm_message_bus(), blender::DEG_id_tag_update(), from_context(), grease_pencil_layer_group_remove_exec(), blender::ID_RECALC_GEOMETRY, NA_SELECTED, NC_GPENCIL, ND_DATA, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::RNA_boolean_get(), blender::WM_event_add_notifier(), and WM_msg_publish_rna_prop.
Referenced by grease_pencil_layer_group_remove_exec(), and GREASE_PENCIL_OT_layer_group_remove().
|
static |
Definition at line 448 of file grease_pencil_layers.cc.
References blender::bke::greasepencil::TreeNode::as_group(), C, blender::DEG_id_tag_update(), from_context(), grease_pencil_layer_hide_exec(), blender::ID_RECALC_GEOMETRY, blender::bke::greasepencil::TreeNode::is_group(), NA_EDITED, NC_GEOM, NC_GPENCIL, ND_DATA, node, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::RNA_boolean_get(), and blender::WM_event_add_notifier().
Referenced by grease_pencil_layer_hide_exec(), and GREASE_PENCIL_OT_layer_hide().
|
static |
Definition at line 551 of file grease_pencil_layers.cc.
References C, blender::DEG_id_tag_update(), from_context(), grease_pencil_layer_isolate_exec(), blender::ID_RECALC_GEOMETRY, layer, NA_EDITED, NC_GEOM, NC_GPENCIL, ND_DATA, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::RNA_boolean_get(), and blender::WM_event_add_notifier().
Referenced by grease_pencil_layer_isolate_exec(), and GREASE_PENCIL_OT_layer_isolate().
|
static |
Definition at line 609 of file grease_pencil_layers.cc.
References C, blender::DEG_id_tag_update(), from_context(), grease_pencil_layer_lock_all_exec(), blender::ID_RECALC_GEOMETRY, NA_EDITED, NC_GEOM, NC_GPENCIL, ND_DATA, node, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::RNA_boolean_get(), and blender::WM_event_add_notifier().
Referenced by grease_pencil_layer_lock_all_exec(), and GREASE_PENCIL_OT_layer_lock_all().
|
static |
Definition at line 876 of file grease_pencil_layers.cc.
References blender::GreasePencilLayer::active_mask_index, blender::BKE_report(), blender::BLI_addtail(), blender::BLI_findstring_ptr(), C, blender::DEG_id_tag_update(), from_context(), grease_pencil_layer_mask_add_exec(), blender::ID_RECALC_GEOMETRY, blender::GreasePencilLayer::masks, NA_SELECTED, NC_GPENCIL, ND_DATA, node, offsetof, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::wmOperator::reports, blender::RNA_string_get(), blender::RPT_ERROR, and blender::WM_event_add_notifier().
Referenced by grease_pencil_layer_mask_add_exec(), and GREASE_PENCIL_OT_layer_mask_add().
|
static |
Definition at line 935 of file grease_pencil_layers.cc.
References active_grease_pencil_layer_poll(), C, from_context(), grease_pencil_layer_mask_poll(), and blender::GreasePencilLayer::masks.
Referenced by grease_pencil_layer_mask_poll(), and GREASE_PENCIL_OT_layer_mask_remove().
|
static |
Definition at line 948 of file grease_pencil_layers.cc.
References blender::GreasePencilLayer::active_mask_index, blender::BLI_findlink(), blender::BLI_remlink(), C, blender::DEG_id_tag_update(), from_context(), grease_pencil_layer_mask_remove_exec(), blender::ID_RECALC_GEOMETRY, blender::GreasePencilLayer::masks, NA_SELECTED, NC_GPENCIL, ND_DATA, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, and blender::WM_event_add_notifier().
Referenced by grease_pencil_layer_mask_remove_exec(), and GREASE_PENCIL_OT_layer_mask_remove().
|
static |
Definition at line 1002 of file grease_pencil_layers.cc.
References blender::GreasePencilLayer::active_mask_index, blender::BLI_findlink(), blender::BLI_listbase_link_move(), C, blender::DEG_id_tag_update(), from_context(), grease_pencil_layer_mask_reorder_exec(), blender::ID_RECALC_GEOMETRY, blender::GreasePencilLayer::masks, NA_SELECTED, NC_GPENCIL, ND_DATA, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::RNA_enum_get(), and blender::WM_event_add_notifier().
Referenced by grease_pencil_layer_mask_reorder_exec(), and GREASE_PENCIL_OT_layer_mask_reorder().
|
static |
Definition at line 989 of file grease_pencil_layers.cc.
References active_grease_pencil_layer_poll(), C, from_context(), grease_pencil_layer_mask_reorder_poll(), and blender::GreasePencilLayer::masks.
Referenced by grease_pencil_layer_mask_reorder_poll(), and GREASE_PENCIL_OT_layer_mask_reorder().
|
static |
Definition at line 255 of file grease_pencil_layers.cc.
References C, blender::CTX_wm_message_bus(), blender::DEG_id_tag_update(), Down, from_context(), grease_pencil_layer_move_exec(), blender::ID_RECALC_GEOMETRY, NA_EDITED, NC_GEOM, NC_GPENCIL, ND_DATA, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::RNA_enum_get(), Up, blender::WM_event_add_notifier(), and WM_msg_publish_rna_prop.
Referenced by grease_pencil_layer_move_exec(), and GREASE_PENCIL_OT_layer_move().
|
static |
Definition at line 232 of file grease_pencil_layers.cc.
References C, from_context(), grease_pencil_context_poll(), grease_pencil_layer_move_poll(), blender::bke::greasepencil::LayerGroup::num_direct_nodes(), and blender::bke::greasepencil::TreeNode::parent_group().
Referenced by grease_pencil_layer_move_poll(), and GREASE_PENCIL_OT_layer_move().
| void blender::ed::greasepencil::grease_pencil_layer_parent_clear | ( | bke::greasepencil::Layer & | layer, |
| const bool | keep_transform ) |
Definition at line 92 of file grease_pencil_layers.cc.
References blender::copy_m4_m4(), grease_pencil_layer_parent_clear(), blender::MatBase< float, 4, 4 >::identity(), and layer.
Referenced by grease_pencil_layer_parent_clear().
| bool blender::ed::greasepencil::grease_pencil_layer_parent_set | ( | bke::greasepencil::Layer & | layer, |
| Object * | parent, | ||
| StringRefNull | bone, | ||
| const bool | keep_transform ) |
Definition at line 65 of file grease_pencil_layers.cc.
References blender::BLI_strdup_null(), blender::StringRefNull::c_str(), blender::copy_m4_m4(), get_bone_mat(), grease_pencil_layer_parent_set(), inverse, blender::math::invert(), layer, and blender::unit_m4().
Referenced by grease_pencil_layer_parent_set().
|
static |
Definition at line 188 of file grease_pencil_layers.cc.
References C, blender::CTX_wm_message_bus(), blender::DEG_id_tag_update(), from_context(), grease_pencil_layer_remove_exec(), blender::ID_RECALC_GEOMETRY, NA_SELECTED, NC_GPENCIL, ND_DATA, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::WM_event_add_notifier(), and WM_msg_publish_rna_prop.
Referenced by grease_pencil_layer_remove_exec(), and GREASE_PENCIL_OT_layer_remove().
|
static |
Definition at line 515 of file grease_pencil_layers.cc.
References C, blender::DEG_id_tag_update(), from_context(), grease_pencil_layer_reveal_exec(), blender::ID_RECALC_GEOMETRY, NA_EDITED, NC_GEOM, NC_GPENCIL, ND_DATA, node, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, and blender::WM_event_add_notifier().
Referenced by grease_pencil_layer_reveal_exec(), and GREASE_PENCIL_OT_layer_reveal().
|
static |
Definition at line 342 of file grease_pencil_material.cc.
References blender::Object::actcol, blender::BKE_object_material_ensure(), blender::BKE_object_material_get(), C, blender::CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, blender::CTX_data_main(), blender::DEG_id_tag_update(), grease_pencil_material_copy_to_object_exec(), blender::ID_RECALC_SYNC_TO_EVAL, blender::IndexRange::IndexRange(), NA_EDITED, NC_GPENCIL, ND_DATA, blender::OB_GREASE_PENCIL, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::RNA_boolean_get(), blender::Object::totcol, and blender::WM_event_add_notifier().
Referenced by grease_pencil_material_copy_to_object_exec(), and GREASE_PENCIL_OT_material_copy_to_object().
|
static |
Definition at line 79 of file grease_pencil_material.cc.
References blender::BKE_object_material_get(), C, blender::CTX_data_active_object(), blender::DEG_id_tag_update(), blender::MaterialGPencilStyle::flag, blender::GP_MATERIAL_HIDE, grease_pencil_material_hide_exec(), blender::ID_RECALC_GEOMETRY, blender::ID_RECALC_SYNC_TO_EVAL, blender::IndexRange::IndexRange(), invert(), NA_EDITED, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::RNA_boolean_get(), and blender::WM_event_add_notifier().
Referenced by grease_pencil_material_hide_exec(), and GREASE_PENCIL_OT_material_hide().
|
static |
Definition at line 135 of file grease_pencil_material.cc.
References blender::BKE_object_material_get(), C, blender::CTX_data_active_object(), blender::DEG_id_tag_update(), blender::MaterialGPencilStyle::flag, blender::GP_MATERIAL_LOCKED, grease_pencil_material_lock_all_exec(), blender::ID_RECALC_GEOMETRY, blender::ID_RECALC_SYNC_TO_EVAL, blender::IndexRange::IndexRange(), NA_EDITED, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, and blender::WM_event_add_notifier().
Referenced by grease_pencil_material_lock_all_exec(), and GREASE_PENCIL_OT_material_lock_all().
|
static |
Definition at line 266 of file grease_pencil_material.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::BKE_object_material_get(), C, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::bke::Curve, blender::DEG_id_tag_update(), blender::MaterialGPencilStyle::flag, blender::index_mask::IndexMask::foreach_index(), blender::VArrayCommon< T >::get_if_single(), blender::GP_MATERIAL_LOCKED, grease_pencil_material_lock_unselected_exec(), blender::ID_RECALC_GEOMETRY, blender::ID_RECALC_SYNC_TO_EVAL, blender::IndexRange::IndexRange(), blender::index_mask::IndexMask::is_empty(), blender::bke::AttributeAccessor::lookup_or_default(), NA_EDITED, NC_GEOM, ND_DATA, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, retrieve_editable_and_selected_strokes(), retrieve_editable_drawings(), and blender::WM_event_add_notifier().
Referenced by grease_pencil_material_lock_unselected_exec(), and GREASE_PENCIL_OT_material_lock_unselected().
|
static |
Definition at line 222 of file grease_pencil_material.cc.
References blender::BKE_object_material_get(), blender::BKE_object_material_slot_used(), C, blender::CTX_data_active_object(), blender::DEG_id_tag_update(), blender::MaterialGPencilStyle::flag, blender::GP_MATERIAL_HIDE, blender::GP_MATERIAL_LOCKED, grease_pencil_material_lock_unused_exec(), blender::ID_RECALC_GEOMETRY, blender::ID_RECALC_SYNC_TO_EVAL, blender::IndexRange::IndexRange(), NA_EDITED, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, and blender::WM_event_add_notifier().
Referenced by grease_pencil_material_lock_unused_exec(), and GREASE_PENCIL_OT_material_lock_unused().
|
static |
Definition at line 36 of file grease_pencil_material.cc.
References blender::BKE_gpencil_material(), C, blender::CTX_data_active_object(), blender::DEG_id_tag_update(), blender::MaterialGPencilStyle::flag, blender::GP_MATERIAL_HIDE, grease_pencil_material_reveal_exec(), blender::ID_RECALC_GEOMETRY, blender::ID_RECALC_SYNC_TO_EVAL, blender::IndexRange::IndexRange(), NA_EDITED, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, and blender::WM_event_add_notifier().
Referenced by grease_pencil_material_reveal_exec(), and GREASE_PENCIL_OT_material_reveal().
|
static |
Definition at line 1146 of file grease_pencil_select.cc.
References BLI_assert_unreachable, blender::bke::Bool, C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::CTX_data_tool_settings(), blender::bke::Curve, blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ED_grease_pencil_selection_domain_get(), blender::ed::curves::ensure_selection_attribute(), blender::ed::curves::fill_selection(), blender::bke::GSpanAttributeWriter::finish(), blender::index_mask::IndexMask::foreach_index(), blender::ed::curves::get_curves_selection_attribute_names(), grease_pencil_material_select_exec(), blender::ID_RECALC_GEOMETRY, blender::Span< T >::index_range(), blender::index_mask::IndexMask::is_empty(), blender::index_mask::masked_fill(), NA_EDITED, NC_GEOM, ND_DATA, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::bke::Point, blender::wmOperator::ptr, retrieve_editable_drawings(), retrieve_editable_strokes_by_material(), blender::RNA_boolean_get(), blender::GMutableSpan::slice(), blender::bke::GSpanAttributeWriter::span, blender::bke::greasepencil::Drawing::strokes_for_write(), blender::GMutableSpan::typed(), and blender::WM_event_add_notifier().
Referenced by grease_pencil_material_select_exec(), and GREASE_PENCIL_OT_material_select().
|
static |
Definition at line 179 of file grease_pencil_material.cc.
References blender::BKE_object_material_get(), C, blender::CTX_data_active_object(), blender::DEG_id_tag_update(), blender::MaterialGPencilStyle::flag, blender::GP_MATERIAL_LOCKED, grease_pencil_material_unlock_all_exec(), blender::ID_RECALC_GEOMETRY, blender::ID_RECALC_SYNC_TO_EVAL, blender::IndexRange::IndexRange(), NA_EDITED, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, and blender::WM_event_add_notifier().
Referenced by grease_pencil_material_unlock_all_exec(), and GREASE_PENCIL_OT_material_unlock_all().
|
static |
Definition at line 706 of file grease_pencil_layers.cc.
References All, blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::bke::greasepencil::Layer::as_node(), blender::BKE_grease_pencil_copy_parameters(), blender::BKE_grease_pencil_new_nomain(), blender::BKE_grease_pencil_nomain_to_grease_pencil(), blender::BKE_report(), BLI_assert_unreachable, C, blender::CTX_data_active_object(), blender::CTX_data_main(), blender::CTX_wm_message_bus(), blender::DEG_id_tag_update(), Down, grease_pencil_merge_layer_exec(), Group, blender::bke::greasepencil::LayerGroup::groups_for_write(), blender::ID_RECALC_GEOMETRY, blender::Span< T >::index_range(), layer, blender::bke::greasepencil::LayerGroup::layers(), merge_layers(), N_, NA_SELECTED, NC_GPENCIL, ND_DATA, node, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::GreasePencilLayerTreeNode::prev, blender::wmOperator::ptr, blender::wmOperator::reports, blender::RNA_enum_get(), blender::RPT_ERROR, blender::RPT_INFO, blender::WM_event_add_notifier(), and WM_msg_publish_rna_prop.
Referenced by grease_pencil_merge_layer_exec(), and GREASE_PENCIL_OT_layer_merge().
|
static |
Definition at line 2016 of file grease_pencil_edit.cc.
References blender::bke::greasepencil::TreeNode::as_group(), blender::bke::greasepencil::TreeNode::as_layer(), blender::BKE_reportf(), C, blender::RenderData::cfra, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::bke::curves_copy_curve_selection(), blender::bke::curves_new_nomain(), blender::DEG_id_tag_update(), ensure_active_keyframe(), blender::bke::greasepencil::Layer::frames(), blender::bke::GeometrySet::from_curves(), blender::bke::GeometrySet::get_curves_for_write(), grease_pencil_move_to_layer_exec(), blender::ID_RECALC_GEOMETRY, blender::ID_RECALC_TRANSFORM, blender::index_mask::IndexMask::is_empty(), blender::bke::greasepencil::TreeNode::is_group(), blender::bke::greasepencil::TreeNode::is_layer(), blender::geometry::join_geometries(), NA_EDITED, NC_GPENCIL, ND_DATA, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::Scene::r, blender::bke::CurvesGeometry::remove_curves(), blender::wmOperator::reports, retrieve_editable_drawings(), blender::ed::curves::retrieve_selected_curves(), blender::RNA_boolean_get(), blender::RNA_string_get(), blender::RPT_ERROR, blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), and blender::WM_event_add_notifier().
Referenced by grease_pencil_move_to_layer_exec(), grease_pencil_move_to_layer_invoke(), and GREASE_PENCIL_OT_move_to_layer().
|
static |
Definition at line 2123 of file grease_pencil_edit.cc.
References C, blender::CTX_data_active_object(), grease_pencil_move_to_layer_exec(), grease_pencil_move_to_layer_invoke(), IFACE_, blender::wm::InvokeDefault, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::RNA_boolean_get(), blender::RNA_property_is_set(), blender::RNA_string_set(), blender::RNA_struct_find_property(), blender::WM_menu_name_call(), and blender::WM_operator_props_popup_confirm_ex().
Referenced by grease_pencil_move_to_layer_invoke(), and GREASE_PENCIL_OT_move_to_layer().
|
static |
Definition at line 920 of file grease_pencil_frames.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_active_frame_delete_exec(), GREASE_PENCIL_OT_active_frame_delete(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_boolean(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_frames(), and GREASE_PENCIL_OT_active_frame_delete().
|
static |
Definition at line 306 of file grease_pencil_bake_animation.cc.
References bake_grease_pencil_animation_exec(), bake_grease_pencil_animation_invoke(), bake_grease_pencil_animation_poll(), Cursor, blender::wmOperatorType::description, ensure_valid_frame_end(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, Front, GREASE_PENCIL_OT_bake_grease_pencil_animation(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, Keep, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_boolean(), blender::RNA_def_enum(), blender::RNA_def_int(), blender::RNA_def_property_update_runtime(), Side, blender::wmOperatorType::srna, Top, and View.
Referenced by blender::ED_operatortypes_grease_pencil_bake_animation(), and GREASE_PENCIL_OT_bake_grease_pencil_animation().
|
static |
Definition at line 1504 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), END, blender::wmOperatorType::exec, blender::wmOperatorType::flag, FLAT, grease_pencil_caps_set_exec(), GREASE_PENCIL_OT_caps_set(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::RNA_def_enum(), RNA_ENUM_ITEM_SEPR, ROUND, blender::wmOperatorType::srna, START, and blender::WM_menu_invoke().
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_caps_set().
|
static |
Definition at line 1701 of file grease_pencil_edit.cc.
References active_grease_pencil_layer_poll(), blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_clean_loose_exec(), grease_pencil_clean_loose_invoke(), GREASE_PENCIL_OT_clean_loose(), blender::wmOperatorType::idname, INT_MAX, blender::wmOperatorType::invoke, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_int(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_clean_loose().
|
static |
Definition at line 4914 of file grease_pencil_edit.cc.
References blender::CURVE_TYPE_POLY, blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_convert_curve_type_exec(), grease_pencil_convert_curve_type_ui(), GREASE_PENCIL_OT_convert_curve_type(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::PROP_DISTANCE, blender::PROP_SKIP_SAVE, blender::RNA_def_enum(), blender::RNA_def_float(), blender::RNA_def_property_flag(), blender::RNA_def_property_subtype(), blender::rna_enum_curves_type_items, blender::wmOperatorType::srna, blender::wmOperatorType::ui, and blender::WM_menu_invoke().
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_convert_curve_type().
|
static |
Definition at line 2774 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_copy_strokes_exec(), GREASE_PENCIL_OT_copy(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, and blender::wmOperatorType::poll.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_copy().
|
static |
Definition at line 1038 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_cyclical_set_exec(), GREASE_PENCIL_OT_cyclical_set(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, prop_cyclical_types, blender::RNA_def_boolean(), blender::RNA_def_enum(), blender::wmOperatorType::srna, TOGGLE, and blender::WM_menu_invoke().
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_cyclical_set().
|
static |
Definition at line 582 of file grease_pencil_edit.cc.
References All, blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_delete_exec(), GREASE_PENCIL_OT_delete(), blender::wmOperatorType::idname, blender::wmOperatorType::name, OnlyFills, OnlyStrokes, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::PROP_SKIP_SAVE, blender::RNA_def_enum(), blender::RNA_def_property_flag(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_delete().
|
static |
Definition at line 1000 of file grease_pencil_frames.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_active_breakdown_frame_poll(), grease_pencil_delete_breakdown_frames_exec(), GREASE_PENCIL_OT_delete_breakdown(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by blender::ED_operatortypes_grease_pencil_frames(), and GREASE_PENCIL_OT_delete_breakdown().
|
static |
Definition at line 822 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_delete_frame_exec(), GREASE_PENCIL_OT_delete_frame(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, prop_greasepencil_deleteframe_types, blender::PROP_SKIP_SAVE, blender::RNA_def_enum(), blender::RNA_def_property_flag(), blender::wmOperatorType::srna, and blender::WM_menu_invoke().
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_delete_frame().
|
static |
Definition at line 738 of file grease_pencil_edit.cc.
References BLT_I18NCONTEXT_ID_GPENCIL, blender::wmOperatorType::description, editable_grease_pencil_point_selection_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_dissolve_exec(), GREASE_PENCIL_OT_dissolve(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, prop_dissolve_types, blender::PROP_SKIP_SAVE, blender::RNA_def_enum(), blender::RNA_def_property_flag(), blender::RNA_def_property_translation_context(), blender::wmOperatorType::srna, and blender::WM_menu_invoke().
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_dissolve().
|
static |
Definition at line 1652 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_duplicate_exec(), GREASE_PENCIL_OT_duplicate(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_duplicate().
|
static |
Definition at line 3324 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, editable_grease_pencil_point_selection_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_extrude_exec(), GREASE_PENCIL_OT_extrude(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_extrude().
|
static |
Definition at line 601 of file grease_pencil_frames.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, frame_clean_duplicate_exec(), GREASE_PENCIL_OT_frame_clean_duplicate(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::PROP_SKIP_SAVE, blender::RNA_def_boolean(), blender::RNA_def_property_flag(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_frames(), and GREASE_PENCIL_OT_frame_clean_duplicate().
|
static |
Definition at line 862 of file grease_pencil_frames.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_frame_duplicate_exec(), GREASE_PENCIL_OT_frame_duplicate(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_boolean(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_frames(), and GREASE_PENCIL_OT_frame_duplicate().
|
static |
Definition at line 570 of file grease_pencil_frames.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_insert_blank_frame(), blender::wmOperatorType::idname, insert_blank_frame_exec(), MAXFRAME, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::PROP_HIDDEN, blender::PROP_SKIP_SAVE, blender::RNA_def_boolean(), blender::RNA_def_int(), blender::RNA_def_property_flag(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_frames(), and GREASE_PENCIL_OT_insert_blank_frame().
|
static |
Definition at line 5424 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_join_fills_exec(), GREASE_PENCIL_OT_join_fills(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_join_fills().
|
static |
Definition at line 330 of file grease_pencil_layers.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_layer_active_exec(), GREASE_PENCIL_OT_layer_active(), blender::wmOperatorType::idname, INT_MAX, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::PROP_HIDDEN, blender::PROP_SKIP_SAVE, blender::RNA_def_int(), blender::RNA_def_property_flag(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_layers(), and GREASE_PENCIL_OT_layer_active().
|
static |
Definition at line 168 of file grease_pencil_layers.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_context_poll(), grease_pencil_layer_add_exec(), grease_pencil_layer_add_invoke(), GREASE_PENCIL_OT_layer_add(), blender::wmOperatorType::idname, INT16_MAX, blender::wmOperatorType::invoke, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::PROP_SKIP_SAVE, blender::RNA_def_property_flag(), blender::RNA_def_string(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_layers(), and GREASE_PENCIL_OT_layer_add().
|
static |
Definition at line 682 of file grease_pencil_layers.cc.
References active_grease_pencil_layer_poll(), blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_layer_duplicate_exec(), GREASE_PENCIL_OT_layer_duplicate(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_boolean(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_layers(), and GREASE_PENCIL_OT_layer_duplicate().
|
static |
Definition at line 1178 of file grease_pencil_layers.cc.
References Active, active_grease_pencil_layer_poll(), All, blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_layer_duplicate_object_exec(), GREASE_PENCIL_OT_layer_duplicate_object(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::RNA_def_boolean(), blender::RNA_def_enum(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_layers(), and GREASE_PENCIL_OT_layer_duplicate_object().
|
static |
Definition at line 386 of file grease_pencil_layers.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_context_poll(), grease_pencil_layer_group_add_exec(), GREASE_PENCIL_OT_layer_group_add(), blender::wmOperatorType::idname, INT16_MAX, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::PROP_SKIP_SAVE, blender::RNA_def_property_flag(), blender::RNA_def_string(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_layers(), and GREASE_PENCIL_OT_layer_group_add().
|
static |
Definition at line 1079 of file grease_pencil_layers.cc.
References active_grease_pencil_layer_group_poll(), blender::wmOperatorType::description, enum_layergroup_color_items, blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_layer_group_color_tag_exec(), GREASE_PENCIL_OT_layer_group_color_tag(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::RNA_def_enum(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_layers(), and GREASE_PENCIL_OT_layer_group_color_tag().
|
static |
Definition at line 428 of file grease_pencil_layers.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_context_poll(), grease_pencil_layer_group_remove_exec(), GREASE_PENCIL_OT_layer_group_remove(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_boolean(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_layers(), and GREASE_PENCIL_OT_layer_group_remove().
|
static |
Definition at line 494 of file grease_pencil_layers.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_context_poll(), grease_pencil_layer_hide_exec(), GREASE_PENCIL_OT_layer_hide(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::PROP_SKIP_SAVE, blender::RNA_def_boolean(), blender::RNA_def_property_flag(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_layers(), and GREASE_PENCIL_OT_layer_hide().
|
static |
Definition at line 590 of file grease_pencil_layers.cc.
References active_grease_pencil_layer_poll(), blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_layer_isolate_exec(), GREASE_PENCIL_OT_layer_isolate(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_boolean(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_layers(), and GREASE_PENCIL_OT_layer_isolate().
|
static |
Definition at line 630 of file grease_pencil_layers.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_context_poll(), grease_pencil_layer_lock_all_exec(), GREASE_PENCIL_OT_layer_lock_all(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_boolean(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_layers(), and GREASE_PENCIL_OT_layer_lock_all().
|
static |
Definition at line 918 of file grease_pencil_layers.cc.
References active_grease_pencil_layer_poll(), blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_layer_mask_add_exec(), GREASE_PENCIL_OT_layer_mask_add(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_string(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_layers(), and GREASE_PENCIL_OT_layer_mask_add().
|
static |
Definition at line 975 of file grease_pencil_layers.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_layer_mask_poll(), grease_pencil_layer_mask_remove_exec(), GREASE_PENCIL_OT_layer_mask_remove(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by blender::ED_operatortypes_grease_pencil_layers(), and GREASE_PENCIL_OT_layer_mask_remove().
|
static |
Definition at line 1034 of file grease_pencil_layers.cc.
References blender::wmOperatorType::description, enum_layer_move_direction, blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_layer_mask_reorder_exec(), grease_pencil_layer_mask_reorder_poll(), GREASE_PENCIL_OT_layer_mask_reorder(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::RNA_def_enum(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_layers(), and GREASE_PENCIL_OT_layer_mask_reorder().
|
static |
Definition at line 847 of file grease_pencil_layers.cc.
References All, blender::wmOperatorType::description, Down, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_merge_layer_exec(), GREASE_PENCIL_OT_layer_merge(), Group, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::RNA_def_enum(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_layers(), and GREASE_PENCIL_OT_layer_merge().
|
static |
Definition at line 281 of file grease_pencil_layers.cc.
References blender::wmOperatorType::description, enum_layer_move_direction, blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_layer_move_exec(), grease_pencil_layer_move_poll(), GREASE_PENCIL_OT_layer_move(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::RNA_def_enum(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_layers(), and GREASE_PENCIL_OT_layer_move().
|
static |
Definition at line 210 of file grease_pencil_layers.cc.
References active_grease_pencil_layer_poll(), blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_layer_remove_exec(), GREASE_PENCIL_OT_layer_remove(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by blender::ED_operatortypes_grease_pencil_layers(), and GREASE_PENCIL_OT_layer_remove().
|
static |
Definition at line 536 of file grease_pencil_layers.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_context_poll(), grease_pencil_layer_reveal_exec(), GREASE_PENCIL_OT_layer_reveal(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by blender::ED_operatortypes_grease_pencil_layers(), and GREASE_PENCIL_OT_layer_reveal().
|
static |
Definition at line 381 of file grease_pencil_material.cc.
References active_grease_pencil_poll(), blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_material_copy_to_object_exec(), GREASE_PENCIL_OT_material_copy_to_object(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::PROP_HIDDEN, blender::PROP_SKIP_SAVE, blender::RNA_def_boolean(), blender::RNA_def_property_flag(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_material(), and GREASE_PENCIL_OT_material_copy_to_object().
|
static |
Definition at line 111 of file grease_pencil_material.cc.
References active_grease_pencil_poll(), blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_material_hide_exec(), GREASE_PENCIL_OT_material_hide(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_boolean(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_material(), and GREASE_PENCIL_OT_material_hide().
|
static |
Definition at line 479 of file grease_pencil_material.cc.
References active_grease_pencil_material_poll(), blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_material_isolate(), blender::wmOperatorType::idname, material_isolate_exec(), blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_boolean(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_material(), and GREASE_PENCIL_OT_material_isolate().
|
static |
Definition at line 158 of file grease_pencil_material.cc.
References active_grease_pencil_poll(), blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_material_lock_all_exec(), GREASE_PENCIL_OT_material_lock_all(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by blender::ED_operatortypes_grease_pencil_material(), and GREASE_PENCIL_OT_material_lock_all().
|
static |
Definition at line 322 of file grease_pencil_material.cc.
References active_grease_pencil_poll(), blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_material_lock_unselected_exec(), GREASE_PENCIL_OT_material_lock_unselected(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by blender::ED_operatortypes_grease_pencil_material(), and GREASE_PENCIL_OT_material_lock_unselected().
|
static |
Definition at line 246 of file grease_pencil_material.cc.
References active_grease_pencil_poll(), blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_material_lock_unused_exec(), GREASE_PENCIL_OT_material_lock_unused(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by blender::ED_operatortypes_grease_pencil_material(), and GREASE_PENCIL_OT_material_lock_unused().
|
static |
Definition at line 59 of file grease_pencil_material.cc.
References active_grease_pencil_poll(), blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_material_reveal_exec(), GREASE_PENCIL_OT_material_reveal(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by blender::ED_operatortypes_grease_pencil_material(), and GREASE_PENCIL_OT_material_reveal().
|
static |
Definition at line 1203 of file grease_pencil_select.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_material_select_exec(), GREASE_PENCIL_OT_material_select(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::PROP_HIDDEN, blender::PROP_SKIP_SAVE, blender::RNA_def_boolean(), blender::RNA_def_property_flag(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_select(), and GREASE_PENCIL_OT_material_select().
|
static |
Definition at line 202 of file grease_pencil_material.cc.
References active_grease_pencil_poll(), blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_material_unlock_all_exec(), GREASE_PENCIL_OT_material_unlock_all(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by blender::ED_operatortypes_grease_pencil_material(), and GREASE_PENCIL_OT_material_unlock_all().
|
static |
Definition at line 2150 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, grease_pencil_move_to_layer_exec(), grease_pencil_move_to_layer_invoke(), GREASE_PENCIL_OT_move_to_layer(), blender::wmOperatorType::idname, INT16_MAX, blender::wmOperatorType::invoke, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::PROP_HIDDEN, blender::PROP_SKIP_SAVE, blender::RNA_def_boolean(), blender::RNA_def_property_flag(), blender::RNA_def_string(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_move_to_layer().
|
static |
Definition at line 4706 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_outline(), grease_pencil_outline_exec(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, prop_outline_modes, blender::RNA_def_enum(), blender::RNA_def_float_distance(), blender::RNA_def_float_factor(), blender::RNA_def_int(), blender::wmOperatorType::srna, and View.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_outline().
|
static |
Definition at line 123 of file grease_pencil_modes.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_paintmode_toggle(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, paintmode_toggle_exec(), paintmode_toggle_poll(), blender::wmOperatorType::poll, blender::PROP_HIDDEN, blender::PROP_SKIP_SAVE, blender::RNA_def_boolean(), blender::RNA_def_property_flag(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_modes(), and GREASE_PENCIL_OT_paintmode_toggle().
|
static |
Definition at line 3021 of file grease_pencil_edit.cc.
References Active, ByLayer, blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_paste(), grease_pencil_paste_strokes_exec(), grease_pencil_paste_strokes_poll(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::PROP_SKIP_SAVE, blender::RNA_def_boolean(), blender::RNA_def_enum(), blender::RNA_def_property_flag(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_paste().
|
static |
Definition at line 302 of file grease_pencil_pen.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::flag, GREASE_PENCIL_OT_pen(), grease_pencil_pen_invoke(), grease_pencil_pen_modal(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::modal, blender::wmOperatorType::name, blender::OPTYPE_UNDO, and blender::ed::curves::pen_tool::pen_tool_common_props().
Referenced by blender::ED_operatortypes_grease_pencil_pen(), and GREASE_PENCIL_OT_pen().
|
static |
Definition at line 1636 of file grease_pencil_primitive.cc.
References Arc, blender::wmOperatorType::cancel, blender::wmOperatorType::description, blender::wmOperatorType::flag, GREASE_PENCIL_OT_primitive_arc(), grease_pencil_primitive_cancel(), grease_pencil_primitive_common_props(), grease_pencil_primitive_invoke(), grease_pencil_primitive_modal(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::modal, blender::wmOperatorType::name, blender::OPTYPE_BLOCKING, blender::OPTYPE_REGISTER, and blender::OPTYPE_UNDO.
Referenced by blender::ED_operatortypes_grease_pencil_primitives(), and GREASE_PENCIL_OT_primitive_arc().
|
static |
Definition at line 1674 of file grease_pencil_primitive.cc.
References Box, blender::wmOperatorType::cancel, blender::wmOperatorType::description, blender::wmOperatorType::flag, GREASE_PENCIL_OT_primitive_box(), grease_pencil_primitive_cancel(), grease_pencil_primitive_common_props(), grease_pencil_primitive_invoke(), grease_pencil_primitive_modal(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::modal, blender::wmOperatorType::name, blender::OPTYPE_BLOCKING, blender::OPTYPE_REGISTER, and blender::OPTYPE_UNDO.
Referenced by blender::ED_operatortypes_grease_pencil_primitives(), and GREASE_PENCIL_OT_primitive_box().
|
static |
Definition at line 1693 of file grease_pencil_primitive.cc.
References blender::wmOperatorType::cancel, Circle, blender::wmOperatorType::description, blender::wmOperatorType::flag, GREASE_PENCIL_OT_primitive_circle(), grease_pencil_primitive_cancel(), grease_pencil_primitive_common_props(), grease_pencil_primitive_invoke(), grease_pencil_primitive_modal(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::modal, blender::wmOperatorType::name, blender::OPTYPE_BLOCKING, blender::OPTYPE_REGISTER, and blender::OPTYPE_UNDO.
Referenced by blender::ED_operatortypes_grease_pencil_primitives(), and GREASE_PENCIL_OT_primitive_circle().
|
static |
Definition at line 1655 of file grease_pencil_primitive.cc.
References blender::wmOperatorType::cancel, Curve, blender::wmOperatorType::description, blender::wmOperatorType::flag, GREASE_PENCIL_OT_primitive_curve(), grease_pencil_primitive_cancel(), grease_pencil_primitive_common_props(), grease_pencil_primitive_invoke(), grease_pencil_primitive_modal(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::modal, blender::wmOperatorType::name, blender::OPTYPE_BLOCKING, blender::OPTYPE_REGISTER, and blender::OPTYPE_UNDO.
Referenced by blender::ED_operatortypes_grease_pencil_primitives(), and GREASE_PENCIL_OT_primitive_curve().
|
static |
Definition at line 1598 of file grease_pencil_primitive.cc.
References blender::wmOperatorType::cancel, blender::wmOperatorType::description, blender::wmOperatorType::flag, GREASE_PENCIL_OT_primitive_line(), grease_pencil_primitive_cancel(), grease_pencil_primitive_common_props(), grease_pencil_primitive_invoke(), grease_pencil_primitive_modal(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, Line, blender::wmOperatorType::modal, blender::wmOperatorType::name, blender::OPTYPE_BLOCKING, blender::OPTYPE_REGISTER, and blender::OPTYPE_UNDO.
Referenced by blender::ED_operatortypes_grease_pencil_primitives(), and GREASE_PENCIL_OT_primitive_line().
|
static |
Definition at line 1617 of file grease_pencil_primitive.cc.
References blender::wmOperatorType::cancel, blender::wmOperatorType::description, blender::wmOperatorType::flag, GREASE_PENCIL_OT_primitive_polyline(), grease_pencil_primitive_cancel(), grease_pencil_primitive_common_props(), grease_pencil_primitive_invoke(), grease_pencil_primitive_modal(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::modal, blender::wmOperatorType::name, blender::OPTYPE_BLOCKING, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and Polyline.
Referenced by blender::ED_operatortypes_grease_pencil_primitives(), and GREASE_PENCIL_OT_primitive_polyline().
|
static |
Definition at line 4558 of file grease_pencil_edit.cc.
References ActiveFrame, AllFrames, blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_remove_fill_guides(), grease_pencil_remove_fill_guides_exec(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::RNA_def_enum(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_remove_fill_guides().
|
static |
Definition at line 3566 of file grease_pencil_edit.cc.
References BLT_I18NCONTEXT_ID_MOVIECLIP, Cursor, blender::wmOperatorType::description, editable_grease_pencil_with_region_view3d_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, Front, GREASE_PENCIL_OT_reproject(), grease_pencil_reproject_exec(), grease_pencil_reproject_ui(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::RNA_def_boolean(), blender::RNA_def_enum(), blender::RNA_def_float(), blender::RNA_def_property_translation_context(), Side, blender::wmOperatorType::srna, Surface, Top, blender::wmOperatorType::ui, View, and blender::WM_menu_invoke().
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_reproject().
|
static |
Definition at line 4445 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_reset_uvs(), grease_pencil_reset_uvs_exec(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_reset_uvs().
|
static |
Definition at line 227 of file grease_pencil_modes.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_sculptmode_toggle(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::PROP_HIDDEN, blender::PROP_SKIP_SAVE, blender::RNA_def_boolean(), blender::RNA_def_property_flag(), sculptmode_toggle_exec(), sculptmode_toggle_poll(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_modes(), and GREASE_PENCIL_OT_sculptmode_toggle().
|
static |
Definition at line 367 of file grease_pencil_select.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_select_all(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, select_all_exec(), and blender::WM_operator_properties_select_all().
Referenced by blender::ED_operatortypes_grease_pencil_select(), and GREASE_PENCIL_OT_select_all().
|
static |
Definition at line 573 of file grease_pencil_select.cc.
References blender::wmOperatorType::description, editable_grease_pencil_point_selection_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_select_alternate(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_boolean(), select_alternate_exec(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_select(), and GREASE_PENCIL_OT_select_alternate().
|
static |
Definition at line 1296 of file grease_pencil_select.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_select_by_stroke_type(), grease_pencil_select_by_stroke_type_exec(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::PROP_SKIP_SAVE, blender::RNA_def_boolean(), blender::RNA_def_enum(), blender::RNA_def_property_flag(), select_by_stroke_type_items, and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_select(), and GREASE_PENCIL_OT_select_by_stroke_type().
|
static |
Definition at line 865 of file grease_pencil_select.cc.
References blender::wmOperatorType::description, editable_grease_pencil_point_selection_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_select_ends(), blender::wmOperatorType::idname, INT32_MAX, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_int(), select_ends_exec(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_select(), and GREASE_PENCIL_OT_select_ends().
|
static |
Definition at line 981 of file grease_pencil_select.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_select_fill(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, and select_fill_exec().
Referenced by blender::ED_operatortypes_grease_pencil_select(), and GREASE_PENCIL_OT_select_fill().
|
static |
Definition at line 441 of file grease_pencil_select.cc.
References blender::wmOperatorType::description, editable_grease_pencil_point_selection_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_select_less(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, and select_less_exec().
Referenced by blender::ED_operatortypes_grease_pencil_select(), and GREASE_PENCIL_OT_select_less().
|
static |
Definition at line 479 of file grease_pencil_select.cc.
References blender::wmOperatorType::description, editable_grease_pencil_point_selection_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_select_linked(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::PROP_SKIP_SAVE, blender::RNA_def_boolean(), blender::RNA_def_property_flag(), select_linked_exec(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_select(), and GREASE_PENCIL_OT_select_linked().
|
static |
Definition at line 405 of file grease_pencil_select.cc.
References blender::wmOperatorType::description, editable_grease_pencil_point_selection_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_select_more(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, and select_more_exec().
Referenced by blender::ED_operatortypes_grease_pencil_select(), and GREASE_PENCIL_OT_select_more().
|
static |
Definition at line 539 of file grease_pencil_select.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_select_random(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, select_random_exec(), and blender::WM_operator_properties_select_random().
Referenced by blender::ED_operatortypes_grease_pencil_select(), and GREASE_PENCIL_OT_select_random().
|
static |
Definition at line 818 of file grease_pencil_select.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, FLT_MAX, GREASE_PENCIL_OT_select_similar(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, LAYER, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::RNA_def_enum(), blender::RNA_def_float(), select_similar_exec(), select_similar_mode_items, blender::wmOperatorType::srna, and blender::WM_menu_invoke().
Referenced by blender::ED_operatortypes_grease_pencil_select(), and GREASE_PENCIL_OT_select_similar().
|
static |
Definition at line 2547 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_separate(), grease_pencil_separate_exec(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, prop_separate_modes, blender::RNA_def_enum(), SELECTED, blender::wmOperatorType::srna, and blender::WM_menu_invoke().
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_separate().
|
static |
Definition at line 5494 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_separate_fills(), grease_pencil_separate_fills_exec(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_boolean(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_separate_fills().
|
static |
Definition at line 1098 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_set_active_material(), grease_pencil_set_active_material_exec(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_set_active_material().
|
static |
Definition at line 5055 of file grease_pencil_edit.cc.
References DEG2RADF, blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_set_corner_type(), grease_pencil_set_corner_type_exec(), grease_pencil_set_corner_type_ui(), blender::wmOperatorType::idname, M_PI, Miter, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::PROP_ANGLE, prop_corner_types, blender::RNA_def_enum(), blender::RNA_def_float_distance(), blender::RNA_def_property_subtype(), blender::wmOperatorType::srna, and blender::wmOperatorType::ui.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_set_corner_type().
|
static |
Definition at line 4339 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_set_curve_resolution(), grease_pencil_set_curve_resolution_exec(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_int(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_set_curve_resolution().
|
static |
Definition at line 4168 of file grease_pencil_edit.cc.
References blender::CURVE_TYPE_POLY, blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_set_curve_type(), grease_pencil_set_curve_type_exec(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::RNA_def_boolean(), blender::RNA_def_enum(), blender::rna_enum_curves_type_items, blender::wmOperatorType::srna, and blender::WM_menu_invoke().
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_set_curve_type().
|
static |
Definition at line 4277 of file grease_pencil_edit.cc.
References blender::ed::curves::Auto, blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_set_handle_type(), grease_pencil_set_handle_type_exec(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::RNA_def_enum(), blender::ed::curves::rna_enum_set_handle_type_items, blender::wmOperatorType::srna, and blender::WM_menu_invoke().
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_set_handle_type().
|
static |
Definition at line 1584 of file grease_pencil_edit.cc.
References active_grease_pencil_poll(), blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_set_material(), grease_pencil_set_material_exec(), blender::wmOperatorType::idname, material_enum_itemf(), blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::RNA_def_enum(), blender::RNA_def_enum_funcs(), blender::rna_enum_dummy_DEFAULT_items, and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_set_material().
|
static |
Definition at line 1128 of file grease_pencil_select.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_set_selection_mode(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::PROP_HIDDEN, blender::PROP_SKIP_SAVE, blender::RNA_def_enum(), blender::RNA_def_property_flag(), blender::rna_enum_grease_pencil_selectmode_items, select_set_mode_exec(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_select(), and GREASE_PENCIL_OT_set_selection_mode().
|
static |
Definition at line 1386 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, editable_grease_pencil_point_selection_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_set_start_point(), grease_pencil_set_start_point_exec(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_set_start_point().
|
static |
Definition at line 5187 of file grease_pencil_edit.cc.
References BLT_I18NCONTEXT_ID_GPENCIL, blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_set_stroke_type(), grease_pencil_set_stroke_type_exec(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::RNA_def_enum(), blender::RNA_def_property_translation_context(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_set_stroke_type().
|
static |
Definition at line 1214 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_set_uniform_opacity(), grease_pencil_set_uniform_opacity_exec(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_float(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_set_uniform_opacity().
|
static |
Definition at line 1149 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_set_uniform_thickness(), grease_pencil_set_uniform_thickness_exec(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::RNA_def_float(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_set_uniform_thickness().
|
static |
Definition at line 3912 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_snap_cursor_to_selected(), grease_pencil_snap_cursor_to_sel_exec(), grease_pencil_snap_poll(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_snap_cursor_to_selected().
|
static |
Definition at line 3798 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_snap_to_cursor(), grease_pencil_snap_poll(), grease_pencil_snap_to_cursor_exec(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::RNA_def_boolean(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_snap_to_cursor().
|
static |
Definition at line 3716 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_snap_to_grid(), grease_pencil_snap_poll(), grease_pencil_snap_to_grid_exec(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_snap_to_grid().
|
static |
Definition at line 904 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_stroke_material_set(), grease_pencil_stroke_material_set_exec(), blender::wmOperatorType::idname, MAX_ID_NAME, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::PROP_SKIP_SAVE, blender::RNA_def_property_flag(), blender::RNA_def_string(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_stroke_material_set().
|
static |
Definition at line 3127 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_stroke_merge_by_distance(), grease_pencil_stroke_merge_by_distance_exec(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::PROP_SKIP_SAVE, blender::RNA_def_boolean(), blender::RNA_def_float(), blender::RNA_def_property_flag(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_stroke_merge_by_distance().
|
static |
Definition at line 1986 of file grease_pencil_edit.cc.
References BOTTOM, blender::wmOperatorType::description, DOWN, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_stroke_reorder(), grease_pencil_stroke_reorder_exec(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::RNA_def_enum(), RNA_ENUM_ITEM_SEPR, blender::wmOperatorType::srna, TOP, and UP.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_stroke_reorder().
|
static |
Definition at line 485 of file grease_pencil_vertex_paint.cc.
References Both, blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_stroke_reset_vertex_color(), grease_pencil_vertex_paint_reset_exec(), grease_pencil_vertex_painting_poll(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, prop_grease_pencil_vertex_mode, blender::RNA_def_enum(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_vertex_paint(), and GREASE_PENCIL_OT_stroke_reset_vertex_color().
|
static |
Definition at line 408 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_stroke_simplify(), grease_pencil_simplify_ui(), grease_pencil_stroke_simplify_exec(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, prop_simplify_modes, blender::PROP_SKIP_SAVE, blender::RNA_def_enum(), blender::RNA_def_float(), blender::RNA_def_int(), blender::RNA_def_property_flag(), blender::wmOperatorType::srna, and blender::wmOperatorType::ui.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_stroke_simplify().
|
static |
Definition at line 188 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_stroke_smooth(), grease_pencil_stroke_smooth_exec(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::PROP_SKIP_SAVE, blender::RNA_def_boolean(), blender::RNA_def_float(), blender::RNA_def_int(), blender::RNA_def_property_flag(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_stroke_smooth().
|
static |
Definition at line 4491 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_stroke_split(), grease_pencil_stroke_split_exec(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_stroke_split().
|
static |
Definition at line 1831 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, gpencil_stroke_subdivide_exec(), GREASE_PENCIL_OT_stroke_subdivide(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::PROP_SKIP_SAVE, blender::RNA_def_boolean(), blender::RNA_def_int(), blender::RNA_def_property_flag(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_stroke_subdivide().
|
static |
Definition at line 1269 of file grease_pencil_edit.cc.
References blender::wmOperatorType::description, editable_grease_pencil_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_stroke_switch_direction(), grease_pencil_stroke_switch_direction_exec(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_stroke_switch_direction().
|
static |
Definition at line 4102 of file grease_pencil_edit.cc.
References blender::wmOperatorType::cancel, blender::wmOperatorType::description, editable_grease_pencil_with_region_view3d_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_texture_gradient(), grease_pencil_texture_gradient_exec(), grease_pencil_texture_gradient_invoke(), grease_pencil_texture_gradient_modal(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::modal, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::WM_CURSOR_EDIT, blender::WM_gesture_straightline_cancel(), and blender::WM_operator_properties_gesture_straightline().
Referenced by blender::ED_operatortypes_grease_pencil_edit(), and GREASE_PENCIL_OT_texture_gradient().
|
static |
Definition at line 154 of file grease_pencil_vertex_paint.cc.
References Both, blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_vertex_color_brightness_contrast(), grease_pencil_vertex_paint_brightness_contrast_exec(), grease_pencil_vertex_painting_poll(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, prop_grease_pencil_vertex_mode, blender::RNA_def_enum(), blender::RNA_def_float(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_vertex_paint(), and GREASE_PENCIL_OT_vertex_color_brightness_contrast().
|
static |
Definition at line 227 of file grease_pencil_vertex_paint.cc.
References BLT_I18NCONTEXT_COLOR, Both, blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_vertex_color_hsv(), grease_pencil_vertex_paint_hsv_exec(), grease_pencil_vertex_painting_poll(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, prop_grease_pencil_vertex_mode, blender::PROP_SKIP_SAVE, blender::RNA_def_enum(), blender::RNA_def_float(), blender::RNA_def_property_flag(), blender::RNA_def_property_translation_context(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_vertex_paint(), and GREASE_PENCIL_OT_vertex_color_hsv().
|
static |
Definition at line 290 of file grease_pencil_vertex_paint.cc.
References Both, blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_vertex_color_invert(), grease_pencil_vertex_paint_invert_exec(), grease_pencil_vertex_painting_poll(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, prop_grease_pencil_vertex_mode, blender::RNA_def_enum(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_vertex_paint(), and GREASE_PENCIL_OT_vertex_color_invert().
|
static |
Definition at line 345 of file grease_pencil_vertex_paint.cc.
References Both, blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, FLT_MAX, GREASE_PENCIL_OT_vertex_color_levels(), grease_pencil_vertex_paint_levels_exec(), grease_pencil_vertex_painting_poll(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, prop_grease_pencil_vertex_mode, blender::RNA_def_enum(), blender::RNA_def_float(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_vertex_paint(), and GREASE_PENCIL_OT_vertex_color_levels().
|
static |
Definition at line 418 of file grease_pencil_vertex_paint.cc.
References Both, blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_vertex_color_set(), grease_pencil_vertex_paint_set_exec(), grease_pencil_vertex_painting_poll(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, prop_grease_pencil_vertex_mode, blender::RNA_def_enum(), blender::RNA_def_float(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_vertex_paint(), and GREASE_PENCIL_OT_vertex_color_set().
|
static |
Definition at line 856 of file grease_pencil_weight_paint.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_vertex_group_normalize(), grease_pencil_vertex_group_weight_poll(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, and vertex_group_normalize_exec().
Referenced by blender::ED_operatortypes_grease_pencil_weight_paint(), and GREASE_PENCIL_OT_vertex_group_normalize().
|
static |
Definition at line 935 of file grease_pencil_weight_paint.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_vertex_group_normalize_all(), grease_pencil_vertex_group_weight_poll(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_boolean(), blender::wmOperatorType::srna, and vertex_group_normalize_all_exec().
Referenced by blender::ED_operatortypes_grease_pencil_weight_paint(), and GREASE_PENCIL_OT_vertex_group_normalize_all().
|
static |
Definition at line 737 of file grease_pencil_weight_paint.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_vertex_group_smooth(), grease_pencil_vertex_group_weight_poll(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_float(), blender::RNA_def_int(), blender::wmOperatorType::srna, and vertex_group_smooth_exec().
Referenced by blender::ED_operatortypes_grease_pencil_weight_paint(), and GREASE_PENCIL_OT_vertex_group_smooth().
|
static |
Definition at line 421 of file grease_pencil_modes.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_vertexmode_toggle(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::PROP_HIDDEN, blender::PROP_SKIP_SAVE, blender::RNA_def_boolean(), blender::RNA_def_property_flag(), blender::wmOperatorType::srna, vertexmode_toggle_exec(), and vertexmode_toggle_poll().
Referenced by blender::ED_operatortypes_grease_pencil_modes(), and GREASE_PENCIL_OT_vertexmode_toggle().
|
static |
Definition at line 668 of file grease_pencil_weight_paint.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_weight_invert(), grease_pencil_vertex_group_weight_poll(), grease_pencil_weight_invert_exec(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by blender::ED_operatortypes_grease_pencil_weight_paint(), and GREASE_PENCIL_OT_weight_invert().
|
static |
Definition at line 543 of file grease_pencil_weight_paint.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::flag, GREASE_PENCIL_OT_weight_sample(), grease_pencil_weight_painting_poll(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::name, blender::OPTYPE_DEPENDS_ON_CURSOR, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, and weight_sample_invoke().
Referenced by blender::ED_operatortypes_grease_pencil_weight_paint(), and GREASE_PENCIL_OT_weight_sample().
|
static |
Definition at line 591 of file grease_pencil_weight_paint.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_weight_toggle_direction(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, toggle_weight_tool_direction_exec(), and toggle_weight_tool_direction_poll().
Referenced by blender::ED_operatortypes_grease_pencil_weight_paint(), and GREASE_PENCIL_OT_weight_toggle_direction().
|
static |
Definition at line 319 of file grease_pencil_modes.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, GREASE_PENCIL_OT_weightmode_toggle(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::PROP_HIDDEN, blender::PROP_SKIP_SAVE, blender::RNA_def_boolean(), blender::RNA_def_property_flag(), blender::wmOperatorType::srna, weightmode_toggle_exec(), and weightmode_toggle_poll().
Referenced by blender::ED_operatortypes_grease_pencil_modes(), and GREASE_PENCIL_OT_weightmode_toggle().
|
static |
Definition at line 4606 of file grease_pencil_edit.cc.
References blender::BKE_report(), BLI_assert_unreachable, C, Camera, blender::Scene::camera, create_curves_outline(), blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::CTX_wm_region_view3d(), Cursor, blender::Scene::cursor, blender::bke::curves_new_nomain(), blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::bke::GeometrySet::from_curves(), Front, grease_pencil_outline_exec(), blender::ID_RECALC_GEOMETRY, blender::MatBase< float, 4, 4 >::identity(), blender::index_mask::IndexMask::is_empty(), blender::geometry::join_geometries(), layer, blender::ed::greasepencil::MutableDrawingInfo::layer_index, NC_GEOM, ND_DATA, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::wmOperator::ptr, blender::bke::CurvesGeometry::remove_curves(), blender::wmOperator::reports, retrieve_editable_and_selected_strokes(), retrieve_editable_drawings(), blender::RNA_enum_get(), blender::RNA_float_get(), blender::RNA_int_get(), blender::RPT_ERROR, Side, blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), Top, View, and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_outline(), and grease_pencil_outline_exec().
| bool blender::ed::greasepencil::grease_pencil_painting_poll | ( | bContext * | C | ) |
Definition at line 129 of file grease_pencil_ops.cc.
References active_grease_pencil_poll(), C, blender::CTX_data_active_object(), blender::CTX_data_tool_settings(), blender::ToolSettings::gp_paint, grease_pencil_painting_poll(), and blender::OB_MODE_PAINT_GREASE_PENCIL.
Referenced by blender::brush_colors_flip_poll(), blender::ed::sculpt_paint::grease_pencil_brush_stroke_poll(), blender::ed::sculpt_paint::GREASE_PENCIL_OT_erase_box(), blender::ed::sculpt_paint::GREASE_PENCIL_OT_erase_lasso(), blender::ed::sculpt_paint::GREASE_PENCIL_OT_fill(), blender::GREASE_PENCIL_OT_stroke_trim(), grease_pencil_painting_poll(), keymap_grease_pencil_brush_stroke_poll(), keymap_grease_pencil_fill_tool_poll(), keymap_grease_pencil_paint_mode(), and blender::ed::sculpt_paint::sample_color_poll().
| bool blender::ed::greasepencil::grease_pencil_paste_keyframes | ( | bAnimContext * | ac, |
| const eKeyPasteOffset | offset_mode, | ||
| const eKeyMergeMode | merge_mode, | ||
| const KeyframeClipboard & | clipboard ) |
Definition at line 701 of file grease_pencil_frames.cc.
References blender::ANIM_animdata_filter(), blender::ANIM_animdata_freelist(), blender::ANIMFILTER_DATA_VISIBLE, blender::ANIMFILTER_FOREDIT, blender::ANIMFILTER_LIST_VISIBLE, blender::ANIMFILTER_NODUPLIS, blender::ANIMFILTER_SEL, blender::ANIMTYPE_GREASE_PENCIL_LAYER, blender::Vector< T, InlineBufferCapacity, Allocator >::append(), calculate_offset(), blender::RenderData::cfra, blender::ed::greasepencil::KeyframeClipboard::copy_buffer, blender::bAnimContext::data, blender::bAnimContext::datatype, blender::DEG_id_tag_update(), blender::ed::greasepencil::KeyframeClipboard::DrawingBufferItem::drawing, blender::ed::greasepencil::KeyframeClipboard::LayerBufferItem::drawing_buffers, blender::ed::greasepencil::KeyframeClipboard::DrawingBufferItem::duration, blender::ed::greasepencil::KeyframeClipboard::first_frame, blender::ed::greasepencil::KeyframeClipboard::LayerBufferItem::first_frame, blender::ed::greasepencil::KeyframeClipboard::DrawingBufferItem::frame_number, grease_pencil_paste_keyframes(), blender::ID_RECALC_GEOMETRY, blender::KEYFRAME_PASTE_MERGE_MIX, blender::KEYFRAME_PASTE_MERGE_OVER, blender::KEYFRAME_PASTE_MERGE_OVER_RANGE, blender::KEYFRAME_PASTE_MERGE_OVER_RANGE_ALL, blender::ed::greasepencil::KeyframeClipboard::DrawingBufferItem::keytype, blender::ed::greasepencil::KeyframeClipboard::last_frame, blender::ed::greasepencil::KeyframeClipboard::LayerBufferItem::last_frame, layer, blender::Scene::r, and blender::bAnimContext::scene.
Referenced by blender::actkeys_paste_exec(), and grease_pencil_paste_keyframes().
|
static |
Definition at line 2846 of file grease_pencil_edit.cc.
References Active, blender::BKE_defgroup_duplicate(), blender::BKE_defgroup_name_index(), blender::BKE_id_defgroup_list_get_mutable(), blender::BKE_report(), blender::BLI_addtail(), blender::BLI_assert(), BLI_assert_unreachable, blender::bke::Bool, ByLayer, C, clipboard_paste_strokes_ex(), blender::CTX_data_active_object(), blender::CTX_data_main(), blender::CTX_data_scene(), blender::ed::greasepencil::Clipboard::ClipboardLayer::curves, blender::ed::greasepencil::Clipboard::defnames, blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ED_grease_pencil_edit_selection_domain_get(), ensure_active_keyframe(), ensure_grease_pencil_clipboard(), blender::ed::curves::ensure_selection_attribute(), blender::ed::curves::fill_selection_false(), blender::bke::GSpanAttributeWriter::finish(), grease_pencil_paste_strokes_exec(), blender::ID_RECALC_GEOMETRY, blender::math::invert(), layer, blender::ed::greasepencil::Clipboard::layers, NA_EDITED, blender::bDeformGroup::name, NC_GEOM, NC_GPENCIL, ND_DATA, node, blender::ed::greasepencil::Clipboard::object_to_world, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), paste_all_strokes_from_clipboard(), blender::wmOperator::ptr, blender::wmOperator::reports, retrieve_editable_drawings(), retrieve_editable_drawings_from_layer(), blender::RNA_boolean_get(), blender::RNA_enum_get(), blender::RPT_ERROR, blender::RPT_WARNING, blender::bke::GSpanAttributeWriter::span, blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Layer::to_object_space(), blender::Scene::toolsettings, and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_paste(), and grease_pencil_paste_strokes_exec().
|
static |
Definition at line 3010 of file grease_pencil_edit.cc.
References C, editable_grease_pencil_poll(), grease_pencil_clipboard, grease_pencil_clipboard_lock, grease_pencil_paste_strokes_poll(), blender::ed::greasepencil::Clipboard::layers, and lock.
Referenced by GREASE_PENCIL_OT_paste(), and grease_pencil_paste_strokes_poll().
|
static |
Definition at line 258 of file grease_pencil_pen.cc.
References C, blender::wmOperator::customdata, blender::ED_workspace_status_text(), grease_pencil_pen_exit(), blender::ed::greasepencil::GreasePencilPenToolOperation::update_view(), blender::ed::curves::pen_tool::PenToolOperation::vc, blender::ViewContext::win, and blender::WM_cursor_modal_restore().
Referenced by grease_pencil_pen_exit(), grease_pencil_pen_invoke(), and grease_pencil_pen_modal().
|
static |
Definition at line 275 of file grease_pencil_pen.cc.
References C, blender::wmOperator::customdata, grease_pencil_pen_exit(), grease_pencil_pen_invoke(), blender::ed::curves::pen_tool::PenToolOperation::invoke(), blender::OPERATOR_RUNNING_MODAL, and blender::result.
Referenced by GREASE_PENCIL_OT_pen(), and grease_pencil_pen_invoke().
|
static |
Definition at line 290 of file grease_pencil_pen.cc.
References C, blender::wmOperator::customdata, grease_pencil_pen_exit(), grease_pencil_pen_modal(), blender::ed::curves::pen_tool::PenToolOperation::modal(), blender::OPERATOR_RUNNING_MODAL, and blender::result.
Referenced by GREASE_PENCIL_OT_pen(), and grease_pencil_pen_modal().
|
static |
Definition at line 343 of file grease_pencil_modes.cc.
References C, blender::CTX_data_active_object(), blender::CTX_wm_region_view3d(), grease_pencil_poll_vertex_cursor(), blender::Object::mode, blender::OB_GREASE_PENCIL, blender::OB_MODE_VERTEX_GREASE_PENCIL, blender::Object::type, and blender::WM_toolsystem_active_tool_is_brush().
Referenced by grease_pencil_poll_vertex_cursor(), and vertexmode_toggle_exec().
|
static |
Definition at line 245 of file grease_pencil_modes.cc.
References C, blender::CTX_data_active_object(), blender::CTX_wm_region_view3d(), grease_pencil_poll_weight_cursor(), blender::Object::mode, blender::OB_GREASE_PENCIL, blender::OB_MODE_WEIGHT_GREASE_PENCIL, blender::Object::type, and blender::WM_toolsystem_active_tool_is_brush().
Referenced by grease_pencil_poll_weight_cursor(), and weightmode_toggle_exec().
|
static |
Definition at line 1561 of file grease_pencil_primitive.cc.
References C, grease_pencil_primitive_cancel(), and grease_pencil_primitive_exit().
Referenced by GREASE_PENCIL_OT_primitive_arc(), GREASE_PENCIL_OT_primitive_box(), GREASE_PENCIL_OT_primitive_circle(), GREASE_PENCIL_OT_primitive_curve(), GREASE_PENCIL_OT_primitive_line(), GREASE_PENCIL_OT_primitive_polyline(), and grease_pencil_primitive_cancel().
|
static |
Definition at line 1131 of file grease_pencil_primitive.cc.
References blender::ed::greasepencil::PrimitiveToolOperation::brush, grease_pencil_primitive_cancel_opacity(), blender::Brush::id, blender::ed::greasepencil::PrimitiveToolOperation::initial_value, blender::RNA_float_set(), and blender::RNA_id_pointer_create().
Referenced by grease_pencil_primitive_cancel_opacity(), and grease_pencil_primitive_modal().
|
static |
Definition at line 1125 of file grease_pencil_primitive.cc.
References blender::ed::greasepencil::PrimitiveToolOperation::brush, grease_pencil_primitive_cancel_radius(), blender::Brush::id, blender::ed::greasepencil::PrimitiveToolOperation::initial_value, blender::RNA_id_pointer_create(), and blender::RNA_int_set().
Referenced by grease_pencil_primitive_cancel_radius(), and grease_pencil_primitive_modal().
|
static |
Definition at line 1151 of file grease_pencil_primitive.cc.
References blender::ed::greasepencil::PrimitiveToolOperation::brush, grease_pencil_primitive_change_opacity(), blender::Brush::id, blender::wmEvent::mval, blender::ed::greasepencil::PrimitiveToolOperation::reference_position_2d, blender::RNA_float_set(), blender::RNA_id_pointer_create(), and UI_SCALE_FAC.
Referenced by grease_pencil_primitive_change_opacity(), and grease_pencil_primitive_operator_update().
|
static |
Definition at line 1137 of file grease_pencil_primitive.cc.
References blender::ed::greasepencil::PrimitiveToolOperation::brush, grease_pencil_primitive_change_radius(), blender::Brush::id, blender::wmEvent::mval, blender::ed::greasepencil::PrimitiveToolOperation::reference_position_2d, blender::RNA_id_pointer_create(), and blender::RNA_int_set().
Referenced by grease_pencil_primitive_change_radius(), and grease_pencil_primitive_operator_update().
|
static |
Definition at line 1567 of file grease_pencil_primitive.cc.
References Arc, Box, Circle, Curve, grease_pencil_primitive_common_props(), INT_MAX, Line, Polyline, blender::PROP_SKIP_SAVE, blender::RNA_def_enum(), blender::RNA_def_int(), blender::RNA_def_property_flag(), and blender::wmOperatorType::srna.
Referenced by GREASE_PENCIL_OT_primitive_arc(), GREASE_PENCIL_OT_primitive_box(), GREASE_PENCIL_OT_primitive_circle(), GREASE_PENCIL_OT_primitive_curve(), GREASE_PENCIL_OT_primitive_line(), GREASE_PENCIL_OT_primitive_polyline(), and grease_pencil_primitive_common_props().
|
static |
Definition at line 1201 of file grease_pencil_primitive.cc.
References blender::ed::greasepencil::PrimitiveToolOperation::active_control_point_index, C, blender::CTX_wm_window(), grease_pencil_primitive_cursor_update(), Idle, blender::ed::greasepencil::PrimitiveToolOperation::mode, Polyline, primitive_check_ui_hover(), blender::ed::greasepencil::PrimitiveToolOperation::type, blender::WM_CURSOR_CROSS, blender::WM_CURSOR_HAND, blender::WM_cursor_modal_set(), and blender::WM_CURSOR_NSEW_SCROLL.
Referenced by grease_pencil_primitive_cursor_update(), and grease_pencil_primitive_modal().
|
static |
Definition at line 439 of file grease_pencil_primitive.cc.
References Arc, BLI_assert_unreachable, Box, Circle, Curve, grease_pencil_primitive_curve_points_number(), Line, Polyline, blender::ed::greasepencil::PrimitiveToolOperation::segments, blender::ed::greasepencil::PrimitiveToolOperation::subdivision, and blender::ed::greasepencil::PrimitiveToolOperation::type.
Referenced by grease_pencil_primitive_curve_points_number(), and grease_pencil_primitive_update_curves().
|
static |
Definition at line 989 of file grease_pencil_primitive.cc.
References blender::ed::greasepencil::PrimitiveToolOperation::control_points, grease_pencil_primitive_drag_all_update(), blender::wmEvent::mval, blender::ed::greasepencil::PrimitiveToolOperation::placement, primitive_local_to_screen(), blender::ed::greasepencil::DrawingPlacement::project(), blender::ed::greasepencil::PrimitiveToolOperation::start_position_2d, and blender::ed::greasepencil::PrimitiveToolOperation::temp_control_points.
Referenced by grease_pencil_primitive_drag_all_update(), grease_pencil_primitive_grab_update(), and grease_pencil_primitive_operator_update().
|
static |
Definition at line 1033 of file grease_pencil_primitive.cc.
References blender::ed::greasepencil::PrimitiveToolOperation::active_control_point_index, blender::BLI_assert(), blender::ed::greasepencil::PrimitiveToolOperation::control_points, grease_pencil_primitive_drag_update(), blender::wmEvent::mval, blender::ed::greasepencil::PrimitiveToolOperation::placement, primitive_local_to_screen(), blender::ed::greasepencil::DrawingPlacement::project(), blender::ed::greasepencil::PrimitiveToolOperation::start_position_2d, and blender::ed::greasepencil::PrimitiveToolOperation::temp_control_points.
Referenced by grease_pencil_primitive_drag_update(), and grease_pencil_primitive_operator_update().
|
static |
Definition at line 297 of file grease_pencil_primitive.cc.
References draw_control_points(), and grease_pencil_primitive_draw().
Referenced by grease_pencil_primitive_draw(), and grease_pencil_primitive_invoke().
|
static |
Definition at line 1227 of file grease_pencil_primitive.cc.
References blender::ed::greasepencil::PrimitiveToolOperation::active_control_point_index, Arc, C, Cancel, ChangeOpacity, ChangeRadius, Confirm, blender::ed::greasepencil::PrimitiveToolOperation::control_points, control_points_per_segment(), Curve, DecreaseSubdivision, blender::math::distance_squared(), DragAll, ELEM, Extrude, Extruding, Grab, grease_pencil_primitive_event_modal_map(), grease_pencil_primitive_exit(), grease_pencil_primitive_init_opacity(), grease_pencil_primitive_init_radius(), grease_pencil_primitive_save(), grease_pencil_primitive_undo_curves(), Idle, IncreaseSubdivision, blender::KM_RELEASE, Line, blender::ed::greasepencil::PrimitiveToolOperation::mode, blender::wmEvent::mval, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::OPERATOR_RUNNING_MODAL, blender::ed::greasepencil::PrimitiveToolOperation::placement, Polyline, primitive_local_to_screen(), blender::ed::greasepencil::DrawingPlacement::project(), blender::wmOperator::ptr, blender::RNA_int_set(), Rotate, RotateAll, Scale, ScaleAll, blender::ed::greasepencil::PrimitiveToolOperation::segments, blender::ed::greasepencil::PrimitiveToolOperation::start_position_2d, blender::ed::greasepencil::PrimitiveToolOperation::subdivision, blender::ed::greasepencil::PrimitiveToolOperation::type, and blender::wmEvent::val.
Referenced by grease_pencil_primitive_event_modal_map(), and grease_pencil_primitive_modal().
|
static |
Definition at line 883 of file grease_pencil_primitive.cc.
References C, blender::CTX_data_scene(), blender::CTX_wm_region(), curves_merge_endpoints_by_distance(), blender::bke::CurvesGeometry::curves_range(), blender::wmOperator::customdata, blender::Object::data, blender::ed::greasepencil::PrimitiveToolOperation::draw_handle, blender::ed::greasepencil::PrimitiveToolOperation::drawing, blender::ED_region_draw_cb_exit(), blender::ED_view3d_navigation_free(), blender::ED_workspace_status_text(), blender::IndexRange::first(), blender::IndexRange::from_single(), blender::GP_TOOL_FLAG_AUTOMERGE_STROKE, blender::GP_TOOL_FLAG_PAINT_ONBACK, blender::ToolSettings::gpencil_flags, grease_pencil_primitive_exit(), grease_pencil_primitive_update_view(), blender::IndexRange::last(), blender::ViewContext::obact, blender::ed::greasepencil::PrimitiveToolOperation::region, blender::ARegion::runtime, blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), blender::bke::greasepencil::Layer::to_world_space(), blender::Scene::toolsettings, blender::bke::ARegionRuntime::type, blender::ed::greasepencil::PrimitiveToolOperation::vc, blender::ed::greasepencil::PrimitiveToolOperation::vod, blender::ViewContext::win, and blender::WM_cursor_modal_restore().
Referenced by grease_pencil_primitive_cancel(), grease_pencil_primitive_event_modal_map(), grease_pencil_primitive_exit(), and grease_pencil_primitive_modal().
|
static |
Definition at line 949 of file grease_pencil_primitive.cc.
References Box, Circle, blender::ed::greasepencil::PrimitiveToolOperation::control_points, control_points_per_segment(), grease_pencil_primitive_extruding_update(), blender::IndexRange::IndexRange(), interpolate(), blender::KM_ALT, blender::KM_SHIFT, blender::wmEvent::modifier, blender::wmEvent::mval, blender::ed::greasepencil::PrimitiveToolOperation::placement, blender::ed::greasepencil::DrawingPlacement::project(), blender::ed::greasepencil::PrimitiveToolOperation::segments, snap_8_angles(), snap_diagonals(), snap_diagonals_box(), blender::ed::greasepencil::PrimitiveToolOperation::start_position_2d, and blender::ed::greasepencil::PrimitiveToolOperation::type.
Referenced by grease_pencil_primitive_extruding_update(), and grease_pencil_primitive_operator_update().
|
static |
Definition at line 1004 of file grease_pencil_primitive.cc.
References blender::ed::greasepencil::PrimitiveToolOperation::active_control_point_index, blender::BLI_assert(), Box, Circle, control_point_center, control_point_first, control_point_last, blender::ed::greasepencil::PrimitiveToolOperation::control_points, ELEM, grease_pencil_primitive_drag_all_update(), grease_pencil_primitive_grab_update(), blender::wmEvent::mval, blender::ed::greasepencil::PrimitiveToolOperation::placement, primitive_local_to_screen(), blender::ed::greasepencil::DrawingPlacement::project(), blender::ed::greasepencil::PrimitiveToolOperation::temp_control_points, and blender::ed::greasepencil::PrimitiveToolOperation::type.
Referenced by grease_pencil_primitive_grab_update(), and grease_pencil_primitive_operator_update().
|
static |
Definition at line 578 of file grease_pencil_primitive.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), add_single_curve(), blender::bke::attribute_filter_from_skip_ref(), Box, blender::BrushGpencilSettings::caps_type, Circle, blender::bke::AttributeAccessor::contains(), blender::bke::Curve, blender::CURVE_TYPE_POLY, blender::ed::greasepencil::PrimitiveToolOperation::drawing, ELEM, blender::bke::fill_attribute_range_default(), blender::ed::greasepencil::PrimitiveToolOperation::fill_color, blender::bke::greasepencil::Drawing::fill_colors_for_write(), blender::ed::greasepencil::PrimitiveToolOperation::fill_opacity, blender::bke::SpanAttributeWriter< T >::finish(), blender::BrushGpencilSettings::flag2, blender::bke::greasepencil::get_next_available_fill_id(), blender::GP_BRUSH_USE_STROKE, blender::GP_STROKE_CAP_TYPE_ROUND, grease_pencil_primitive_init_curves(), grease_pencil_primitive_update_curves(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::ed::greasepencil::PrimitiveToolOperation::material_index, blender::ed::greasepencil::PrimitiveToolOperation::on_back, blender::ed::greasepencil::PrimitiveToolOperation::settings, blender::ed::greasepencil::PrimitiveToolOperation::softness, blender::bke::SpanAttributeWriter< T >::span, blender::bke::greasepencil::Drawing::strokes_for_write(), blender::ed::greasepencil::PrimitiveToolOperation::type, and blender::ed::greasepencil::PrimitiveToolOperation::use_fill.
Referenced by grease_pencil_primitive_init_curves(), and grease_pencil_primitive_invoke().
|
static |
Definition at line 1114 of file grease_pencil_primitive.cc.
References blender::ed::greasepencil::PrimitiveToolOperation::brush, grease_pencil_primitive_init_opacity(), blender::Brush::id, blender::ed::greasepencil::PrimitiveToolOperation::initial_value, blender::ed::greasepencil::PrimitiveToolOperation::reference_position_2d, blender::RNA_float_get(), blender::RNA_id_pointer_create(), blender::ed::greasepencil::PrimitiveToolOperation::start_position_2d, and UI_SCALE_FAC.
Referenced by grease_pencil_primitive_event_modal_map(), and grease_pencil_primitive_init_opacity().
|
static |
Definition at line 1105 of file grease_pencil_primitive.cc.
References blender::ed::greasepencil::PrimitiveToolOperation::brush, grease_pencil_primitive_init_radius(), blender::Brush::id, blender::ed::greasepencil::PrimitiveToolOperation::initial_value, blender::ed::greasepencil::PrimitiveToolOperation::reference_position_2d, blender::RNA_id_pointer_create(), blender::RNA_int_get(), and blender::ed::greasepencil::PrimitiveToolOperation::start_position_2d.
Referenced by grease_pencil_primitive_event_modal_map(), and grease_pencil_primitive_init_radius().
|
static |
Definition at line 737 of file grease_pencil_primitive.cc.
References blender::ColorRGBA< ChannelStorageType, Space, Alpha >::a, blender::ed::greasepencil::PrimitiveToolOperation::active_control_point_index, blender::BKE_brush_alpha_get(), blender::BKE_brush_color_get(), blender::BKE_brush_init_gpencil_settings(), blender::BKE_curvemapping_init(), blender::BKE_grease_pencil_object_material_ensure_from_brush(), blender::BKE_object_material_index_get(), blender::BKE_paint_brush(), blender::BLI_assert(), blender::ed::greasepencil::PrimitiveToolOperation::brush, C, blender::ed::greasepencil::DrawingPlacement::cache_viewport_depths(), calculate_texture_space(), blender::RenderData::cfra, blender::ed::greasepencil::PrimitiveToolOperation::control_points, control_points_per_segment(), blender::copy_v3_v3(), blender::CTX_data_depsgraph_pointer(), blender::CTX_data_main(), blender::CTX_wm_view3d(), blender::CTX_wm_window(), blender::GP_Sculpt_Settings::cur_primitive, blender::BrushGpencilSettings::curve_jitter, blender::Brush::curve_rand_hue, blender::BrushGpencilSettings::curve_rand_pressure, blender::Brush::curve_rand_saturation, blender::BrushGpencilSettings::curve_rand_strength, blender::BrushGpencilSettings::curve_rand_uv, blender::Brush::curve_rand_value, blender::BrushGpencilSettings::curve_sensitivity, blender::BrushGpencilSettings::curve_strength, blender::wmOperator::customdata, blender::Object::data, blender::ed::greasepencil::PrimitiveToolOperation::draw_handle, blender::ed::greasepencil::PrimitiveToolOperation::drawing, blender::ed::greasepencil::DrawingPlacement::DrawingPlacement(), blender::ED_region_draw_cb_activate(), blender::ED_view3d_navigation_init(), blender::ED_view3d_ob_project_mat_get(), blender::ED_view3d_viewcontext_init(), Extruding, blender::ed::greasepencil::PrimitiveToolOperation::fill_color, blender::ed::greasepencil::PrimitiveToolOperation::fill_opacity, blender::BrushGpencilSettings::flag, blender::GP_Sculpt_Settings::flag, blender::wmOperator::flag, blender::BrushGpencilSettings::flag2, blender::RandomNumberGenerator::from_random_seed(), blender::RandomNumberGenerator::get_float(), blender::GP_BRUSH_GROUP_RANDOM, blender::GP_BRUSH_USE_FILL, blender::GP_BRUSH_USE_STROKE, blender::ToolSettings::gp_paint, blender::ToolSettings::gp_sculpt, blender::GP_SCULPT_SETT_FLAG_PRIMITIVE_CURVE, blender::GP_TOOL_FLAG_PAINT_ONBACK, blender::ToolSettings::gpencil_flags, blender::Brush::gpencil_settings, blender::GPPAINT_FLAG_USE_VERTEXCOLOR, grease_pencil_draw_operator_begin(), grease_pencil_primitive_draw(), grease_pencil_primitive_init_curves(), grease_pencil_primitive_invoke(), grease_pencil_primitive_save(), grease_pencil_primitive_status_indicators(), grease_pencil_primitive_update_view(), blender::BrushGpencilSettings::hardness, blender::ed::greasepencil::PrimitiveToolOperation::local_transform, blender::ed::greasepencil::PrimitiveToolOperation::material_index, blender::ed::greasepencil::PrimitiveToolOperation::mode, blender::GpPaint::mode, blender::wmEvent::mval, blender::ViewContext::obact, blender::ed::greasepencil::PrimitiveToolOperation::on_back, blender::OP_IS_MODAL_CURSOR_REGION, blender::OPERATOR_CANCELLED, blender::OPERATOR_RUNNING_MODAL, blender::GpPaint::paint, blender::ed::greasepencil::PrimitiveToolOperation::placement, blender::ed::greasepencil::DrawingPlacement::project(), blender::ed::greasepencil::PrimitiveToolOperation::projection, blender::wmOperator::ptr, blender::Scene::r, blender::ed::greasepencil::PrimitiveToolOperation::region, blender::ViewContext::region, REGION_DRAW_POST_VIEW, blender::RNA_enum_get(), blender::RNA_int_get(), blender::ed::greasepencil::PrimitiveToolOperation::rng, blender::ARegion::runtime, blender::ViewContext::rv3d, blender::ViewContext::scene, blender::ed::greasepencil::PrimitiveToolOperation::segments, blender::ed::greasepencil::PrimitiveToolOperation::settings, blender::ed::greasepencil::PrimitiveToolOperation::softness, blender::ed::greasepencil::PrimitiveToolOperation::start_position_2d, blender::ed::greasepencil::PrimitiveToolOperation::stroke_random_hue_factor, blender::ed::greasepencil::PrimitiveToolOperation::stroke_random_opacity_factor, blender::ed::greasepencil::PrimitiveToolOperation::stroke_random_radius_factor, blender::ed::greasepencil::PrimitiveToolOperation::stroke_random_rotation_factor, blender::ed::greasepencil::PrimitiveToolOperation::stroke_random_sat_factor, blender::ed::greasepencil::PrimitiveToolOperation::stroke_random_val_factor, blender::ed::greasepencil::PrimitiveToolOperation::subdivision, blender::ed::greasepencil::PrimitiveToolOperation::texture_space, blender::Scene::toolsettings, blender::bke::ARegionRuntime::type, blender::ed::greasepencil::PrimitiveToolOperation::type, blender::ed::greasepencil::PrimitiveToolOperation::use_fill, blender::ed::greasepencil::DrawingPlacement::use_project_to_stroke(), blender::ed::greasepencil::DrawingPlacement::use_project_to_surface(), blender::ed::greasepencil::PrimitiveToolOperation::vc, blender::Vector< T, InlineBufferCapacity, Allocator >::Vector, blender::ed::greasepencil::PrimitiveToolOperation::vertex_color, blender::BrushGpencilSettings::vertex_factor, blender::ed::greasepencil::PrimitiveToolOperation::vod, blender::WM_CURSOR_CROSS, blender::WM_cursor_modal_set(), and blender::WM_event_add_modal_handler().
Referenced by GREASE_PENCIL_OT_primitive_arc(), GREASE_PENCIL_OT_primitive_box(), GREASE_PENCIL_OT_primitive_circle(), GREASE_PENCIL_OT_primitive_curve(), GREASE_PENCIL_OT_primitive_line(), GREASE_PENCIL_OT_primitive_polyline(), and grease_pencil_primitive_invoke().
|
static |
Definition at line 310 of file grease_pencil_primitive.cc.
References blender::ed::greasepencil::PrimitiveToolOperation::control_points, blender::array_utils::copy(), grease_pencil_primitive_load(), blender::ed::greasepencil::PrimitiveToolOperation::segments, blender::ed::greasepencil::PrimitiveToolOperation::temp_control_points, and blender::ed::greasepencil::PrimitiveToolOperation::temp_segments.
Referenced by grease_pencil_primitive_load(), and grease_pencil_primitive_modal().
|
static |
Definition at line 1474 of file grease_pencil_primitive.cc.
References C, ChangeOpacity, ChangeRadius, Confirm, blender::ed::greasepencil::PrimitiveToolOperation::control_points, blender::wmOperator::customdata, blender::ED_view3d_navigation_do(), blender::ED_view3d_ob_project_mat_get(), blender::EVT_MODAL_MAP, grease_pencil_primitive_cancel_opacity(), grease_pencil_primitive_cancel_radius(), grease_pencil_primitive_cursor_update(), grease_pencil_primitive_event_modal_map(), grease_pencil_primitive_exit(), grease_pencil_primitive_load(), grease_pencil_primitive_modal(), grease_pencil_primitive_mouse_event(), grease_pencil_primitive_operator_update(), grease_pencil_primitive_status_indicators(), grease_pencil_primitive_undo_curves(), grease_pencil_primitive_update_curves(), grease_pencil_primitive_update_view(), Idle, blender::KM_PRESS, blender::LEFTMOUSE, blender::ed::greasepencil::PrimitiveToolOperation::mode, blender::ViewContext::obact, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::OPERATOR_RUNNING_MODAL, blender::ed::greasepencil::PrimitiveToolOperation::projection, blender::RegionView3D::rflag, blender::RIGHTMOUSE, blender::ViewContext::rv3d, blender::RV3D_NAVIGATING, blender::wmEvent::type, blender::wmEvent::val, blender::ed::greasepencil::PrimitiveToolOperation::vc, and blender::ed::greasepencil::PrimitiveToolOperation::vod.
Referenced by GREASE_PENCIL_OT_primitive_arc(), GREASE_PENCIL_OT_primitive_box(), GREASE_PENCIL_OT_primitive_circle(), GREASE_PENCIL_OT_primitive_curve(), GREASE_PENCIL_OT_primitive_line(), GREASE_PENCIL_OT_primitive_polyline(), and grease_pencil_primitive_modal().
|
static |
Definition at line 1355 of file grease_pencil_primitive.cc.
References blender::ed::greasepencil::PrimitiveToolOperation::active_control_point_index, ChangeOpacity, ChangeRadius, blender::ed::greasepencil::PrimitiveToolOperation::control_points, blender::math::distance_squared(), Drag, DragAll, ELEM, Extruding, get_control_point_type(), Grab, grease_pencil_primitive_mouse_event(), grease_pencil_primitive_save(), HandlePoint, Idle, JoinPoint, blender::KM_PRESS, blender::KM_RELEASE, blender::ed::greasepencil::PrimitiveToolOperation::mode, blender::wmEvent::mval, blender::OPERATOR_RUNNING_MODAL, blender::ed::greasepencil::PrimitiveToolOperation::placement, Polyline, primitive_check_ui_hover(), primitive_local_to_screen(), blender::ed::greasepencil::DrawingPlacement::project(), RotateAll, ScaleAll, blender::ed::greasepencil::PrimitiveToolOperation::segments, blender::ed::greasepencil::PrimitiveToolOperation::start_position_2d, blender::ed::greasepencil::PrimitiveToolOperation::type, and blender::wmEvent::val.
Referenced by grease_pencil_primitive_modal(), and grease_pencil_primitive_mouse_event().
|
static |
Definition at line 1430 of file grease_pencil_primitive.cc.
References ChangeOpacity, ChangeRadius, Drag, DragAll, Extruding, Grab, grease_pencil_primitive_change_opacity(), grease_pencil_primitive_change_radius(), grease_pencil_primitive_drag_all_update(), grease_pencil_primitive_drag_update(), grease_pencil_primitive_extruding_update(), grease_pencil_primitive_grab_update(), grease_pencil_primitive_operator_update(), grease_pencil_primitive_rotate_all_update(), grease_pencil_primitive_scale_all_update(), Idle, blender::ed::greasepencil::PrimitiveToolOperation::mode, RotateAll, and ScaleAll.
Referenced by grease_pencil_primitive_modal(), and grease_pencil_primitive_operator_update().
|
static |
Definition at line 1061 of file grease_pencil_primitive.cc.
References blender::math::atan2(), blender::ed::greasepencil::PrimitiveToolOperation::control_points, blender::math::cos(), grease_pencil_primitive_rotate_all_update(), blender::wmEvent::mval, blender::ed::greasepencil::PrimitiveToolOperation::placement, primitive_center_of_mass(), primitive_local_to_screen(), blender::ed::greasepencil::DrawingPlacement::project(), rot, blender::math::sin(), blender::ed::greasepencil::PrimitiveToolOperation::start_position_2d, and blender::ed::greasepencil::PrimitiveToolOperation::temp_control_points.
Referenced by grease_pencil_primitive_operator_update(), and grease_pencil_primitive_rotate_all_update().
|
static |
Definition at line 303 of file grease_pencil_primitive.cc.
References blender::ed::greasepencil::PrimitiveToolOperation::control_points, blender::array_utils::copy(), grease_pencil_primitive_save(), blender::ed::greasepencil::PrimitiveToolOperation::segments, blender::ed::greasepencil::PrimitiveToolOperation::temp_control_points, and blender::ed::greasepencil::PrimitiveToolOperation::temp_segments.
Referenced by grease_pencil_primitive_event_modal_map(), grease_pencil_primitive_invoke(), grease_pencil_primitive_mouse_event(), and grease_pencil_primitive_save().
|
static |
Definition at line 1086 of file grease_pencil_primitive.cc.
References blender::ed::greasepencil::PrimitiveToolOperation::control_points, grease_pencil_primitive_scale_all_update(), blender::math::length(), blender::wmEvent::mval, blender::ed::greasepencil::PrimitiveToolOperation::placement, primitive_center_of_mass(), primitive_local_to_screen(), blender::ed::greasepencil::DrawingPlacement::project(), scale(), blender::ed::greasepencil::PrimitiveToolOperation::start_position_2d, and blender::ed::greasepencil::PrimitiveToolOperation::temp_control_points.
Referenced by grease_pencil_primitive_operator_update(), and grease_pencil_primitive_scale_all_update().
|
static |
Definition at line 695 of file grease_pencil_primitive.cc.
References Arc, C, Cancel, Confirm, Curve, DecreaseSubdivision, ELEM, Extrude, Grab, grease_pencil_primitive_status_indicators(), IFACE_, IncreaseSubdivision, blender::WorkspaceStatus::item(), Line, blender::WorkspaceStatus::opmodal(), Panning, Polyline, Rotate, Scale, blender::ed::greasepencil::PrimitiveToolOperation::segments, blender::ed::greasepencil::PrimitiveToolOperation::subdivision, blender::ed::greasepencil::PrimitiveToolOperation::type, and blender::wmOperator::type.
Referenced by grease_pencil_primitive_invoke(), grease_pencil_primitive_modal(), and grease_pencil_primitive_status_indicators().
|
static |
Definition at line 686 of file grease_pencil_primitive.cc.
References blender::ed::greasepencil::PrimitiveToolOperation::drawing, blender::IndexRange::from_single(), grease_pencil_primitive_undo_curves(), blender::ed::greasepencil::PrimitiveToolOperation::on_back, blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::bke::greasepencil::Drawing::tag_topology_changed().
Referenced by grease_pencil_primitive_event_modal_map(), grease_pencil_primitive_modal(), and grease_pencil_primitive_undo_curves().
|
static |
Definition at line 463 of file grease_pencil_primitive.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_multiple(), blender::bke::attribute_filter_from_skip_ref(), blender::BKE_brush_color_jitter_get_settings(), blender::BKE_curvemapping_evaluateF(), blender::ed::greasepencil::PrimitiveToolOperation::brush, blender::GP_Sculpt_Settings::cur_primitive, blender::math::distance(), blender::ed::greasepencil::PrimitiveToolOperation::drawing, blender::bke::fill_attribute_range_default(), blender::bke::SpanAttributeWriter< T >::finish(), blender::BrushGpencilSettings::flag, blender::GP_Sculpt_Settings::flag, float, blender::IndexRange::from_single(), blender::GP_BRUSH_GROUP_RANDOM, blender::ToolSettings::gp_paint, blender::ToolSettings::gp_sculpt, blender::GP_SCULPT_SETT_FLAG_PRIMITIVE_CURVE, grease_pencil_primitive_curve_points_number(), grease_pencil_primitive_update_curves(), blender::IndexRange::index_range(), blender::ed::greasepencil::PrimitiveToolOperation::on_back, blender::bke::greasepencil::Drawing::opacities_for_write(), opacity_from_input_sample(), blender::GpPaint::paint, blender::ed::greasepencil::PrimitiveToolOperation::placement, blender::bke::Point, primitive_calculate_curve_positions_2d(), blender::ed::greasepencil::DrawingPlacement::project(), blender::bke::greasepencil::Drawing::radii_for_write(), radius_from_input_sample(), randomize_color(), randomize_opacity(), randomize_radius(), randomize_rotation(), blender::ed::greasepencil::PrimitiveToolOperation::region, resize_single_curve(), blender::ViewContext::rv3d, blender::ViewContext::scene, blender::bke::greasepencil::Drawing::set_texture_matrices(), blender::ed::greasepencil::PrimitiveToolOperation::settings, blender::bke::SpanAttributeWriter< T >::span, blender::ed::greasepencil::PrimitiveToolOperation::stroke_random_hue_factor, blender::ed::greasepencil::PrimitiveToolOperation::stroke_random_opacity_factor, blender::ed::greasepencil::PrimitiveToolOperation::stroke_random_radius_factor, blender::ed::greasepencil::PrimitiveToolOperation::stroke_random_rotation_factor, blender::ed::greasepencil::PrimitiveToolOperation::stroke_random_sat_factor, blender::ed::greasepencil::PrimitiveToolOperation::stroke_random_val_factor, blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), blender::ed::greasepencil::PrimitiveToolOperation::texture_space, blender::ed::greasepencil::DrawingPlacement::to_world_space(), blender::Scene::toolsettings, blender::BrushGpencilSettings::uv_random, blender::ed::greasepencil::PrimitiveToolOperation::vc, blender::ed::greasepencil::PrimitiveToolOperation::vertex_color, and blender::bke::greasepencil::Drawing::vertex_colors_for_write().
Referenced by grease_pencil_primitive_init_curves(), grease_pencil_primitive_modal(), and grease_pencil_primitive_update_curves().
|
static |
Definition at line 726 of file grease_pencil_primitive.cc.
References C, blender::Object::data, blender::DEG_id_tag_update(), blender::ED_region_tag_redraw(), grease_pencil_primitive_update_view(), blender::ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, blender::ViewContext::obact, blender::ed::greasepencil::PrimitiveToolOperation::region, blender::ed::greasepencil::PrimitiveToolOperation::vc, and blender::WM_event_add_notifier().
Referenced by grease_pencil_primitive_exit(), grease_pencil_primitive_invoke(), grease_pencil_primitive_modal(), and grease_pencil_primitive_update_view().
|
static |
Definition at line 4513 of file grease_pencil_edit.cc.
References ActiveFrame, AllFrames, blender::Vector< T, InlineBufferCapacity, Allocator >::append(), C, blender::RenderData::cfra, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::data, blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, grease_pencil_remove_fill_guides_exec(), blender::ID_RECALC_GEOMETRY, layer, NC_GEOM, ND_DATA, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::wmOperator::ptr, blender::Scene::r, remove_fill_guides(), blender::RNA_enum_get(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_remove_fill_guides(), and grease_pencil_remove_fill_guides_exec().
|
static |
Definition at line 3356 of file grease_pencil_edit.cc.
References blender::BKE_scene_graph_update_for_newframe(), C, calculate_radius_projection_factor(), blender::RenderData::cfra, blender::CTX_data_active_object(), blender::CTX_data_ensure_evaluated_depsgraph(), blender::CTX_data_scene(), blender::CTX_wm_region(), blender::CTX_wm_view3d(), blender::bke::Curve, blender::CURVE_TYPE_BEZIER, blender::bke::curves::curve_type_point_selection(), blender::DEG_get_ctime(), blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ed::curves::duplicate_curves(), blender::ed::curves::duplicate_points(), blender::ED_grease_pencil_edit_selection_domain_get(), blender::ED_view3d_project_float_global(), blender::ED_view3d_win_to_ray_clipped(), blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_intersection(), blender::ed::curves::get_curves_selection_attribute_names(), blender::exec_mode::grain_size(), grease_pencil_reproject_exec(), blender::ID_RECALC_GEOMETRY, blender::math::invert(), blender::index_mask::IndexMask::is_empty(), layer, blender::ed::greasepencil::MutableDrawingInfo::layer_index, NC_GEOM, ND_DATA, blender::math::normalize(), blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::bke::Point, position, blender::wmOperator::ptr, blender::Scene::r, blender::ARegion::regiondata, blender::ed::greasepencil::DrawingPlacement::reproject(), retrieve_editable_and_selected_elements(), retrieve_editable_drawings(), retrieve_editable_drawings_grouped_per_frame(), retrieve_editable_points(), blender::ed::curves::retrieve_selected_points(), blender::RNA_boolean_get(), blender::RNA_enum_get(), blender::RNA_float_get(), blender::SCE_SNAP_TARGET_ALL, blender::ed::transform::snap_object_context_create(), blender::ed::transform::snap_object_context_destroy(), blender::ed::transform::snap_object_project_ray(), blender::ed::transform::SnapObjectParams::snap_target_select, blender::bke::greasepencil::Drawing::strokes_for_write(), Surface, blender::bke::greasepencil::Drawing::tag_positions_changed(), blender::bke::greasepencil::Drawing::tag_topology_changed(), blender::Scene::toolsettings, blender::math::transform_point(), blender::V3D_PROJ_RET_OK, blender::V3D_PROJ_TEST_NOP, and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_reproject(), and grease_pencil_reproject_exec().
|
static |
Definition at line 3549 of file grease_pencil_edit.cc.
References grease_pencil_reproject_ui(), blender::wmOperator::layout, blender::ui::Layout::prop(), blender::wmOperator::ptr, blender::RNA_enum_get(), blender::ui::Layout::row(), Surface, UI_ITEM_NONE, blender::ui::Layout::use_property_decorate_set(), and blender::ui::Layout::use_property_split_set().
Referenced by GREASE_PENCIL_OT_reproject(), and grease_pencil_reproject_ui().
|
static |
Definition at line 4367 of file grease_pencil_edit.cc.
References C, blender::bke::AttributeAccessor::contains(), blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::bke::SpanAttributeWriter< T >::finish(), grease_pencil_reset_uvs_exec(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::index_mask::masked_fill(), NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::bke::MutableAttributeAccessor::remove(), retrieve_editable_and_selected_strokes(), retrieve_editable_drawings(), blender::index_mask::IndexMask::size(), blender::bke::SpanAttributeWriter< T >::span, blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_positions_changed(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_reset_uvs(), and grease_pencil_reset_uvs_exec().
| bool blender::ed::greasepencil::grease_pencil_sculpting_poll | ( | bContext * | C | ) |
Definition at line 157 of file grease_pencil_ops.cc.
References active_grease_pencil_poll(), C, blender::CTX_data_active_object(), blender::CTX_data_tool_settings(), blender::ToolSettings::gp_sculptpaint, grease_pencil_sculpting_poll(), and blender::OB_MODE_SCULPT_GREASE_PENCIL.
Referenced by blender::ed::sculpt_paint::grease_pencil_sculpt_paint_poll(), grease_pencil_sculpting_poll(), and keymap_grease_pencil_sculpt_mode().
|
static |
Definition at line 1226 of file grease_pencil_select.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::CTX_data_tool_settings(), blender::bke::Curve, blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ED_grease_pencil_selection_domain_get(), blender::IndexMask::from_bools_inverse(), blender::IndexMask::from_predicate(), blender::IndexMask::from_ranges(), grease_pencil_select_by_stroke_type_exec(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::bke::Point, blender::wmOperator::ptr, retrieve_editable_drawings(), retrieve_editable_strokes(), blender::RNA_boolean_get(), blender::RNA_enum_get(), blender::SEL_DESELECT, blender::SEL_SELECT, blender::ed::curves::select_all(), blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_select_by_stroke_type(), and grease_pencil_select_by_stroke_type_exec().
| bool blender::ed::greasepencil::grease_pencil_selection_poll | ( | bContext * | C | ) |
Definition at line 113 of file grease_pencil_ops.cc.
References active_grease_pencil_poll(), C, blender::CTX_data_active_object(), ELEM, grease_pencil_selection_poll(), blender::OB_MODE_EDIT, blender::OB_MODE_SCULPT_GREASE_PENCIL, and blender::OB_MODE_VERTEX_GREASE_PENCIL.
Referenced by grease_pencil_selection_poll(), and keymap_grease_pencil_selection().
|
static |
Definition at line 2478 of file grease_pencil_edit.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::begin(), blender::BKE_report(), C, blender::CTX_data_active_base(), blender::CTX_data_active_object(), blender::CTX_data_main(), blender::CTX_data_scene(), blender::CTX_data_view_layer(), blender::Object::data, blender::DEG_id_tag_update(), blender::Vector< T, InlineBufferCapacity, Allocator >::end(), grease_pencil_separate_exec(), grease_pencil_separate_layer(), grease_pencil_separate_material(), grease_pencil_separate_selected(), blender::ID_RECALC_GEOMETRY, LAYER, MATERIAL, NA_EDITED, NC_GEOM, ND_DATA, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::wmOperator::reports, retrieve_editable_drawings(), blender::RNA_enum_get(), blender::RPT_ERROR, SELECTED, blender::Object::totcol, blender::WM_cursor_wait(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_separate(), and grease_pencil_separate_exec().
|
static |
Definition at line 5442 of file grease_pencil_edit.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::bke::SpanAttributeWriter< T >::finish(), blender::index_mask::IndexMask::foreach_index_optimized(), blender::exec_mode::grain_size(), grease_pencil_separate_fills_exec(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::index_mask::masked_fill(), NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::wmOperator::ptr, retrieve_editable_and_selected_strokes(), retrieve_editable_drawings(), blender::RNA_boolean_get(), blender::bke::SpanAttributeWriter< T >::span, blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_separate_fills(), and grease_pencil_separate_fills_exec().
|
static |
Definition at line 2318 of file grease_pencil_edit.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::BKE_object_material_array_assign(), blender::BKE_object_material_array_p(), blender::BKE_object_material_len_p(), blender::BKE_object_material_remove_unused(), blender::BLI_assert(), C, blender::bke::curves_copy_curve_selection(), blender::Object::data, blender::DEG_id_tag_update(), duplicate_grease_pencil_object(), find_or_create_layer_in_dst_by_name(), blender::bke::gather_attributes(), grease_pencil_separate_layer(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::bke::Layer, NC_OBJECT, ND_DRAW, blender::bke::CurvesGeometry::remove_curves(), retrieve_editable_drawings_from_layer(), retrieve_editable_strokes(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), and blender::WM_event_add_notifier().
Referenced by grease_pencil_separate_exec(), and grease_pencil_separate_layer().
|
static |
Definition at line 2396 of file grease_pencil_edit.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::BKE_object_material_array_assign(), blender::BKE_object_material_array_p(), blender::BKE_object_material_len_p(), blender::BKE_object_material_remove_unused(), blender::BKE_object_material_slot_used(), blender::BLI_assert(), C, blender::bke::curves_copy_curve_selection(), blender::Object::data, blender::DEG_id_tag_update(), blender::IndexRange::drop_front(), duplicate_grease_pencil_object(), find_or_create_layer_in_dst_by_name(), blender::bke::gather_attributes(), grease_pencil_separate_material(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::bke::Layer, NC_OBJECT, ND_DRAW, blender::bke::CurvesGeometry::remove_curves(), retrieve_editable_drawings(), retrieve_editable_strokes_by_material(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), blender::Object::totcol, and blender::WM_event_add_notifier().
Referenced by grease_pencil_separate_exec(), and grease_pencil_separate_material().
|
static |
Definition at line 2241 of file grease_pencil_edit.cc.
References blender::bke::greasepencil::TreeNode::as_layer(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::BKE_object_material_array_assign(), blender::BKE_object_material_array_p(), blender::BKE_object_material_len_p(), blender::BKE_object_material_remove_unused(), blender::BLI_assert(), C, blender::bke::curves_copy_point_selection(), blender::Object::data, blender::DEG_id_tag_update(), duplicate_grease_pencil_object(), find_or_create_layer_in_dst_by_name(), blender::bke::gather_attributes(), blender::geometry::grease_pencil_remove_points_and_split(), grease_pencil_separate_selected(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::bke::greasepencil::TreeNode::is_layer(), blender::bke::Layer, NC_OBJECT, ND_DRAW, retrieve_editable_drawings(), blender::ed::curves::retrieve_selected_points(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), and blender::WM_event_add_notifier().
Referenced by grease_pencil_separate_exec(), and grease_pencil_separate_selected().
|
static |
Definition at line 1066 of file grease_pencil_edit.cc.
References blender::BKE_object_material_active_index_sanitize(), C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::bke::Curve, blender::index_mask::IndexMask::first(), grease_pencil_set_active_material_exec(), blender::index_mask::IndexMask::is_empty(), NA_EDITED, NC_GEOM, ND_DATA, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, retrieve_editable_and_selected_strokes(), retrieve_editable_drawings(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_set_active_material(), and grease_pencil_set_active_material_exec().
|
static |
Definition at line 4963 of file grease_pencil_edit.cc.
References Bevel, C, blender::bke::AttributeAccessor::contains(), blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::CTX_wm_view3d(), DEG2RADF, blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, GP_STROKE_MITER_ANGLE_BEVEL, GP_STROKE_MITER_ANGLE_ROUND, grease_pencil_set_corner_type_exec(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::index_mask::masked_fill(), Miter, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::bke::Point, blender::wmOperator::ptr, blender::bke::MutableAttributeAccessor::remove(), retrieve_editable_and_all_selected_points(), retrieve_editable_drawings(), blender::RNA_enum_get(), blender::RNA_float_get(), Round, blender::bke::greasepencil::Drawing::strokes_for_write(), view3d_handle_type_or_default(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_set_corner_type(), and grease_pencil_set_corner_type_exec().
|
static |
Definition at line 5034 of file grease_pencil_edit.cc.
References C, blender::CTX_wm_manager(), grease_pencil_set_corner_type_ui(), blender::wmOperator::layout, Miter, blender::ui::Layout::prop(), blender::wmOperator::properties, blender::wmOperator::ptr, blender::RNA_enum_get(), blender::RNA_pointer_create_discrete(), blender::wmOperatorType::srna, blender::wmOperator::type, UI_ITEM_NONE, blender::ui::Layout::use_property_decorate_set(), and blender::ui::Layout::use_property_split_set().
Referenced by GREASE_PENCIL_OT_set_corner_type(), and grease_pencil_set_corner_type_ui().
|
static |
Definition at line 4303 of file grease_pencil_edit.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::CURVE_TYPE_POLY, blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, grease_pencil_set_curve_resolution_exec(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, blender::index_mask::masked_fill(), NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::wmOperator::ptr, retrieve_editable_and_selected_strokes(), retrieve_editable_drawings(), blender::RNA_int_get(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_set_curve_resolution(), and grease_pencil_set_curve_resolution_exec().
|
static |
Definition at line 4128 of file grease_pencil_edit.cc.
References C, blender::geometry::convert_curves(), blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, grease_pencil_set_curve_type_exec(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, options, blender::threading::parallel_for_each(), blender::wmOperator::ptr, retrieve_editable_and_selected_strokes(), retrieve_editable_drawings(), blender::RNA_boolean_get(), blender::RNA_enum_get(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_set_curve_type(), and grease_pencil_set_curve_type_exec().
|
static |
Definition at line 4196 of file grease_pencil_edit.cc.
References blender::BEZIER_HANDLE_ALIGN, blender::BEZIER_HANDLE_AUTO, blender::BEZIER_HANDLE_FREE, blender::BEZIER_HANDLE_VECTOR, BLI_assert_unreachable, C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::CURVE_TYPE_BEZIER, blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), grease_pencil_set_handle_type_exec(), blender::ID_RECALC_GEOMETRY, blender::ed::greasepencil::MutableDrawingInfo::layer_index, blender::bke::AttributeAccessor::lookup_or_default(), NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::bke::Point, blender::wmOperator::ptr, retrieve_editable_drawings(), retrieve_editable_strokes(), blender::RNA_enum_get(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_set_handle_type(), and grease_pencil_set_handle_type_exec().
|
static |
Definition at line 1565 of file grease_pencil_edit.cc.
References C, blender::CTX_data_active_object(), grease_pencil_set_material_exec(), NA_EDITED, NC_GEOM, ND_DATA, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::RNA_enum_get(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_set_material(), and grease_pencil_set_material_exec().
|
static |
Definition at line 1357 of file grease_pencil_edit.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, grease_pencil_set_start_point_exec(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), retrieve_editable_and_selected_points(), retrieve_editable_drawings(), set_start_point(), blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_set_start_point(), and grease_pencil_set_start_point_exec().
|
static |
Definition at line 5094 of file grease_pencil_edit.cc.
References blender::bke::MutableAttributeAccessor::add(), blender::array_utils::AllFalse, blender::array_utils::booleans_mix_calc(), C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::bke::Curve, blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, ELEM, blender::bke::SpanAttributeWriter< T >::finish(), blender::IndexMask::from_predicate(), blender::bke::greasepencil::gather_next_available_fill_ids(), grease_pencil_set_stroke_type_exec(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::index_mask::masked_fill(), NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::bke::Point, blender::wmOperator::ptr, blender::bke::MutableAttributeAccessor::remove(), retrieve_editable_and_selected_strokes(), retrieve_editable_drawings(), blender::RNA_enum_get(), blender::bke::SpanAttributeWriter< T >::span, blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_set_stroke_type(), and grease_pencil_set_stroke_type_exec().
|
static |
Definition at line 1169 of file grease_pencil_edit.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::bke::Curve, blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::bke::curves::fill_points(), grease_pencil_set_uniform_opacity_exec(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::index_mask::masked_fill(), NC_GEOM, ND_DATA, blender::bke::greasepencil::Drawing::opacities_for_write(), blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::wmOperator::ptr, retrieve_editable_and_selected_strokes(), retrieve_editable_drawings(), blender::RNA_float_get(), blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_set_uniform_opacity(), and grease_pencil_set_uniform_opacity_exec().
|
static |
Definition at line 1115 of file grease_pencil_edit.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::bke::curves::fill_points(), grease_pencil_set_uniform_thickness_exec(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::wmOperator::ptr, blender::bke::greasepencil::Drawing::radii_for_write(), retrieve_editable_and_selected_strokes(), retrieve_editable_drawings(), blender::RNA_float_get(), blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_set_uniform_thickness(), and grease_pencil_set_uniform_thickness_exec().
|
static |
Definition at line 376 of file grease_pencil_edit.cc.
References ADAPTIVE, C, blender::CTX_wm_manager(), FIXED, grease_pencil_simplify_ui(), blender::wmOperator::layout, MERGE, blender::ui::Layout::prop(), blender::wmOperator::properties, blender::wmOperator::ptr, blender::RNA_enum_get(), blender::RNA_pointer_create_discrete(), SAMPLE, blender::wmOperatorType::srna, blender::wmOperator::type, UI_ITEM_NONE, blender::ui::Layout::use_property_decorate_set(), and blender::ui::Layout::use_property_split_set().
Referenced by GREASE_PENCIL_OT_stroke_simplify(), and grease_pencil_simplify_ui().
|
static |
Definition at line 3826 of file grease_pencil_edit.cc.
References blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), grease_pencil_snap_compute_centroid(), blender::ed::curves::has_anything_selected(), layer, blender::math::min_max(), blender::ed::curves::retrieve_selected_points(), retrieve_visible_drawings(), blender::index_mask::IndexMask::size(), and blender::math::transform_point().
Referenced by grease_pencil_snap_compute_centroid(), and grease_pencil_snap_cursor_to_sel_exec().
|
static |
Definition at line 3878 of file grease_pencil_edit.cc.
References BLI_assert_unreachable, C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::Scene::cursor, blender::data, blender::DEG_id_tag_update(), grease_pencil_snap_compute_centroid(), grease_pencil_snap_cursor_to_sel_exec(), blender::Scene::id, blender::ID_RECALC_SYNC_TO_EVAL, blender::View3DCursor::location, blender::math::midpoint(), NC_SPACE, ND_SPACE_VIEW3D, blender::OPERATOR_FINISHED, blender::Scene::toolsettings, blender::ToolSettings::transform_pivot_point, blender::V3D_AROUND_ACTIVE, blender::V3D_AROUND_CENTER_BOUNDS, blender::V3D_AROUND_CENTER_MEDIAN, blender::V3D_AROUND_CURSOR, blender::V3D_AROUND_LOCAL_ORIGINS, and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_snap_cursor_to_selected(), and grease_pencil_snap_cursor_to_sel_exec().
|
static |
Definition at line 3638 of file grease_pencil_edit.cc.
References C, blender::CTX_wm_area(), blender::CTX_wm_region(), editable_grease_pencil_poll(), grease_pencil_snap_poll(), blender::ARegion::regiontype, blender::RGN_TYPE_WINDOW, blender::SPACE_VIEW3D, and blender::ScrArea::spacetype.
Referenced by GREASE_PENCIL_OT_snap_cursor_to_selected(), GREASE_PENCIL_OT_snap_to_cursor(), GREASE_PENCIL_OT_snap_to_grid(), and grease_pencil_snap_poll().
|
static |
Definition at line 3734 of file grease_pencil_edit.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::Scene::cursor, blender::data, blender::DEG_id_tag_update(), blender::IndexRange::first(), blender::index_mask::IndexMask::foreach_index(), blender::index_mask::IndexMask::foreach_index_optimized(), blender::exec_mode::grain_size(), grease_pencil_snap_to_cursor_exec(), blender::ed::curves::has_anything_selected(), blender::ID_RECALC_GEOMETRY, blender::ID_RECALC_SYNC_TO_EVAL, blender::ID_RECALC_TRANSFORM, blender::math::invert(), layer, blender::View3DCursor::location, blender::index_mask::masked_fill(), NA_EDITED, NC_GPENCIL, NC_OBJECT, ND_DATA, ND_DRAW, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, retrieve_editable_drawings(), blender::ed::curves::retrieve_selected_curves(), blender::ed::curves::retrieve_selected_points(), blender::RNA_boolean_get(), blender::index_mask::IndexMask::slice_content(), blender::math::transform_point(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_snap_to_cursor(), and grease_pencil_snap_to_cursor_exec().
|
static |
Definition at line 3656 of file grease_pencil_edit.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::CTX_wm_region(), blender::CTX_wm_view3d(), blender::CURVE_TYPE_BEZIER, blender::bke::curves::curve_type_point_selection(), blender::data, blender::DEG_id_tag_update(), blender::ED_view3d_grid_view_scale(), blender::math::floor(), blender::index_mask::IndexMask::foreach_index(), blender::ed::curves::get_curves_selection_attribute_names(), blender::exec_mode::grain_size(), grease_pencil_snap_to_grid_exec(), blender::ed::curves::has_anything_selected(), blender::ID_RECALC_GEOMETRY, blender::ID_RECALC_SYNC_TO_EVAL, blender::ID_RECALC_TRANSFORM, blender::math::invert(), layer, NA_EDITED, NC_GPENCIL, NC_OBJECT, ND_DATA, ND_DRAW, blender::OPERATOR_FINISHED, retrieve_editable_drawings(), blender::ed::curves::retrieve_selected_points(), blender::math::transform_point(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_snap_to_grid(), and grease_pencil_snap_to_grid_exec().
|
static |
Apply the stroke carver to all layers.
Definition at line 190 of file grease_pencil_carver.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_depsgraph_pointer(), blender::CTX_data_scene(), blender::CTX_wm_region(), blender::CTX_wm_region_view3d(), blender::CTX_wm_view3d(), blender::Object::data, blender::DEG_get_evaluated(), grease_pencil_stroke_carver_exec(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::OPERATOR_PASS_THROUGH, blender::threading::parallel_for(), blender::Array< T, InlineBufferCapacity, Allocator >::size(), and blender::WM_gesture_lasso_path_to_array().
Referenced by grease_pencil_stroke_carver_exec().
|
static |
Definition at line 850 of file grease_pencil_edit.cc.
References blender::BKE_libblock_find_name(), blender::BKE_object_material_index_get(), blender::BKE_reportf(), C, blender::CTX_data_active_object(), blender::CTX_data_main(), blender::CTX_data_scene(), blender::bke::Curve, blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::bke::SpanAttributeWriter< T >::finish(), grease_pencil_stroke_material_set_exec(), blender::ID_MA, blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::index_mask::masked_fill(), MAX_ID_NAME, NA_EDITED, NC_GEOM, ND_DATA, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::wmOperator::ptr, blender::wmOperator::reports, retrieve_editable_and_selected_strokes(), retrieve_editable_drawings(), blender::RNA_string_get(), blender::RPT_WARNING, blender::bke::greasepencil::selected_mask_to_fills(), blender::bke::SpanAttributeWriter< T >::span, blender::bke::greasepencil::Drawing::strokes_for_write(), TIP_, and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_stroke_material_set(), and grease_pencil_stroke_material_set_exec().
|
static |
Definition at line 3092 of file grease_pencil_edit.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_scene(), curves_merge_by_distance(), blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, grease_pencil_stroke_merge_by_distance_exec(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::wmOperator::ptr, retrieve_editable_and_selected_points(), retrieve_editable_drawings(), retrieve_editable_points(), blender::RNA_boolean_get(), blender::RNA_float_get(), blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_stroke_merge_by_distance(), and grease_pencil_stroke_merge_by_distance_exec().
|
static |
Definition at line 1947 of file grease_pencil_edit.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, get_reordered_indices(), grease_pencil_stroke_reorder_exec(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::wmOperator::ptr, blender::geometry::reorder_curves_geometry(), retrieve_editable_and_selected_strokes(), retrieve_editable_drawings(), blender::RNA_enum_get(), blender::index_mask::IndexMask::size(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_stroke_reorder(), and grease_pencil_stroke_reorder_exec().
|
static |
Definition at line 277 of file grease_pencil_edit.cc.
References ADAPTIVE, C, blender::IndexRange::contains(), blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::bke::curves_copy_point_selection(), curves_merge_by_distance(), blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::IndexRange::drop_back(), blender::IndexRange::drop_front(), FIXED, blender::IndexMask::from_predicate(), blender::IndexMask::from_ranges(), blender::VArray< T >::from_single(), grease_pencil_stroke_simplify_exec(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, MERGE, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::wmOperator::ptr, blender::bke::CurvesGeometry::remove_points(), blender::geometry::resample_to_length(), retrieve_editable_and_selected_strokes(), retrieve_editable_drawings(), blender::RNA_enum_get(), blender::RNA_float_get(), blender::RNA_int_get(), SAMPLE, blender::geometry::simplify_curve_attribute(), simplify_fixed(), blender::index_mask::IndexMask::size(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_stroke_simplify(), and grease_pencil_stroke_simplify_exec().
|
static |
Definition at line 95 of file grease_pencil_edit.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::bke::GSpanAttributeWriter::finish(), grease_pencil_stroke_smooth_exec(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::VArrayCommon< T >::is_span(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, blender::bke::MutableAttributeAccessor::lookup_for_write_span(), NC_GEOM, ND_DATA, blender::bke::greasepencil::Drawing::opacities(), blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::bke::Point, blender::wmOperator::ptr, blender::bke::greasepencil::Drawing::radii(), retrieve_editable_and_selected_strokes(), retrieve_editable_drawings(), blender::RNA_boolean_get(), blender::RNA_float_get(), blender::RNA_int_get(), blender::geometry::smooth_curve_attribute(), blender::bke::GSpanAttributeWriter::span, blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_stroke_smooth(), and grease_pencil_stroke_smooth_exec().
|
static |
Definition at line 4459 of file grease_pencil_edit.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::data, blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, grease_pencil_stroke_split_exec(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, NC_GEOM, ND_DATA, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), retrieve_editable_and_selected_points(), retrieve_editable_drawings(), blender::ed::curves::split_points(), blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_stroke_split(), and grease_pencil_stroke_split_exec().
|
static |
Definition at line 1237 of file grease_pencil_edit.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, grease_pencil_stroke_switch_direction_exec(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), retrieve_editable_and_selected_strokes(), retrieve_editable_drawings(), blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_stroke_switch_direction(), and grease_pencil_stroke_switch_direction_exec().
|
static |
Definition at line 568 of file grease_pencil_trim.cc.
References C, grease_pencil_stroke_trim_exec(), blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::OPERATOR_PASS_THROUGH, stroke_trim_execute(), and blender::WM_gesture_lasso_path_to_array().
Referenced by blender::GREASE_PENCIL_OT_stroke_trim(), and grease_pencil_stroke_trim_exec().
|
static |
Definition at line 3947 of file grease_pencil_edit.cc.
References blender::BKE_gpencil_material_settings(), C, blender::math::cross(), blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::CTX_wm_region(), blender::bke::Curve, blender::bke::greasepencil::Drawing::curve_plane_normals(), blender::DEG_id_tag_update(), blender::math::dot(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ED_view3d_win_to_3d_on_plane(), ensure_active_keyframe(), expand_4x2_mat(), blender::index_mask::IndexMask::foreach_index(), blender::math::from_rotation(), blender::math::from_scale(), blender::GP_MATERIAL_GRADIENT_RADIAL, blender::MaterialGPencilStyle::gradient_type, grease_pencil_texture_gradient_exec(), blender::ID_RECALC_GEOMETRY, blender::MatBase< float, 3, 2 >::identity(), blender::index_mask::IndexMask::is_empty(), layer, blender::ed::greasepencil::MutableDrawingInfo::layer_index, blender::math::length_squared(), NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::wmOperator::ptr, retrieve_editable_and_selected_strokes(), retrieve_editable_drawings(), blender::RNA_int_get(), blender::bke::greasepencil::Drawing::set_texture_matrices(), blender::index_mask::IndexMask::size(), blender::bke::greasepencil::Drawing::strokes(), blender::MaterialGPencilStyle::texture_angle, blender::MaterialGPencilStyle::texture_offset, blender::MaterialGPencilStyle::texture_scale, blender::math::transform_direction(), blender::math::transform_point(), blender::math::transpose(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_texture_gradient(), and grease_pencil_texture_gradient_exec().
|
static |
Definition at line 4082 of file grease_pencil_edit.cc.
References C, blender::CTX_wm_region(), blender::wmOperator::customdata, grease_pencil_texture_gradient_invoke(), blender::KM_PRESS, blender::LEFTMOUSE, blender::OPERATOR_RUNNING_MODAL, blender::ARegion::regiontype, blender::ret, blender::RGN_TYPE_WINDOW, blender::wmEvent::type, blender::wmEvent::val, and blender::WM_gesture_straightline_invoke().
Referenced by GREASE_PENCIL_OT_texture_gradient(), and grease_pencil_texture_gradient_invoke().
|
static |
Definition at line 4065 of file grease_pencil_edit.cc.
References C, grease_pencil_texture_gradient_modal(), blender::KM_RELEASE, blender::LEFTMOUSE, blender::OPERATOR_FINISHED, blender::OPERATOR_RUNNING_MODAL, blender::ret, blender::wmEvent::type, blender::wmEvent::val, blender::WM_gesture_straightline_cancel(), and blender::WM_gesture_straightline_modal().
Referenced by GREASE_PENCIL_OT_texture_gradient(), and grease_pencil_texture_gradient_modal().
|
static |
Definition at line 654 of file grease_pencil_weight_paint.cc.
References blender::BKE_object_defgroup_list(), blender::BLI_listbase_is_empty(), C, blender::CTX_data_active_object(), grease_pencil_vertex_group_weight_poll(), and grease_pencil_weight_painting_poll().
Referenced by GREASE_PENCIL_OT_vertex_group_normalize(), GREASE_PENCIL_OT_vertex_group_normalize_all(), GREASE_PENCIL_OT_vertex_group_smooth(), GREASE_PENCIL_OT_weight_invert(), and grease_pencil_vertex_group_weight_poll().
|
static |
Definition at line 99 of file grease_pencil_vertex_paint.cc.
References apply_color_operation_for_mode(), C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::data, blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ED_grease_pencil_any_vertex_mask_selection(), FLT_EPSILON, grease_pencil_vertex_paint_brightness_contrast_exec(), blender::ID_RECALC_GEOMETRY, blender::math::max(), NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::wmOperator::ptr, blender::result, retrieve_editable_drawings(), blender::RNA_enum_get(), blender::RNA_float_get(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::Scene::toolsettings, and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_vertex_color_brightness_contrast(), and grease_pencil_vertex_paint_brightness_contrast_exec().
|
static |
Definition at line 176 of file grease_pencil_vertex_paint.cc.
References apply_color_operation_for_mode(), C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::data, blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ED_grease_pencil_any_vertex_mask_selection(), grease_pencil_vertex_paint_hsv_exec(), blender::hsv_to_rgb_v(), blender::ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::wmOperator::ptr, retrieve_editable_drawings(), blender::rgb_to_hsv_v(), blender::RNA_enum_get(), blender::RNA_float_get(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::Scene::toolsettings, and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_vertex_color_hsv(), and grease_pencil_vertex_paint_hsv_exec().
|
static |
Definition at line 256 of file grease_pencil_vertex_paint.cc.
References apply_color_operation_for_mode(), C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::data, blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ED_grease_pencil_any_vertex_mask_selection(), grease_pencil_vertex_paint_invert_exec(), blender::ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::wmOperator::ptr, retrieve_editable_drawings(), blender::RNA_enum_get(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::Scene::toolsettings, and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_vertex_color_invert(), and grease_pencil_vertex_paint_invert_exec().
|
static |
Definition at line 309 of file grease_pencil_vertex_paint.cc.
References apply_color_operation_for_mode(), C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::data, blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ED_grease_pencil_any_vertex_mask_selection(), grease_pencil_vertex_paint_levels_exec(), blender::ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::wmOperator::ptr, blender::result, retrieve_editable_drawings(), blender::RNA_enum_get(), blender::RNA_float_get(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::Scene::toolsettings, and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_vertex_color_levels(), and grease_pencil_vertex_paint_levels_exec().
|
static |
Definition at line 438 of file grease_pencil_vertex_paint.cc.
References apply_color_operation_for_mode(), Both, C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::data, blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ED_grease_pencil_any_vertex_mask_selection(), ELEM, Fill, grease_pencil_vertex_paint_reset_exec(), blender::ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::wmOperator::ptr, retrieve_editable_drawings(), blender::RNA_enum_get(), Stroke, blender::bke::greasepencil::Drawing::strokes_for_write(), blender::Scene::toolsettings, and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_stroke_reset_vertex_color(), and grease_pencil_vertex_paint_reset_exec().
|
static |
Definition at line 369 of file grease_pencil_vertex_paint.cc.
References apply_color_operation_for_mode(), blender::BKE_brush_color_get(), blender::BKE_paint_brush(), blender::BKE_paint_get_active_from_context(), Both, C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::bke::Curve, blender::data, blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ED_grease_pencil_any_vertex_mask_selection(), ELEM, Fill, grease_pencil_vertex_paint_set_exec(), blender::ID_RECALC_GEOMETRY, blender::math::interpolate(), NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::bke::Point, blender::wmOperator::ptr, retrieve_editable_drawings(), blender::RNA_enum_get(), blender::RNA_float_get(), Stroke, blender::bke::greasepencil::Drawing::strokes_for_write(), blender::Scene::toolsettings, and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_vertex_color_set(), and grease_pencil_vertex_paint_set_exec().
| bool blender::ed::greasepencil::grease_pencil_vertex_painting_poll | ( | bContext * | C | ) |
Definition at line 189 of file grease_pencil_ops.cc.
References active_grease_pencil_poll(), C, blender::CTX_data_active_object(), blender::CTX_data_tool_settings(), blender::ToolSettings::gp_vertexpaint, grease_pencil_vertex_painting_poll(), and blender::OB_MODE_VERTEX_GREASE_PENCIL.
Referenced by blender::brush_colors_flip_poll(), GREASE_PENCIL_OT_stroke_reset_vertex_color(), GREASE_PENCIL_OT_vertex_color_brightness_contrast(), GREASE_PENCIL_OT_vertex_color_hsv(), GREASE_PENCIL_OT_vertex_color_invert(), GREASE_PENCIL_OT_vertex_color_levels(), GREASE_PENCIL_OT_vertex_color_set(), blender::ed::sculpt_paint::grease_pencil_vertex_brush_stroke_poll(), grease_pencil_vertex_painting_poll(), keymap_grease_pencil_vertex_paint_mode(), and blender::ed::sculpt_paint::sample_color_poll().
|
static |
Definition at line 606 of file grease_pencil_weight_paint.cc.
References blender::BKE_defgroup_name_index(), blender::BKE_object_defgroup_active_index_get(), blender::BKE_object_defgroup_list(), blender::BKE_report(), blender::BLI_findlink(), C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::DEG_id_tag_update(), blender::DG_LOCK_WEIGHT, blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::bDeformGroup::flag, grease_pencil_weight_invert_exec(), blender::ID_RECALC_GEOMETRY, blender::VArrayCommon< T >::index_range(), blender::bDeformGroup::name, NC_GEOM, ND_DATA, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::wmOperator::reports, retrieve_editable_drawings(), blender::RPT_WARNING, blender::VMutableArray< T >::set(), blender::VArrayCommon< T >::size(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::varray_for_mutable_deform_verts(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_weight_invert(), and grease_pencil_weight_invert_exec().
| bool blender::ed::greasepencil::grease_pencil_weight_painting_poll | ( | bContext * | C | ) |
Definition at line 173 of file grease_pencil_ops.cc.
References active_grease_pencil_poll(), C, blender::CTX_data_active_object(), blender::CTX_data_tool_settings(), blender::ToolSettings::gp_weightpaint, grease_pencil_weight_painting_poll(), and blender::OB_MODE_WEIGHT_GREASE_PENCIL.
Referenced by GREASE_PENCIL_OT_weight_sample(), grease_pencil_vertex_group_weight_poll(), blender::ed::sculpt_paint::grease_pencil_weight_brush_stroke_poll(), grease_pencil_weight_painting_poll(), keymap_grease_pencil_weight_paint_mode(), and toggle_weight_tool_direction_poll().
| bool blender::ed::greasepencil::has_any_frame_selected | ( | const bke::greasepencil::Layer & | layer | ) |
Returns true if any frame of the layer is selected.
Definition at line 256 of file grease_pencil_frames.cc.
References has_any_frame_selected(), and layer.
Referenced by blender::deselect_action_keys(), and has_any_frame_selected().
| bool blender::ed::greasepencil::has_editable_layer | ( | const GreasePencil & | grease_pencil | ) |
Definition at line 1400 of file grease_pencil_utils.cc.
References has_editable_layer(), and layer.
Referenced by blender::ed::sculpt_paint::grease_pencil_sculpt_paint_invoke(), blender::ed::sculpt_paint::grease_pencil_vertex_brush_stroke_invoke(), and has_editable_layer().
|
static |
Definition at line 380 of file grease_pencil_frames.cc.
References C, blender::RenderData::cfra, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::DEG_id_tag_update(), blender::ID_RECALC_GEOMETRY, insert_blank_frame_exec(), layer, NA_EDITED, NC_GEOM, NC_GPENCIL, ND_DATA, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::Scene::r, blender::RNA_boolean_get(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_insert_blank_frame(), and insert_blank_frame_exec().
| void blender::ed::greasepencil::insert_selected_values | ( | Object * | object, |
| const MutableDrawingInfo & | info, | ||
| const bke::AttrDomain | domain, | ||
| const StringRef | name, | ||
| const eHandleDisplay | handle_display, | ||
| Set< T > & | r_value_set ) |
Definition at line 609 of file grease_pencil_select.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), BLI_assert_unreachable, blender::bke::Curve, blender::CPPType::default_construct(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::index_mask::IndexMask::foreach_index(), blender::CPPType::get(), blender::exec_mode::grain_size(), insert_selected_values(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, blender::bke::AttributeAccessor::lookup_or_default(), blender::bke::Point, retrieve_editable_and_all_selected_points(), retrieve_editable_and_selected_strokes(), blender::bke::greasepencil::Drawing::strokes(), and T.
Referenced by insert_selected_values(), and select_similar_by_value().
|
static |
Definition at line 363 of file fill.cc.
References Fill, get_flag(), invert_fill(), blender::ed::greasepencil::ImageBufferAccessor::pixels(), and set_flag().
Referenced by invert_fill(), and process_image().
|
static |
Definition at line 87 of file grease_pencil_merge.cc.
References blender::BLI_assert(), blender::bke::curves_new_nomain(), blender::bke::GeometrySet::get_curves(), blender::bke::GeometrySet::has_curves(), blender::Span< T >::index_range(), blender::bke::CurvesGeometry::is_empty(), join_curves(), blender::geometry::join_geometries(), blender::Span< T >::size(), and blender::bke::CurvesGeometry::transform().
Referenced by join_curves().
|
static |
Definition at line 2660 of file grease_pencil_edit.cc.
References blender::VArray< T >::from_single(), join_geometries_with_transform(), join_geometries_with_transforms(), and blender::Span< T >::size().
Referenced by grease_pencil_copy_strokes_exec(), and join_geometries_with_transform().
|
static |
Definition at line 2642 of file grease_pencil_edit.cc.
References blender::BLI_assert(), blender::bke::GeometrySet::from_instances(), blender::geometry::RealizeInstancesResult::geometry, blender::Span< T >::index_range(), join_geometries_with_transforms(), blender::VArrayCommon< T >::materialize(), options, blender::Span< T >::size(), and blender::VArrayCommon< T >::size().
Referenced by clipboard_paste_strokes_ex(), join_geometries_with_transform(), and join_geometries_with_transforms().
|
static |
Definition at line 5724 of file grease_pencil_edit.cc.
References blender::AnimData::action, add_materials_to_map(), add_vertex_groups(), blender::Object::adt, blender::ADT_MERGECOPY_KEEP_DST, blender::BKE_animdata_copy(), blender::BKE_animdata_merge_copy(), blender::BKE_animsys_fix_rna_path_rename(), blender::BKE_fcurves_main_cb(), blender::BLI_assert(), blender::BLI_strdup(), blender::StringRefNull::c_str(), blender::bke::greasepencil::copy_drawing_array(), copy_layer_group_content(), blender::Object::data, blender::DEG_id_tag_update(), blender::FCurve::driver, DRIVER_TARGETS_LOOPER_END, DRIVER_TARGETS_USED_LOOPER_BEGIN, ELEM, blender::IndexRange::from_begin_size(), blender::GP_DRAWING, blender::bAction::id, blender::Object::id, blender::ID_RECALC_ANIMATION_NO_FLUSH, blender::math::invert(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::items(), join_object_with_active(), layer, blender::GreasePencilLayerMask::layer_name, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_ptr(), blender::MEM_new_array_uninitialized(), merge_attributes(), blender::OB_GREASE_PENCIL, remap_material_indices(), remap_vertex_groups(), blender::MutableSpan< T >::slice(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::GreasePencilDrawingBase::type, blender::Object::type, blender::ChannelDriver::variables, and blender::gpu::wrap().
Referenced by blender::ED_grease_pencil_join_objects_exec(), and join_object_with_active().
|
static |
Definition at line 294 of file grease_pencil_ops.cc.
References keymap_grease_pencil_brush_stroke(), keymap_grease_pencil_brush_stroke_poll(), blender::wmKeyMap::poll, blender::RGN_TYPE_WINDOW, blender::SPACE_EMPTY, and blender::WM_keymap_ensure().
Referenced by blender::ED_keymap_grease_pencil(), and keymap_grease_pencil_brush_stroke().
|
static |
Definition at line 263 of file grease_pencil_ops.cc.
References blender::BKE_paint_brush(), C, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::CTX_data_tool_settings(), blender::ToolSettings::gp_paint, blender::GPAINT_BRUSH_TYPE_FILL, grease_pencil_painting_poll(), keymap_grease_pencil_brush_stroke_poll(), blender::GpPaint::paint, blender::WM_toolsystem_active_tool_is_brush(), and blender::WM_toolsystem_ref_from_context().
Referenced by keymap_grease_pencil_brush_stroke(), and keymap_grease_pencil_brush_stroke_poll().
|
static |
Definition at line 227 of file grease_pencil_ops.cc.
References grease_pencil_edit_poll(), keymap_grease_pencil_edit_mode(), blender::wmKeyMap::poll, blender::RGN_TYPE_WINDOW, blender::SPACE_EMPTY, and blender::WM_keymap_ensure().
Referenced by blender::ED_keymap_grease_pencil(), and keymap_grease_pencil_edit_mode().
|
static |
Definition at line 315 of file grease_pencil_ops.cc.
References keymap_grease_pencil_fill_tool(), keymap_grease_pencil_fill_tool_poll(), blender::wmKeyMap::poll, blender::RGN_TYPE_WINDOW, blender::SPACE_EMPTY, and blender::WM_keymap_ensure().
Referenced by blender::ED_keymap_grease_pencil(), and keymap_grease_pencil_fill_tool().
|
static |
Definition at line 302 of file grease_pencil_ops.cc.
References blender::BKE_paint_brush(), C, blender::CTX_data_tool_settings(), blender::ToolSettings::gp_paint, blender::GPAINT_BRUSH_TYPE_FILL, grease_pencil_painting_poll(), keymap_grease_pencil_fill_tool_poll(), blender::GpPaint::paint, and blender::WM_toolsystem_active_tool_is_brush().
Referenced by keymap_grease_pencil_fill_tool(), and keymap_grease_pencil_fill_tool_poll().
|
static |
Definition at line 234 of file grease_pencil_ops.cc.
References grease_pencil_painting_poll(), keymap_grease_pencil_paint_mode(), blender::wmKeyMap::poll, blender::RGN_TYPE_WINDOW, blender::SPACE_EMPTY, and blender::WM_keymap_ensure().
Referenced by blender::ED_keymap_grease_pencil(), and keymap_grease_pencil_paint_mode().
|
static |
Definition at line 241 of file grease_pencil_ops.cc.
References grease_pencil_sculpting_poll(), keymap_grease_pencil_sculpt_mode(), blender::wmKeyMap::poll, blender::RGN_TYPE_WINDOW, blender::SPACE_EMPTY, and blender::WM_keymap_ensure().
Referenced by blender::ED_keymap_grease_pencil(), and keymap_grease_pencil_sculpt_mode().
|
static |
Definition at line 220 of file grease_pencil_ops.cc.
References grease_pencil_selection_poll(), keymap_grease_pencil_selection(), blender::wmKeyMap::poll, blender::RGN_TYPE_WINDOW, blender::SPACE_EMPTY, and blender::WM_keymap_ensure().
Referenced by blender::ED_keymap_grease_pencil(), and keymap_grease_pencil_selection().
|
static |
Definition at line 255 of file grease_pencil_ops.cc.
References grease_pencil_vertex_painting_poll(), keymap_grease_pencil_vertex_paint_mode(), blender::wmKeyMap::poll, blender::RGN_TYPE_WINDOW, blender::SPACE_EMPTY, and blender::WM_keymap_ensure().
Referenced by blender::ED_keymap_grease_pencil(), and keymap_grease_pencil_vertex_paint_mode().
|
static |
Definition at line 248 of file grease_pencil_ops.cc.
References grease_pencil_weight_painting_poll(), keymap_grease_pencil_weight_paint_mode(), blender::wmKeyMap::poll, blender::RGN_TYPE_WINDOW, blender::SPACE_EMPTY, and blender::WM_keymap_ensure().
Referenced by blender::ED_keymap_grease_pencil(), and keymap_grease_pencil_weight_paint_mode().
|
static |
Definition at line 299 of file grease_pencil_weight_paint.cc.
References blender::BKE_defgroup_name_index(), blender::BLI_addtail(), blender::BLI_assert(), blender::blender::StringRefBase::copy_utf8_truncated(), lookup_or_add_deform_group_index(), and blender::bDeformGroup::name.
Referenced by add_armature_automatic_weights(), add_armature_envelope_weights(), and lookup_or_add_deform_group_index().
|
static |
Definition at line 235 of file fill.cc.
References Border, blender::ed::greasepencil::ImageBufferAccessor::height(), blender::IndexRange::IndexRange(), mark_borders(), blender::ed::greasepencil::ImageBufferAccessor::pixels(), set_flag(), and blender::ed::greasepencil::ImageBufferAccessor::width().
Referenced by mark_borders(), and process_image().
|
static |
Definition at line 1535 of file grease_pencil_edit.cc.
References blender::BKE_object_material_get(), C, blender::CTX_data_active_object(), material_enum_itemf(), blender::rna_enum_dummy_DEFAULT_items, blender::RNA_enum_item_add(), blender::RNA_enum_item_end(), and blender::Object::totcol.
Referenced by GREASE_PENCIL_OT_set_material(), and material_enum_itemf().
|
static |
Definition at line 405 of file grease_pencil_material.cc.
References blender::Object::actcol, blender::BKE_gpencil_material(), blender::BKE_gpencil_material_settings(), blender::BKE_object_material_len_p(), C, blender::CTX_data_active_object(), blender::Object::data, blender::DEG_id_tag_update(), ELEM, blender::MaterialGPencilStyle::flag, blender::GP_MATERIAL_HIDE, blender::GP_MATERIAL_LOCKED, blender::ID_RECALC_GEOMETRY, blender::ID_RECALC_SYNC_TO_EVAL, material_isolate_exec(), NA_EDITED, NC_GPENCIL, ND_DATA, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::RNA_boolean_get(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_material_isolate(), and material_isolate_exec().
|
static |
Definition at line 5687 of file grease_pencil_edit.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_or_modify(), b, merge_attributes(), and blender::bke::AttributeIter::name.
Referenced by join_object_with_active(), and merge_attributes().
| void blender::ed::greasepencil::merge_layers | ( | const GreasePencil & | src_grease_pencil, |
| const Span< Vector< int > > | src_layer_indices_by_dst_layer, | ||
| GreasePencil & | dst_grease_pencil ) |
Definition at line 112 of file grease_pencil_merge.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_or_modify(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::append_and_get_index(), blender::BKE_grease_pencil_copy_layer_parameters(), blender::BLI_assert(), copy_layer_groups_without_layers(), blender::GreasePencilFrame::drawing_index, blender::bke::greasepencil::Layer::drawing_index_at(), find_lowest_common_ancestor(), blender::Span< T >::first(), blender::Span< T >::first_index_try(), blender::GreasePencilFrame::flag, blender::bke::greasepencil::Layer::frames(), blender::bke::greasepencil::Layer::frames_for_write(), blender::GP_FRAME_IMPLICIT_HOLD, blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_of_try(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::math::invert(), blender::bke::greasepencil::Layer::local_transform(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_or_add(), merge_layers(), blender::Array< T, InlineBufferCapacity, Allocator >::size(), blender::Span< T >::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::bke::greasepencil::Layer::sorted_keys(), blender::bke::greasepencil::Layer::tag_frames_map_changed(), and blender::GreasePencilFrame::type.
Referenced by grease_pencil_merge_layer_exec(), merge_layers(), blender::ed::greasepencil::tests::TEST_F(), blender::ed::greasepencil::tests::TEST_F(), blender::ed::greasepencil::tests::TEST_F(), blender::ed::greasepencil::tests::TEST_F(), and blender::ed::greasepencil::tests::TEST_F().
| bool blender::ed::greasepencil::mirror_selected_frames | ( | GreasePencil & | grease_pencil, |
| bke::greasepencil::Layer & | layer, | ||
| Scene & | scene, | ||
| const eEditKeyframes_Mirror | mode ) |
Definition at line 121 of file grease_pencil_frames.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::ED_markers_get_first_selected(), get_mirrored_frame_number(), layer, blender::Scene::markers, blender::MIRROR_KEYS_MARKER, and mirror_selected_frames().
Referenced by blender::mirror_action_keys(), and mirror_selected_frames().
|
staticconstexpr |
References monkey_fill_offsets().
Referenced by create_suzanne(), and monkey_fill_offsets().
|
staticconstexpr |
References monkey_fill_opacities().
Referenced by create_suzanne(), and monkey_fill_opacities().
|
static |
References monkey_fill_positions().
Referenced by create_suzanne(), and monkey_fill_positions().
|
staticconstexpr |
References monkey_fill_radii().
Referenced by create_suzanne(), and monkey_fill_radii().
|
staticconstexpr |
References monkey_line_offsets().
Referenced by create_suzanne(), and monkey_line_offsets().
|
staticconstexpr |
References monkey_line_opacities().
Referenced by create_suzanne(), and monkey_line_opacities().
|
static |
References monkey_line_positions().
Referenced by create_suzanne(), and monkey_line_positions().
|
staticconstexpr |
References monkey_line_radii().
Referenced by create_suzanne(), and monkey_line_radii().
| void blender::ed::greasepencil::normalize_vertex_weights | ( | MDeformVert & | dvert, |
| int | active_vertex_group, | ||
| Span< bool > | vertex_group_is_locked, | ||
| Span< bool > | vertex_group_is_bone_deformed ) |
For a point in a stroke, normalize the weights of vertex groups deformed by bones so that the sum is 1.0f.
Definition at line 185 of file grease_pencil_weight_paint.cc.
References normalize_vertex_weights(), normalize_vertex_weights_try(), and blender::Span< T >::size().
Referenced by normalize_vertex_weights(), blender::ed::sculpt_paint::greasepencil::AverageWeightPaintOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::BlurWeightPaintOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::DrawWeightPaintOperation::on_stroke_extended(), and blender::ed::sculpt_paint::greasepencil::SmearWeightPaintOperation::on_stroke_extended().
|
static |
Definition at line 87 of file grease_pencil_weight_paint.cc.
References blender::math::clamp(), blender::MDeformWeight::def_nr, blender::MDeformVert::dw, FLT_EPSILON, blender::IndexRange::IndexRange(), normalize_vertex_weights_try(), blender::MDeformVert::totweight, VERTEX_WEIGHT_LOCK_EPSILON, and blender::MDeformWeight::weight.
Referenced by normalize_vertex_weights(), and normalize_vertex_weights_try().
| float blender::ed::greasepencil::opacity_from_input_sample | ( | const float | pressure, |
| const Paint & | paint, | ||
| const Brush * | brush, | ||
| const BrushGpencilSettings * | settings ) |
Definition at line 1664 of file grease_pencil_utils.cc.
References blender::BKE_brush_alpha_get(), blender::BKE_brush_use_alpha_pressure(), blender::BKE_curvemapping_evaluateF(), blender::BrushGpencilSettings::curve_strength, and opacity_from_input_sample().
Referenced by grease_pencil_primitive_update_curves(), opacity_from_input_sample(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_extension_sample(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_start_sample(), and blender::ed::sculpt_paint::set_fill_attributes().
|
static |
Definition at line 59 of file grease_pencil_modes.cc.
References blender::BKE_brush_init_gpencil_settings(), blender::BKE_grease_pencil_palette_ensure(), blender::BKE_paint_brush(), blender::BKE_paint_brushes_ensure(), blender::BKE_paint_brushes_validate(), blender::BKE_paint_ensure(), blender::BKE_paint_get_active_from_paintmode(), blender::BKE_paint_init(), blender::BLI_assert(), brush_cursor_poll(), C, blender::CTX_data_active_object(), blender::CTX_data_main(), blender::CTX_data_scene(), blender::CTX_data_tool_settings(), blender::CTX_wm_message_bus(), blender::Object::data, blender::DEG_id_tag_update(), blender::ED_paint_cursor_start(), ensure_selection_domain(), blender::ToolSettings::gp_paint, blender::ToolSettings::gp_vertexpaint, blender::GPencil, blender::Object::id, blender::ID_RECALC_GEOMETRY, blender::ID_RECALC_TRANSFORM, blender::Object::mode, NC_GPENCIL, NC_SCENE, ND_DATA, ND_GPENCIL_EDITMODE, ND_MODE, blender::OB_MODE_OBJECT, blender::OB_MODE_PAINT_GREASE_PENCIL, blender::OPERATOR_FINISHED, blender::GpPaint::paint, blender::GpVertexPaint::paint, paintmode_toggle_exec(), blender::wmOperator::ptr, blender::Object::restore_mode, blender::RNA_boolean_get(), blender::WM_event_add_notifier(), WM_msg_publish_rna_prop, and blender::WM_toolsystem_update_from_context_view3d().
Referenced by GREASE_PENCIL_OT_paintmode_toggle(), and paintmode_toggle_exec().
|
static |
Definition at line 47 of file grease_pencil_modes.cc.
References C, blender::CTX_data_active_object(), blender::Object::data, ID_IS_EDITABLE, blender::OB_GREASE_PENCIL, paintmode_toggle_poll(), and blender::Object::type.
Referenced by GREASE_PENCIL_OT_paintmode_toggle(), and paintmode_toggle_poll().
| IndexRange blender::ed::greasepencil::paste_all_strokes_from_clipboard | ( | Main & | bmain, |
| Object & | object, | ||
| const float4x4 & | object_to_paste_layer, | ||
| bool | keep_world_transform, | ||
| bool | paste_back, | ||
| bke::greasepencil::Drawing & | drawing ) |
Paste all the strokes in the clipboard layers into drawing.
Definition at line 3057 of file grease_pencil_edit.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::BLI_assert(), clipboard_paste_strokes_ex(), blender::bke::curves_new_nomain(), ensure_grease_pencil_clipboard(), blender::bke::GeometrySet::from_curves(), blender::bke::GeometrySet::get_curves(), blender::bke::GeometrySet::has_curves(), blender::geometry::join_geometries(), layer, blender::ed::greasepencil::Clipboard::layers, blender::ed::greasepencil::Clipboard::object_to_world, and paste_all_strokes_from_clipboard().
Referenced by grease_pencil_paste_strokes_exec(), blender::ed::sculpt_paint::greasepencil::CloneOperation::on_stroke_begin(), and paste_all_strokes_from_clipboard().
| bke::CurvesGeometry blender::ed::greasepencil::pixel_fill_strokes | ( | const ViewContext & | view_context, |
| const Brush & | brush, | ||
| const Scene & | scene, | ||
| const bke::greasepencil::Layer & | layer, | ||
| const VArray< bool > & | boundary_layers, | ||
| const Span< DrawingInfo > | src_drawings, | ||
| bool | invert, | ||
| const std::optional< float > | opacity_threshold, | ||
| const float2 & | fill_point, | ||
| const ExtensionData & | extensions, | ||
| FillToolFitMethod | fit_method, | ||
| bool | keep_images ) |
Fill tool for generating strokes in empty areas.
This uses an approximate render of strokes and boundaries, then fills the image starting from the mouse position. The outlines of the filled pixel areas are returned as curves.
| layer | The layer containing the new stroke, used for reprojecting from images. |
| boundary_layers | Layers that are purely for boundaries, regular strokes are not rendered. |
| src_drawings | Drawings to include as boundary strokes. |
| invert | Construct boundary around empty areas instead. |
| opacity_threshold | Render transparent stroke where opacity is below the threshold. |
| fill_point | Point from which to start the bucket fill. |
| fit_method | View fitting method to include all strokes. |
| keep_images | Keep the image data block after generating curves. |
Definition at line 1008 of file fill.cc.
References blender::BKE_id_free(), blender::BLI_assert(), blender::ViewContext::bmain, blender::ed::greasepencil::DrawingPlacement::cache_viewport_depths(), blender::DEG_get_evaluated(), blender::ViewContext::depsgraph, fit_strokes_to_view(), invert(), layer, blender::OB_GREASE_PENCIL, blender::ViewContext::obact, pixel_fill_strokes(), process_image(), blender::ViewContext::region, render_strokes(), blender::ed::greasepencil::DrawingPlacement::use_project_to_stroke(), blender::ed::greasepencil::DrawingPlacement::use_project_to_surface(), and blender::ViewContext::v3d.
Referenced by pixel_fill_strokes().
|
static |
Definition at line 1615 of file grease_pencil_utils.cc.
References blender::ED_view3d_calc_zfac(), blender::ED_view3d_win_to_delta(), blender::math::length(), pixel_radius_to_world_space_radius(), blender::math::safe_divide(), scale(), blender::math::transform_direction(), and blender::math::transform_point().
Referenced by brush_radius_at_location(), and pixel_radius_to_world_space_radius().
| IndexMask blender::ed::greasepencil::polyline_detect_corners | ( | Span< float2 > | points, |
| const float | radius_min, | ||
| const float | radius_max, | ||
| const int | samples_max, | ||
| const float | angle_threshold, | ||
| IndexMaskMemory & | memory ) |
Definition at line 140 of file grease_pencil_geom.cc.
References blender::BLI_assert(), blender::Span< T >::data(), blender::bke::subdiv::free(), blender::IndexMask::from_indices(), blender::IndexMask::IndexMask(), blender::Span< T >::is_empty(), polyline_detect_corners(), blender::Span< T >::size(), and blender::VecBase< float, 2 >::type_length.
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::active_smoothing(), and polyline_detect_corners().
| Array< float2 > blender::ed::greasepencil::polyline_fit_curve | ( | Span< float2 > | points, |
| const float | error_threshold, | ||
| const IndexMask & | corner_mask ) |
Definition at line 89 of file grease_pencil_geom.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::Array(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Array< T, InlineBufferCapacity, Allocator >::data(), blender::Span< T >::data(), blender::math::distance(), blender::IndexRange::drop_front(), blender::e, blender::bke::subdiv::free(), blender::Span< T >::index_range(), blender::index_mask::IndexMask::is_empty(), blender::Span< T >::is_empty(), blender::nullptr, polyline_fit_curve(), blender::Array< T, InlineBufferCapacity, Allocator >::size(), blender::index_mask::IndexMask::size(), blender::Span< T >::size(), and blender::index_mask::IndexMask::to_indices().
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::active_smoothing(), and polyline_fit_curve().
|
static |
Definition at line 317 of file grease_pencil_primitive.cc.
References A, Arc, B, Box, C, Circle, control_point_center, control_point_first, control_points_per_segment(), cosf, Curve, blender::D(), blender::IndexRange::drop_back(), blender::MutableSpan< T >::fill(), float, blender::MutableSpan< T >::index_range(), blender::IndexRange::IndexRange(), blender::math::interpolate(), blender::MutableSpan< T >::last(), blender::Span< T >::last(), Line, blender::math::mod(), Polyline, primitive_calculate_curve_positions(), blender::ed::greasepencil::PrimitiveToolOperation::segments, sinf, blender::MutableSpan< T >::size(), blender::ed::greasepencil::PrimitiveToolOperation::subdivision, and blender::ed::greasepencil::PrimitiveToolOperation::type.
Referenced by primitive_calculate_curve_positions(), and primitive_calculate_curve_positions_2d().
|
static |
Definition at line 428 of file grease_pencil_primitive.cc.
References blender::ed::greasepencil::PrimitiveToolOperation::control_points, primitive_calculate_curve_positions(), primitive_calculate_curve_positions_2d(), and primitive_local_to_screen().
Referenced by grease_pencil_primitive_update_curves(), and primitive_calculate_curve_positions_2d().
|
static |
Definition at line 1047 of file grease_pencil_primitive.cc.
References Box, Circle, control_point_center, blender::ed::greasepencil::PrimitiveToolOperation::control_points, ELEM, primitive_center_of_mass(), primitive_local_to_screen(), blender::ed::greasepencil::PrimitiveToolOperation::temp_control_points, and blender::ed::greasepencil::PrimitiveToolOperation::type.
Referenced by grease_pencil_primitive_rotate_all_update(), grease_pencil_primitive_scale_all_update(), and primitive_center_of_mass().
|
static |
Definition at line 1167 of file grease_pencil_primitive.cc.
References blender::ed::greasepencil::PrimitiveToolOperation::control_points, blender::math::distance_squared(), distance_squared(), get_control_point_type(), HandlePoint, blender::wmEvent::mval, primitive_check_ui_hover(), primitive_local_to_screen(), ui_point_hit_size_px, and ui_point_max_hit_size_px.
Referenced by grease_pencil_primitive_cursor_update(), grease_pencil_primitive_mouse_event(), and primitive_check_ui_hover().
|
static |
Definition at line 422 of file grease_pencil_primitive.cc.
References blender::ED_view3d_project_float_v2_m4(), blender::ed::greasepencil::PrimitiveToolOperation::local_transform, primitive_local_to_screen(), blender::ed::greasepencil::PrimitiveToolOperation::projection, blender::ViewContext::region, blender::math::transform_point(), and blender::ed::greasepencil::PrimitiveToolOperation::vc.
Referenced by grease_pencil_primitive_drag_all_update(), grease_pencil_primitive_drag_update(), grease_pencil_primitive_event_modal_map(), grease_pencil_primitive_grab_update(), grease_pencil_primitive_mouse_event(), grease_pencil_primitive_rotate_all_update(), grease_pencil_primitive_scale_all_update(), primitive_calculate_curve_positions_2d(), primitive_center_of_mass(), primitive_check_ui_hover(), and primitive_local_to_screen().
|
static |
Definition at line 606 of file fill.cc.
References blender::ed::greasepencil::ImageBufferAccessor::acquire(), BLI_SCOPED_DEFER, BorderContact, boundary_to_curves(), build_fill_boundary(), convert_colors_to_flags(), convert_flags_to_colors(), dilate(), ELEM, erode(), flood_fill(), invert(), invert_fill(), mark_borders(), process_image(), blender::ed::greasepencil::ImageBufferAccessor::release(), and Success.
Referenced by pixel_fill_strokes(), and process_image().
| float blender::ed::greasepencil::radius_from_input_sample | ( | const RegionView3D * | rv3d, |
| const ARegion * | region, | ||
| const Paint & | paint, | ||
| const Brush * | brush, | ||
| const float | pressure, | ||
| const float3 & | location, | ||
| const float4x4 & | to_world, | ||
| const BrushGpencilSettings * | settings ) |
Definition at line 1648 of file grease_pencil_utils.cc.
References blender::BKE_brush_use_size_pressure(), blender::BKE_curvemapping_evaluateF(), brush_radius_at_location(), blender::BrushGpencilSettings::curve_sensitivity, and radius_from_input_sample().
Referenced by grease_pencil_primitive_update_curves(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_extension_sample(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_start_sample(), radius_from_input_sample(), and blender::ed::sculpt_paint::set_fill_attributes().
| int64_t blender::ed::greasepencil::ramer_douglas_peucker_simplify | ( | IndexRange | range, |
| float | epsilon, | ||
| FunctionRef< float(int64_t, int64_t, int64_t)> | dist_function, | ||
| MutableSpan< bool > | points_to_delete ) |
An implementation of the Ramer-Douglas-Peucker algorithm.
| range | The range to simplify. |
| epsilon | The threshold distance from the coord between two points for when a point in-between needs to be kept. |
| dist_function | A function that computes the distance to a point at an index in the range. The IndexRange is a subrange of range and the index is an index relative to the subrange. |
| points_to_delete | Writes true to the indices for which the points should be removed. |
Definition at line 44 of file grease_pencil_geom.cc.
References blender::IndexRange::drop_back(), blender::IndexRange::drop_front(), blender::MutableSpan< T >::fill(), blender::IndexRange::first(), blender::Stack< T, InlineBufferCapacity, Allocator >::is_empty(), blender::IndexRange::last(), blender::Stack< T, InlineBufferCapacity, Allocator >::pop(), blender::Stack< T, InlineBufferCapacity, Allocator >::push(), ramer_douglas_peucker_simplify(), blender::IndexRange::size(), blender::IndexRange::slice(), and blender::MutableSpan< T >::slice().
Referenced by blender::ed::sculpt_paint::greasepencil::EraseOperationExecutor::compute_piecewise_linear_falloff(), ramer_douglas_peucker_simplify(), and blender::ed::sculpt_paint::greasepencil::simplify_opacities().
| ColorGeometry4f blender::ed::greasepencil::randomize_color | ( | const BrushGpencilSettings & | settings, |
| const std::optional< BrushColorJitterSettings > & | jitter, | ||
| float | stroke_hue_factor, | ||
| float | stroke_saturation_factor, | ||
| float | stroke_value_factor, | ||
| float | distance, | ||
| ColorGeometry4f | color, | ||
| float | pressure ) |
Calculate a randomized opacity value for a point.
| stroke_hue_factor | Random seed value in [-1, 1] per stroke for color hue. |
| stroke_saturation_factor | Random seed value in [-1, 1] per stroke for color saturation. |
| stroke_value_factor | Random seed value in [-1, 1] per stroke for color value. |
| distance | Screen-space length in pixels along the curve. |
| color | Base color to be randomized. |
| pressure | Pressure factor. |
Definition at line 132 of file grease_pencil_randomize.cc.
References blender::BKE_paint_randomize_color(), distance(), blender::BrushGpencilSettings::flag, blender::GP_BRUSH_GROUP_RANDOM, and randomize_color().
Referenced by grease_pencil_primitive_update_curves(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_extension_sample(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_start_sample(), and randomize_color().
| float blender::ed::greasepencil::randomize_opacity | ( | const BrushGpencilSettings & | settings, |
| float | stroke_factor, | ||
| float | distance, | ||
| float | opacity, | ||
| float | pressure ) |
Calculate a randomized opacity value for a point.
| stroke_factor | Random seed value in [-1, 1] per stroke. |
| distance | Screen-space length in pixels along the curve. |
| opacity | Base opacity to be randomized. |
| pressure | Pressure factor. |
Definition at line 51 of file grease_pencil_randomize.cc.
References blender::BKE_curvemapping_evaluateF(), blender::math::clamp(), blender::BrushGpencilSettings::curve_rand_strength, distance(), blender::BrushGpencilSettings::draw_random_strength, blender::BrushGpencilSettings::flag, blender::BrushGpencilSettings::flag2, blender::GP_BRUSH_GROUP_RANDOM, blender::GP_BRUSH_USE_STRENGTH_AT_STROKE, blender::GP_BRUSH_USE_STRENGTH_RAND_PRESS, blender::math::interpolate(), blender::noise::perlin_signed(), and randomize_opacity().
Referenced by grease_pencil_primitive_update_curves(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_extension_sample(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_start_sample(), and randomize_opacity().
| float blender::ed::greasepencil::randomize_radius | ( | const BrushGpencilSettings & | settings, |
| float | stroke_factor, | ||
| float | distance, | ||
| float | radius, | ||
| float | pressure ) |
Calculate a randomized radius value for a point.
| stroke_factor | Random seed value in [-1, 1] per stroke. |
| distance | Screen-space length in pixels along the curve. |
| radius | Base radius to be randomized. |
| pressure | Pressure factor. |
Definition at line 22 of file grease_pencil_randomize.cc.
References blender::BKE_curvemapping_evaluateF(), blender::BrushGpencilSettings::curve_rand_pressure, distance(), blender::BrushGpencilSettings::draw_random_press, blender::BrushGpencilSettings::flag, blender::BrushGpencilSettings::flag2, blender::GP_BRUSH_GROUP_RANDOM, blender::GP_BRUSH_USE_PRESS_AT_STROKE, blender::GP_BRUSH_USE_PRESSURE_RAND_PRESS, blender::math::interpolate(), blender::math::max(), blender::noise::perlin_signed(), and randomize_radius().
Referenced by grease_pencil_primitive_update_curves(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_extension_sample(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_start_sample(), and randomize_radius().
| float blender::ed::greasepencil::randomize_rotation | ( | const BrushGpencilSettings & | settings, |
| float | stroke_factor, | ||
| float | distance, | ||
| float | pressure ) |
Calculate a randomized rotation for a point.
| stroke_factor | Random seed value in [-1, 1] per stroke. |
| distance | Screen-space length in pixels along the curve. |
| pressure | Pressure factor. |
Definition at line 80 of file grease_pencil_randomize.cc.
References blender::BKE_curvemapping_evaluateF(), blender::BrushGpencilSettings::curve_rand_uv, distance(), blender::BrushGpencilSettings::flag, blender::BrushGpencilSettings::flag2, blender::GP_BRUSH_GROUP_RANDOM, blender::GP_BRUSH_USE_UV_AT_STROKE, blender::GP_BRUSH_USE_UV_RAND_PRESS, blender::math::interpolate(), blender::noise::perlin_signed(), randomize_rotation(), and blender::BrushGpencilSettings::uv_random.
Referenced by grease_pencil_primitive_update_curves(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_extension_sample(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_start_sample(), randomize_rotation(), and randomize_rotation().
| float blender::ed::greasepencil::randomize_rotation | ( | const BrushGpencilSettings & | settings, |
| RandomNumberGenerator & | rng, | ||
| float | stroke_factor, | ||
| float | pressure ) |
Calculate a randomized rotation for a point.
| rng | Random number generator instance. |
| stroke_factor | Random seed value in [-1, 1] per stroke. |
| pressure | Pressure factor. |
Definition at line 107 of file grease_pencil_randomize.cc.
References blender::BKE_curvemapping_evaluateF(), blender::BrushGpencilSettings::curve_rand_uv, blender::BrushGpencilSettings::flag, blender::BrushGpencilSettings::flag2, blender::RandomNumberGenerator::get_float(), blender::GP_BRUSH_GROUP_RANDOM, blender::GP_BRUSH_USE_UV_AT_STROKE, blender::GP_BRUSH_USE_UV_RAND_PRESS, blender::math::interpolate(), randomize_rotation(), and blender::BrushGpencilSettings::uv_random.
|
static |
Definition at line 5647 of file grease_pencil_edit.cc.
References blender::bke::Curve, blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::threading::parallel_for(), remap_material_indices(), and blender::bke::greasepencil::Drawing::strokes_for_write().
Referenced by blender::ED_grease_pencil_join_objects_exec(), join_object_with_active(), and remap_material_indices().
|
static |
Definition at line 5676 of file grease_pencil_edit.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup(), remap_vertex_groups(), STRNCPY_UTF8, blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::CurvesGeometry::vertex_group_names.
Referenced by join_object_with_active(), and remap_vertex_groups().
| bool blender::ed::greasepencil::remove_all_selected_frames | ( | GreasePencil & | grease_pencil, |
| bke::greasepencil::Layer & | layer ) |
Definition at line 192 of file grease_pencil_frames.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), layer, and remove_all_selected_frames().
Referenced by blender::delete_action_keys(), and remove_all_selected_frames().
|
static |
Definition at line 452 of file grease_pencil_edit.cc.
References BLI_assert_unreachable, blender::bke::Curve, blender::IndexMask::from_predicate(), blender::index_mask::IndexMask::is_empty(), blender::bke::AttributeAccessor::lookup_or_default(), OnlyFills, OnlyStrokes, remove_curves_based_on_mode(), retrieve_editable_and_selected_strokes(), blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::bke::greasepencil::Drawing::tag_topology_changed().
Referenced by grease_pencil_delete_exec(), and remove_curves_based_on_mode().
| bool blender::ed::greasepencil::remove_fill_guides | ( | bke::CurvesGeometry & | curves | ) |
Remove all the strokes that are marked as fill guides.
Definition at line 2171 of file grease_pencil_utils.cc.
References blender::bke::Curve, blender::IndexMask::from_bools(), blender::bke::AttributeAccessor::lookup(), and remove_fill_guides().
Referenced by blender::ed::sculpt_paint::grease_pencil_apply_fill(), grease_pencil_remove_fill_guides_exec(), and remove_fill_guides().
|
static |
Definition at line 493 of file grease_pencil_edit.cc.
References blender::bke::AttributeAccessor::contains(), blender::bke::Curve, blender::bke::SpanAttributeWriter< T >::finish(), blender::IndexMask::from_predicate(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::bke::AttributeAccessor::lookup_or_default(), blender::index_mask::masked_fill(), OnlyFills, OnlyStrokes, remove_stroke_or_fill_based_on_mode(), retrieve_editable_and_selected_strokes(), blender::bke::SpanAttributeWriter< T >::span, blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::bke::greasepencil::Drawing::tag_fills_changed().
Referenced by grease_pencil_delete_exec(), and remove_stroke_or_fill_based_on_mode().
|
static |
Definition at line 894 of file fill.cc.
References attr_material_index, blender::bke::CurvesGeometry::attributes(), blender::BLI_assert(), BLI_SCOPED_DEFER, blender::ViewContext::bmain, blender::ed::greasepencil::image_render::clear_projection_matrix(), blender::ed::greasepencil::image_render::compute_view_matrices(), blender::bke::Curve, blender::data, draw_boundary_color, blender::ed::greasepencil::image_render::draw_dot(), blender::ed::greasepencil::image_render::draw_grease_pencil_strokes(), blender::ed::greasepencil::image_render::draw_lines(), draw_seed_color, blender::VArray< T >::from_single(), get_stroke_colors(), get_visible_boundary_strokes(), blender::GP_FILL_DMODE_CONTROL, blender::GPU_blend(), blender::GPU_BLEND_ALPHA, blender::GPU_BLEND_NONE, blender::GPU_depth_mask(), blender::ed::greasepencil::image_render::image_render_begin(), blender::ed::greasepencil::image_render::image_render_end(), blender::IndexRange::is_empty(), layer, blender::ed::greasepencil::ExtensionData::lines, blender::bke::AttributeAccessor::lookup_or_default(), blender::OB_GREASE_PENCIL, blender::ViewContext::obact, blender::ed::greasepencil::DrawingPlacement::project(), blender::ViewContext::region, blender::ed::greasepencil::image_render::region_init(), blender::ed::greasepencil::image_render::region_reset(), render_strokes(), blender::ViewContext::rv3d, blender::ed::greasepencil::image_render::set_projection_matrix(), blender::IndexRange::size(), and blender::RegionView3D::viewmat.
Referenced by pixel_fill_strokes(), and render_strokes().
| void blender::ed::greasepencil::resize_single_curve | ( | bke::CurvesGeometry & | curves, |
| bool | at_end, | ||
| int | new_points_num ) |
Resize the first or last curve to new_points_num number of points.
Definition at line 1888 of file grease_pencil_utils.cc.
References blender::BLI_assert(), blender::bke::AttributeIter::domain, blender::bke::GSpanAttributeWriter::finish(), blender::bke::AttributeAccessor::foreach_attribute(), blender::MutableSpan< T >::last(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::bke::AttributeIter::name, blender::bke::Point, resize_single_curve(), blender::bke::attribute_math::shift_left(), blender::bke::attribute_math::shift_right(), blender::bke::Single, blender::GMutableSpan::size(), blender::offset_indices::OffsetIndices< T >::size(), blender::bke::GSpanAttributeWriter::span, and blender::bke::AttributeIter::storage_type.
Referenced by grease_pencil_primitive_update_curves(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_extension_sample(), and resize_single_curve().
| IndexMask blender::ed::greasepencil::retrieve_editable_and_all_selected_points | ( | Object & | object, |
| const bke::greasepencil::Drawing & | drawing, | ||
| const int | layer_index, | ||
| const eHandleDisplay | handle_display, | ||
| IndexMaskMemory & | memory ) |
Definition at line 1385 of file grease_pencil_utils.cc.
References blender::IndexMask::from_intersection(), blender::ed::curves::retrieve_all_selected_points(), retrieve_editable_and_all_selected_points(), retrieve_editable_points(), and blender::bke::greasepencil::Drawing::strokes().
Referenced by blender::ed::greasepencil::GreasePencilPenToolOperation::all_selected_points(), grease_pencil_dissolve_exec(), grease_pencil_duplicate_exec(), blender::draw::grease_pencil_edit_batch_ensure(), grease_pencil_extrude_exec(), grease_pencil_set_corner_type_exec(), insert_selected_values(), and retrieve_editable_and_all_selected_points().
| IndexMask blender::ed::greasepencil::retrieve_editable_and_selected_elements | ( | Object & | object, |
| const bke::greasepencil::Drawing & | drawing, | ||
| int | layer_index, | ||
| const bke::AttrDomain | selection_domain, | ||
| IndexMaskMemory & | memory ) |
Definition at line 1368 of file grease_pencil_utils.cc.
References blender::bke::Curve, blender::bke::Point, retrieve_editable_and_selected_elements(), retrieve_editable_and_selected_points(), and retrieve_editable_and_selected_strokes().
Referenced by grease_pencil_delete_exec(), grease_pencil_reproject_exec(), and retrieve_editable_and_selected_elements().
| IndexMask blender::ed::greasepencil::retrieve_editable_and_selected_fill_strokes | ( | Object & | object, |
| const bke::greasepencil::Drawing & | drawing, | ||
| int | layer_index, | ||
| IndexMaskMemory & | memory ) |
Definition at line 1341 of file grease_pencil_utils.cc.
References blender::IndexMask::from_intersection(), retrieve_editable_and_selected_fill_strokes(), retrieve_editable_fill_strokes(), blender::ed::curves::retrieve_selected_curves(), and blender::bke::greasepencil::Drawing::strokes().
Referenced by retrieve_editable_and_selected_fill_strokes().
| IndexMask blender::ed::greasepencil::retrieve_editable_and_selected_points | ( | Object & | object, |
| const bke::greasepencil::Drawing & | drawing, | ||
| int | layer_index, | ||
| IndexMaskMemory & | memory ) |
Definition at line 1355 of file grease_pencil_utils.cc.
References blender::IndexMask::from_intersection(), retrieve_editable_and_selected_points(), retrieve_editable_points(), blender::ed::curves::retrieve_selected_points(), and blender::bke::greasepencil::Drawing::strokes().
Referenced by apply_color_operation_for_mode(), blender::ED_view3d_minmax_verts(), blender::draw::grease_pencil_edit_batch_ensure(), grease_pencil_set_start_point_exec(), grease_pencil_stroke_merge_by_distance_exec(), grease_pencil_stroke_split_exec(), blender::ed::sculpt_paint::greasepencil::point_mask_for_stroke_operation(), retrieve_editable_and_selected_elements(), and retrieve_editable_and_selected_points().
| IndexMask blender::ed::greasepencil::retrieve_editable_and_selected_strokes | ( | Object & | object, |
| const bke::greasepencil::Drawing & | drawing, | ||
| int | layer_index, | ||
| IndexMaskMemory & | memory ) |
Definition at line 1327 of file grease_pencil_utils.cc.
References blender::IndexMask::from_intersection(), retrieve_editable_and_selected_strokes(), retrieve_editable_strokes(), blender::ed::curves::retrieve_selected_curves(), and blender::bke::greasepencil::Drawing::strokes().
Referenced by apply_color_operation_for_mode(), blender::ed::sculpt_paint::greasepencil::curve_mask_for_stroke_operation(), blender::ed::sculpt_paint::greasepencil::fill_mask_for_stroke_operation(), gpencil_stroke_subdivide_exec(), grease_pencil_caps_set_exec(), grease_pencil_convert_curve_type_exec(), grease_pencil_cyclical_set_exec(), grease_pencil_duplicate_exec(), blender::draw::grease_pencil_edit_batch_ensure(), blender::draw::grease_pencil_get_editable_selected_nurbs_curves(), grease_pencil_join_fills_exec(), grease_pencil_material_lock_unselected_exec(), grease_pencil_outline_exec(), grease_pencil_reset_uvs_exec(), grease_pencil_separate_fills_exec(), grease_pencil_set_active_material_exec(), grease_pencil_set_curve_resolution_exec(), grease_pencil_set_curve_type_exec(), grease_pencil_set_stroke_type_exec(), grease_pencil_set_uniform_opacity_exec(), grease_pencil_set_uniform_thickness_exec(), grease_pencil_stroke_material_set_exec(), grease_pencil_stroke_reorder_exec(), grease_pencil_stroke_simplify_exec(), grease_pencil_stroke_smooth_exec(), grease_pencil_stroke_switch_direction_exec(), grease_pencil_texture_gradient_exec(), insert_selected_values(), remove_curves_based_on_mode(), remove_stroke_or_fill_based_on_mode(), retrieve_editable_and_selected_elements(), retrieve_editable_and_selected_strokes(), and select_fill_exec().
| Vector< MutableDrawingInfo > blender::ed::greasepencil::retrieve_editable_drawings | ( | const Scene & | scene, |
| GreasePencil & | grease_pencil ) |
Definition at line 682 of file grease_pencil_utils.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::RenderData::cfra, get_editable_frames_for_layer(), blender::GP_USE_MULTI_FRAME_EDITING, blender::ToolSettings::gpencil_flags, blender::Span< T >::index_range(), layer, blender::Scene::r, retrieve_editable_drawings(), and blender::Scene::toolsettings.
Referenced by add_armature_automatic_weights(), add_armature_envelope_weights(), blender::ed_grease_pencil_select_pick(), blender::ED_view3d_minmax_verts(), blender::ed::transform::gizmo_3d_foreach_selected(), gpencil_stroke_subdivide_exec(), grease_pencil_caps_set_exec(), grease_pencil_clean_loose_exec(), grease_pencil_convert_curve_type_exec(), grease_pencil_copy_strokes_exec(), grease_pencil_cyclical_set_exec(), grease_pencil_delete_exec(), grease_pencil_dissolve_exec(), grease_pencil_duplicate_exec(), blender::ed::sculpt_paint::grease_pencil_erase_box_exec(), blender::ed::sculpt_paint::grease_pencil_erase_lasso_exec(), grease_pencil_extrude_exec(), grease_pencil_join_fills_exec(), grease_pencil_material_lock_unselected_exec(), grease_pencil_material_select_exec(), grease_pencil_move_to_layer_exec(), grease_pencil_outline_exec(), grease_pencil_paste_strokes_exec(), grease_pencil_reproject_exec(), grease_pencil_reset_uvs_exec(), grease_pencil_select_by_stroke_type_exec(), grease_pencil_separate_exec(), grease_pencil_separate_fills_exec(), grease_pencil_separate_material(), grease_pencil_separate_selected(), grease_pencil_set_active_material_exec(), grease_pencil_set_corner_type_exec(), grease_pencil_set_curve_resolution_exec(), grease_pencil_set_curve_type_exec(), grease_pencil_set_handle_type_exec(), grease_pencil_set_start_point_exec(), grease_pencil_set_stroke_type_exec(), grease_pencil_set_uniform_opacity_exec(), grease_pencil_set_uniform_thickness_exec(), grease_pencil_snap_to_cursor_exec(), grease_pencil_snap_to_grid_exec(), grease_pencil_stroke_material_set_exec(), grease_pencil_stroke_merge_by_distance_exec(), grease_pencil_stroke_reorder_exec(), grease_pencil_stroke_simplify_exec(), grease_pencil_stroke_smooth_exec(), grease_pencil_stroke_split_exec(), grease_pencil_stroke_switch_direction_exec(), grease_pencil_texture_gradient_exec(), grease_pencil_vertex_paint_brightness_contrast_exec(), grease_pencil_vertex_paint_hsv_exec(), grease_pencil_vertex_paint_invert_exec(), grease_pencil_vertex_paint_levels_exec(), grease_pencil_vertex_paint_reset_exec(), grease_pencil_vertex_paint_set_exec(), blender::ed::sculpt_paint::grease_pencil_weight_brush_stroke_invoke(), grease_pencil_weight_invert_exec(), blender::ed::greasepencil::GreasePencilPenToolOperation::initialize(), blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::TintOperation::on_stroke_begin(), retrieve_editable_drawings(), select_all_exec(), select_alternate_exec(), select_fill_exec(), select_linked_exec(), select_similar_by_layer(), select_similar_by_value(), stroke_trim_execute(), vertex_group_normalize_all_exec(), and vertex_group_smooth_exec().
| Vector< MutableDrawingInfo > blender::ed::greasepencil::retrieve_editable_drawings_from_layer | ( | const Scene & | scene, |
| GreasePencil & | grease_pencil, | ||
| const bke::greasepencil::Layer & | layer ) |
Definition at line 831 of file grease_pencil_utils.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::RenderData::cfra, get_editable_frames_for_layer(), blender::GP_USE_MULTI_FRAME_EDITING, blender::ToolSettings::gpencil_flags, layer, blender::Scene::r, retrieve_editable_drawings_from_layer(), and blender::Scene::toolsettings.
Referenced by grease_pencil_paste_strokes_exec(), grease_pencil_separate_layer(), blender::ed::sculpt_paint::greasepencil::TintOperation::on_stroke_begin(), retrieve_editable_drawings_from_layer(), and stroke_trim_execute().
| Vector< MutableDrawingInfo > blender::ed::greasepencil::retrieve_editable_drawings_from_layer_with_falloff | ( | const Scene & | scene, |
| GreasePencil & | grease_pencil, | ||
| const bke::greasepencil::Layer & | layer ) |
Definition at line 853 of file grease_pencil_utils.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::BKE_curvemapping_init(), blender::RenderData::cfra, blender::GP_Sculpt_Settings::cur_falloff, blender::GP_Sculpt_Settings::flag, get_active_frame_for_falloff(), get_editable_frames_for_layer(), get_frame_falloff(), get_selected_frame_number_bounds(), blender::ToolSettings::gp_sculpt, blender::GP_SCULPT_SETT_FLAG_FRAME_FALLOFF, blender::GP_USE_MULTI_FRAME_EDITING, blender::ToolSettings::gpencil_flags, layer, blender::Scene::r, retrieve_editable_drawings_from_layer_with_falloff(), and blender::Scene::toolsettings.
Referenced by blender::ed::sculpt_paint::greasepencil::get_drawings_with_masking_for_stroke_operation(), and retrieve_editable_drawings_from_layer_with_falloff().
| Array< Vector< MutableDrawingInfo > > blender::ed::greasepencil::retrieve_editable_drawings_grouped_per_frame | ( | const Scene & | scene, |
| GreasePencil & | grease_pencil ) |
Definition at line 751 of file grease_pencil_utils.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::BKE_curvemapping_init(), blender::RenderData::cfra, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::GP_Sculpt_Settings::cur_falloff, blender::GP_Sculpt_Settings::flag, get_active_frame_for_falloff(), get_frame_falloff(), get_selected_frame_number_bounds(), blender::ToolSettings::gp_sculpt, blender::GP_SCULPT_SETT_FLAG_FRAME_FALLOFF, blender::GP_USE_MULTI_FRAME_EDITING, blender::ToolSettings::gpencil_flags, blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_of(), blender::Span< T >::index_range(), layer, blender::Scene::r, retrieve_editable_drawings_grouped_per_frame(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), and blender::Scene::toolsettings.
Referenced by grease_pencil_reproject_exec(), blender::ed::sculpt_paint::greasepencil::AverageWeightPaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::BlurWeightPaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::DrawWeightPaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::SmearWeightPaintOperation::on_stroke_begin(), retrieve_editable_drawings_grouped_per_frame(), selection_update(), and vertex_group_normalize_exec().
| Vector< MutableDrawingInfo > blender::ed::greasepencil::retrieve_editable_drawings_with_falloff | ( | const Scene & | scene, |
| GreasePencil & | grease_pencil ) |
Definition at line 710 of file grease_pencil_utils.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::BKE_curvemapping_init(), blender::RenderData::cfra, blender::GP_Sculpt_Settings::cur_falloff, blender::GP_Sculpt_Settings::flag, get_active_frame_for_falloff(), get_editable_frames_for_layer(), get_frame_falloff(), get_selected_frame_number_bounds(), blender::ToolSettings::gp_sculpt, blender::GP_SCULPT_SETT_FLAG_FRAME_FALLOFF, blender::GP_USE_MULTI_FRAME_EDITING, blender::ToolSettings::gpencil_flags, blender::Span< T >::index_range(), layer, blender::Scene::r, retrieve_editable_drawings_with_falloff(), and blender::Scene::toolsettings.
Referenced by blender::ed::transform::greasepencil::createTransGreasePencilVerts(), blender::ed::sculpt_paint::greasepencil::get_drawings_for_stroke_operation(), blender::ed::sculpt_paint::greasepencil::get_drawings_with_masking_for_stroke_operation(), and retrieve_editable_drawings_with_falloff().
| IndexMask blender::ed::greasepencil::retrieve_editable_elements | ( | Object & | object, |
| const MutableDrawingInfo & | info, | ||
| const bke::AttrDomain | selection_domain, | ||
| IndexMaskMemory & | memory ) |
Definition at line 1093 of file grease_pencil_utils.cc.
References blender::bke::Curve, blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ed::greasepencil::MutableDrawingInfo::layer_index, blender::bke::Point, retrieve_editable_elements(), retrieve_editable_points(), and retrieve_editable_strokes().
Referenced by blender::ed_grease_pencil_select_pick(), retrieve_editable_elements(), select_all_exec(), select_random_exec(), select_similar_by_layer(), select_similar_by_value(), and selection_update().
| IndexMask blender::ed::greasepencil::retrieve_editable_fill_strokes | ( | Object & | object, |
| const bke::greasepencil::Drawing & | drawing, | ||
| int | layer_index, | ||
| IndexMaskMemory & | memory ) |
Definition at line 993 of file grease_pencil_utils.cc.
References blender::bke::Curve, blender::IndexMask::from_intersection(), blender::IndexMask::from_predicate(), blender::index_mask::IndexMask::is_empty(), blender::bke::AttributeAccessor::lookup_or_default(), retrieve_editable_fill_strokes(), retrieve_editable_strokes(), and blender::bke::greasepencil::Drawing::strokes().
Referenced by retrieve_editable_and_selected_fill_strokes(), and retrieve_editable_fill_strokes().
| IndexMask blender::ed::greasepencil::retrieve_editable_points | ( | Object & | object, |
| const bke::greasepencil::Drawing & | drawing, | ||
| int | layer_index, | ||
| IndexMaskMemory & | memory ) |
Definition at line 1050 of file grease_pencil_utils.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::data, blender::IndexMask::from_predicate(), get_locked_material_indices(), blender::IndexMask::IndexMask(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::is_empty(), layer, blender::bke::AttributeAccessor::lookup_or_default(), blender::bke::Point, retrieve_editable_points(), and blender::bke::greasepencil::Drawing::strokes().
Referenced by apply_color_operation_for_mode(), blender::ed::transform::greasepencil::createTransGreasePencilVerts(), blender::ed::transform::gizmo_3d_foreach_selected(), grease_pencil_reproject_exec(), grease_pencil_stroke_merge_by_distance_exec(), blender::ed::sculpt_paint::greasepencil::point_mask_for_stroke_operation(), retrieve_editable_and_all_selected_points(), retrieve_editable_and_selected_points(), retrieve_editable_elements(), retrieve_editable_points(), and retrieve_visible_bezier_handle_points().
| IndexMask blender::ed::greasepencil::retrieve_editable_strokes | ( | Object & | object, |
| const bke::greasepencil::Drawing & | drawing, | ||
| int | layer_index, | ||
| IndexMaskMemory & | memory ) |
Definition at line 951 of file grease_pencil_utils.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::bke::Curve, blender::data, blender::IndexMask::from_predicate(), get_locked_material_indices(), blender::IndexMask::IndexMask(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::is_empty(), layer, blender::bke::AttributeAccessor::lookup_or_default(), retrieve_editable_strokes(), and blender::bke::greasepencil::Drawing::strokes().
Referenced by apply_color_operation_for_mode(), blender::ed::transform::greasepencil::createTransGreasePencilVerts(), blender::ed::sculpt_paint::greasepencil::curve_mask_for_stroke_operation(), blender::ed::greasepencil::GreasePencilPenToolOperation::editable_curves(), grease_pencil_clean_loose_exec(), blender::draw::grease_pencil_get_editable_non_nurbs_curves(), blender::draw::grease_pencil_get_visible_nurbs_curves(), grease_pencil_select_by_stroke_type_exec(), grease_pencil_separate_layer(), grease_pencil_set_handle_type_exec(), blender::draw::grease_pencil_weight_batch_ensure(), retrieve_editable_and_selected_strokes(), retrieve_editable_elements(), retrieve_editable_fill_strokes(), retrieve_editable_strokes(), select_ends_exec(), select_fill_exec(), and select_linked_exec().
| IndexMask blender::ed::greasepencil::retrieve_editable_strokes_by_material | ( | Object & | object, |
| const bke::greasepencil::Drawing & | drawing, | ||
| const int | mat_i, | ||
| IndexMaskMemory & | memory ) |
Definition at line 1018 of file grease_pencil_utils.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::bke::Curve, blender::IndexMask::from_predicate(), get_locked_material_indices(), blender::bke::AttributeAccessor::lookup_or_default(), retrieve_editable_strokes_by_material(), and blender::bke::greasepencil::Drawing::strokes().
Referenced by grease_pencil_material_select_exec(), grease_pencil_separate_material(), and retrieve_editable_strokes_by_material().
| IndexMask blender::ed::greasepencil::retrieve_visible_bezier_handle_elements | ( | Object & | object, |
| const bke::greasepencil::Drawing & | drawing, | ||
| const int | layer_index, | ||
| const bke::AttrDomain | selection_domain, | ||
| const eHandleDisplay | handle_display, | ||
| IndexMaskMemory & | memory ) |
Definition at line 1309 of file grease_pencil_utils.cc.
References blender::bke::Curve, blender::CURVE_HANDLE_NONE, blender::bke::Point, retrieve_visible_bezier_handle_elements(), retrieve_visible_bezier_handle_points(), and retrieve_visible_bezier_handle_strokes().
Referenced by blender::do_grease_pencil_box_select(), blender::do_lasso_select_grease_pencil(), blender::ed_grease_pencil_select_pick(), blender::grease_pencil_circle_select(), and retrieve_visible_bezier_handle_elements().
| IndexMask blender::ed::greasepencil::retrieve_visible_bezier_handle_points | ( | Object & | object, |
| const bke::greasepencil::Drawing & | drawing, | ||
| const int | layer_index, | ||
| const eHandleDisplay | handle_display, | ||
| IndexMaskMemory & | memory ) |
Definition at line 1265 of file grease_pencil_utils.cc.
References blender::CURVE_HANDLE_ALL, blender::CURVE_HANDLE_NONE, blender::CURVE_TYPE_BEZIER, blender::IndexMask::from_intersection(), blender::IndexMask::from_predicate(), blender::IndexMask::IndexMask(), blender::bke::Point, retrieve_editable_points(), retrieve_visible_bezier_handle_points(), retrieve_visible_bezier_points(), and blender::bke::greasepencil::Drawing::strokes().
Referenced by blender::draw::grease_pencil_edit_batch_ensure(), retrieve_visible_bezier_handle_elements(), retrieve_visible_bezier_handle_points(), and blender::ed::greasepencil::GreasePencilPenToolOperation::visible_bezier_handle_points().
| IndexMask blender::ed::greasepencil::retrieve_visible_bezier_handle_strokes | ( | Object & | object, |
| const bke::greasepencil::Drawing & | drawing, | ||
| const eHandleDisplay | handle_display, | ||
| IndexMaskMemory & | memory ) |
Definition at line 1209 of file grease_pencil_utils.cc.
References blender::CURVE_HANDLE_ALL, blender::CURVE_HANDLE_NONE, blender::CURVE_TYPE_BEZIER, blender::IndexMask::from_intersection(), blender::IndexMask::IndexMask(), blender::ed::curves::retrieve_selected_curves(), retrieve_visible_bezier_handle_strokes(), retrieve_visible_bezier_strokes(), and blender::bke::greasepencil::Drawing::strokes().
Referenced by retrieve_visible_bezier_handle_elements(), and retrieve_visible_bezier_handle_strokes().
| IndexMask blender::ed::greasepencil::retrieve_visible_bezier_points | ( | Object & | object, |
| const bke::greasepencil::Drawing & | drawing, | ||
| IndexMaskMemory & | memory ) |
Definition at line 1188 of file grease_pencil_utils.cc.
References blender::CURVE_TYPE_BEZIER, blender::IndexMask::from_ranges(), blender::IndexMask::IndexMask(), retrieve_visible_bezier_points(), retrieve_visible_bezier_strokes(), and blender::bke::greasepencil::Drawing::strokes().
Referenced by retrieve_visible_bezier_handle_points(), and retrieve_visible_bezier_points().
| IndexMask blender::ed::greasepencil::retrieve_visible_bezier_strokes | ( | Object & | object, |
| const bke::greasepencil::Drawing & | drawing, | ||
| IndexMaskMemory & | memory ) |
Definition at line 1165 of file grease_pencil_utils.cc.
References blender::CURVE_TYPE_BEZIER, blender::IndexMask::from_intersection(), blender::IndexMask::IndexMask(), blender::bke::curves::indices_for_type(), retrieve_visible_bezier_strokes(), retrieve_visible_strokes(), and blender::bke::greasepencil::Drawing::strokes().
Referenced by retrieve_visible_bezier_handle_strokes(), retrieve_visible_bezier_points(), and retrieve_visible_bezier_strokes().
| Vector< DrawingInfo > blender::ed::greasepencil::retrieve_visible_drawings | ( | const Scene & | scene, |
| const GreasePencil & | grease_pencil, | ||
| const bool | do_onion_skinning ) |
Definition at line 890 of file grease_pencil_utils.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::BKE_scene_ctime_get(), get_visible_frames_for_layer(), blender::GP_USE_MULTI_FRAME_EDITING, blender::ToolSettings::gpencil_flags, blender::Span< T >::index_range(), layer, retrieve_visible_drawings(), and blender::Scene::toolsettings.
Referenced by blender::ed::object::convert_grease_pencil_component_to_curves(), blender::ed::object::convert_grease_pencil_to_mesh(), blender::draw::overlay::GreasePencil::draw_grease_pencil(), blender::draw::grease_pencil_edit_batch_ensure(), blender::ed::sculpt_paint::grease_pencil_fill_extension_cut(), blender::ed::sculpt_paint::grease_pencil_fill_extension_lines_from_circles(), blender::ed::sculpt_paint::grease_pencil_fill_get_extension_data(), blender::ed::sculpt_paint::grease_pencil_fill_overlay_pixel_cb(), blender::draw::grease_pencil_geom_batch_ensure(), grease_pencil_snap_compute_centroid(), blender::draw::grease_pencil_weight_batch_ensure(), blender::draw::grease_pencil_wire_batch_ensure(), retrieve_visible_drawings(), and weight_sample_invoke().
| IndexMask blender::ed::greasepencil::retrieve_visible_fills | ( | Object & | object, |
| const bke::greasepencil::Drawing & | drawing, | ||
| IndexMaskMemory & | memory ) |
Definition at line 1236 of file grease_pencil_utils.cc.
References blender::bke::Curve, blender::bke::greasepencil::Drawing::fills(), blender::IndexMask::from_predicate(), get_hidden_material_indices(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::is_empty(), blender::bke::AttributeAccessor::lookup_or_default(), retrieve_visible_fills(), and blender::bke::greasepencil::Drawing::strokes().
Referenced by blender::draw::grease_pencil_geom_batch_ensure(), and retrieve_visible_fills().
| IndexMask blender::ed::greasepencil::retrieve_visible_points | ( | Object & | object, |
| const bke::greasepencil::Drawing & | drawing, | ||
| IndexMaskMemory & | memory ) |
Definition at line 1133 of file grease_pencil_utils.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::IndexMask::from_predicate(), get_hidden_material_indices(), blender::VArrayCommon< T >::get_if_single(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::is_empty(), blender::bke::AttributeAccessor::lookup_or_default(), blender::bke::Point, blender::bke::CurvesGeometry::points_range(), retrieve_visible_points(), and blender::bke::greasepencil::Drawing::strokes().
Referenced by retrieve_visible_points(), and weight_sample_invoke().
| IndexMask blender::ed::greasepencil::retrieve_visible_strokes | ( | Object & | object, |
| const bke::greasepencil::Drawing & | drawing, | ||
| IndexMaskMemory & | memory ) |
Definition at line 1109 of file grease_pencil_utils.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::bke::Curve, blender::bke::CurvesGeometry::curves_range(), blender::IndexMask::from_predicate(), get_hidden_material_indices(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::is_empty(), blender::bke::AttributeAccessor::lookup_or_default(), retrieve_visible_strokes(), and blender::bke::greasepencil::Drawing::strokes().
Referenced by blender::draw::overlay::GreasePencil::draw_grease_pencil(), blender::draw::grease_pencil_geom_batch_ensure(), blender::draw::grease_pencil_get_visible_non_nurbs_curves(), blender::draw::grease_pencil_wire_batch_ensure(), retrieve_visible_bezier_strokes(), and retrieve_visible_strokes().
|
static |
Definition at line 159 of file grease_pencil_modes.cc.
References C, blender::CTX_data_active_object(), blender::CTX_wm_region_view3d(), blender::Object::mode, blender::OB_MODE_SCULPT_GREASE_PENCIL, and sculpt_poll_view3d().
Referenced by sculpt_poll_view3d(), and sculptmode_toggle_exec().
|
static |
Definition at line 171 of file grease_pencil_modes.cc.
References blender::BKE_paint_brushes_ensure(), blender::BKE_paint_brushes_validate(), blender::BKE_paint_ensure(), blender::BKE_paint_get_active_from_paintmode(), blender::BKE_paint_init(), blender::BLI_assert(), C, blender::CTX_data_active_object(), blender::CTX_data_main(), blender::CTX_data_scene(), blender::CTX_data_tool_settings(), blender::CTX_wm_message_bus(), blender::Object::data, blender::DEG_id_tag_update(), blender::ED_paint_cursor_start(), ensure_selection_domain(), blender::ToolSettings::gp_sculptpaint, blender::Object::id, blender::ID_RECALC_GEOMETRY, blender::ID_RECALC_TRANSFORM, blender::Object::mode, NC_GPENCIL, NC_SCENE, ND_DATA, ND_GPENCIL_EDITMODE, ND_MODE, blender::OB_MODE_OBJECT, blender::OB_MODE_SCULPT_GREASE_PENCIL, blender::OPERATOR_FINISHED, blender::GpSculptPaint::paint, blender::wmOperator::ptr, blender::Object::restore_mode, blender::RNA_boolean_get(), sculpt_poll_view3d(), blender::SculptGPencil, sculptmode_toggle_exec(), blender::WM_event_add_notifier(), WM_msg_publish_rna_prop, and blender::WM_toolsystem_update_from_context_view3d().
Referenced by GREASE_PENCIL_OT_sculptmode_toggle(), and sculptmode_toggle_exec().
|
static |
Definition at line 147 of file grease_pencil_modes.cc.
References C, blender::CTX_data_active_object(), blender::Object::data, ID_IS_EDITABLE, blender::OB_GREASE_PENCIL, sculptmode_toggle_poll(), and blender::Object::type.
Referenced by GREASE_PENCIL_OT_sculptmode_toggle(), and sculptmode_toggle_poll().
|
static |
Definition at line 333 of file grease_pencil_select.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ED_grease_pencil_selection_domain_get(), blender::ed::curves::has_anything_selected(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::wmOperator::ptr, retrieve_editable_drawings(), retrieve_editable_elements(), blender::RNA_enum_get(), blender::SEL_DESELECT, blender::SEL_SELECT, blender::SEL_TOGGLE, blender::ed::curves::select_all(), select_all_exec(), blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::Scene::toolsettings, and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_select_all(), and select_all_exec().
| void blender::ed::greasepencil::select_all_frames | ( | bke::greasepencil::Layer & | layer, |
| const short | select_mode ) |
Definition at line 248 of file grease_pencil_frames.cc.
References layer, select_all_frames(), and select_frame().
Referenced by blender::actkeys_mselect_channel_only(), blender::deselect_action_keys(), and select_all_frames().
|
static |
Definition at line 553 of file grease_pencil_select.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::wmOperator::ptr, retrieve_editable_drawings(), blender::RNA_boolean_get(), blender::ed::curves::select_alternate(), select_alternate_exec(), blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_select_alternate(), and select_alternate_exec().
|
static |
Definition at line 836 of file grease_pencil_select.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_depsgraph_pointer(), blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ED_view3d_viewcontext_init(), blender::ed::curves::end_points(), blender::ID_RECALC_GEOMETRY, blender::ed::greasepencil::MutableDrawingInfo::layer_index, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, retrieve_editable_strokes(), blender::RNA_int_get(), blender::SEL_OP_SET, select_ends_exec(), selection_update(), blender::bke::greasepencil::Drawing::strokes(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_select_ends(), and select_ends_exec().
|
static |
Definition at line 896 of file grease_pencil_select.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), BLI_assert_unreachable, blender::bke::Bool, C, blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::bke::Curve, blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ED_grease_pencil_selection_domain_get(), blender::ed::curves::ensure_selection_attribute(), blender::ed::curves::fill_selection_true(), blender::bke::GSpanAttributeWriter::finish(), blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_predicate(), blender::ed::curves::get_curves_selection_attribute_names(), blender::exec_mode::grain_size(), blender::Span< T >::index_range(), blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, blender::bke::AttributeAccessor::lookup(), blender::threading::parallel_for_each(), blender::bke::Point, retrieve_editable_and_selected_strokes(), retrieve_editable_drawings(), retrieve_editable_strokes(), select_fill_exec(), blender::ed::curves::select_linked(), blender::GMutableSpan::slice(), blender::bke::GSpanAttributeWriter::span, blender::bke::greasepencil::Drawing::strokes_for_write(), blender::index_mask::IndexMask::to_bools(), and blender::Scene::toolsettings.
Referenced by GREASE_PENCIL_OT_select_fill(), and select_fill_exec().
|
static |
Definition at line 204 of file grease_pencil_frames.cc.
References blender::GreasePencilFrame::flag, blender::GP_FRAME_SELECTED, blender::SELECT_ADD, select_frame(), blender::SELECT_INVERT, and blender::SELECT_SUBTRACT.
Referenced by select_all_frames(), select_frame(), select_frame_at(), select_frames_range(), and select_frames_region().
| bool blender::ed::greasepencil::select_frame_at | ( | bke::greasepencil::Layer & | layer, |
| const int | frame_number, | ||
| const short | select_mode ) |
Sets the selection flag, according to selection_mode to the frame at frame_number in the layer if such frame exists. Returns false if no such frame exists.
Definition at line 219 of file grease_pencil_frames.cc.
References layer, select_frame(), and select_frame_at().
Referenced by blender::actkeys_mselect_column(), blender::actkeys_mselect_single(), blender::columnselect_action_keys(), select_frame_at(), and select_frames_at().
| void blender::ed::greasepencil::select_frames_at | ( | bke::greasepencil::LayerGroup & | layer_group, |
| const int | frame_number, | ||
| const short | select_mode ) |
Definition at line 233 of file grease_pencil_frames.cc.
References blender::GreasePencilLayerTreeGroup::children, node, select_frame_at(), and select_frames_at().
Referenced by blender::actkeys_mselect_single(), and select_frames_at().
| void blender::ed::greasepencil::select_frames_range | ( | bke::greasepencil::TreeNode & | node, |
| const float | min, | ||
| const float | max, | ||
| const short | select_mode ) |
Definition at line 301 of file grease_pencil_frames.cc.
References IN_RANGE, max, min, node, select_frame(), and select_frames_range().
Referenced by blender::actkeys_select_leftright(), blender::box_select_elem(), blender::markers_selectkeys_between(), and select_frames_range().
| void blender::ed::greasepencil::select_frames_region | ( | KeyframeEditData * | ked, |
| bke::greasepencil::TreeNode & | node, | ||
| const short | tool, | ||
| const short | select_mode ) |
Definition at line 266 of file grease_pencil_frames.cc.
References blender::BEZT_OK_CHANNEL_CIRCLE, blender::BEZT_OK_CHANNEL_LASSO, blender::KeyframeEditData::channel_y, blender::KeyframeEditData::data, blender::keyframe_region_circle_test(), blender::keyframe_region_lasso_test(), node, select_frame(), and select_frames_region().
Referenced by blender::region_select_elem(), and select_frames_region().
| void blender::ed::greasepencil::select_layer_channel | ( | GreasePencil & | grease_pencil, |
| bke::greasepencil::Layer * | layer ) |
Definition at line 107 of file grease_pencil_layers.cc.
References layer, NA_EDITED, NC_GPENCIL, ND_DATA, select_layer_channel(), and blender::WM_main_add_notifier().
Referenced by blender::mouse_action_keys(), and select_layer_channel().
|
static |
Definition at line 417 of file grease_pencil_select.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_depsgraph_pointer(), blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ED_view3d_viewcontext_init(), blender::ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::SEL_OP_SUB, blender::ed::curves::select_adjacent_mask(), select_less_exec(), selection_update(), blender::bke::greasepencil::Drawing::strokes(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_select_less(), and select_less_exec().
|
static |
Definition at line 453 of file grease_pencil_select.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), blender::wmOperator::ptr, retrieve_editable_drawings(), retrieve_editable_strokes(), blender::RNA_boolean_get(), blender::ed::curves::select_linked(), select_linked_exec(), blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_select_linked(), and select_linked_exec().
|
static |
Definition at line 381 of file grease_pencil_select.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_depsgraph_pointer(), blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ED_view3d_viewcontext_init(), blender::ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::SEL_OP_ADD, blender::ed::curves::select_adjacent_mask(), select_more_exec(), selection_update(), blender::bke::greasepencil::Drawing::strokes(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_select_more(), and select_more_exec().
|
static |
Definition at line 495 of file grease_pencil_select.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_depsgraph_pointer(), blender::CTX_data_scene(), blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ED_grease_pencil_selection_domain_get(), blender::ED_view3d_viewcontext_init(), blender::get_default_hash(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::bke::CurvesGeometry::points_num(), blender::wmOperator::ptr, retrieve_editable_elements(), blender::RNA_float_get(), blender::SEL_OP_SET, select_random_exec(), selection_update(), blender::bke::greasepencil::Drawing::strokes(), blender::Scene::toolsettings, blender::WM_event_add_notifier(), and blender::WM_operator_properties_select_random_seed_increment_get().
Referenced by GREASE_PENCIL_OT_select_random(), and select_random_exec().
|
static |
Definition at line 1090 of file grease_pencil_select.cc.
References blender::BKE_object_is_mode_compat(), C, blender::CTX_data_active_object(), blender::CTX_data_tool_settings(), blender::Object::data, blender::DEG_id_tag_update(), ensure_selection_domain(), blender::ToolSettings::gpencil_selectmode_edit, blender::ToolSettings::gpencil_selectmode_sculpt, blender::ToolSettings::gpencil_selectmode_vertex, blender::ID_RECALC_GEOMETRY, NC_GEOM, NC_SPACE, ND_DATA, ND_SPACE_VIEW3D, blender::OB_MODE_EDIT, blender::OB_MODE_SCULPT_GREASE_PENCIL, blender::OB_MODE_VERTEX_GREASE_PENCIL, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::RNA_enum_get(), select_set_mode_exec(), blender::WM_event_add_notifier(), and blender::WM_main_add_notifier().
Referenced by GREASE_PENCIL_OT_set_selection_mode(), and select_set_mode_exec().
|
static |
Definition at line 713 of file grease_pencil_select.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::blender::Span< T >::index_range(), blender::index_mask::IndexMask::is_empty(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, blender::threading::parallel_for_each(), retrieve_editable_drawings(), retrieve_editable_elements(), blender::SEL_SELECT, blender::ed::curves::select_all(), select_similar_by_layer(), and blender::bke::greasepencil::Drawing::strokes_for_write().
Referenced by select_similar_by_layer(), and select_similar_exec().
|
static |
Definition at line 659 of file grease_pencil_select.cc.
References blender::bke::Bool, blender::CPPType::default_construct(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ed::curves::ensure_selection_attribute(), blender::bke::GSpanAttributeWriter::finish(), blender::index_mask::IndexMask::foreach_index(), blender::CPPType::get(), blender::ed::curves::get_curves_selection_attribute_names(), blender::exec_mode::grain_size(), insert_selected_values(), blender::threading::parallel_for_each(), retrieve_editable_drawings(), retrieve_editable_elements(), select_similar_by_value(), blender::bke::GSpanAttributeWriter::span, blender::bke::greasepencil::Drawing::strokes_for_write(), T, and blender::GMutableSpan::typed().
Referenced by select_similar_by_value(), and select_similar_exec().
|
static |
Definition at line 748 of file grease_pencil_select.cc.
References b, C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::CTX_wm_view3d(), blender::DEG_id_tag_update(), blender::math::distance(), blender::ED_grease_pencil_selection_domain_get(), float, blender::ID_RECALC_GEOMETRY, LAYER, MATERIAL, NC_GEOM, ND_DATA, OPACITY, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, RADIUS, blender::RNA_enum_get(), blender::RNA_float_get(), select_similar_by_layer(), select_similar_by_value(), select_similar_exec(), blender::Scene::toolsettings, VERTEX_COLOR, view3d_handle_type_or_default(), and blender::WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_select_similar(), and select_similar_exec().
| bool blender::ed::greasepencil::selection_update | ( | const ViewContext * | vc, |
| const eSelectOp | sel_op, | ||
| SelectionUpdateFunc | select_operation ) |
Definition at line 234 of file grease_pencil_select.cc.
References apply_mask_as_segment_selection(), apply_mask_as_selection(), BLI_SCOPED_DEFER, build_curves_2d_bvh_from_visible(), blender::ViewContext::C, blender::bke::Curve, blender::DEG_get_evaluated(), blender::DEG_id_tag_update(), blender::ViewContext::depsgraph, blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ed::greasepencil::Curves2DBVHTree::drawing_offsets, blender::ED_grease_pencil_segment_selection_enabled(), blender::ED_grease_pencil_selection_domain_get(), ELEM, blender::ed::curves::fill_selection_false(), free_curves_2d_bvh_data(), blender::ed::curves::get_curves_selection_attribute_names(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), NC_GEOM, ND_DATA, blender::ViewContext::obact, blender::ViewContext::obedit, retrieve_editable_drawings_grouped_per_frame(), retrieve_editable_elements(), blender::ViewContext::scene, blender::SEL_OP_AND, blender::SEL_OP_SET, blender::bke::greasepencil::selected_mask_to_fills(), selection_update(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::Scene::toolsettings, and blender::WM_event_add_notifier().
Referenced by blender::do_grease_pencil_box_select(), blender::do_lasso_select_grease_pencil(), blender::grease_pencil_circle_select(), select_ends_exec(), select_less_exec(), select_more_exec(), select_random_exec(), and selection_update().
|
static |
Definition at line 176 of file fill.cc.
References set_flag().
Referenced by dilate(), erode(), flood_fill(), invert_fill(), mark_borders(), and set_flag().
| void blender::ed::greasepencil::set_lineart_modifier_limits | ( | GreasePencilLineartModifierData & | lmd, |
| const ed::greasepencil::LineartLimitInfo & | info, | ||
| const bool | cache_is_ready ) |
Definition at line 62 of file grease_pencil_lineart.cc.
References blender::BLI_assert(), blender::ed::greasepencil::LineartLimitInfo::edge_types, blender::GreasePencilLineartModifierData::edge_types, blender::GreasePencilLineartModifierData::edge_types_override, blender::eModifierType_GreasePencilLineart, blender::GreasePencilLineartModifierData::flags, blender::GreasePencilLineartModifierData::level_end, blender::GreasePencilLineartModifierData::level_end_override, blender::GreasePencilLineartModifierData::level_start, blender::GreasePencilLineartModifierData::level_start_override, blender::LINEART_GPENCIL_USE_CACHE, blender::ed::greasepencil::LineartLimitInfo::max_level, blender::ed::greasepencil::LineartLimitInfo::min_level, blender::GreasePencilLineartModifierData::modifier, set_lineart_modifier_limits(), blender::ed::greasepencil::LineartLimitInfo::shadow_selection, blender::GreasePencilLineartModifierData::shadow_selection, blender::GreasePencilLineartModifierData::shadow_selection_override, blender::GreasePencilLineartModifierData::shadow_use_silhouette_override, blender::ed::greasepencil::LineartLimitInfo::silhouette_selection, blender::GreasePencilLineartModifierData::silhouette_selection, and blender::ModifierData::type.
Referenced by blender::bake_single_target(), blender::modify_geometry_set(), and set_lineart_modifier_limits().
| void blender::ed::greasepencil::set_selected_frames_type | ( | bke::greasepencil::Layer & | layer, |
| const eBezTriple_KeyframeType | key_type ) |
Definition at line 42 of file grease_pencil_frames.cc.
References layer, and set_selected_frames_type().
Referenced by set_selected_frames_type(), and blender::setkeytype_action_keys().
|
static |
Definition at line 1287 of file grease_pencil_edit.cc.
References blender::array_utils::AllFalse, blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::array_utils::booleans_mix_calc(), blender::threading::parallel_for(), and set_start_point().
Referenced by grease_pencil_set_start_point_exec(), and set_start_point().
|
static |
Definition at line 249 of file grease_pencil_edit.cc.
References blender::index_mask::IndexMask::complement(), blender::IndexMask::from_predicate(), blender::IndexMask::from_ranges(), blender::IndexMask::from_union(), blender::IndexRange::last(), blender::math::pow(), simplify_fixed(), blender::IndexRange::size(), blender::IndexRange::start(), and step.
Referenced by grease_pencil_stroke_simplify_exec(), and simplify_fixed().
Definition at line 941 of file grease_pencil_primitive.cc.
References abs, length(), normalize, sign(), and snap_8_angles().
Referenced by grease_pencil_primitive_extruding_update(), and snap_8_angles().
Definition at line 927 of file grease_pencil_primitive.cc.
References length(), sign(), and snap_diagonals().
Referenced by grease_pencil_primitive_extruding_update(), and snap_diagonals().
Definition at line 934 of file grease_pencil_primitive.cc.
References abs, sign(), and snap_diagonals_box().
Referenced by grease_pencil_primitive_extruding_update(), and snap_diagonals_box().
| bool blender::ed::greasepencil::snap_selected_frames | ( | GreasePencil & | grease_pencil, |
| bke::greasepencil::Layer & | layer, | ||
| Scene & | scene, | ||
| const eEditKeyframes_Snap | mode ) |
Definition at line 73 of file grease_pencil_frames.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), get_snapped_frame_number(), layer, blender::round_fl_to_int(), and snap_selected_frames().
Referenced by blender::snap_action_keys(), and snap_selected_frames().
|
staticconstexpr |
References stroke_opacities().
Referenced by create_stroke(), and stroke_opacities().
|
static |
References stroke_positions().
Referenced by create_stroke(), and stroke_positions().
|
staticconstexpr |
References stroke_radii().
Referenced by create_stroke(), and stroke_radii().
|
static |
Apply the stroke trim to all layers.
Definition at line 477 of file grease_pencil_trim.cc.
References blender::BKE_brush_init_gpencil_settings(), blender::BKE_paint_brush(), blender::BKE_paint_get_active_from_context(), C, blender::CTX_data_active_object(), blender::CTX_data_depsgraph_pointer(), blender::CTX_data_scene(), blender::CTX_wm_region(), blender::CTX_wm_region_view3d(), blender::Object::data, blender::DEG_get_evaluated(), blender::DEG_id_tag_update(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ED_view3d_ob_project_mat_get_from_obmat(), ensure_active_keyframe(), execute_trim_on_drawing(), blender::GP_BRUSH_ACTIVE_LAYER_ONLY, blender::GP_BRUSH_ERASER_KEEP_CAPS, blender::ID_RECALC_GEOMETRY, layer, blender::ed::greasepencil::MutableDrawingInfo::layer_index, NA_EDITED, NC_GEOM, NC_GPENCIL, ND_DATA, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::threading::parallel_for_each(), retrieve_editable_drawings(), retrieve_editable_drawings_from_layer(), stroke_trim_execute(), and blender::WM_event_add_notifier().
Referenced by grease_pencil_stroke_trim_exec(), and stroke_trim_execute().
|
static |
Definition at line 941 of file grease_pencil_edit.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::math::distance(), blender::IndexRange::first(), float, blender::index_mask::IndexMask::foreach_index(), blender::VArray< T >::from_span(), blender::exec_mode::grain_size(), blender::IndexRange::last(), blender::IndexRange::size(), blender::geometry::subdivide_curves(), and subdivide_last_segment().
Referenced by grease_pencil_cyclical_set_exec(), and subdivide_last_segment().
|
static |
Definition at line 1416 of file grease_pencil_edit.cc.
References blender::index_mask::IndexMask::foreach_index(), blender::GP_STROKE_CAP_FLAT, blender::GP_STROKE_CAP_ROUND, and toggle_caps().
Referenced by grease_pencil_caps_set_exec(), and toggle_caps().
|
static |
Definition at line 559 of file grease_pencil_weight_paint.cc.
References blender::BKE_brush_tag_unsaved_changes(), blender::BKE_paint_brush(), blender::BKE_paint_get_active_from_context(), blender::BRUSH_DIR_IN, C, NA_EDITED, NC_BRUSH, blender::OPERATOR_FINISHED, toggle_weight_tool_direction_exec(), and blender::WM_main_add_notifier().
Referenced by GREASE_PENCIL_OT_weight_toggle_direction(), and toggle_weight_tool_direction_exec().
|
static |
Definition at line 574 of file grease_pencil_weight_paint.cc.
References blender::BKE_paint_brush(), blender::BKE_paint_get_active_from_context(), C, blender::GPWEIGHT_BRUSH_TYPE_DRAW, grease_pencil_weight_painting_poll(), and toggle_weight_tool_direction_poll().
Referenced by GREASE_PENCIL_OT_weight_toggle_direction(), and toggle_weight_tool_direction_poll().
|
static |
Definition at line 871 of file grease_pencil_weight_paint.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::BKE_object_defgroup_active_index_get(), blender::BKE_object_defgroup_list(), blender::BLI_findlink(), C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::DG_LOCK_WEIGHT, blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::threading::parallel_for(), blender::wmOperator::ptr, retrieve_editable_drawings(), blender::RNA_boolean_get(), and vertex_group_normalize_all_exec().
Referenced by GREASE_PENCIL_OT_vertex_group_normalize_all(), and vertex_group_normalize_all_exec().
|
static |
Definition at line 756 of file grease_pencil_weight_paint.cc.
References b, blender::BKE_object_defgroup_active_index_get(), blender::BKE_object_defgroup_list(), blender::BKE_report(), blender::BLI_findlink(), C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::DG_LOCK_WEIGHT, ELEM, blender::bDeformGroup::flag, blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::math::max(), blender::OPERATOR_CANCELLED, blender::threading::parallel_for(), blender::threading::parallel_reduce(), blender::wmOperator::reports, retrieve_editable_drawings_grouped_per_frame(), blender::RPT_WARNING, and vertex_group_normalize_exec().
Referenced by GREASE_PENCIL_OT_vertex_group_normalize(), and vertex_group_normalize_exec().
|
static |
Definition at line 683 of file grease_pencil_weight_paint.cc.
References blender::BKE_object_defgroup_active_index_get(), blender::BKE_object_defgroup_list(), blender::BKE_report(), blender::BLI_findlink(), C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::DG_LOCK_WEIGHT, blender::bDeformGroup::flag, blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::OPERATOR_CANCELLED, blender::threading::parallel_for(), blender::wmOperator::ptr, blender::wmOperator::reports, retrieve_editable_drawings(), blender::RNA_float_get(), blender::RNA_int_get(), blender::RPT_WARNING, and vertex_group_smooth_exec().
Referenced by GREASE_PENCIL_OT_vertex_group_smooth(), and vertex_group_smooth_exec().
|
static |
Definition at line 362 of file grease_pencil_modes.cc.
References blender::BKE_grease_pencil_palette_ensure(), blender::BKE_paint_brushes_ensure(), blender::BKE_paint_brushes_validate(), blender::BKE_paint_ensure(), blender::BKE_paint_get_active_from_paintmode(), blender::BLI_assert(), C, blender::CTX_data_active_object(), blender::CTX_data_main(), blender::CTX_data_scene(), blender::CTX_data_tool_settings(), blender::CTX_wm_message_bus(), blender::Object::data, blender::DEG_id_tag_update(), blender::ED_paint_cursor_start(), ensure_selection_domain(), blender::ToolSettings::gp_paint, blender::ToolSettings::gp_vertexpaint, blender::GPencil, grease_pencil_poll_vertex_cursor(), blender::Object::id, blender::ID_RECALC_GEOMETRY, blender::ID_RECALC_TRANSFORM, blender::Object::mode, NC_GPENCIL, NC_SCENE, ND_DATA, ND_GPENCIL_EDITMODE, ND_MODE, blender::OB_MODE_OBJECT, blender::OB_MODE_VERTEX_GREASE_PENCIL, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::Object::restore_mode, blender::RNA_boolean_get(), blender::VertexGPencil, vertexmode_toggle_exec(), blender::WM_event_add_notifier(), WM_msg_publish_rna_prop, and blender::WM_toolsystem_update_from_context_view3d().
Referenced by GREASE_PENCIL_OT_vertexmode_toggle(), and vertexmode_toggle_exec().
|
static |
Definition at line 350 of file grease_pencil_modes.cc.
References C, blender::CTX_data_active_object(), blender::Object::data, ID_IS_EDITABLE, blender::OB_GREASE_PENCIL, blender::Object::type, and vertexmode_toggle_poll().
Referenced by GREASE_PENCIL_OT_vertexmode_toggle(), and vertexmode_toggle_poll().
| eHandleDisplay blender::ed::greasepencil::view3d_handle_type_or_default | ( | const View3D * | v3d | ) |
Definition at line 1204 of file grease_pencil_utils.cc.
References blender::CURVE_HANDLE_SELECTED, blender::View3DOverlay::handle_display, blender::View3D::overlay, and view3d_handle_type_or_default().
Referenced by gpencil_stroke_subdivide_exec(), grease_pencil_dissolve_exec(), grease_pencil_duplicate_exec(), grease_pencil_extrude_exec(), grease_pencil_set_corner_type_exec(), select_similar_exec(), and view3d_handle_type_or_default().
|
static |
Definition at line 449 of file grease_pencil_weight_paint.cc.
References blender::ed::greasepencil::ClosestGreasePencilDrawing::active_defgroup_index, b, blender::BKE_brush_weight_set(), blender::BKE_defgroup_name_index(), blender::BKE_object_defgroup_active_index_get(), blender::BKE_object_defgroup_list(), blender::BKE_paint_brush(), blender::BLI_findlink(), C, blender::math::clamp(), closest(), blender::ed::curves::closest_elem_find_screen_space(), blender::CTX_data_ensure_evaluated_depsgraph(), blender::Object::data, blender::DEG_get_evaluated(), blender::ViewContext::depsgraph, blender::ed::curves::FindClosestData::distance_sq, blender::ed::greasepencil::ClosestGreasePencilDrawing::drawing, blender::ed::greasepencil::DrawingInfo::drawing, blender::ED_view3d_ob_project_mat_get_from_obmat(), blender::ED_view3d_viewcontext_init(), blender::ed::greasepencil::ClosestGreasePencilDrawing::elem, blender::bke::crazyspace::get_evaluated_grease_pencil_drawing_deformation(), blender::ToolSettings::gp_weightpaint, blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::bke::subdiv::init(), blender::index_mask::IndexMask::is_empty(), layer, blender::ed::greasepencil::DrawingInfo::layer_index, blender::wmEvent::mval, NA_EDITED, blender::bDeformGroup::name, NC_BRUSH, blender::ViewContext::obact, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::GpWeightPaint::paint, blender::threading::parallel_reduce(), blender::bke::Point, blender::bke::crazyspace::GeometryDeformation::positions, retrieve_visible_drawings(), retrieve_visible_points(), blender::ViewContext::rv3d, blender::ViewContext::scene, blender::bke::greasepencil::Drawing::strokes(), blender::Scene::toolsettings, blender::bke::varray_for_deform_verts(), blender::CurvesGeometry::vertex_group_names, weight_sample_invoke(), and blender::WM_main_add_notifier().
Referenced by GREASE_PENCIL_OT_weight_sample(), and weight_sample_invoke().
|
static |
Definition at line 264 of file grease_pencil_modes.cc.
References blender::BKE_paint_brushes_validate(), blender::BKE_paint_ensure(), blender::BKE_paint_get_active_from_paintmode(), blender::BKE_paint_init(), blender::BLI_assert(), C, blender::CTX_data_active_object(), blender::CTX_data_main(), blender::CTX_data_scene(), blender::CTX_data_tool_settings(), blender::CTX_wm_message_bus(), blender::Object::data, blender::DEG_id_tag_update(), blender::ED_paint_cursor_start(), ensure_selection_domain(), blender::ToolSettings::gp_weightpaint, grease_pencil_poll_weight_cursor(), blender::Object::id, blender::ID_RECALC_GEOMETRY, blender::ID_RECALC_TRANSFORM, blender::Object::mode, NC_GPENCIL, NC_SCENE, ND_DATA, ND_GPENCIL_EDITMODE, ND_MODE, blender::OB_MODE_OBJECT, blender::OB_MODE_WEIGHT_GREASE_PENCIL, blender::OPERATOR_FINISHED, blender::ed::object::posemode_set_for_weight_paint(), blender::wmOperator::ptr, blender::Object::restore_mode, blender::RNA_boolean_get(), blender::WeightGPencil, weightmode_toggle_exec(), blender::WM_event_add_notifier(), WM_msg_publish_rna_prop, and blender::WM_toolsystem_update_from_context_view3d().
Referenced by GREASE_PENCIL_OT_weightmode_toggle(), and weightmode_toggle_exec().
|
static |
Definition at line 252 of file grease_pencil_modes.cc.
References C, blender::CTX_data_active_object(), blender::Object::data, ID_IS_EDITABLE, blender::OB_GREASE_PENCIL, blender::Object::type, and weightmode_toggle_poll().
Referenced by GREASE_PENCIL_OT_weightmode_toggle(), and weightmode_toggle_poll().
|
static |
Definition at line 444 of file fill.cc.
References num_directions, and wrap_dir_3n().
Referenced by build_fill_boundary(), and wrap_dir_3n().
|
constexpr |
Definition at line 664 of file fill.cc.
Referenced by get_boundary_bounds(), and get_visible_boundary_strokes().
|
constexpr |
Definition at line 663 of file fill.cc.
Referenced by get_boundary_bounds(), get_visible_boundary_strokes(), and render_strokes().
|
staticconstexpr |
Definition at line 115 of file grease_pencil_primitive.cc.
Referenced by control_point_colors_and_sizes(), grease_pencil_primitive_grab_update(), primitive_calculate_curve_positions(), and primitive_center_of_mass().
|
staticconstexpr |
Definition at line 114 of file grease_pencil_primitive.cc.
Referenced by grease_pencil_primitive_grab_update(), and primitive_calculate_curve_positions().
|
staticconstexpr |
Definition at line 116 of file grease_pencil_primitive.cc.
Referenced by grease_pencil_primitive_grab_update().
| const ColorGeometry4f blender::ed::greasepencil::draw_boundary_color = {1, 0, 0, 1} |
Definition at line 60 of file fill.cc.
Referenced by render_strokes().
| const ColorGeometry4f blender::ed::greasepencil::draw_seed_color = {0, 1, 0, 1} |
Definition at line 61 of file fill.cc.
Referenced by render_strokes().
|
staticconstexpr |
Definition at line 1080 of file fill.cc.
Referenced by create_connected_edges_from_fill(), and follow_edge_connections().
|
static |
Definition at line 226 of file grease_pencil_layers.cc.
Referenced by GREASE_PENCIL_OT_layer_mask_reorder(), and GREASE_PENCIL_OT_layer_move().
| const EnumPropertyItem blender::ed::greasepencil::enum_layergroup_color_items[] |
Definition at line 1051 of file grease_pencil_layers.cc.
Referenced by GREASE_PENCIL_OT_layer_group_color_tag().
|
static |
Definition at line 61 of file grease_pencil_add.cc.
Referenced by create_stroke().
|
static |
Definition at line 67 of file grease_pencil_add.cc.
Referenced by create_suzanne().
|
static |
Definition at line 91 of file grease_pencil_add.cc.
Referenced by create_suzanne().
|
static |
Definition at line 73 of file grease_pencil_add.cc.
Referenced by create_suzanne().
|
static |
Definition at line 79 of file grease_pencil_add.cc.
Referenced by create_suzanne().
|
static |
Definition at line 85 of file grease_pencil_add.cc.
Referenced by create_suzanne().
|
static |
Definition at line 31 of file grease_pencil_add.cc.
Referenced by create_blank(), and create_stroke().
|
static |
Definition at line 55 of file grease_pencil_add.cc.
Referenced by create_stroke().
|
static |
Definition at line 49 of file grease_pencil_add.cc.
Referenced by create_stroke().
|
static |
Definition at line 43 of file grease_pencil_add.cc.
Referenced by create_stroke().
|
static |
Definition at line 37 of file grease_pencil_add.cc.
Referenced by create_stroke().
|
static |
Referenced by clipboard_free(), ensure_grease_pencil_clipboard(), and grease_pencil_paste_strokes_poll().
| Mutex blender::ed::greasepencil::grease_pencil_clipboard_lock |
The clone brush accesses the clipboard from multiple threads. Protect from parallel access.
Definition at line 2588 of file grease_pencil_edit.cc.
Referenced by clipboard_free(), ensure_grease_pencil_clipboard(), and grease_pencil_paste_strokes_poll().
|
constexpr |
Definition at line 1101 of file fill.cc.
Referenced by add_weights_for_tri(), create_connected_edges_from_fill(), follow_edge_connections(), get_all_triangle_adjacency(), get_all_triangle_edges(), and get_tri_max_weight().
|
constexpr |
Definition at line 371 of file fill.cc.
Referenced by build_fill_boundary(), and wrap_dir_3n().
|
static |
Definition at line 372 of file fill.cc.
Referenced by build_fill_boundary(), dilate(), and erode().
|
static |
Definition at line 4956 of file grease_pencil_edit.cc.
Referenced by GREASE_PENCIL_OT_set_corner_type().
|
static |
Definition at line 934 of file grease_pencil_edit.cc.
Referenced by GREASE_PENCIL_OT_cyclical_set().
|
static |
Definition at line 624 of file grease_pencil_edit.cc.
Referenced by GREASE_PENCIL_OT_dissolve().
|
static |
Definition at line 37 of file grease_pencil_vertex_paint.cc.
Referenced by GREASE_PENCIL_OT_stroke_reset_vertex_color(), GREASE_PENCIL_OT_vertex_color_brightness_contrast(), GREASE_PENCIL_OT_vertex_color_hsv(), GREASE_PENCIL_OT_vertex_color_invert(), GREASE_PENCIL_OT_vertex_color_levels(), and GREASE_PENCIL_OT_vertex_color_set().
|
static |
Definition at line 775 of file grease_pencil_edit.cc.
Referenced by GREASE_PENCIL_OT_delete_frame().
|
static |
Definition at line 4596 of file grease_pencil_edit.cc.
Referenced by GREASE_PENCIL_OT_outline().
|
static |
Definition at line 2194 of file grease_pencil_edit.cc.
Referenced by GREASE_PENCIL_OT_separate().
|
static |
Definition at line 225 of file grease_pencil_edit.cc.
Referenced by GREASE_PENCIL_OT_stroke_simplify().
|
static |
Definition at line 1290 of file grease_pencil_select.cc.
Referenced by GREASE_PENCIL_OT_select_by_stroke_type().
|
static |
Definition at line 599 of file grease_pencil_select.cc.
Referenced by GREASE_PENCIL_OT_select_similar().
|
staticconstexpr |
Definition at line 110 of file grease_pencil_primitive.cc.
Referenced by primitive_check_ui_hover().
|
staticconstexpr |
Definition at line 111 of file grease_pencil_primitive.cc.
Referenced by primitive_check_ui_hover().
|
staticconstexpr |
Definition at line 107 of file grease_pencil_primitive.cc.
Referenced by control_point_colors_and_sizes().
|
staticconstexpr |
Definition at line 108 of file grease_pencil_primitive.cc.
Referenced by control_point_colors_and_sizes().
|
staticconstexpr |
Definition at line 109 of file grease_pencil_primitive.cc.
Referenced by control_point_colors_and_sizes().