Celeritas
0.5.0-56+6b053cd
|
Modify a line of a image for rasterization. More...
#include <ImageLineView.hh>
Public Types | |
Type aliases | |
using | ParamsRef = NativeCRef< ImageParamsData > |
using | StateRef = NativeRef< ImageStateData > |
Public Member Functions | |
CELER_FUNCTION | ImageLineView (ParamsRef const ¶ms, StateRef const &state, size_type row_index) |
Construct with image data and thread ID. | |
CELER_FUNCTION Real3 | start_pos () const |
Calculate starting position. | |
CELER_FUNCTION Real3 const & | start_dir () const |
Start direction (rightward axis) | |
CELER_FUNCTION real_type | pixel_width () const |
Pixel width. | |
CELER_FUNCTION real_type | max_length () const |
Maximum length to trace. | |
CELER_FUNCTION size_type | max_index () const |
Number of pixels along the direction of travel. | |
CELER_FUNCTION void | set_pixel (size_type col, int value) |
Set the value for a pixel. | |
Modify a line of a image for rasterization.
The rasterizer starts at the left side of an image and traces rightward. Each "line" is a single thread.