Blender V5.0
blender::draw::overlay::ShapeCache Class Reference

#include <overlay_private.hh>

Public Member Functions

 ShapeCache ()

Public Attributes

BatchPtr bone_box
BatchPtr bone_box_wire
BatchPtr bone_envelope
BatchPtr bone_envelope_wire
BatchPtr bone_octahedron
BatchPtr bone_octahedron_wire
BatchPtr bone_sphere
BatchPtr bone_sphere_wire
BatchPtr bone_stick
BatchPtr bone_degrees_of_freedom
BatchPtr bone_degrees_of_freedom_wire
BatchPtr grid
BatchPtr cube_solid
BatchPtr cursor_circle
BatchPtr cursor_lines
BatchPtr quad_wire
BatchPtr quad_solid
BatchPtr plain_axes
BatchPtr single_arrow
BatchPtr cube
BatchPtr circle
BatchPtr empty_sphere
BatchPtr empty_cone
BatchPtr cylinder
BatchPtr capsule_body
BatchPtr capsule_cap
BatchPtr arrows
BatchPtr metaball_wire_circle
BatchPtr speaker
BatchPtr camera_distances
BatchPtr camera_frame
BatchPtr camera_tria_wire
BatchPtr camera_tria
BatchPtr camera_volume
BatchPtr camera_volume_wire
BatchPtr sphere_low_detail
BatchPtr ground_line
BatchPtr image_quad
BatchPtr light_icon_outer_lines
BatchPtr light_icon_inner_lines
BatchPtr light_icon_sun_rays
BatchPtr light_point_lines
BatchPtr light_sun_lines
BatchPtr light_spot_lines
BatchPtr light_area_disk_lines
BatchPtr light_area_square_lines
BatchPtr light_spot_volume
BatchPtr field_force
BatchPtr field_wind
BatchPtr field_vortex
BatchPtr field_curve
BatchPtr field_sphere_limit
BatchPtr field_tube_limit
BatchPtr field_cone_limit
BatchPtr lightprobe_cube
BatchPtr lightprobe_planar
BatchPtr lightprobe_grid

Detailed Description

Contains all overlay generic geometry batches.

Definition at line 327 of file overlay_private.hh.

Constructor & Destructor Documentation

◆ ShapeCache()

blender::draw::overlay::ShapeCache::ShapeCache ( )

Definition at line 330 of file overlay_shape.cc.

References abs, angle(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::draw::overlay::append_line_loop(), blender::draw::overlay::append_sphere(), arrows, bone_box, blender::draw::overlay::bone_box_solid_normals, blender::draw::overlay::bone_box_solid_tris, blender::draw::overlay::bone_box_verts, bone_box_wire, blender::draw::overlay::bone_box_wire_lines, blender::draw::overlay::bone_box_wire_lines_adjacency, bone_degrees_of_freedom, bone_degrees_of_freedom_wire, bone_envelope, bone_envelope_wire, blender::draw::overlay::bone_octahedral_solid_normals, blender::draw::overlay::bone_octahedral_solid_tris, blender::draw::overlay::bone_octahedral_verts, blender::draw::overlay::bone_octahedral_wire_lines, blender::draw::overlay::bone_octahedral_wire_lines_adjacency, bone_octahedron, bone_octahedron_wire, bone_sphere, bone_sphere_wire, bone_stick, camera_distances, camera_frame, camera_tria, camera_tria_wire, camera_volume, camera_volume_wire, capsule_body, capsule_cap, circle, blender::draw::overlay::circle_nsegments, COL_BONE, COL_HEAD, COL_TAIL, COL_WIRE, cosf, blender::math::cross(), cube, cube_solid, cursor_circle, cursor_lines, cylinder, blender::draw::overlay::diamond_nsegments, blender::draw::DRW_LOD_LOW, empty_cone, empty_sphere, field_cone_limit, field_curve, field_force, field_sphere_limit, field_tube_limit, field_vortex, field_wind, flag, float, GPU_batch_create, GPU_batch_create_ex(), GPU_BATCH_OWNS_INDEX, GPU_BATCH_OWNS_VBO, GPU_batch_unit_cube(), GPU_indexbuf_add_line_adj_verts(), GPU_indexbuf_build(), GPU_indexbuf_init(), GPU_PRIM_LINE_STRIP, GPU_PRIM_LINES, GPU_PRIM_LINES_ADJ, GPU_PRIM_TRI_FAN, GPU_PRIM_TRI_STRIP, GPU_PRIM_TRIS, grid, ground_line, i, image_quad, blender::draw::overlay::inner_nsegments, blender::draw::overlay::light_append_direction_line(), light_area_disk_lines, light_area_square_lines, light_icon_inner_lines, light_icon_outer_lines, light_icon_sun_rays, light_point_lines, light_spot_lines, light_spot_volume, light_sun_lines, lightprobe_cube, lightprobe_grid, lightprobe_planar, M_PI, M_PI_2, metaball_wire_circle, blender::draw::overlay::outer_nsegments, blender::math::numbers::pi, plain_axes, blender::draw::overlay::Vertex::pos, POS_BONE, POS_HEAD, POS_TAIL, quad, quad_solid, quad_wire, blender::draw::overlay::ring_vertices(), blender::math::scale(), scaled(), sinf, single_arrow, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), speaker, blender::draw::overlay::sphere_axes_circles(), sphere_low_detail, TH_AXIS_X, TH_AXIS_Y, TH_AXIS_Z, TH_VIEW_OVERLAY, TH_WHITE, blender::VecBase< uint32_t, 3 >::type_length, UI_GetThemeColor3fv(), UI_GetThemeColorBlendShade3fv(), UNUSED_VARS, v, v2, VCLASS_CAMERA_DIST, VCLASS_CAMERA_FRAME, VCLASS_CAMERA_VOLUME, VCLASS_EMPTY_AXES, VCLASS_EMPTY_AXES_NAME, VCLASS_EMPTY_SCALED, VCLASS_EMPTY_SIZE, VCLASS_LIGHT_AREA_SHAPE, VCLASS_LIGHT_SPOT_BLEND, VCLASS_LIGHT_SPOT_CONE, VCLASS_LIGHT_SPOT_SHAPE, VCLASS_NONE, VCLASS_SCREENALIGNED, VCLASS_SCREENSPACE, verts, x, y, and z().

Member Data Documentation

◆ arrows

BatchPtr blender::draw::overlay::ShapeCache::arrows

◆ bone_box

BatchPtr blender::draw::overlay::ShapeCache::bone_box

Definition at line 338 of file overlay_private.hh.

Referenced by ShapeCache().

◆ bone_box_wire

BatchPtr blender::draw::overlay::ShapeCache::bone_box_wire

Definition at line 339 of file overlay_private.hh.

Referenced by ShapeCache().

◆ bone_degrees_of_freedom

BatchPtr blender::draw::overlay::ShapeCache::bone_degrees_of_freedom

Definition at line 348 of file overlay_private.hh.

Referenced by ShapeCache().

◆ bone_degrees_of_freedom_wire

BatchPtr blender::draw::overlay::ShapeCache::bone_degrees_of_freedom_wire

Definition at line 349 of file overlay_private.hh.

Referenced by ShapeCache().

◆ bone_envelope

BatchPtr blender::draw::overlay::ShapeCache::bone_envelope

Definition at line 340 of file overlay_private.hh.

Referenced by ShapeCache().

◆ bone_envelope_wire

BatchPtr blender::draw::overlay::ShapeCache::bone_envelope_wire

Definition at line 341 of file overlay_private.hh.

Referenced by ShapeCache().

◆ bone_octahedron

BatchPtr blender::draw::overlay::ShapeCache::bone_octahedron

Definition at line 342 of file overlay_private.hh.

Referenced by ShapeCache().

◆ bone_octahedron_wire

BatchPtr blender::draw::overlay::ShapeCache::bone_octahedron_wire

Definition at line 343 of file overlay_private.hh.

Referenced by ShapeCache().

◆ bone_sphere

BatchPtr blender::draw::overlay::ShapeCache::bone_sphere

Definition at line 344 of file overlay_private.hh.

