|
Blender V4.3
|
#include "DNA_node_types.h"#include "BLI_rect.h"#include "BLI_string_ref.hh"#include "BLI_utildefines.h"#include "BKE_context.hh"#include "BKE_image.hh"#include "BKE_node_runtime.hh"#include "ED_image.hh"#include "ED_node.hh"#include "ED_screen.hh"#include "ED_space_api.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "WM_api.hh"#include "WM_types.hh"#include "UI_view2d.hh"#include "MEM_guardedalloc.h"#include "IMB_colormanagement.hh"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"#include "node_intern.hh"Go to the source code of this file.
Classes | |
| struct | blender::ed::space_node::NodeViewMove |
| struct | blender::ed::space_node::ImageSampleInfo |
Namespaces | |
| namespace | blender |
| namespace | blender::ed |
| namespace | blender::ed::space_node |
| bool ED_space_node_color_sample | ( | Main * | bmain, |
| SpaceNode * | snode, | ||
| ARegion * | region, | ||
| const int | mval[2], | ||
| float | r_col[3] ) |
Returns color in linear space, matching ED_space_image_color_sample(). And here we've got recursion in the comments tips...
Definition at line 496 of file node_view.cc.
References BKE_image_acquire_ibuf(), BKE_image_ensure_viewer(), BKE_image_release_ibuf(), ImBuf::byte_buffer, ImBuf::channels, CLAMP, ImBufByteBuffer::colorspace, copy_v3_v3(), ImBufByteBuffer::data, ImBufFloatBuffer::data, ED_node_is_compositor(), SpaceNode::flag, float, ImBuf::float_buffer, IMA_TYPE_COMPOSITE, IMB_colormanagement_colorspace_to_scene_linear_v3(), int, lock, ret, rgb_uchar_to_float(), SNODE_BACKDRAW, ImBuf::x, x, SpaceNode::xof, ImBuf::y, SpaceNode::yof, and SpaceNode::zoom.
Referenced by eyedropper_color_sample_fl().
| bool ED_space_node_get_position | ( | Main * | bmain, |
| SpaceNode * | snode, | ||
| ARegion * | region, | ||
| const int | mval[2], | ||
| float | fpos[2] ) |
Returns mouse position in image space.
Definition at line 469 of file node_view.cc.
References BKE_image_acquire_ibuf(), BKE_image_ensure_viewer(), BKE_image_release_ibuf(), ED_node_is_compositor(), SpaceNode::flag, float, IMA_TYPE_COMPOSITE, lock, SNODE_BACKDRAW, ImBuf::x, SpaceNode::xof, ImBuf::y, SpaceNode::yof, and SpaceNode::zoom.
Referenced by eyedropper_cryptomatte_sample_fl().