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

Public Member Functions

 SCHEMATIC_CLIPBOARD_FIXTURE ()=default
 
 ~SCHEMATIC_CLIPBOARD_FIXTURE ()=default
 
std::unique_ptr< SCH_LINECreateWire (int x1, int y1, int x2, int y2)
 
std::unique_ptr< SCH_LINECreateBus (int x1, int y1, int x2, int y2)
 
std::unique_ptr< SCH_JUNCTIONCreateJunction (int x, int y)
 
std::unique_ptr< SCH_NO_CONNECTCreateNoConnect (int x, int y)
 
std::unique_ptr< SCH_BUS_WIRE_ENTRYCreateBusEntry (int x, int y)
 
std::unique_ptr< SCH_TEXTCreateText (int x, int y, const wxString &text)
 
std::unique_ptr< SCH_LABELCreateLabel (int x, int y, const wxString &text)
 
std::unique_ptr< SCH_GLOBALLABELCreateGlobalLabel (int x, int y, const wxString &text)
 
std::unique_ptr< SCH_HIERLABELCreateHierLabel (int x, int y, const wxString &text)
 
std::unique_ptr< SCH_SHAPECreateRectangle (int x1, int y1, int x2, int y2)
 
std::unique_ptr< SCH_SHAPECreateCircle (int cx, int cy, int radius)
 
std::unique_ptr< SCH_SHAPECreatePolyline (const std::vector< std::pair< int, int > > &points)
 
void ClearItems ()
 

Public Attributes

std::vector< SCH_ITEM * > m_items
 

Detailed Description

Definition at line 51 of file test_schematic_clipboard_export.cpp.

Constructor & Destructor Documentation

◆ SCHEMATIC_CLIPBOARD_FIXTURE()

SCHEMATIC_CLIPBOARD_FIXTURE::SCHEMATIC_CLIPBOARD_FIXTURE ( )
default

◆ ~SCHEMATIC_CLIPBOARD_FIXTURE()

SCHEMATIC_CLIPBOARD_FIXTURE::~SCHEMATIC_CLIPBOARD_FIXTURE ( )
default

Member Function Documentation

◆ ClearItems()

void SCHEMATIC_CLIPBOARD_FIXTURE::ClearItems ( )
inline

Definition at line 166 of file test_schematic_clipboard_export.cpp.

References m_items.

◆ CreateBus()

std::unique_ptr< SCH_LINE > SCHEMATIC_CLIPBOARD_FIXTURE::CreateBus ( int x1,
int y1,
int x2,
int y2 )
inline

Definition at line 67 of file test_schematic_clipboard_export.cpp.

References LAYER_BUS, m_items, and schIUScale.

◆ CreateBusEntry()

std::unique_ptr< SCH_BUS_WIRE_ENTRY > SCHEMATIC_CLIPBOARD_FIXTURE::CreateBusEntry ( int x,
int y )
inline

Definition at line 93 of file test_schematic_clipboard_export.cpp.

References m_items, and schIUScale.

◆ CreateCircle()

std::unique_ptr< SCH_SHAPE > SCHEMATIC_CLIPBOARD_FIXTURE::CreateCircle ( int cx,
int cy,
int radius )
inline

Definition at line 144 of file test_schematic_clipboard_export.cpp.

References CIRCLE, circle(), m_items, radius, schIUScale, and SOLID.

◆ CreateGlobalLabel()

std::unique_ptr< SCH_GLOBALLABEL > SCHEMATIC_CLIPBOARD_FIXTURE::CreateGlobalLabel ( int x,
int y,
const wxString & text )
inline

Definition at line 118 of file test_schematic_clipboard_export.cpp.

References m_items, schIUScale, and text.

◆ CreateHierLabel()

std::unique_ptr< SCH_HIERLABEL > SCHEMATIC_CLIPBOARD_FIXTURE::CreateHierLabel ( int x,
int y,
const wxString & text )
inline

Definition at line 126 of file test_schematic_clipboard_export.cpp.

References m_items, schIUScale, and text.

◆ CreateJunction()

std::unique_ptr< SCH_JUNCTION > SCHEMATIC_CLIPBOARD_FIXTURE::CreateJunction ( int x,
int y )
inline

Definition at line 77 of file test_schematic_clipboard_export.cpp.

References m_items, and schIUScale.

◆ CreateLabel()

std::unique_ptr< SCH_LABEL > SCHEMATIC_CLIPBOARD_FIXTURE::CreateLabel ( int x,
int y,
const wxString & text )
inline

Definition at line 110 of file test_schematic_clipboard_export.cpp.

References m_items, schIUScale, and text.

◆ CreateNoConnect()

std::unique_ptr< SCH_NO_CONNECT > SCHEMATIC_CLIPBOARD_FIXTURE::CreateNoConnect ( int x,
int y )
inline

Definition at line 85 of file test_schematic_clipboard_export.cpp.

References m_items, and schIUScale.

◆ CreatePolyline()

std::unique_ptr< SCH_SHAPE > SCHEMATIC_CLIPBOARD_FIXTURE::CreatePolyline ( const std::vector< std::pair< int, int > > & points)
inline

Definition at line 154 of file test_schematic_clipboard_export.cpp.

References m_items, POLY, schIUScale, and SOLID.

◆ CreateRectangle()

std::unique_ptr< SCH_SHAPE > SCHEMATIC_CLIPBOARD_FIXTURE::CreateRectangle ( int x1,
int y1,
int x2,
int y2 )
inline

Definition at line 134 of file test_schematic_clipboard_export.cpp.

References m_items, RECTANGLE, schIUScale, and SOLID.

◆ CreateText()

std::unique_ptr< SCH_TEXT > SCHEMATIC_CLIPBOARD_FIXTURE::CreateText ( int x,
int y,
const wxString & text )
inline

Definition at line 101 of file test_schematic_clipboard_export.cpp.

References m_items, schIUScale, and text.

◆ CreateWire()

std::unique_ptr< SCH_LINE > SCHEMATIC_CLIPBOARD_FIXTURE::CreateWire ( int x1,
int y1,
int x2,
int y2 )
inline

Definition at line 57 of file test_schematic_clipboard_export.cpp.

References LAYER_WIRE, m_items, and schIUScale.

Member Data Documentation

◆ m_items


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