27 #ifndef __SCH_PAINTER_H 28 #define __SCH_PAINTER_H 152 void draw(
const LIB_SYMBOL* aSymbol,
int,
bool aDrawFields =
true,
int aUnit = 0,
170 bool aDrawingShadows );
172 bool aDrawingShadows );
191 void strokeText(
const wxString& aText,
const VECTOR2D& aPosition,
double aRotationAngle );
192 void boxText(
const wxString& aText,
const VECTOR2D& aPosition,
double aAngle );
203 #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.
Instances are attached to a symbol or sheet and provide a place for the symbol's value,...
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.
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.
Define a library symbol object.
float getShadowWidth() const
void boxText(const wxString &aText, const VECTOR2D &aPosition, double aAngle)
The base class for drawable items used by schematic library symbols.
Base class for a bus or wire entry.
void drawDanglingSymbol(const wxPoint &aPos, const COLOR4D &aColor, int aWidth, bool aDrawingShadows)
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.
Contains methods for drawing schematic-specific items.
float GetDanglineSymbolThickness() const
void strokeText(const wxString &aText, const VECTOR2D &aPosition, double aRotationAngle)
bool m_ShowGraphicsDisabled
void triLine(const VECTOR2D &a, const VECTOR2D &b, const VECTOR2D &c)
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.
void draw(LIB_PIN *aPin, int aLayer)
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.
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
Store 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
void drawPinDanglingSymbol(const VECTOR2I &aPos, const COLOR4D &aColor, bool aDrawingShadows)
Abstract interface for drawing on a 2D-surface.
A color representation with 4 components: red, green, blue, alpha.