56 "Invalid PCB_BITMAP init, m_bitmapBase is NULL." );
85 wxString
GetClass()
const override {
return wxT(
"PCB_BITMAP" ); }
97 FLASHING aFlash = FLASHING::DEFAULT )
const override;
102 virtual void ViewGetLayers(
int aLayers[],
int& aCount )
const override;
116 void Flip(
const VECTOR2I& aCentre,
bool aFlipLeftRight )
override;
121 return wxString(
_(
"Image" ) );
131 bool HitTest(
const VECTOR2I& aPosition,
int aAccuracy = 0 )
const override;
132 bool HitTest(
const BOX2I& aRect,
bool aContained,
int aAccuracy = 0 )
const override;
137 void Show(
int nestLevel, std::ostream& os )
const override;
BITMAPS
A list of all bitmap identifiers.
This class handle bitmap images in KiCad.
void SetScale(double aScale)
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
The base class for create windows for drawing purpose.
A base class for most all the KiCad significant classes used in schematics and boards.
KICAD_T Type() const
Returns the type of object.
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
Object to handle a bitmap image that can be inserted in a PCB.
BITMAP_BASE * m_bitmapBase
VECTOR2I GetPosition() const override
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
static bool ClassOf(const EDA_ITEM *aItem)
std::shared_ptr< SHAPE > GetEffectiveShape(PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=FLASHING::DEFAULT) const override
Some pad shapes can be complex (rounded/chamfered rectangle), even without considering custom shapes.
void SetImageScale(double aScale)
BITMAP_BASE * MutableImage() const
Only use this if you really need to modify the underlying image.
double GetImageScale() const
void swapData(BOARD_ITEM *aItem) override
void Move(const VECTOR2I &aMoveVector) override
Move this object.
wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider) const override
Return a user-visible description string of this item.
virtual void ViewGetLayers(int aLayers[], int &aCount) const override
void SetPosition(const VECTOR2I &aPosition) override
wxString GetClass() const override
Return the class name.
const VECTOR2I GetSize() const
double ViewGetLOD(int aLayer, KIGFX::VIEW *aView) const override
Return the level of detail (LOD) of the item.
const BOX2I GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
const BITMAP_BASE * GetImage() const
void SetImage(wxImage *aImage)
bool HitTest(const VECTOR2I &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
bool ReadImageFile(const wxString &aFullFilename)
Read and store an image file.
void Rotate(const VECTOR2I &aCenter, const EDA_ANGLE &aAngle) override
Rotate this object.
PCB_BITMAP & operator=(const BOARD_ITEM &aItem)
void Flip(const VECTOR2I &aCentre, bool aFlipLeftRight) override
Flip this object, i.e.
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.
BITMAPS GetMenuImage() const override
Return a pointer to an image to be used in menus.
FLASHING
Enum used during connectivity building to ensure we do not query connectivity while building the data...
PCB_LAYER_ID
A quick note on layer IDs:
@ PCB_BITMAP_T
class PCB_BITMAP, bitmap on a layer