Celeritas  0.5.0-86+4a8eea4
Public Member Functions | List of all members
celeritas::ImageLineView Class Reference

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 &params, 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.
 

Detailed Description

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.

Todo:
Add template parameter to switch from vertical to horizontal direction.

The documentation for this class was generated from the following file: