Reusable renderer-neutral bounds for one normalized UV paint operation. 更多...
#include <UvPaintRegion.h>
Public 成员函数 | |
| int | width () const noexcept |
| Inclusive clipped width in pixels. | |
| int | height () const noexcept |
| Inclusive clipped height in pixels. | |
| Result< void > | prepareResult (int width, int height, float centerU, float centerV, float brushRadiusU, float brushRadiusV, float red, float green, float blue, float alpha, bool flipV=true) |
| Atomically replace this reusable scratch with a validated region. | |
Public 属性 | |
| int | targetWidth = 0 |
| int | targetHeight = 0 |
| int | centerX = 0 |
| int | centerY = 0 |
| int | minX = 0 |
| int | minY = 0 |
| int | maxX = 0 |
| int | maxY = 0 |
| float | u = 0.f |
| float | v = 0.f |
| float | radiusU = 0.f |
| float | radiusV = 0.f |
| float | r = 0.f |
| float | g = 0.f |
| float | b = 0.f |
| float | a = 0.f |
详细描述
Reusable renderer-neutral bounds for one normalized UV paint operation.
在文件 UvPaintRegion.h 第 8 行定义.
成员函数说明
◆ height()
|
inlinenoexcept |
◆ prepareResult()
| Result< void > eve::image::UvPaintRegion::prepareResult | ( | int | width, |
| int | height, | ||
| float | centerU, | ||
| float | centerV, | ||
| float | brushRadiusU, | ||
| float | brushRadiusV, | ||
| float | red, | ||
| float | green, | ||
| float | blue, | ||
| float | alpha, | ||
| bool | flipV = true |
||
| ) |
Atomically replace this reusable scratch with a validated region.
- 参数
-
width Positive target width in pixels. height Positive target height in pixels. centerU Normalized horizontal center; values outside [0,1] are clamped. centerV Normalized vertical center; values outside [0,1] are clamped. brushRadiusU Non-negative normalized horizontal radius. brushRadiusV Non-negative normalized vertical radius. red Red channel in [0,1]. green Green channel in [0,1]. blue Blue channel in [0,1]. alpha Alpha/coverage channel in [0,1]. flipV Convert bottom-left UV V to top-left image coordinates when true.
- 返回
- Success after commit, or a structured diagnostic with this value unchanged. @ownership Retains no input or backend object. @thread Not safe to mutate the same instance concurrently. @reentrancy Does not invoke callbacks.
在文件 UvPaintRegion.cpp 第 9 行定义.
引用了 eve::Result< T >::failure(), height(), eve::image::prepareUvPaintRegionResult(), eve::Result< T >::success() , 以及 width().
◆ width()
|
inlinenoexcept |
类成员变量说明
◆ a
| float eve::image::UvPaintRegion::a = 0.f |
在文件 UvPaintRegion.h 第 13 行定义.
◆ b
| float eve::image::UvPaintRegion::b = 0.f |
在文件 UvPaintRegion.h 第 13 行定义.
◆ centerX
| int eve::image::UvPaintRegion::centerX = 0 |
在文件 UvPaintRegion.h 第 10 行定义.
◆ centerY
| int eve::image::UvPaintRegion::centerY = 0 |
在文件 UvPaintRegion.h 第 10 行定义.
◆ g
| float eve::image::UvPaintRegion::g = 0.f |
在文件 UvPaintRegion.h 第 13 行定义.
◆ maxX
| int eve::image::UvPaintRegion::maxX = 0 |
在文件 UvPaintRegion.h 第 11 行定义.
被这些函数引用 eve::image::prepareUvPaintRegionResult() , 以及 width().
◆ maxY
| int eve::image::UvPaintRegion::maxY = 0 |
在文件 UvPaintRegion.h 第 11 行定义.
被这些函数引用 height() , 以及 eve::image::prepareUvPaintRegionResult().
◆ minX
| int eve::image::UvPaintRegion::minX = 0 |
在文件 UvPaintRegion.h 第 11 行定义.
被这些函数引用 eve::image::prepareUvPaintRegionResult() , 以及 width().
◆ minY
| int eve::image::UvPaintRegion::minY = 0 |
在文件 UvPaintRegion.h 第 11 行定义.
被这些函数引用 height() , 以及 eve::image::prepareUvPaintRegionResult().
◆ r
| float eve::image::UvPaintRegion::r = 0.f |
在文件 UvPaintRegion.h 第 13 行定义.
◆ radiusU
| float eve::image::UvPaintRegion::radiusU = 0.f |
在文件 UvPaintRegion.h 第 12 行定义.
◆ radiusV
| float eve::image::UvPaintRegion::radiusV = 0.f |
在文件 UvPaintRegion.h 第 12 行定义.
◆ targetHeight
| int eve::image::UvPaintRegion::targetHeight = 0 |
在文件 UvPaintRegion.h 第 9 行定义.
◆ targetWidth
| int eve::image::UvPaintRegion::targetWidth = 0 |
在文件 UvPaintRegion.h 第 9 行定义.
◆ u
| float eve::image::UvPaintRegion::u = 0.f |
在文件 UvPaintRegion.h 第 12 行定义.
◆ v
| float eve::image::UvPaintRegion::v = 0.f |
在文件 UvPaintRegion.h 第 12 行定义.
该结构体的文档由以下文件生成:
- src/modules/image/UvPaintRegion.h
- src/modules/image/UvPaintRegion.cpp