KiCad PCB EDA Suite
Loading...
Searching...
No Matches
create_3Dgraphic_brd_items.cpp File Reference

This file implements the creation of 2D graphic primitives of pcb items: pads, tracks, drawsegments, texts.... More...

#include "../3d_rendering/raytracing/shapes2D/ring_2d.h"
#include "../3d_rendering/raytracing/shapes2D/filled_circle_2d.h"
#include "../3d_rendering/raytracing/shapes2D/round_segment_2d.h"
#include "../3d_rendering/raytracing/shapes2D/triangle_2d.h"
#include <board_adapter.h>
#include <board.h>
#include <footprint.h>
#include <pad.h>
#include <pcb_text.h>
#include <pcb_textbox.h>
#include <pcb_table.h>
#include <board_design_settings.h>
#include <pcb_painter.h>
#include <zone.h>
#include <convert_basic_shapes_to_polygon.h>
#include <trigo.h>
#include <geometry/shape_segment.h>
#include <geometry/geometry_utils.h>
#include <geometry/shape_circle.h>
#include <geometry/shape_rect.h>
#include <geometry/shape_simple.h>
#include <utility>
#include <vector>
#include <wx/log.h>
#include <macros.h>
#include <callback_gal.h>

Go to the source code of this file.

Macros

#define TO_3DU(x)   ( ( x ) * m_biuTo3Dunits )
 
#define TO_SFVEC2F(vec)   SFVEC2F( TO_3DU( vec.x ), TO_3DU( -vec.y ) )
 

Functions

void addFILLED_CIRCLE_2D (CONTAINER_2D_BASE *aContainer, const SFVEC2F &aCenter, float aRadius, const BOARD_ITEM &aBoardItem)
 
void addRING_2D (CONTAINER_2D_BASE *aContainer, const SFVEC2F &aCenter, float aInnerRadius, float aOuterRadius, const BOARD_ITEM &aBoardItem)
 
void addROUND_SEGMENT_2D (CONTAINER_2D_BASE *aContainer, const SFVEC2F &aStart, const SFVEC2F &aEnd, float aWidth, const BOARD_ITEM &aBoardItem)
 

Detailed Description

This file implements the creation of 2D graphic primitives of pcb items: pads, tracks, drawsegments, texts....

Definition in file create_3Dgraphic_brd_items.cpp.

Macro Definition Documentation

◆ TO_3DU

#define TO_3DU (   x)    ( ( x ) * m_biuTo3Dunits )

Definition at line 60 of file create_3Dgraphic_brd_items.cpp.

◆ TO_SFVEC2F

#define TO_SFVEC2F (   vec)    SFVEC2F( TO_3DU( vec.x ), TO_3DU( -vec.y ) )

Definition at line 62 of file create_3Dgraphic_brd_items.cpp.

Function Documentation

◆ addFILLED_CIRCLE_2D()

void addFILLED_CIRCLE_2D ( CONTAINER_2D_BASE aContainer,
const SFVEC2F aCenter,
float  aRadius,
const BOARD_ITEM aBoardItem 
)

◆ addRING_2D()

void addRING_2D ( CONTAINER_2D_BASE aContainer,
const SFVEC2F aCenter,
float  aInnerRadius,
float  aOuterRadius,
const BOARD_ITEM aBoardItem 
)

◆ addROUND_SEGMENT_2D()