KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KIGFX::RHI_RUN_BOUNDS Struct Reference

#include <rhi_cull_runs.h>

Public Member Functions

bool Empty () const
 
void Add (float aX, float aY, float aWorldReach, float aPixelReach, float aLod=0.0f)
 

Public Attributes

float minX = std::numeric_limits<float>::max()
 
float minY = std::numeric_limits<float>::max()
 
float maxX = std::numeric_limits<float>::lowest()
 
float maxY = std::numeric_limits<float>::lowest()
 
float pixels = RHI_CULL_PIXEL_SLACK
 reach beyond the world bounds, in pixels
 
float lod = std::numeric_limits<float>::max()
 Lowest level of detail among the run's elements, 0 when one is always shown.
 

Detailed Description

Definition at line 53 of file rhi_cull_runs.h.

Member Function Documentation

◆ Add()

void KIGFX::RHI_RUN_BOUNDS::Add ( float aX,
float aY,
float aWorldReach,
float aPixelReach,
float aLod = 0.0f )
inline

Definition at line 69 of file rhi_cull_runs.h.

References lod, maxX, maxY, minX, minY, pixels, and KIGFX::RHI_CULL_PIXEL_SLACK.

Referenced by KIGFX::RhiInstanceRun(), and KIGFX::RhiVertexRun().

◆ Empty()

bool KIGFX::RHI_RUN_BOUNDS::Empty ( ) const
inline

Definition at line 67 of file rhi_cull_runs.h.

References maxX, and minX.

Referenced by KIGFX::RHI_CULL_VIEW::Reaches().

Member Data Documentation

◆ lod

float KIGFX::RHI_RUN_BOUNDS::lod = std::numeric_limits<float>::max()

Lowest level of detail among the run's elements, 0 when one is always shown.

The run shows nothing while the view scale is not above it.

Definition at line 65 of file rhi_cull_runs.h.

Referenced by Add(), and KIGFX::RHI_CULL_VIEW::Reaches().

◆ maxX

float KIGFX::RHI_RUN_BOUNDS::maxX = std::numeric_limits<float>::lowest()

Definition at line 57 of file rhi_cull_runs.h.

Referenced by Add(), Empty(), and KIGFX::RHI_CULL_VIEW::Reaches().

◆ maxY

float KIGFX::RHI_RUN_BOUNDS::maxY = std::numeric_limits<float>::lowest()

Definition at line 58 of file rhi_cull_runs.h.

Referenced by Add(), and KIGFX::RHI_CULL_VIEW::Reaches().

◆ minX

float KIGFX::RHI_RUN_BOUNDS::minX = std::numeric_limits<float>::max()

Definition at line 55 of file rhi_cull_runs.h.

Referenced by Add(), Empty(), and KIGFX::RHI_CULL_VIEW::Reaches().

◆ minY

float KIGFX::RHI_RUN_BOUNDS::minY = std::numeric_limits<float>::max()

Definition at line 56 of file rhi_cull_runs.h.

Referenced by Add(), and KIGFX::RHI_CULL_VIEW::Reaches().

◆ pixels

float KIGFX::RHI_RUN_BOUNDS::pixels = RHI_CULL_PIXEL_SLACK

reach beyond the world bounds, in pixels

Definition at line 59 of file rhi_cull_runs.h.

Referenced by Add(), and KIGFX::RHI_CULL_VIEW::Reaches().


The documentation for this struct was generated from the following file: