| 
    KiCad PCB EDA Suite
    
   | 
 
#include <algorithm>#include <atomic>#include <chrono>#include <thread>#include "render_3d_raytrace_base.h"#include "mortoncodes.h"#include "../color_rgba.h"#include "3d_fastmath.h"#include "3d_math.h"#include <thread_pool.h>#include <core/profile.h>#include <wx/log.h>Go to the source code of this file.
Macros | |
| #define | SRGB_GAMA 2.4f | 
| #define | DISP_FACTOR 0.075f | 
| #define | USE_EXPERIMENTAL_SOFT_SHADOWS 1 | 
Functions | |
| static SFVEC3F | convertLinearToSRGB (const SFVEC3F &aRGBcolor) | 
| static SFVEC4F | convertLinearToSRGBA (const SFVEC4F &aRGBAcolor) | 
| SFVEC3F | ConvertSRGBToLinear (const SFVEC3F &aSRGBcolor) | 
| SFVEC4F | ConvertSRGBAToLinear (const SFVEC4F &aSRGBAcolor) | 
| static void | SetPixel (uint8_t *p, const COLOR_RGBA &v) | 
| static void | SetPixelSRGBA (uint8_t *p, const COLOR_RGBA &v) | 
| static void | HITINFO_PACKET_init (HITINFO_PACKET *aHitPacket) | 
| static float | distance (const SFVEC2UI &a, const SFVEC2UI &b) | 
| #define DISP_FACTOR 0.075f | 
Definition at line 482 of file render_3d_raytrace_base.cpp.
Referenced by RENDER_3D_RAYTRACE_BASE::renderBlockTracing().
| #define SRGB_GAMA 2.4f | 
Definition at line 43 of file render_3d_raytrace_base.cpp.
Referenced by convertLinearToSRGB(), and ConvertSRGBToLinear().
| #define USE_EXPERIMENTAL_SOFT_SHADOWS 1 | 
Definition at line 1414 of file render_3d_raytrace_base.cpp.
Definition at line 48 of file render_3d_raytrace_base.cpp.
References SRGB_GAMA.
Referenced by convertLinearToSRGBA(), RENDER_3D_RAYTRACE_BASE::renderFinalColor(), and SetPixelSRGBA().
Definition at line 59 of file render_3d_raytrace_base.cpp.
References convertLinearToSRGB().
Referenced by RENDER_3D_RAYTRACE_BASE::postProcessBlurFinish().
Definition at line 79 of file render_3d_raytrace_base.cpp.
References ConvertSRGBToLinear().
Referenced by RENDER_3D_RAYTRACE_BASE::render(), and RENDER_3D_RAYTRACE_BASE::renderPreview().
Definition at line 67 of file render_3d_raytrace_base.cpp.
References SRGB_GAMA.
Referenced by RENDER_3D_RAYTRACE_BASE::addModels(), ConvertSRGBAToLinear(), RENDER_3D_RAYTRACE_BASE::createItemsFromContainer(), RENDER_3D_RAYTRACE_BASE::createObject(), RENDER_3D_RAYTRACE_BASE::getModelMaterial(), RENDER_3D_RAYTRACE_BASE::insertHole(), RENDER_3D_RAYTRACE_BASE::insertHole(), RENDER_3D_RAYTRACE_BASE::Reload(), and RENDER_3D_RAYTRACE_BASE::setupMaterials().
Definition at line 1678 of file render_3d_raytrace_base.cpp.
Referenced by PCB_POINT_EDITOR::addCorner(), SCH_POINT_EDITOR::addCorner(), PCB_POINT_EDITOR::chamferCorner(), SHAPE_POLY_SET::chamferFilletPolygon(), CIRCLE::Contains(), distanceFromPointToLine(), CURSOR::doSetCoordX(), PAD_TOOL::EnumeratePads(), KIGFX::COLOR4D::FindNearestLegacyColor(), PCAD2KICAD::PCAD_PCB::GetBoardOutline(), TUNING_PROFILE_PARAMETERS_USER_DEFINED::getPropagationDelay(), PCB_SELECTION_TOOL::hitTestDistance(), EDA_TEXT::Levenshtein(), BE_SHAPE_POINT::Paths(), DSN::scale(), DRC_TEST_PROVIDER_CREEPAGE::testCreepage(), ERC_TESTER::TestPinToPin(), and STEP_PCB_MODEL::WritePDF().
      
  | 
  static | 
Definition at line 325 of file render_3d_raytrace_base.cpp.
References HITINFO::m_acc_node_info, HITINFO_PACKET::m_HitInfo, HITINFO::m_HitNormal, HITINFO_PACKET::m_hitresult, HITINFO::m_ShadowFactor, HITINFO::m_tHit, and RAYPACKET_RAYS_PER_PACKET.
Referenced by RENDER_3D_RAYTRACE_BASE::renderBlockTracing().
      
  | 
  inlinestatic | 
Definition at line 157 of file render_3d_raytrace_base.cpp.
References COLOR_RGBA::c.
Referenced by SetPixelSRGBA().
      
  | 
  static | 
Definition at line 166 of file render_3d_raytrace_base.cpp.
References color, convertLinearToSRGB(), and SetPixel().
Referenced by RENDER_3D_RAYTRACE_BASE::renderPreview().