KiCad PCB EDA Suite
|
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) |
This file implements the creation of 2D graphic primitives of pcb items: pads, tracks, drawsegments, texts....
Definition in file create_3Dgraphic_brd_items.cpp.
#define TO_3DU | ( | x | ) | ( ( x ) * m_biuTo3Dunits ) |
Definition at line 60 of file create_3Dgraphic_brd_items.cpp.
Definition at line 62 of file create_3Dgraphic_brd_items.cpp.
void addFILLED_CIRCLE_2D | ( | CONTAINER_2D_BASE * | aContainer, |
const SFVEC2F & | aCenter, | ||
float | aRadius, | ||
const BOARD_ITEM & | aBoardItem | ||
) |
Definition at line 65 of file create_3Dgraphic_brd_items.cpp.
References CONTAINER_2D_BASE::Add().
Referenced by addROUND_SEGMENT_2D(), BOARD_ADAPTER::addShape(), BOARD_ADAPTER::createPadWithMargin(), and BOARD_ADAPTER::createTrackWithMargin().
void addRING_2D | ( | CONTAINER_2D_BASE * | aContainer, |
const SFVEC2F & | aCenter, | ||
float | aInnerRadius, | ||
float | aOuterRadius, | ||
const BOARD_ITEM & | aBoardItem | ||
) |
Definition at line 73 of file create_3Dgraphic_brd_items.cpp.
References CONTAINER_2D_BASE::Add().
Referenced by BOARD_ADAPTER::addShape(), and BOARD_ADAPTER::buildPadOutlineAsSegments().
void addROUND_SEGMENT_2D | ( | CONTAINER_2D_BASE * | aContainer, |
const SFVEC2F & | aStart, | ||
const SFVEC2F & | aEnd, | ||
float | aWidth, | ||
const BOARD_ITEM & | aBoardItem | ||
) |
Definition at line 81 of file create_3Dgraphic_brd_items.cpp.
References CONTAINER_2D_BASE::Add(), addFILLED_CIRCLE_2D(), and Is_segment_a_circle().
Referenced by BOARD_ADAPTER::addShape(), BOARD_ADAPTER::addText(), BOARD_ADAPTER::buildPadOutlineAsSegments(), BOARD_ADAPTER::createArcSegments(), BOARD_ADAPTER::createPadWithHole(), BOARD_ADAPTER::createPadWithMargin(), and BOARD_ADAPTER::createTrackWithMargin().