30 #ifndef _SCH_BITMAP_H_ 31 #define _SCH_BITMAP_H_ 48 SCH_BITMAP(
const wxPoint& pos = wxPoint( 0, 0 ) );
61 wxCHECK_MSG(
m_image !=
NULL,
NULL,
"Invalid SCH_BITMAP init, m_image is NULL." );
88 return wxT(
"SCH_BITMAP" );
103 virtual void ViewGetLayers(
int aLayers[],
int& aCount )
const override;
114 void Move(
const wxPoint& aMoveVector )
override 116 m_pos += aMoveVector;
129 void Rotate( wxPoint aPosition )
override;
133 return wxString(
_(
"Image" ) );
143 bool HitTest(
const wxPoint& aPosition,
int aAccuracy = 0 )
const override;
144 bool HitTest(
const EDA_RECT& aRect,
bool aContained,
int aAccuracy = 0 )
const override;
151 void Show(
int nestLevel, std::ostream& os )
const override;
156 #endif // _SCH_BITMAP_H_ void GetMsgPanelInfo(EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList) override
Populate aList of MSG_PANEL_ITEM objects with it's internal state for display purposes.
PNG memory record (file in memory).
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
void SetScale(double aScale)
void Move(const wxPoint &aMoveVector) override
Move the item by aMoveVector to a new position.
bool IsMovableFromAnchorPoint() const override
Virtual function IsMovableFromAnchorPoint Return true for items which are moved with the anchor point...
void Print(const RENDER_SETTINGS *aSettings, const wxPoint &aOffset) override
Print a schematic item.
void MirrorVertically(int aCenter) override
Mirror item vertically about aCenter.
wxPoint GetPosition() const override
The base class for create windows for drawing purpose.
BITMAP_DEF GetMenuImage() const override
Return a pointer to an image to be used in menus.
const EDA_RECT GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
This class handle bitmap images in KiCad.
bool HitTest(const wxPoint &aPosition, int aAccuracy=0) const override
Test if aPosition is contained within or on the bounding box of an item.
void Rotate(wxPoint aPosition) override
Rotate the item around aPosition 90 degrees in the clockwise direction.
wxString GetSelectMenuText(EDA_UNITS aUnits) const override
Return the text to display to be used in the selection clarification context menu when multiple items...
BITMAP_BASE * GetImage() const
void SetImageScale(double aScale)
void SwapData(SCH_ITEM *aItem) override
Swap the internal data structures aItem with the schematic item.
Object to handle a bitmap image that can be inserted in a schematic.
SCH_BITMAP & operator=(const SCH_ITEM &aItem)
Base plotter engine class.
double GetImageScale() const
Handle the component boundary box.
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
A base class for most all the KiCad significant classes used in schematics and boards.
SCH_BITMAP(const wxPoint &pos=wxPoint(0, 0))
bool ReadImageFile(const wxString &aFullFilename)
Reads and stores an image file.
static bool ClassOf(const EDA_ITEM *aItem)
void MirrorHorizontally(int aCenter) override
Mirror item horizontally about aCenter.
virtual void ViewGetLayers(int aLayers[], int &aCount) const override
wxString GetClass() const override
Return the class name.
Base class for any item which can be embedded within the SCHEMATIC container class,...
void Plot(PLOTTER *aPlotter) override
Plot the schematic item to aPlotter.
void SetPosition(const wxPoint &aPosition) override
KICAD_T Type() const
Returns the type of object.