Blender V4.3
blender::ed::greasepencil::ImageBufferAccessor Class Reference

Public Member Functions

bool has_buffer () const
 
 ~ImageBufferAccessor ()
 
void acquire (Image &ima)
 
void release ()
 
int2 size () const
 
int width () const
 
int height () const
 
bool is_valid_coord (const int2 &c) const
 
int2 coord_from_index (const int index) const
 
int index_from_coord (const int2 &c) const
 
Span< ColorGeometry4bpixels () const
 
MutableSpan< ColorGeometry4bpixels ()
 
ColorGeometry4bpixel_from_coord (const int2 &c)
 
const ColorGeometry4bpixel_from_coord (const int2 &c) const
 

Detailed Description

Definition at line 71 of file grease_pencil_fill.cc.

Constructor & Destructor Documentation

◆ ~ImageBufferAccessor()

blender::ed::greasepencil::ImageBufferAccessor::~ImageBufferAccessor ( )
inline

Definition at line 85 of file grease_pencil_fill.cc.

References BLI_assert.

Member Function Documentation

◆ acquire()

void blender::ed::greasepencil::ImageBufferAccessor::acquire ( Image & ima)
inline

◆ coord_from_index()

◆ has_buffer()

bool blender::ed::greasepencil::ImageBufferAccessor::has_buffer ( ) const
inline

Definition at line 80 of file grease_pencil_fill.cc.

◆ height()

int blender::ed::greasepencil::ImageBufferAccessor::height ( ) const
inline

◆ index_from_coord()

int blender::ed::greasepencil::ImageBufferAccessor::index_from_coord ( const int2 & c) const
inline

◆ is_valid_coord()

bool blender::ed::greasepencil::ImageBufferAccessor::is_valid_coord ( const int2 & c) const
inline

◆ pixel_from_coord() [1/2]

ColorGeometry4b & blender::ed::greasepencil::ImageBufferAccessor::pixel_from_coord ( const int2 & c)
inline

◆ pixel_from_coord() [2/2]

const ColorGeometry4b & blender::ed::greasepencil::ImageBufferAccessor::pixel_from_coord ( const int2 & c) const
inline

Definition at line 157 of file grease_pencil_fill.cc.

◆ pixels() [1/2]

MutableSpan< ColorGeometry4b > blender::ed::greasepencil::ImageBufferAccessor::pixels ( )
inline

Definition at line 147 of file grease_pencil_fill.cc.

◆ pixels() [2/2]

◆ release()

void blender::ed::greasepencil::ImageBufferAccessor::release ( )
inline

◆ size()

int2 blender::ed::greasepencil::ImageBufferAccessor::size ( ) const
inline

Definition at line 111 of file grease_pencil_fill.cc.

◆ width()

int blender::ed::greasepencil::ImageBufferAccessor::width ( ) const
inline

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