27 #ifndef __SCH_PAINTER_H 28 #define __SCH_PAINTER_H 159 void draw(
const LIB_PART* aPart,
int,
bool aDrawFields =
true,
int aUnit = 0,
int aConvert = 0 );
199 void strokeText(
const wxString& aText,
const VECTOR2D& aPosition,
double aRotationAngle );
209 #endif // __SCH_PAINTER_H 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.
void draw(const LIB_RECTANGLE *aRect, int aLayer)
SCH_FIELD instances are attached to a component and provide a place for the component's value,...
void drawDanglingSymbol(const wxPoint &aPos, int aWidth, bool aDrawingShadows)
double GetBrightness() const
Returns the brightness value of the color ranged from 0.0 to 1.0.
The Cairo implementation of the graphics abstraction layer.
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
Holds all the data relating to one schematic A schematic may consist of one or more sheets (and one r...
void drawPinDanglingSymbol(const VECTOR2I &aPos, bool aDrawingShadows)
COLOR4D m_layerColors[LAYER_ID_COUNT]
Define a symbol library graphical text item.
Field object used in symbol libraries.
float getTextThickness(const SCH_TEXT *aItem, bool aDrawingShadows) const
bool setDeviceColors(const LIB_ITEM *aItem, int aLayer)
bool isUnitAndConversionShown(const LIB_ITEM *aItem) const
void SetBackgroundColor(const COLOR4D &aColor) override
Set the background color.
const COLOR4D & GetGridColor() override
Return current grid color settings.
virtual COLOR4D GetColor(const VIEW_ITEM *aItem, int aLayer) const override
Returns the color that should be used to draw the specific VIEW_ITEM on the specific layer using curr...
An abstract base class for deriving all objects that can be added to a VIEW.
float getShadowWidth() const
void fillIfSelection(int aLayer)
The base class for drawable items used by schematic library components.
Base class for a bus or wire entry.
Contains all the knowledge about how to draw graphical object onto any particular output device.
bool m_OverrideItemColors
const COLOR4D & GetCursorColor() override
Return current cursor color settings.
SCH_PAINTER Contains methods for drawing schematic-specific items.
float GetDanglineSymbolThickness() const
Define a library symbol object.
void strokeText(const wxString &aText, const VECTOR2D &aPosition, double aRotationAngle)
bool m_ShowGraphicsDisabled
void triLine(const VECTOR2D &a, const VECTOR2D &b, const VECTOR2D &c)
int m_DefaultBusThickness
Define a sheet pin (label) used in sheets to create hierarchical schematics.
Object to handle a bitmap image that can be inserted in a schematic.
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
virtual SCH_RENDER_SETTINGS * GetSettings() override
Return a pointer to current settings that are going to be used when drawing items.
int externalPinDecoSize(const LIB_PIN &aPin)
void LoadColors(const COLOR_SETTINGS *aSettings) override
const COLOR4D & GetBackgroundColor() override
Return current background color settings.
int m_DefaultWireThickness
Segment description base class to describe items which have 2 end points (track, wire,...
int internalPinDecoSize(const LIB_PIN &aPin)
A base class for most all the KiCad significant classes used in schematics and boards.
bool IsBackgroundDark() const override
COLOR4D getRenderColor(const EDA_ITEM *aItem, int aLayer, bool aDrawingShadows) const
SCH_RENDER_SETTINGS Stores schematic-specific render settings.
Color settings are a bit different than most of the settings objects in that there can be more than o...
float getLineWidth(const LIB_ITEM *aItem, bool aDrawingShadows) const
void SetSchematic(SCHEMATIC *aSchematic)
bool m_ShowPinsElectricalType
Base class for any item which can be embedded within the SCHEMATIC container class,...
SCH_RENDER_SETTINGS m_schSettings
Abstract interface for drawing on a 2D-surface.
Define a bezier curve graphic body item.
A color representation with 4 components: red, green, blue, alpha.