KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KIGFX::SCH_PAINTER Class Reference

Contains methods for drawing schematic-specific items. More...

#include <sch_painter.h>

Inheritance diagram for KIGFX::SCH_PAINTER:
KIGFX::PAINTER

Public Member Functions

 SCH_PAINTER (GAL *aGal)
 
virtual bool Draw (const VIEW_ITEM *, int) override
 Takes an instance of VIEW_ITEM and passes it to a function that knows how to draw the item.
 
virtual SCH_RENDER_SETTINGSGetSettings () override
 Return a pointer to current settings that are going to be used when drawing items.
 
void SetSchematic (SCHEMATIC *aSchematic)
 
void SetGAL (GAL *aGal)
 Changes Graphics Abstraction Layer used for drawing items for a new one.
 

Static Public Attributes

static std::vector< KICAD_Tg_ScaledSelectionTypes
 

Protected Attributes

GALm_gal
 Instance of graphic abstraction layer that gives an interface to call commands used to draw (eg.
 

Private Member Functions

void drawItemBoundingBox (const EDA_ITEM *aItem)
 
void draw (const EDA_ITEM *, int, bool aDimmed)
 
void draw (const SCH_PIN *aPin, int aLayer, bool aDimmed)
 
void draw (const LIB_SYMBOL *aSymbol, int, bool aDrawFields=true, int aUnit=0, int aBodyStyle=0, bool aDimmed=false)
 
void draw (const SCH_SYMBOL *aSymbol, int aLayer)
 
void draw (const SCH_SHAPE *aShape, int aLayer, bool aDimmed)
 
void draw (const SCH_JUNCTION *aJct, int aLayer)
 
void draw (const SCH_FIELD *aField, int aLayer, bool aDimmed)
 
void draw (const SCH_TEXTBOX *aTextBox, int aLayer, bool aDimmed)
 
void draw (const SCH_TEXT *aText, int aLayer, bool aDimmed)
 
void draw (const SCH_TABLE *aTable, int aLayer, bool aDimmed)
 
void draw (const SCH_LABEL *aLabel, int aLayer, bool aDimmed)
 
void draw (const SCH_DIRECTIVE_LABEL *aLabel, int aLayer, bool aDimmed)
 
void draw (const SCH_HIERLABEL *aLabel, int aLayer, bool aDimmed)
 
void draw (const SCH_GLOBALLABEL *aLabel, int aLayer, bool aDimmed)
 
void draw (const SCH_SHEET *aSheet, int aLayer)
 
void draw (const SCH_NO_CONNECT *aNC, int aLayer)
 
void draw (const SCH_MARKER *aMarker, int aLayer)
 
void draw (const SCH_BITMAP *aBitmap, int aLayer)
 
void draw (const SCH_LINE *aLine, int aLayer)
 
void draw (const SCH_BUS_ENTRY_BASE *aEntry, int aLayer)
 
void draw (const SCH_GROUP *aGroup, int aLayer)
 
void drawPinDanglingIndicator (const SCH_PIN &aPin, const COLOR4D &aColor, bool aDrawingShadows, bool aBrightened)
 
void drawLocalPowerIcon (const VECTOR2D &aPos, double aSize, bool aRotate, const COLOR4D &aColor, bool aDrawingShadows, bool aBrightened)
 Draw an local power pin indicator icon.
 
void drawDanglingIndicator (const VECTOR2I &aPos, const COLOR4D &aColor, int aWidth, bool aDangling, bool aDrawingShadows, bool aBrightened)
 Draw the target (an open square) for a wire or label which has no connection or is being moved.
 
void drawAnchor (const VECTOR2I &aPos, bool aDrawingShadows)
 Draw anchor indicating the anchor position of text objects, local labels, or fields.
 
int internalPinDecoSize (const SCH_PIN &aPin)
 
int externalPinDecoSize (const SCH_PIN &aPin)
 
bool nonCached (const EDA_ITEM *aItem)
 Indicates the item is drawn on a non-cached layer in OpenGL.
 
bool isUnitAndConversionShown (const SCH_ITEM *aItem) const
 
float getShadowWidth (bool aForHighlight) const
 
COLOR4D getRenderColor (const SCH_ITEM *aItem, int aLayer, bool aDrawingShadows, bool aDimmed=false, bool aIgnoreNets=false) const
 
KIFONT::FONTgetFont (const EDA_TEXT *aText) const
 
float getLineWidth (const SCH_ITEM *aItem, bool aDrawingShadows, bool aDrawingWireColorHighlights=false) const
 
float getTextThickness (const SCH_ITEM *aItem) const
 
int getOperatingPointTextSize () const
 
void triLine (const VECTOR2D &a, const VECTOR2D &b, const VECTOR2D &c)
 
wxString expandLibItemTextVars (const wxString &aSourceText, const SCH_SYMBOL *aSymbolContext)
 
void drawLine (const VECTOR2I &aStartPoint, const VECTOR2I &aEndPoint, LINE_STYLE aLineStyle, bool aDrawDirectLine=false, int aWidth=0)
 

Private Attributes

SCH_RENDER_SETTINGS m_schSettings
 
SCHEMATICm_schematic
 

Detailed Description

Contains methods for drawing schematic-specific items.

Definition at line 68 of file sch_painter.h.

Constructor & Destructor Documentation

◆ SCH_PAINTER()

KIGFX::SCH_PAINTER::SCH_PAINTER ( GAL * aGal)

Definition at line 104 of file sch_painter.cpp.

References m_schematic, and KIGFX::PAINTER::PAINTER().

Member Function Documentation

◆ Draw()

bool KIGFX::SCH_PAINTER::Draw ( const VIEW_ITEM * aItem,
int aLayer )
overridevirtual

Takes an instance of VIEW_ITEM and passes it to a function that knows how to draw the item.

Parameters
aItemis an item to be drawn.
aLayertells which layer is currently rendered so that draw functions may know what to draw (eg. for pads there are separate layers for holes, because they have other dimensions then the pad itself.

Implements KIGFX::PAINTER.

Definition at line 110 of file sch_painter.cpp.

References draw().

◆ draw() [1/21]

◆ draw() [2/21]

void KIGFX::SCH_PAINTER::draw ( const LIB_SYMBOL * aSymbol,
int aLayer,
bool aDrawFields = true,
int aUnit = 0,
int aBodyStyle = 0,
bool aDimmed = false )
private

◆ draw() [3/21]

◆ draw() [4/21]

◆ draw() [5/21]

◆ draw() [6/21]

void KIGFX::SCH_PAINTER::draw ( const SCH_FIELD * aField,
int aLayer,
bool aDimmed )
private

Definition at line 2840 of file sch_painter.cpp.

References ANGLE_HORIZONTAL, ANGLE_VERTICAL, KIGFX::bitmapText(), SCH_FIELD::CanAutoplace(), BOX2< Vec >::Centre(), color, drawAnchor(), drawItemBoundingBox(), drawLocalPowerIcon(), KIGFX::eeconfig(), EDA_TEXT::GetAttributes(), BOX2< Vec >::GetBottom(), SCH_FIELD::GetBoundingBox(), BOX2< Vec >::GetEnd(), getFont(), SCH_ITEM::GetFontMetrics(), BOX2< Vec >::GetHeight(), SCH_ITEM::GetLayer(), BOX2< Vec >::GetLeft(), EDA_ITEM::GetParent(), SCH_FIELD::GetParentPosition(), BOX2< Vec >::GetPosition(), SCH_FIELD::GetPosition(), SCH_FIELD::GetRenderCache(), getRenderColor(), BOX2< Vec >::GetRight(), SCH_GLOBALLABEL::GetSchematicTextOffset(), getShadowWidth(), SCH_FIELD::GetShownText(), EDA_TEXT::GetTextAngle(), getTextThickness(), SYMBOL::GetTransform(), BOX2< Vec >::GetWidth(), GR_TEXT_H_ALIGN_CENTER, GR_TEXT_V_ALIGN_CENTER, BOX2< Vec >::Inflate(), IS_SHOWN_AS_BITMAP, EDA_ITEM::IsBrightened(), EDA_ITEM::IsForceVisible(), EDA_ANGLE::IsHorizontal(), SCH_FIELD::IsHypertext(), EDA_ITEM::IsMoving(), SCH_ITEM::IsPrivate(), EDA_ITEM::IsRollover(), EDA_ITEM::IsSelected(), SCH_SYMBOL::IsSymbolLikePowerLocalLabel(), isUnitAndConversionShown(), EDA_TEXT::IsVisible(), KiROUND(), LAYER_HIDDEN, LAYER_HOVERED, LAYER_SCHEMATIC_ANCHOR, LAYER_SELECTION_SHADOWS, TEXT_ATTRIBUTES::m_Angle, EESCHEMA_SETTINGS::m_Appearance, KIGFX::PAINTER::m_gal, TEXT_ATTRIBUTES::m_Halign, m_schematic, m_schSettings, TEXT_ATTRIBUTES::m_StrokeWidth, TEXT_ATTRIBUTES::m_Underlined, TEXT_ATTRIBUTES::m_Valign, nonCached(), BOX2< Vec >::Offset(), SCH_ITEM::RenderAsBitmap(), SCH_GLOBAL_LABEL_T, SCH_SYMBOL_T, EESCHEMA_SETTINGS::APPEARANCE::show_hidden_fields, KIGFX::strokeText(), EDA_ITEM::Type(), SCH_FIELD::ViewGetLayers(), and TRANSFORM::y1.

◆ draw() [7/21]

◆ draw() [8/21]

◆ draw() [9/21]

◆ draw() [10/21]

◆ draw() [11/21]

◆ draw() [12/21]

void KIGFX::SCH_PAINTER::draw ( const SCH_LINE * aLine,
int aLayer )
private

◆ draw() [13/21]

◆ draw() [14/21]

◆ draw() [15/21]

void KIGFX::SCH_PAINTER::draw ( const SCH_PIN * aPin,
int aLayer,
bool aDimmed )
private

Definition at line 929 of file sch_painter.cpp.

References ANGLE_HORIZONTAL, ANGLE_VERTICAL, BITMAP_FONT_SIZE_THRESHOLD, KIGFX::bitmapText(), KIGFX::boxText(), ClampTextPenSize(), CLOCK, CLOCK_LOW, color, KIGFX::drawAltPinModesIcon(), drawItemBoundingBox(), KIGFX::GAL::DrawLine(), drawPinDanglingIndicator(), KIGFX::eeconfig(), externalPinDecoSize(), FALLING_EDGE_CLOCK, PIN_LAYOUT_CACHE::GetAltIconBBox(), KIFONT::FONT::GetFont(), SCH_ITEM::GetFontMetrics(), SCH_PIN::GetLayoutCache(), SCH_PIN::GetLength(), getLineWidth(), SCH_PIN::GetNameTextSize(), SCH_PIN::GetNumberTextSize(), SCH_PIN::GetOperatingPoint(), getOperatingPointTextSize(), SCH_ITEM::GetParentSymbol(), GetPenSizeForDemiBold(), PIN_LAYOUT_CACHE::GetPinElectricalTypeInfo(), PIN_LAYOUT_CACHE::GetPinNameInfo(), PIN_LAYOUT_CACHE::GetPinNumberInfo(), SCH_PIN::GetPinRoot(), SCH_PIN::GetPosition(), getRenderColor(), getShadowWidth(), SCH_PIN::GetShape(), SCH_PIN::GetType(), KIGFX::GAL::GetWorldScale(), GR_TEXT_H_ALIGN_CENTER, GR_TEXT_H_ALIGN_LEFT, GR_TEXT_H_ALIGN_RIGHT, GR_TEXT_V_ALIGN_BOTTOM, GR_TEXT_V_ALIGN_CENTER, EDA_ITEM::HasFlag(), INPUT_LOW, internalPinDecoSize(), INVERTED, INVERTED_CLOCK, IS_DANGLING, IS_SHOWN_AS_BITMAP, EDA_ITEM::IsBrightened(), SCH_PIN::IsGlobalPower(), KIFONT::FONT::IsOutline(), EDA_ITEM::IsSelected(), isUnitAndConversionShown(), SCH_PIN::IsVisible(), KiROUND(), KIGFX::knockoutText(), LAYER_DANGLING, LAYER_HIDDEN, LAYER_OP_CURRENTS, LAYER_PIN, LAYER_PINNAM, LAYER_PINNUM, LAYER_PRIVATE_NOTES, LAYER_SELECTION_SHADOWS, LINE, PIN_LAYOUT_CACHE::TEXT_INFO::m_Angle, TEXT_ATTRIBUTES::m_Angle, EESCHEMA_SETTINGS::m_Appearance, TEXT_ATTRIBUTES::m_Color, TEXT_ATTRIBUTES::m_Font, KIGFX::PAINTER::m_gal, PIN_LAYOUT_CACHE::TEXT_INFO::m_HAlign, TEXT_ATTRIBUTES::m_Halign, m_schematic, m_schSettings, TEXT_ATTRIBUTES::m_Size, TEXT_ATTRIBUTES::m_StrokeWidth, PIN_LAYOUT_CACHE::TEXT_INFO::m_Text, PIN_LAYOUT_CACHE::TEXT_INFO::m_TextPosition, PIN_LAYOUT_CACHE::TEXT_INFO::m_TextSize, PIN_LAYOUT_CACHE::TEXT_INFO::m_Thickness, PIN_LAYOUT_CACHE::TEXT_INFO::m_VAlign, TEXT_ATTRIBUTES::m_Valign, nonCached(), NONLOGIC, OUTPUT_LOW, PT_NC, radius, KIGFX::GAL::SetIsFill(), KIGFX::GAL::SetIsStroke(), KIGFX::GAL::SetLineWidth(), PIN_LAYOUT_CACHE::SetRenderParameters(), EESCHEMA_SETTINGS::APPEARANCE::show_hidden_pins, sign(), KIFONT::FONT::StringBoundaryLimits(), KIGFX::strokeText(), TARGET_PIN_RADIUS, triLine(), wxStringSplit(), VECTOR2< T >::x, and VECTOR2< T >::y.

◆ draw() [16/21]

◆ draw() [17/21]

◆ draw() [18/21]

void KIGFX::SCH_PAINTER::draw ( const SCH_SYMBOL * aSymbol,
int aLayer )
private

Definition at line 2670 of file sch_painter.cpp.

References KIGFX::GAL_SCOPED_ATTRS::ALL_ATTRS, center, EDA_ITEM::ClearFlags(), DEFAULT_LINE_WIDTH_MILS, draw(), KIGFX::eeconfig(), expandLibItemTextVars(), SCH_SYMBOL::GetBodyAndPinsBoundingBox(), SCH_SYMBOL::GetBodyBoundingBox(), SCH_ITEM::GetBodyStyle(), ADVANCED_CFG::GetCfg(), SCH_SYMBOL::GetDNP(), LIB_SYMBOL::GetDrawItems(), LIB_SYMBOL::GetDummy(), BOX2< Vec >::GetEnd(), SCH_SYMBOL::GetExcludedFromSim(), SCH_SYMBOL::GetFields(), EDA_ITEM::GetFlags(), LIB_SYMBOL::GetGraphicalPins(), SCH_SYMBOL::GetLibSymbolRef(), SCH_PIN::GetOperatingPoint(), SCH_SYMBOL::GetOrientation(), BOX2< Vec >::GetOrigin(), SCH_SYMBOL::GetPin(), BOX2< Vec >::GetPosition(), SCH_SYMBOL::GetPosition(), SCH_PIN::GetShape(), SCH_PIN::GetShownName(), EDA_TEXT::GetText(), SCH_PIN::GetType(), SCH_ITEM::GetUnit(), SCH_SYMBOL::GetUnitSelection(), BOX2< Vec >::GetX(), BOX2< Vec >::GetY(), EDA_TEXT::HasTextVars(), BOX2< Vec >::Inflate(), IS_DANGLING, EDA_ITEM::IsBrightened(), SCH_PIN::IsDangling(), KIGFX::isFieldsLayer(), EDA_ITEM::IsSelected(), KiROUND(), LAYER_DEVICE, LAYER_DNP_MARKER, LAYER_EXCLUDED_FROM_SIM, LAYER_SELECTION_SHADOWS, left, EESCHEMA_SETTINGS::m_Appearance, KIGFX::PAINTER::m_gal, m_schematic, m_schSettings, EESCHEMA_SETTINGS::APPEARANCE::mark_sim_exclusions, OrientAndMirrorSymbolItems(), right, SCH_TEXT_T, SCH_TEXTBOX_T, schIUScale, EDA_ITEM::SetFlags(), SCH_PIN::SetName(), SCH_PIN::SetOperatingPoint(), SCH_PIN::SetShape(), EDA_TEXT::SetText(), SCH_PIN::SetType(), KIGFX::COLOR4D::WithAlpha(), VECTOR2< T >::x, and VECTOR2< T >::y.

◆ draw() [19/21]

◆ draw() [20/21]

void KIGFX::SCH_PAINTER::draw ( const SCH_TEXT * aText,
int aLayer,
bool aDimmed )
private

Definition at line 2212 of file sch_painter.cpp.

References ANGLE_0, ANGLE_90, ANGLE_VERTICAL, KIGFX::bitmapText(), BOX2< Vec >::Centre(), color, SCH_ITEM::Connection(), drawAnchor(), KIGFX::eeconfig(), EDA_TEXT::GetAttributes(), BOX2< Vec >::GetBottom(), SCH_TEXT::GetBoundingBox(), EDA_TEXT::GetDrawPos(), EDA_TEXT::GetDrawRotation(), BOX2< Vec >::GetEnd(), getFont(), SCH_ITEM::GetFontMetrics(), BOX2< Vec >::GetHeight(), SCH_ITEM::GetLayer(), BOX2< Vec >::GetLeft(), SCH_ITEM::GetParentSymbol(), BOX2< Vec >::GetPosition(), SCH_TEXT::GetPosition(), EDA_TEXT::GetRenderCache(), getRenderColor(), BOX2< Vec >::GetRight(), SCH_TEXT::GetSchematicTextOffset(), getShadowWidth(), SCH_TEXT::GetShownText(), EDA_TEXT::GetTextBox(), EDA_TEXT::GetTextSize(), getTextThickness(), BOX2< Vec >::GetTop(), GR_TEXT_H_ALIGN_CENTER, GR_TEXT_H_ALIGN_INDETERMINATE, GR_TEXT_H_ALIGN_LEFT, GR_TEXT_H_ALIGN_RIGHT, GR_TEXT_V_ALIGN_CENTER, BOX2< Vec >::Inflate(), IS_SHOWN_AS_BITMAP, EDA_ITEM::IsBrightened(), SCH_CONNECTION::IsBus(), SCH_ITEM::IsConnectivityDirty(), EDA_ITEM::IsForceVisible(), SCH_TEXT::IsHypertext(), EDA_ITEM::IsMoving(), KIFONT::FONT::IsOutline(), SCH_ITEM::IsPrivate(), EDA_ITEM::IsRollover(), EDA_ITEM::IsSelected(), isUnitAndConversionShown(), EDA_TEXT::IsVisible(), KiROUND(), LAYER_BUS, LAYER_DEVICE, LAYER_GLOBLABEL, LAYER_HIDDEN, LAYER_HIERLABEL, LAYER_HOVERED, LAYER_LOCLABEL, LAYER_NETCLASS_REFS, LAYER_NOTES, LAYER_SELECTION_SHADOWS, LAYER_SHEETLABEL, TEXT_ATTRIBUTES::m_Angle, KIGFX::PAINTER::m_gal, TEXT_ATTRIBUTES::m_Halign, m_schematic, m_schSettings, TEXT_ATTRIBUTES::m_StrokeWidth, TEXT_ATTRIBUTES::m_Underlined, TEXT_ATTRIBUTES::m_Valign, nonCached(), SCH_ITEM::RenderAsBitmap(), RotatePoint(), SCH_DIRECTIVE_LABEL_T, SCH_GLOBAL_LABEL_T, SCH_HIER_LABEL_T, SCH_LABEL_T, SCH_SHEET_PIN_T, SCH_TEXT_T, KIGFX::strokeText(), EDA_ITEM::Type(), VECTOR2< T >::x, and VECTOR2< T >::y.

◆ draw() [21/21]

◆ drawAnchor()

void KIGFX::SCH_PAINTER::drawAnchor ( const VECTOR2I & aPos,
bool aDrawingShadows )
private

Draw anchor indicating the anchor position of text objects, local labels, or fields.

Definition at line 1713 of file sch_painter.cpp.

References color, MATRIX3x3< T >::GetScale(), getShadowWidth(), KiROUND(), LAYER_SCHEMATIC_ANCHOR, LAYER_SELECTION_SHADOWS, KIGFX::PAINTER::m_gal, m_schSettings, radius, schIUScale, TEXT_ANCHOR_SIZE, and VECTOR2< T >::x.

Referenced by draw(), and draw().

◆ drawDanglingIndicator()

void KIGFX::SCH_PAINTER::drawDanglingIndicator ( const VECTOR2I & aPos,
const COLOR4D & aColor,
int aWidth,
bool aDangling,
bool aDrawingShadows,
bool aBrightened )
private

Draw the target (an open square) for a wire or label which has no connection or is being moved.

Definition at line 1737 of file sch_painter.cpp.

References KIGFX::COLOR4D::Brightened(), DANGLING_SYMBOL_SIZE, getShadowWidth(), KIGFX::PAINTER::m_gal, m_schSettings, radius, schIUScale, and UNSELECTED_END_SIZE.

Referenced by draw(), draw(), draw(), draw(), and draw().

◆ drawItemBoundingBox()

void KIGFX::SCH_PAINTER::drawItemBoundingBox ( const EDA_ITEM * aItem)
private

◆ drawLine()

void KIGFX::SCH_PAINTER::drawLine ( const VECTOR2I & aStartPoint,
const VECTOR2I & aEndPoint,
LINE_STYLE aLineStyle,
bool aDrawDirectLine = false,
int aWidth = 0 )
private

Definition at line 3624 of file sch_painter.cpp.

References end, KiROUND(), KIGFX::PAINTER::m_gal, m_schSettings, and STROKE_PARAMS::Stroke().

Referenced by draw().

◆ drawLocalPowerIcon()

void KIGFX::SCH_PAINTER::drawLocalPowerIcon ( const VECTOR2D & aPos,
double aSize,
bool aRotate,
const COLOR4D & aColor,
bool aDrawingShadows,
bool aBrightened )
private

Draw an local power pin indicator icon.

Definition at line 809 of file sch_painter.cpp.

References ANGLE_270, getShadowWidth(), and KIGFX::PAINTER::m_gal.

Referenced by draw().

◆ drawPinDanglingIndicator()

void KIGFX::SCH_PAINTER::drawPinDanglingIndicator ( const SCH_PIN & aPin,
const COLOR4D & aColor,
bool aDrawingShadows,
bool aBrightened )
private

◆ expandLibItemTextVars()

wxString KIGFX::SCH_PAINTER::expandLibItemTextVars ( const wxString & aSourceText,
const SCH_SYMBOL * aSymbolContext )
private

Definition at line 2654 of file sch_painter.cpp.

References ExpandTextVars(), m_schematic, and SCH_SYMBOL::ResolveTextVar().

Referenced by draw().

◆ externalPinDecoSize()

int KIGFX::SCH_PAINTER::externalPinDecoSize ( const SCH_PIN & aPin)
private

Definition at line 776 of file sch_painter.cpp.

References SCH_PIN::GetNumberTextSize(), and m_schSettings.

Referenced by draw().

◆ getFont()

KIFONT::FONT * KIGFX::SCH_PAINTER::getFont ( const EDA_TEXT * aText) const
private

◆ getLineWidth()

◆ getOperatingPointTextSize()

int KIGFX::SCH_PAINTER::getOperatingPointTextSize ( ) const
private

Definition at line 558 of file sch_painter.cpp.

References std::abs(), KiROUND(), KIGFX::PAINTER::m_gal, and schIUScale.

Referenced by draw(), and draw().

◆ getRenderColor()

◆ GetSettings()

virtual SCH_RENDER_SETTINGS * KIGFX::SCH_PAINTER::GetSettings ( )
inlineoverridevirtual

Return a pointer to current settings that are going to be used when drawing items.

Returns
Current rendering settings.

Implements KIGFX::PAINTER.

Definition at line 77 of file sch_painter.h.

References m_schSettings.

◆ getShadowWidth()

◆ getTextThickness()

float KIGFX::SCH_PAINTER::getTextThickness ( const SCH_ITEM * aItem) const
private

◆ internalPinDecoSize()

int KIGFX::SCH_PAINTER::internalPinDecoSize ( const SCH_PIN & aPin)
private

Definition at line 765 of file sch_painter.cpp.

References SCH_PIN::GetNameTextSize(), SCH_PIN::GetNumberTextSize(), and m_schSettings.

Referenced by draw().

◆ isUnitAndConversionShown()

bool KIGFX::SCH_PAINTER::isUnitAndConversionShown ( const SCH_ITEM * aItem) const
private

Definition at line 260 of file sch_painter.cpp.

References SCH_ITEM::GetBodyStyle(), SCH_ITEM::GetUnit(), and m_schSettings.

Referenced by draw(), draw(), draw(), draw(), and draw().

◆ nonCached()

bool KIGFX::SCH_PAINTER::nonCached ( const EDA_ITEM * aItem)
private

Indicates the item is drawn on a non-cached layer in OpenGL.

Definition at line 252 of file sch_painter.cpp.

References EDA_ITEM::IsSelected().

Referenced by draw(), draw(), and draw().

◆ SetGAL()

void KIGFX::PAINTER::SetGAL ( GAL * aGal)
inlineinherited

Changes Graphics Abstraction Layer used for drawing items for a new one.

Parameters
aGalis the new GAL instance.

Definition at line 76 of file painter.h.

References m_gal.

◆ SetSchematic()

void KIGFX::SCH_PAINTER::SetSchematic ( SCHEMATIC * aSchematic)
inline

Definition at line 79 of file sch_painter.h.

References m_schematic.

Referenced by SCH_EDIT_FRAME::SCH_EDIT_FRAME(), and SCH_EDIT_FRAME::SetSchematic().

◆ triLine()

void KIGFX::SCH_PAINTER::triLine ( const VECTOR2D & a,
const VECTOR2D & b,
const VECTOR2D & c )
private

Definition at line 713 of file sch_painter.cpp.

References KIGFX::PAINTER::m_gal.

Referenced by draw().

Member Data Documentation

◆ g_ScaledSelectionTypes

std::vector< KICAD_T > KIGFX::SCH_PAINTER::g_ScaledSelectionTypes
static
Initial value:
= {
}
@ SCH_LINE_T
Definition typeinfo.h:167
@ LIB_SYMBOL_T
Definition typeinfo.h:152
@ SCH_NO_CONNECT_T
Definition typeinfo.h:164
@ SCH_SYMBOL_T
Definition typeinfo.h:176
@ SCH_FIELD_T
Definition typeinfo.h:154
@ SCH_DIRECTIVE_LABEL_T
Definition typeinfo.h:175
@ SCH_SHEET_T
Definition typeinfo.h:179
@ SCH_MARKER_T
Definition typeinfo.h:162
@ SCH_SHAPE_T
Definition typeinfo.h:153
@ SCH_RULE_AREA_T
Definition typeinfo.h:174
@ SCH_HIER_LABEL_T
Definition typeinfo.h:173
@ SCH_BUS_BUS_ENTRY_T
Definition typeinfo.h:166
@ SCH_SHEET_PIN_T
Definition typeinfo.h:178
@ SCH_TEXT_T
Definition typeinfo.h:155
@ SCH_BUS_WIRE_ENTRY_T
Definition typeinfo.h:165
@ SCH_BITMAP_T
Definition typeinfo.h:168
@ SCH_GLOBAL_LABEL_T
Definition typeinfo.h:172
@ SCH_JUNCTION_T
Definition typeinfo.h:163
@ SCH_PIN_T
Definition typeinfo.h:157

Definition at line 147 of file sch_painter.h.

Referenced by getLineWidth(), and SCH_BASE_FRAME::RefreshZoomDependentItems().

◆ m_gal

GAL* KIGFX::PAINTER::m_gal
protectedinherited

Instance of graphic abstraction layer that gives an interface to call commands used to draw (eg.

DrawLine, DrawCircle, etc.)

Definition at line 102 of file painter.h.

Referenced by KIGFX::PCB_PAINTER::Draw(), KIGFX::DS_PAINTER::draw(), KIGFX::DS_PAINTER::draw(), KIGFX::DS_PAINTER::draw(), KIGFX::DS_PAINTER::draw(), KIGFX::DS_PAINTER::draw(), KIGFX::DS_PAINTER::draw(), KIGFX::GERBVIEW_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), ZONE_PAINTER::draw(), KIGFX::SCH_PAINTER::drawAnchor(), KIGFX::GERBVIEW_PAINTER::drawApertureMacro(), KIGFX::DS_PAINTER::DrawBorder(), KIGFX::SCH_PAINTER::drawDanglingIndicator(), KIGFX::GERBVIEW_PAINTER::drawFlashedShape(), KIGFX::SCH_PAINTER::drawItemBoundingBox(), KIGFX::SCH_PAINTER::drawLine(), KIGFX::SCH_PAINTER::drawLocalPowerIcon(), KIGFX::SCH_PAINTER::drawPinDanglingIndicator(), KIGFX::GERBVIEW_PAINTER::drawPolygon(), KIGFX::SCH_PAINTER::getOperatingPointTextSize(), KIGFX::SCH_PAINTER::getShadowWidth(), PAINTER(), KIGFX::PCB_PAINTER::renderNetNameForSegment(), SetGAL(), KIGFX::PCB_PAINTER::strokeText(), and KIGFX::SCH_PAINTER::triLine().

◆ m_schematic

SCHEMATIC* KIGFX::SCH_PAINTER::m_schematic
private

Definition at line 151 of file sch_painter.h.

Referenced by draw(), draw(), draw(), draw(), draw(), expandLibItemTextVars(), SCH_PAINTER(), and SetSchematic().

◆ m_schSettings


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