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" );
100 void Print( wxDC* aDC,
const wxPoint& aOffset )
override;
103 virtual void ViewGetLayers(
int aLayers[],
int& aCount )
const override;
114 void Move(
const wxPoint& aMoveVector )
override 116 m_pos += aMoveVector;
127 void MirrorY(
int aYaxis_position )
override;
128 void MirrorX(
int aXaxis_position )
override;
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_ SCH_ITEM & operator=(const SCH_ITEM &aItem)
wxString GetSelectMenuText(EDA_UNITS_T aUnits) const override
Function GetSelectMenuText returns the text to display to be used in the selection clarification cont...
void SetScale(double aScale)
void Move(const wxPoint &aMoveVector) override
Function Move moves the item by aMoveVector to a new position.
wxPoint GetPosition() const override
Function GetPosition.
void Print(wxDC *aDC, const wxPoint &aOffset) override
Function Print Print a schematic item.
BITMAP_DEF GetMenuImage() const override
Function GetMenuImage returns a pointer to an image to be used in menus.
const EDA_RECT GetBoundingBox() const override
Function GetBoundingBox returns the orthogonal, bounding box of this object for display purposes.
void MirrorY(int aYaxis_position) override
Function MirrorY mirrors item relative to the Y axis about aYaxis_position.
This class handle bitmap images in KiCad.
bool HitTest(const wxPoint &aPosition, int aAccuracy=0) const override
Function HitTest tests if aPosition is contained within or on the bounding box of an item.
void Rotate(wxPoint aPosition) override
Function Rotate rotates the item around aPosition 90 degrees in the clockwise direction.
void SetImageScale(double aScale)
void SwapData(SCH_ITEM *aItem) override
Function SwapData swap the internal data structures aItem with the schematic item.
Object to handle a bitmap image that can be inserted in a schematic.
Base plotter engine class.
void GetMsgPanelInfo(EDA_UNITS_T aUnits, std::vector< MSG_PANEL_ITEM > &aList) override
Function GetMsgPanelInfo populates aList of MSG_PANEL_ITEM objects with it's internal state for displ...
bool IsMovableFromAnchorPoint() override
Virtual function IsMovableFromAnchorPoint Return true for items which are moved with the anchor point...
void MirrorX(int aXaxis_position) override
Function MirrorX mirrors item relative to the X axis about aXaxis_position.
double GetImageScale() const
Class EDA_RECT handles the component boundary box.
EDA_ITEM * Clone() const override
Function Clone creates a duplicate of this item with linked list members set to NULL.
Class EDA_ITEM is a base class for most all the KiCad significant classes, used in schematics and boa...
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)
virtual void ViewGetLayers(int aLayers[], int &aCount) const override
wxString GetClass() const override
Function GetClass returns the class name.
Class SCH_ITEM is a base class for any item which can be embedded within the SCHEMATIC container clas...
void Plot(PLOTTER *aPlotter) override
Function Plot plots the schematic item to aPlotter.
void SetPosition(const wxPoint &aPosition) override
Function SetPosition set the schematic item position to aPosition.
KICAD_T Type() const
Function Type()