KiCad PCB EDA Suite
Loading...
Searching...
No Matches
TRIANGLE_DISPLAY_LIST Class Reference

Store arrays of triangles to be used to create display lists. More...

#include <layer_triangles.h>

Public Member Functions

 TRIANGLE_DISPLAY_LIST (unsigned int aNrReservedTriangles)
 Initialize arrays with reserved triangles.
 
 ~TRIANGLE_DISPLAY_LIST ()
 
bool IsLayersSizeValid ()
 Check if the vertex arrays of the layers are as expected.
 
void AddToMiddleContourns (const SHAPE_LINE_CHAIN &outlinePath, float zBot, float zTop, double aBiuTo3Du, bool aInvertFaceDirection, const BVH_CONTAINER_2D *aThroughHoles=nullptr)
 
void AddToMiddleContourns (const SHAPE_POLY_SET &aPolySet, float zBot, float zTop, double aBiuTo3Du, bool aInvertFaceDirection, const BVH_CONTAINER_2D *aThroughHoles=nullptr)
 
void AddToMiddleContourns (const std::vector< SFVEC2F > &aContournPoints, float zBot, float zTop, bool aInvertFaceDirection, const BVH_CONTAINER_2D *aThroughHoles=nullptr)
 

Public Attributes

std::mutex m_middle_layer_lock
 
TRIANGLE_LISTm_layer_top_segment_ends
 
TRIANGLE_LISTm_layer_top_triangles
 
TRIANGLE_LISTm_layer_middle_contourns_quads
 
TRIANGLE_LISTm_layer_bot_triangles
 
TRIANGLE_LISTm_layer_bot_segment_ends
 

Detailed Description

Store arrays of triangles to be used to create display lists.

Definition at line 94 of file layer_triangles.h.

Constructor & Destructor Documentation

◆ TRIANGLE_DISPLAY_LIST()

TRIANGLE_DISPLAY_LIST::TRIANGLE_DISPLAY_LIST ( unsigned int  aNrReservedTriangles)
explicit

Initialize arrays with reserved triangles.

Parameters
aNrReservedTrianglesis the number of triangles to reserve.

Definition at line 95 of file layer_triangles.cpp.

References m_layer_bot_segment_ends, m_layer_bot_triangles, m_layer_middle_contourns_quads, m_layer_top_segment_ends, and m_layer_top_triangles.

◆ ~TRIANGLE_DISPLAY_LIST()

TRIANGLE_DISPLAY_LIST::~TRIANGLE_DISPLAY_LIST ( )

Member Function Documentation

◆ AddToMiddleContourns() [1/3]

void TRIANGLE_DISPLAY_LIST::AddToMiddleContourns ( const SHAPE_LINE_CHAIN outlinePath,
float  zBot,
float  zTop,
double  aBiuTo3Du,
bool  aInvertFaceDirection,
const BVH_CONTAINER_2D aThroughHoles = nullptr 
)

◆ AddToMiddleContourns() [2/3]

void TRIANGLE_DISPLAY_LIST::AddToMiddleContourns ( const SHAPE_POLY_SET aPolySet,
float  zBot,
float  zTop,
double  aBiuTo3Du,
bool  aInvertFaceDirection,
const BVH_CONTAINER_2D aThroughHoles = nullptr 
)

◆ AddToMiddleContourns() [3/3]

void TRIANGLE_DISPLAY_LIST::AddToMiddleContourns ( const std::vector< SFVEC2F > &  aContournPoints,
float  zBot,
float  zTop,
bool  aInvertFaceDirection,
const BVH_CONTAINER_2D aThroughHoles = nullptr 
)

◆ IsLayersSizeValid()

bool TRIANGLE_DISPLAY_LIST::IsLayersSizeValid ( )

Check if the vertex arrays of the layers are as expected.

Returns
true if layers are correctly setup.

Member Data Documentation

◆ m_layer_bot_segment_ends

TRIANGLE_LIST* TRIANGLE_DISPLAY_LIST::m_layer_bot_segment_ends

◆ m_layer_bot_triangles

◆ m_layer_middle_contourns_quads

TRIANGLE_LIST* TRIANGLE_DISPLAY_LIST::m_layer_middle_contourns_quads

◆ m_layer_top_segment_ends

TRIANGLE_LIST* TRIANGLE_DISPLAY_LIST::m_layer_top_segment_ends

◆ m_layer_top_triangles

◆ m_middle_layer_lock

std::mutex TRIANGLE_DISPLAY_LIST::m_middle_layer_lock

Definition at line 126 of file layer_triangles.h.

Referenced by AddToMiddleContourns().


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