25 #ifndef DS_DATA_ITEM_H 26 #define DS_DATA_ITEM_H 35 #define TB_DEFAULT_TEXTSIZE 1.5 // default drawing sheet text size in mm 156 void MoveToUi(
const wxPoint& aPosition );
365 void SetPPI(
int aBitmapPPI );
372 #endif // DS_DATA_ITEM_H
const DPOINT GetEndPos(int ii=0) const
unsigned GetPolyIndexStart(unsigned aContour) const
bool IsInsidePage(int ii) const override
void SetConstrainedTextSize()
Calculate m_ConstrainedTextSize from m_TextSize to keep the X size and the full Y size of the text sm...
DS_DATA_ITEM(DS_ITEM_TYPE aType)
EDA_TEXT_VJUSTIFY_T m_Vjustify
const DPOINT GetStartPos(int ii=0) const
The Cairo implementation of the graphics abstraction layer.
const wxPoint GetEndPosUi(int ii=0) const
void SetEnd(double aPosx, double aPosy, enum CORNER_ANCHOR aAnchor=RB_CORNER)
void SetBoundingBox()
Calculate the bounding box of the set polygons.
void MoveEndPointToUi(const wxPoint &aPosition)
Move the ending point of the item to a new position.
virtual bool IsInsidePage(int ii) const
std::vector< DPOINT > m_Corners
DS_DATA_ITEM_TEXT(const wxString &aTextBase)
void SyncDrawItems(DS_DRAW_ITEM_LIST *aCollector, KIGFX::VIEW *aView) override
virtual int GetPenSizeUi() override
unsigned GetPolyIndexEnd(unsigned aContour) const
virtual void SyncDrawItems(DS_DRAW_ITEM_LIST *aCollector, KIGFX::VIEW *aView)
CORNER_ANCHOR
A coordinate is relative to a page corner.
This class handle bitmap images in KiCad.
EDA_TEXT_HJUSTIFY_T m_Hjustify
const wxPoint GetCornerPositionUi(unsigned aIdx, int aRepeat=0) const
void MoveTo(const DPOINT &aPosition)
Move item to a new position.
void SetStart(double aPosx, double aPosy, enum CORNER_ANCHOR aAnchor=RB_CORNER)
void SyncDrawItems(DS_DRAW_ITEM_LIST *aCollector, KIGFX::VIEW *aView) override
DS_ITEM_TYPE GetType() const
std::vector< DS_DRAW_ITEM_BASE * > m_drawItems
BITMAP_BASE * m_ImageBitmap
const wxString GetClassName() const
void CloseContour()
Close the current contour, by storing the index of the last corner of the current polygon in m_polyIn...
void SetPPI(int aBitmapPPI)
POINT_COORD(const DPOINT &aPos, enum CORNER_ANCHOR aAnchor=RB_CORNER)
const std::vector< DS_DRAW_ITEM_BASE * > & GetDrawItems() const
const DPOINT GetCornerPosition(unsigned aIdx, int aRepeat=0) const
virtual int GetPenSizeUi() override
virtual int GetPenSizeUi()
DS_DATA_ITEM_BITMAP(BITMAP_BASE *aImage)
void SetPage1Option(PAGE_OPTION aChoice)
void MoveStartPointToUi(const wxPoint &aPosition)
Move the starting point of the item to a new position.
DSIZE m_ConstrainedTextSize
bool ReplaceAntiSlashSequence()
Replace the '\''n' sequence by EOL and the sequence '\''\' by only one '\' inside m_FullText.
Drawing sheet structure type definitions.
void MoveStartPointTo(const DPOINT &aPosition)
Move the starting point of the item to a new position.
std::vector< unsigned > m_polyIndexEnd
void MoveEndPointTo(const DPOINT &aPosition)
Move the ending point of the item to a new position.
Store the list of graphic items: rect, lines, polygons and texts to draw/plot the title block and fra...
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
void MoveToUi(const wxPoint &aPosition)
Move item to a new position.
void AppendCorner(const DPOINT &aCorner)
Add a corner in corner list.
void IncrementLabel(int aIncr)
Try to build text which is an increment of m_TextBase has meaning only if m_TextBase is a basic text ...
void SyncDrawItems(DS_DRAW_ITEM_LIST *aCollector, KIGFX::VIEW *aView) override
PAGE_OPTION GetPage1Option() const
const wxPoint GetStartPosUi(int ii=0) const