27#ifndef __ORIGIN_VIEWITEM_H
28#define __ORIGIN_VIEWITEM_H
69 void Show(
int x, std::ostream& st )
const override
81 return wxT(
"ORIGIN_VIEWITEM" );
A base class for most all the KiCad significant classes used in schematics and boards.
A color representation with 4 components: red, green, blue, alpha.
ORIGIN_VIEWITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
COLOR4D m_color
Marker symbol.
VECTOR2D m_position
< Marker coordinates.
void SetPosition(const VECTOR2I &aPosition) override
void SetColor(const KIGFX::COLOR4D &aColor)
void ViewDraw(int aLayer, VIEW *aView) const override
Draw the parts of the object belonging to layer aLayer.
MARKER_STYLE m_style
If set, the marker will be drawn even if its position is 0,0.
const VECTOR2I GetEndPosition() const
VECTOR2D m_end
Marker size (in pixels).
MARKER_STYLE
< Marker symbol styles
VECTOR2I GetPosition() const override
void SetStyle(MARKER_STYLE aStyle)
MARKER_STYLE GetStyle() const
void SetDrawAtZero(bool aDrawFlag)
Set the draw at zero flag.
void ViewGetLayers(int aLayers[], int &aCount) const override
Return the all the layers within the VIEW the object is painted on.
void SetEndPosition(const VECTOR2D &aPosition)
const KIGFX::COLOR4D & GetColor() const
const BOX2I ViewBBox() const override
Return the bounding box of the item covering all its layers.
wxString GetClass() const override
Get class name.
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
std::uint32_t EDA_ITEM_FLAGS
@ LAYER_GP_OVERLAY
general purpose overlay
The Cairo implementation of the graphics abstraction layer.
VECTOR2< int32_t > VECTOR2I
VECTOR2< double > VECTOR2D