|
Blender V5.3
|
#include <image_space_image.hh>
Inherits blender::image_engine::AbstractSpaceAccessor.
Public Member Functions | |
| SpaceImageAccessor (SpaceImage *sima) | |
| blender::Image * | get_image (Main *) override |
| ImageUser * | get_image_user () override |
| ImBuf * | acquire_image_buffer (blender::Image *, void **lock) override |
| void | release_buffer (blender::Image *, ImBuf *image_buffer, void *lock) override |
| void | get_shader_parameters (ShaderParameters &r_shader_parameters, ImBuf *image_buffer) override |
| bool | use_tile_drawing () const override |
| Is (wrap) repeat option enabled in the space. | |
| bool | use_display_window () const override |
| Draw image with display window offsets. | |
| float | get_zoom () const override |
| Gets the zoom factor of the space. A factor of 2 is a zoom-in by two times. | |
| float | get_aspect_ratio () const override |
| Gets the aspect ratio of the image. The ratio is for the vertical axis. | |
| float2 | get_pan_offset () const override |
| Gets the pan offset of the space in image pixel space. | |
| Public Member Functions inherited from blender::image_engine::AbstractSpaceAccessor | |
| virtual | ~AbstractSpaceAccessor ()=default |
Definition at line 20 of file image_space_image.hh.
|
inline |
Definition at line 24 of file image_space_image.hh.
|
inlineoverridevirtual |
Acquire the image buffer of the image.
| image | Image to get the buffer from. Image is the same as returned from the get_image member. |
| lock | pointer to a lock object. |
Implements blender::image_engine::AbstractSpaceAccessor.
Definition at line 36 of file image_space_image.hh.
References blender::ED_space_image_acquire_buffer(), and lock.
|
inlineoverridevirtual |
Gets the aspect ratio of the image. The ratio is for the vertical axis.
Implements blender::image_engine::AbstractSpaceAccessor.
Definition at line 104 of file image_space_image.hh.
References blender::ED_space_image_get_aspect().
|
inlineoverridevirtual |
Return the active image of the space.
The returned image will be drawn in the space.
The return value is optional.
Implements blender::image_engine::AbstractSpaceAccessor.
Definition at line 26 of file image_space_image.hh.
References blender::ED_space_image().
|
inlineoverridevirtual |
Return the ImageUser of the space.
The return value is optional.
Implements blender::image_engine::AbstractSpaceAccessor.
Definition at line 31 of file image_space_image.hh.
|
inlineoverridevirtual |
Gets the pan offset of the space in image pixel space.
Implements blender::image_engine::AbstractSpaceAccessor.
Definition at line 111 of file image_space_image.hh.
|
inlineoverridevirtual |
Update the r_shader_parameters with space specific settings.
Only update the #ShaderParameters.flags and #ShaderParameters.shuffle. Other parameters are updated inside the image engine.
Implements blender::image_engine::AbstractSpaceAccessor.
Definition at line 46 of file image_space_image.hh.
References blender::ED_space_image_get_display_channel_mask(), blender::image_engine::ShaderParameters::flags, IMAGE_DRAW_FLAG_APPLY_ALPHA, IMAGE_DRAW_FLAG_DEPTH, IMAGE_DRAW_FLAG_SHOW_ALPHA, IMAGE_DRAW_FLAG_SHUFFLING, blender::IMB_alpha_affects_rgb(), blender::image_engine::ShaderParameters::shuffle, blender::SI_SHOW_ALPHA, blender::SI_SHOW_B, blender::SI_SHOW_G, blender::SI_SHOW_R, blender::SI_SHOW_ZBUF, and blender::SI_USE_ALPHA.
|
inlineoverridevirtual |
Gets the zoom factor of the space. A factor of 2 is a zoom-in by two times.
Implements blender::image_engine::AbstractSpaceAccessor.
Definition at line 99 of file image_space_image.hh.
References blender::SpaceImage::zoom.
|
inlineoverridevirtual |
Release a previous locked image from acquire_image_buffer.
Implements blender::image_engine::AbstractSpaceAccessor.
Definition at line 41 of file image_space_image.hh.
References blender::ED_space_image_release_buffer(), and lock.
|
inlineoverridevirtual |
Draw image with display window offsets.
Implements blender::image_engine::AbstractSpaceAccessor.
Definition at line 94 of file image_space_image.hh.
References blender::SI_MODE_VIEW.
|
inlineoverridevirtual |
Is (wrap) repeat option enabled in the space.
Implements blender::image_engine::AbstractSpaceAccessor.
Definition at line 89 of file image_space_image.hh.
References blender::SI_DRAW_TILE.