Referenced by ShapeCache().

◆ bone_sphere_wire

BatchPtr blender::draw::overlay::ShapeCache::bone_sphere_wire

Definition at line 345 of file overlay_private.hh.

Referenced by ShapeCache().

◆ bone_stick

BatchPtr blender::draw::overlay::ShapeCache::bone_stick

Definition at line 346 of file overlay_private.hh.

Referenced by ShapeCache().

◆ camera_distances

BatchPtr blender::draw::overlay::ShapeCache::camera_distances

Definition at line 373 of file overlay_private.hh.

Referenced by ShapeCache().

◆ camera_frame

BatchPtr blender::draw::overlay::ShapeCache::camera_frame

Definition at line 374 of file overlay_private.hh.

Referenced by ShapeCache().

◆ camera_tria

BatchPtr blender::draw::overlay::ShapeCache::camera_tria

Definition at line 376 of file overlay_private.hh.

Referenced by ShapeCache().

◆ camera_tria_wire

BatchPtr blender::draw::overlay::ShapeCache::camera_tria_wire

Definition at line 375 of file overlay_private.hh.

Referenced by ShapeCache().

◆ camera_volume

BatchPtr blender::draw::overlay::ShapeCache::camera_volume

Definition at line 378 of file overlay_private.hh.

Referenced by ShapeCache().

◆ camera_volume_wire

BatchPtr blender::draw::overlay::ShapeCache::camera_volume_wire

Definition at line 379 of file overlay_private.hh.

Referenced by ShapeCache().

◆ capsule_body

BatchPtr blender::draw::overlay::ShapeCache::capsule_body

Definition at line 366 of file overlay_private.hh.

Referenced by ShapeCache().

◆ capsule_cap

BatchPtr blender::draw::overlay::ShapeCache::capsule_cap

Definition at line 367 of file overlay_private.hh.

Referenced by ShapeCache().

◆ circle

BatchPtr blender::draw::overlay::ShapeCache::circle

◆ cube

BatchPtr blender::draw::overlay::ShapeCache::cube

◆ cube_solid

BatchPtr blender::draw::overlay::ShapeCache::cube_solid

Definition at line 352 of file overlay_private.hh.

Referenced by ShapeCache().

◆ cursor_circle

BatchPtr blender::draw::overlay::ShapeCache::cursor_circle

Definition at line 354 of file overlay_private.hh.

Referenced by ShapeCache().

◆ cursor_lines

BatchPtr blender::draw::overlay::ShapeCache::cursor_lines

Definition at line 355 of file overlay_private.hh.

Referenced by ShapeCache().

◆ cylinder

BatchPtr blender::draw::overlay::ShapeCache::cylinder

Definition at line 365 of file overlay_private.hh.

Referenced by ShapeCache().

◆ empty_cone

BatchPtr blender::draw::overlay::ShapeCache::empty_cone

◆ empty_sphere

BatchPtr blender::draw::overlay::ShapeCache::empty_sphere

◆ field_cone_limit

BatchPtr blender::draw::overlay::ShapeCache::field_cone_limit

Definition at line 404 of file overlay_private.hh.

Referenced by ShapeCache().

◆ field_curve

BatchPtr blender::draw::overlay::ShapeCache::field_curve

Definition at line 401 of file overlay_private.hh.

Referenced by ShapeCache().

◆ field_force

BatchPtr blender::draw::overlay::ShapeCache::field_force

Definition at line 398 of file overlay_private.hh.

Referenced by ShapeCache().

◆ field_sphere_limit

BatchPtr blender::draw::overlay::ShapeCache::field_sphere_limit

Definition at line 402 of file overlay_private.hh.

Referenced by ShapeCache().

◆ field_tube_limit

BatchPtr blender::draw::overlay::ShapeCache::field_tube_limit

Definition at line 403 of file overlay_private.hh.

Referenced by ShapeCache().

◆ field_vortex

BatchPtr blender::draw::overlay::ShapeCache::field_vortex

Definition at line 400 of file overlay_private.hh.

Referenced by ShapeCache().

◆ field_wind

BatchPtr blender::draw::overlay::ShapeCache::field_wind

