|
Blender
V3.3
|
#include "DNA_node_types.h"#include "BLI_listbase.h"#include "BLI_rect.h"#include "BLI_string_ref.hh"#include "BLI_utildefines.h"#include "BKE_context.h"#include "BKE_image.h"#include "BKE_main.h"#include "BKE_node.h"#include "BKE_screen.h"#include "ED_image.h"#include "ED_node.h"#include "ED_screen.h"#include "ED_space_api.h"#include "RNA_access.h"#include "RNA_define.h"#include "WM_api.h"#include "WM_types.h"#include "UI_view2d.h"#include "MEM_guardedalloc.h"#include "IMB_colormanagement.h"#include "IMB_imbuf.h"#include "IMB_imbuf_types.h"#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 | |
| blender | |
| blender::ed | |
| blender::ed::space_node | |
| bool ED_space_node_color_sample | ( | struct Main * | bmain, |
| struct SpaceNode * | snode, | ||
| struct 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 476 of file node_view.cc.
References BKE_image_acquire_ibuf(), BKE_image_ensure_viewer(), BKE_image_release_ibuf(), ImBuf::channels, CLAMP, copy_v3_v3(), ED_node_is_compositor(), SpaceNode::flag, float(), IMA_TYPE_COMPOSITE, IMB_colormanagement_colorspace_to_scene_linear_v3(), lock, ImBuf::rect, ImBuf::rect_colorspace, ImBuf::rect_float, ret, rgb_uchar_to_float(), SNODE_BACKDRAW, ARegion::winx, ARegion::winy, x, ImBuf::x, SpaceNode::xof, y, ImBuf::y, SpaceNode::yof, and SpaceNode::zoom.
Referenced by eyedropper_color_sample_fl().
| bool ED_space_node_get_position | ( | struct Main * | bmain, |
| struct SpaceNode * | snode, | ||
| struct ARegion * | region, | ||
| const int | mval[2], | ||
| float | fpos[2] | ||
| ) |
Returns mouse position in image space.
Definition at line 449 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, ARegion::winx, ARegion::winy, ImBuf::x, SpaceNode::xof, ImBuf::y, SpaceNode::yof, and SpaceNode::zoom.
Referenced by eyedropper_cryptomatte_sample_fl().