|
Blender V4.3
|
Classes | |
| struct | Pixel |
| struct | RowView |
Public Types | |
| enum class | PixelType { Undecided , Brush , SelectedForCloserExamination , CopyFromClosestEdge } |
Public Member Functions | |
| Rows (int2 resolution, int margin) | |
| void | init_pixels () |
| void | mark_pixels_effected_by_brush (const PixelNodesTileData &nodes_tile_pixels) |
| int2 | find_second_source (int2 destination, int2 first_source) |
| float | determine_mix_factor (const int2 destination, const int2 source_1, const int2 source_2, const Edge< CoordSpace::Tile > &edge) |
| void | find_copy_source (Pixel &pixel, const NonManifoldTileEdges &tile_edges) |
| void | find_copy_source (Vector< std::reference_wrapper< Pixel > > &selected_pixels, const NonManifoldTileEdges &tile_edges) |
| Vector< std::reference_wrapper< Pixel > > | filter_pixels_for_closer_examination (const NonManifoldTileEdges &tile_edges) |
| void | pack_into (const Span< std::reference_wrapper< Pixel > > selected_pixels, CopyPixelTile ©_tile) const |
Public Attributes | |
| int2 | resolution |
| int | margin |
| Array< Pixel > | pixels |
Row contains intermediate data per pixel for a single image row. It is used during updating to encode pixels.
Definition at line 228 of file pbvh_pixels_copy.cc.
|
strong |
Definition at line 229 of file pbvh_pixels_copy.cc.
Definition at line 281 of file pbvh_pixels_copy.cc.
|
inline |
Definition at line 362 of file pbvh_pixels_copy.cc.
References clamp_f(), and closest_to_line_v2().
|
inline |
Definition at line 441 of file pbvh_pixels_copy.cc.
References blender::bke::pbvh::pixels::add_margin(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BLI_assert_msg, BLI_rcti_size_x(), BLI_rcti_size_y(), clamp(), closest_to_line_segment_v2(), blender::math::distance(), blender::bke::pbvh::pixels::get_bounds(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), point, blender::Vector< T, InlineBufferCapacity, Allocator >::reserve(), blender::bke::pbvh::pixels::Edge< Space >::vertex_1, blender::bke::pbvh::pixels::Edge< Space >::vertex_2, rcti::xmin, and rcti::ymin.
Referenced by blender::bke::pbvh::pixels::copy_update().
|
inline |
Definition at line 384 of file pbvh_pixels_copy.cc.
References blender::bke::pbvh::pixels::add_margin(), BLI_assert, BLI_rcti_init(), BLI_rcti_size_x(), BLI_rcti_size_y(), blender::bke::pbvh::pixels::clamp(), blender::math::distance(), max, blender::bke::pbvh::pixels::Rows::Pixel::type, rcti::xmin, and rcti::ymin.
Referenced by blender::bke::pbvh::pixels::copy_update().
|
inline |
Definition at line 429 of file pbvh_pixels_copy.cc.
References blender::threading::parallel_for(), and blender::bke::pbvh::pixels::THREADING_GRAIN_SIZE.
|
inline |
Look for a second source pixel that will be blended with the first source pixel to improve the quality of the fix.
Definition at line 328 of file pbvh_pixels_copy.cc.
References BLI_rcti_init(), BLI_rcti_size_x(), BLI_rcti_size_y(), blender::math::distance(), max_ii(), min_ii(), rcti::xmin, and rcti::ymin.
|
inline |
Definition at line 286 of file pbvh_pixels_copy.cc.
References resolution.
Referenced by blender::bke::pbvh::pixels::copy_update().
|
inline |
Mark pixels that are painted on by the brush. Those pixels don't need to be updated, but will act as a source for other pixels.
Definition at line 301 of file pbvh_pixels_copy.cc.
References blender::threading::parallel_for_each().
Referenced by blender::bke::pbvh::pixels::copy_update().
|
inline |
Definition at line 485 of file pbvh_pixels_copy.cc.
References blender::bke::pbvh::pixels::CopyPixelTile::command_deltas, blender::bke::pbvh::pixels::CopyPixelTile::groups, and int2.
Referenced by blender::bke::pbvh::pixels::copy_update().
| int blender::bke::pbvh::pixels::Rows::margin |
Definition at line 265 of file pbvh_pixels_copy.cc.
Definition at line 266 of file pbvh_pixels_copy.cc.
| int2 blender::bke::pbvh::pixels::Rows::resolution |
Definition at line 264 of file pbvh_pixels_copy.cc.
Referenced by init_pixels().