Definition at line 399 of file overlay_private.hh.

Referenced by ShapeCache().

◆ grid

BatchPtr blender::draw::overlay::ShapeCache::grid

Definition at line 351 of file overlay_private.hh.

Referenced by ShapeCache().

◆ ground_line

BatchPtr blender::draw::overlay::ShapeCache::ground_line

Definition at line 383 of file overlay_private.hh.

Referenced by ShapeCache().

◆ image_quad

BatchPtr blender::draw::overlay::ShapeCache::image_quad

Definition at line 386 of file overlay_private.hh.

Referenced by ShapeCache().

◆ light_area_disk_lines

BatchPtr blender::draw::overlay::ShapeCache::light_area_disk_lines

Definition at line 394 of file overlay_private.hh.

Referenced by ShapeCache().

◆ light_area_square_lines

BatchPtr blender::draw::overlay::ShapeCache::light_area_square_lines

Definition at line 395 of file overlay_private.hh.

Referenced by ShapeCache().

◆ light_icon_inner_lines

BatchPtr blender::draw::overlay::ShapeCache::light_icon_inner_lines

Definition at line 389 of file overlay_private.hh.

Referenced by ShapeCache().

◆ light_icon_outer_lines

BatchPtr blender::draw::overlay::ShapeCache::light_icon_outer_lines

Definition at line 388 of file overlay_private.hh.

Referenced by ShapeCache().

◆ light_icon_sun_rays

BatchPtr blender::draw::overlay::ShapeCache::light_icon_sun_rays

Definition at line 390 of file overlay_private.hh.

Referenced by ShapeCache().

◆ light_point_lines

BatchPtr blender::draw::overlay::ShapeCache::light_point_lines

Definition at line 391 of file overlay_private.hh.

Referenced by ShapeCache().

◆ light_spot_lines

BatchPtr blender::draw::overlay::ShapeCache::light_spot_lines

Definition at line 393 of file overlay_private.hh.

Referenced by ShapeCache().

◆ light_spot_volume

BatchPtr blender::draw::overlay::ShapeCache::light_spot_volume

Definition at line 396 of file overlay_private.hh.

Referenced by ShapeCache().

◆ light_sun_lines

BatchPtr blender::draw::overlay::ShapeCache::light_sun_lines

Definition at line 392 of file overlay_private.hh.

Referenced by ShapeCache().

◆ lightprobe_cube

BatchPtr blender::draw::overlay::ShapeCache::lightprobe_cube

Definition at line 406 of file overlay_private.hh.

Referenced by ShapeCache().

◆ lightprobe_grid

BatchPtr blender::draw::overlay::ShapeCache::lightprobe_grid

Definition at line 408 of file overlay_private.hh.

Referenced by ShapeCache().

◆ lightprobe_planar

BatchPtr blender::draw::overlay::ShapeCache::lightprobe_planar

Definition at line 407 of file overlay_private.hh.

Referenced by ShapeCache().

◆ metaball_wire_circle

BatchPtr blender::draw::overlay::ShapeCache::metaball_wire_circle

Definition at line 369 of file overlay_private.hh.

Referenced by ShapeCache().

◆ plain_axes

BatchPtr blender::draw::overlay::ShapeCache::plain_axes

◆ quad_solid

BatchPtr blender::draw::overlay::ShapeCache::quad_solid

Definition at line 358 of file overlay_private.hh.

Referenced by ShapeCache().

◆ quad_wire

BatchPtr blender::draw::overlay::ShapeCache::quad_wire

Definition at line 357 of file overlay_private.hh.

Referenced by blender::draw::overlay::Empties::end_sync(), and ShapeCache().

◆ single_arrow

BatchPtr blender::draw::overlay::ShapeCache::single_arrow

◆ speaker

BatchPtr blender::draw::overlay::ShapeCache::speaker

Definition at line 371 of file overlay_private.hh.

Referenced by ShapeCache().

◆ sphere_low_detail

BatchPtr blender::draw::overlay::ShapeCache::sphere_low_detail

Definition at line 381 of file overlay_private.hh.

Referenced by ShapeCache().


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